Skip to content

Commit

Permalink
feat: A new field property_ordering is added to message `.google.cl…
Browse files Browse the repository at this point in the history
…oud.aiplatform.v1beta1.Schema`

PiperOrigin-RevId: 674918528

Source-Link: googleapis/googleapis@65306b9

Source-Link: googleapis/googleapis-gen@442fa35
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9ybS5WMUJldGExLy5Pd2xCb3QueWFtbCIsImgiOiI0NDJmYTM1ZDE2NDFkZTRmZjRmZWZkOGQ2ZTY3MmFhODk2YTUxMzU0In0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Sep 16, 2024
1 parent d8adaac commit 7ff096f
Showing 1 changed file with 52 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static OpenapiReflection() {
"Ci1nb29nbGUvY2xvdWQvYWlwbGF0Zm9ybS92MWJldGExL29wZW5hcGkucHJv",
"dG8SH2dvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEaH2dvb2dsZS9h",
"cGkvZmllbGRfYmVoYXZpb3IucHJvdG8aHGdvb2dsZS9wcm90b2J1Zi9zdHJ1",
"Y3QucHJvdG8ihwYKDU9wZW5BcGlTY2hlbWESOAoEdHlwZRgBIAEoDjIlLmdv",
"Y3QucHJvdG8ipwYKDU9wZW5BcGlTY2hlbWESOAoEdHlwZRgBIAEoDjIlLmdv",
"b2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuVHlwZUID4EEBEhMKBmZv",
"cm1hdBgHIAEoCUID4EEBEhIKBXRpdGxlGBggASgJQgPgQQESGAoLZGVzY3Jp",
"cHRpb24YCCABKAlCA+BBARIVCghudWxsYWJsZRgGIAEoCEID4EEBEiwKB2Rl",
Expand All @@ -36,27 +36,27 @@ static OpenapiReflection() {
"T3BlbkFwaVNjaGVtYUID4EEBEhYKCW1pbl9pdGVtcxgVIAEoA0ID4EEBEhYK",
"CW1heF9pdGVtcxgWIAEoA0ID4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q2xvdWQ6OkFJUGxhdGZvcm06OlYxYmV0YTFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.AIPlatform.V1Beta1.Type), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.OpenApiSchema), global::Google.Cloud.AIPlatform.V1Beta1.OpenApiSchema.Parser, new[]{ "Type", "Format", "Title", "Description", "Nullable", "Default", "Items", "MinItems", "MaxItems", "Enum", "Properties", "Required", "MinProperties", "MaxProperties", "Minimum", "Maximum", "MinLength", "MaxLength", "Pattern", "Example" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.OpenApiSchema), global::Google.Cloud.AIPlatform.V1Beta1.OpenApiSchema.Parser, new[]{ "Type", "Format", "Title", "Description", "Nullable", "Default", "Items", "MinItems", "MaxItems", "Enum", "Properties", "PropertyOrdering", "Required", "MinProperties", "MaxProperties", "Minimum", "Maximum", "MinLength", "MaxLength", "Pattern", "Example" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
}));
}
#endregion
Expand Down Expand Up @@ -104,8 +104,8 @@ public enum Type {
/// <summary>
/// Schema is used to define the format of input/output data. Represents a select
/// subset of an [OpenAPI 3.0 schema
/// object](https://spec.openapis.org/oas/v3.0.3#schema). More fields may be
/// added in the future as needed.
/// object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may
/// be added in the future as needed.
/// </summary>
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class OpenApiSchema : pb::IMessage<OpenApiSchema>
Expand Down Expand Up @@ -153,6 +153,7 @@ public OpenApiSchema(OpenApiSchema other) : this() {
maxItems_ = other.maxItems_;
enum_ = other.enum_.Clone();
properties_ = other.properties_.Clone();
propertyOrdering_ = other.propertyOrdering_.Clone();
required_ = other.required_.Clone();
minProperties_ = other.minProperties_;
maxProperties_ = other.maxProperties_;
Expand Down Expand Up @@ -342,6 +343,22 @@ public long MaxItems {
get { return properties_; }
}

/// <summary>Field number for the "property_ordering" field.</summary>
public const int PropertyOrderingFieldNumber = 25;
private static readonly pb::FieldCodec<string> _repeated_propertyOrdering_codec
= pb::FieldCodec.ForString(202);
private readonly pbc::RepeatedField<string> propertyOrdering_ = new pbc::RepeatedField<string>();
/// <summary>
/// Optional. The order of the properties.
/// Not a standard field in open api spec. Only used to support the order of
/// the properties.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> PropertyOrdering {
get { return propertyOrdering_; }
}

/// <summary>Field number for the "required" field.</summary>
public const int RequiredFieldNumber = 5;
private static readonly pb::FieldCodec<string> _repeated_required_codec
Expand Down Expand Up @@ -506,6 +523,7 @@ public bool Equals(OpenApiSchema other) {
if (MaxItems != other.MaxItems) return false;
if(!enum_.Equals(other.enum_)) return false;
if (!Properties.Equals(other.Properties)) return false;
if(!propertyOrdering_.Equals(other.propertyOrdering_)) return false;
if(!required_.Equals(other.required_)) return false;
if (MinProperties != other.MinProperties) return false;
if (MaxProperties != other.MaxProperties) return false;
Expand Down Expand Up @@ -533,6 +551,7 @@ public override int GetHashCode() {
if (MaxItems != 0L) hash ^= MaxItems.GetHashCode();
hash ^= enum_.GetHashCode();
hash ^= Properties.GetHashCode();
hash ^= propertyOrdering_.GetHashCode();
hash ^= required_.GetHashCode();
if (MinProperties != 0L) hash ^= MinProperties.GetHashCode();
if (MaxProperties != 0L) hash ^= MaxProperties.GetHashCode();
Expand Down Expand Up @@ -631,6 +650,7 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(194, 1);
output.WriteString(Title);
}
propertyOrdering_.WriteTo(output, _repeated_propertyOrdering_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand Down Expand Up @@ -712,6 +732,7 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(194, 1);
output.WriteString(Title);
}
propertyOrdering_.WriteTo(ref output, _repeated_propertyOrdering_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand Down Expand Up @@ -751,6 +772,7 @@ public int CalculateSize() {
}
size += enum_.CalculateSize(_repeated_enum_codec);
size += properties_.CalculateSize(_map_properties_codec);
size += propertyOrdering_.CalculateSize(_repeated_propertyOrdering_codec);
size += required_.CalculateSize(_repeated_required_codec);
if (MinProperties != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinProperties);
Expand Down Expand Up @@ -823,6 +845,7 @@ public void MergeFrom(OpenApiSchema other) {
}
enum_.Add(other.enum_);
properties_.MergeFrom(other.properties_);
propertyOrdering_.Add(other.propertyOrdering_);
required_.Add(other.required_);
if (other.MinProperties != 0L) {
MinProperties = other.MinProperties;
Expand Down Expand Up @@ -955,6 +978,10 @@ public void MergeFrom(pb::CodedInputStream input) {
Title = input.ReadString();
break;
}
case 202: {
propertyOrdering_.AddEntriesFrom(input, _repeated_propertyOrdering_codec);
break;
}
}
}
#endif
Expand Down Expand Up @@ -1059,6 +1086,10 @@ public void MergeFrom(pb::CodedInputStream input) {
Title = input.ReadString();
break;
}
case 202: {
propertyOrdering_.AddEntriesFrom(ref input, _repeated_propertyOrdering_codec);
break;
}
}
}
}
Expand Down

0 comments on commit 7ff096f

Please sign in to comment.