[go: nahoru, domu]

Skip to content

Commit

Permalink
feat: add default_value_expression to TableFieldSchema
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 508443364

Source-Link: googleapis/googleapis@fc7d513

Source-Link: googleapis/googleapis-gen@6d4bae6
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQmlnUXVlcnkuU3RvcmFnZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNmQ0YmFlNmExYzYzMGMzMWM0NWIwYTZkMWM1MGQ2OWI1ZGM4Nzg4MSJ9
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Feb 10, 2023
1 parent 4f64f3a commit d97c2ac
Showing 1 changed file with 55 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,31 @@ public static partial class TableReflection {
"bxIgZ29vZ2xlLmNsb3VkLmJpZ3F1ZXJ5LnN0b3JhZ2UudjEaH2dvb2dsZS9h",
"cGkvZmllbGRfYmVoYXZpb3IucHJvdG8iUQoLVGFibGVTY2hlbWESQgoGZmll",
"bGRzGAEgAygLMjIuZ29vZ2xlLmNsb3VkLmJpZ3F1ZXJ5LnN0b3JhZ2UudjEu",
"VGFibGVGaWVsZFNjaGVtYSKFBQoQVGFibGVGaWVsZFNjaGVtYRIRCgRuYW1l",
"VGFibGVGaWVsZFNjaGVtYSKsBQoQVGFibGVGaWVsZFNjaGVtYRIRCgRuYW1l",
"GAEgASgJQgPgQQISSgoEdHlwZRgCIAEoDjI3Lmdvb2dsZS5jbG91ZC5iaWdx",
"dWVyeS5zdG9yYWdlLnYxLlRhYmxlRmllbGRTY2hlbWEuVHlwZUID4EECEkoK",
"BG1vZGUYAyABKA4yNy5nb29nbGUuY2xvdWQuYmlncXVlcnkuc3RvcmFnZS52",
"MS5UYWJsZUZpZWxkU2NoZW1hLk1vZGVCA+BBARJHCgZmaWVsZHMYBCADKAsy",
"Mi5nb29nbGUuY2xvdWQuYmlncXVlcnkuc3RvcmFnZS52MS5UYWJsZU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FU1RBTVAQBxIICgREQVRFEAgS",
"CAoEVElNRRAJEgwKCERBVEVUSU1FEAoSDQoJR0VPR1JBUEhZEAsSCwoHTlVN",
"RVJJQxAMEg4KCkJJR05VTUVSSUMQDRIMCghJTlRFUlZBTBAOEggKBEpTT04Q",
"DyJGCgRNb2RlEhQKEE1PREVfVU5TUEVDSUZJRUQQABIMCghOVUxMQUJMRRAB",
"EgwKCFJFUVVJUkVEEAISDAoIUkVQRUFURUQQA0K6AQokY29tLmdvb2dsZS5j",
"bG91ZC5iaWdxdWVyeS5zdG9yYWdlLnYxQgpUYWJsZVByb3RvUAFaPmNsb3Vk",
"Lmdvb2dsZS5jb20vZ28vYmlncXVlcnkvc3RvcmFnZS9hcGl2MS9zdG9yYWdl",
"cGI7c3RvcmFnZXBiqgIgR29vZ2xlLkNsb3VkLkJpZ1F1ZXJ5LlN0b3JhZ2Uu",
"VjHKAiBHb29nbGVcQ2xvdWRcQmlnUXVlcnlcU3RvcmFnZVxWMWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BigQuery.Storage.V1.TableSchema), global::Google.Cloud.BigQuery.Storage.V1.TableSchema.Parser, new[]{ "Fields" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BigQuery.Storage.V1.TableFieldSchema), global::Google.Cloud.BigQuery.Storage.V1.TableFieldSchema.Parser, new[]{ "Name", "Type", "Mode", "Fields", "Description", "MaxLength", "Precision", "Scale" }, null, new[]{ typeof(global::Google.Cloud.BigQuery.Storage.V1.TableFieldSchema.Types.Type), typeof(global::Google.Cloud.BigQuery.Storage.V1.TableFieldSchema.Types.Mode) }, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BigQuery.Storage.V1.TableFieldSchema), global::Google.Cloud.BigQuery.Storage.V1.TableFieldSchema.Parser, new[]{ "Name", "Type", "Mode", "Fields", "Description", "MaxLength", "Precision", "Scale", "DefaultValueExpression" }, null, new[]{ typeof(global::Google.Cloud.BigQuery.Storage.V1.TableFieldSchema.Types.Type), typeof(global::Google.Cloud.BigQuery.Storage.V1.TableFieldSchema.Types.Mode) }, null, null)
}));
}
#endregion
Expand Down Expand Up @@ -290,6 +290,7 @@ public sealed partial class TableFieldSchema : pb::IMessage<TableFieldSchema>
maxLength_ = other.maxLength_;
precision_ = other.precision_;
scale_ = other.scale_;
defaultValueExpression_ = other.defaultValueExpression_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -463,6 +464,22 @@ public sealed partial class TableFieldSchema : pb::IMessage<TableFieldSchema>
}
}

/// <summary>Field number for the "default_value_expression" field.</summary>
public const int DefaultValueExpressionFieldNumber = 10;
private string defaultValueExpression_ = "";
/// <summary>
/// Optional. A SQL expression to specify the [default value]
/// (https://cloud.google.com/bigquery/docs/default-values) for this field.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string DefaultValueExpression {
get { return defaultValueExpression_; }
set {
defaultValueExpression_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand All @@ -486,6 +503,7 @@ public sealed partial class TableFieldSchema : pb::IMessage<TableFieldSchema>
if (MaxLength != other.MaxLength) return false;
if (Precision != other.Precision) return false;
if (Scale != other.Scale) return false;
if (DefaultValueExpression != other.DefaultValueExpression) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -501,6 +519,7 @@ public sealed partial class TableFieldSchema : pb::IMessage<TableFieldSchema>
if (MaxLength != 0L) hash ^= MaxLength.GetHashCode();
if (Precision != 0L) hash ^= Precision.GetHashCode();
if (Scale != 0L) hash ^= Scale.GetHashCode();
if (DefaultValueExpression.Length != 0) hash ^= DefaultValueExpression.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -548,6 +567,10 @@ public sealed partial class TableFieldSchema : pb::IMessage<TableFieldSchema>
output.WriteRawTag(72);
output.WriteInt64(Scale);
}
if (DefaultValueExpression.Length != 0) {
output.WriteRawTag(82);
output.WriteString(DefaultValueExpression);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand Down Expand Up @@ -587,6 +610,10 @@ public sealed partial class TableFieldSchema : pb::IMessage<TableFieldSchema>
output.WriteRawTag(72);
output.WriteInt64(Scale);
}
if (DefaultValueExpression.Length != 0) {
output.WriteRawTag(82);
output.WriteString(DefaultValueExpression);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand Down Expand Up @@ -619,6 +646,9 @@ public sealed partial class TableFieldSchema : pb::IMessage<TableFieldSchema>
if (Scale != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Scale);
}
if (DefaultValueExpression.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValueExpression);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand Down Expand Up @@ -653,6 +683,9 @@ public sealed partial class TableFieldSchema : pb::IMessage<TableFieldSchema>
if (other.Scale != 0L) {
Scale = other.Scale;
}
if (other.DefaultValueExpression.Length != 0) {
DefaultValueExpression = other.DefaultValueExpression;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -700,6 +733,10 @@ public sealed partial class TableFieldSchema : pb::IMessage<TableFieldSchema>
Scale = input.ReadInt64();
break;
}
case 82: {
DefaultValueExpression = input.ReadString();
break;
}
}
}
#endif
Expand Down Expand Up @@ -747,6 +784,10 @@ public sealed partial class TableFieldSchema : pb::IMessage<TableFieldSchema>
Scale = input.ReadInt64();
break;
}
case 82: {
DefaultValueExpression = input.ReadString();
break;
}
}
}
}
Expand Down

0 comments on commit d97c2ac

Please sign in to comment.