@@ -43,6 +43,7 @@ private TableFieldSchema() {
4343 mode_ = 0 ;
4444 fields_ = java .util .Collections .emptyList ();
4545 description_ = "" ;
46+ defaultValueExpression_ = "" ;
4647 }
4748
4849 @ java .lang .Override
@@ -991,6 +992,59 @@ public long getScale() {
991992 return scale_ ;
992993 }
993994
995+ public static final int DEFAULT_VALUE_EXPRESSION_FIELD_NUMBER = 10 ;
996+
997+ @ SuppressWarnings ("serial" )
998+ private volatile java .lang .Object defaultValueExpression_ = "" ;
999+ /**
1000+ *
1001+ *
1002+ * <pre>
1003+ * Optional. A SQL expression to specify the [default value]
1004+ * (https://cloud.google.com/bigquery/docs/default-values) for this field.
1005+ * </pre>
1006+ *
1007+ * <code>string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
1008+ *
1009+ * @return The defaultValueExpression.
1010+ */
1011+ @ java .lang .Override
1012+ public java .lang .String getDefaultValueExpression () {
1013+ java .lang .Object ref = defaultValueExpression_ ;
1014+ if (ref instanceof java .lang .String ) {
1015+ return (java .lang .String ) ref ;
1016+ } else {
1017+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
1018+ java .lang .String s = bs .toStringUtf8 ();
1019+ defaultValueExpression_ = s ;
1020+ return s ;
1021+ }
1022+ }
1023+ /**
1024+ *
1025+ *
1026+ * <pre>
1027+ * Optional. A SQL expression to specify the [default value]
1028+ * (https://cloud.google.com/bigquery/docs/default-values) for this field.
1029+ * </pre>
1030+ *
1031+ * <code>string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
1032+ *
1033+ * @return The bytes for defaultValueExpression.
1034+ */
1035+ @ java .lang .Override
1036+ public com .google .protobuf .ByteString getDefaultValueExpressionBytes () {
1037+ java .lang .Object ref = defaultValueExpression_ ;
1038+ if (ref instanceof java .lang .String ) {
1039+ com .google .protobuf .ByteString b =
1040+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
1041+ defaultValueExpression_ = b ;
1042+ return b ;
1043+ } else {
1044+ return (com .google .protobuf .ByteString ) ref ;
1045+ }
1046+ }
1047+
9941048 private byte memoizedIsInitialized = -1 ;
9951049
9961050 @ java .lang .Override
@@ -1033,6 +1087,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
10331087 if (scale_ != 0L ) {
10341088 output .writeInt64 (9 , scale_ );
10351089 }
1090+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (defaultValueExpression_ )) {
1091+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 10 , defaultValueExpression_ );
1092+ }
10361093 getUnknownFields ().writeTo (output );
10371094 }
10381095
@@ -1070,6 +1127,9 @@ public int getSerializedSize() {
10701127 if (scale_ != 0L ) {
10711128 size += com .google .protobuf .CodedOutputStream .computeInt64Size (9 , scale_ );
10721129 }
1130+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (defaultValueExpression_ )) {
1131+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (10 , defaultValueExpression_ );
1132+ }
10731133 size += getUnknownFields ().getSerializedSize ();
10741134 memoizedSize = size ;
10751135 return size ;
@@ -1094,6 +1154,7 @@ public boolean equals(final java.lang.Object obj) {
10941154 if (getMaxLength () != other .getMaxLength ()) return false ;
10951155 if (getPrecision () != other .getPrecision ()) return false ;
10961156 if (getScale () != other .getScale ()) return false ;
1157+ if (!getDefaultValueExpression ().equals (other .getDefaultValueExpression ())) return false ;
10971158 if (!getUnknownFields ().equals (other .getUnknownFields ())) return false ;
10981159 return true ;
10991160 }
@@ -1123,6 +1184,8 @@ public int hashCode() {
11231184 hash = (53 * hash ) + com .google .protobuf .Internal .hashLong (getPrecision ());
11241185 hash = (37 * hash ) + SCALE_FIELD_NUMBER ;
11251186 hash = (53 * hash ) + com .google .protobuf .Internal .hashLong (getScale ());
1187+ hash = (37 * hash ) + DEFAULT_VALUE_EXPRESSION_FIELD_NUMBER ;
1188+ hash = (53 * hash ) + getDefaultValueExpression ().hashCode ();
11261189 hash = (29 * hash ) + getUnknownFields ().hashCode ();
11271190 memoizedHashCode = hash ;
11281191 return hash ;
@@ -1277,6 +1340,7 @@ public Builder clear() {
12771340 maxLength_ = 0L ;
12781341 precision_ = 0L ;
12791342 scale_ = 0L ;
1343+ defaultValueExpression_ = "" ;
12801344 return this ;
12811345 }
12821346
@@ -1348,6 +1412,9 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.TableFieldSchema
13481412 if (((from_bitField0_ & 0x00000080 ) != 0 )) {
13491413 result .scale_ = scale_ ;
13501414 }
1415+ if (((from_bitField0_ & 0x00000100 ) != 0 )) {
1416+ result .defaultValueExpression_ = defaultValueExpression_ ;
1417+ }
13511418 }
13521419
13531420 @ java .lang .Override
@@ -1448,6 +1515,11 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.TableFieldSchema o
14481515 if (other .getScale () != 0L ) {
14491516 setScale (other .getScale ());
14501517 }
1518+ if (!other .getDefaultValueExpression ().isEmpty ()) {
1519+ defaultValueExpression_ = other .defaultValueExpression_ ;
1520+ bitField0_ |= 0x00000100 ;
1521+ onChanged ();
1522+ }
14511523 this .mergeUnknownFields (other .getUnknownFields ());
14521524 onChanged ();
14531525 return this ;
@@ -1530,6 +1602,12 @@ public Builder mergeFrom(
15301602 bitField0_ |= 0x00000080 ;
15311603 break ;
15321604 } // case 72
1605+ case 82 :
1606+ {
1607+ defaultValueExpression_ = input .readStringRequireUtf8 ();
1608+ bitField0_ |= 0x00000100 ;
1609+ break ;
1610+ } // case 82
15331611 default :
15341612 {
15351613 if (!super .parseUnknownField (input , extensionRegistry , tag )) {
@@ -2633,6 +2711,117 @@ public Builder clearScale() {
26332711 return this ;
26342712 }
26352713
2714+ private java .lang .Object defaultValueExpression_ = "" ;
2715+ /**
2716+ *
2717+ *
2718+ * <pre>
2719+ * Optional. A SQL expression to specify the [default value]
2720+ * (https://cloud.google.com/bigquery/docs/default-values) for this field.
2721+ * </pre>
2722+ *
2723+ * <code>string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
2724+ *
2725+ * @return The defaultValueExpression.
2726+ */
2727+ public java .lang .String getDefaultValueExpression () {
2728+ java .lang .Object ref = defaultValueExpression_ ;
2729+ if (!(ref instanceof java .lang .String )) {
2730+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
2731+ java .lang .String s = bs .toStringUtf8 ();
2732+ defaultValueExpression_ = s ;
2733+ return s ;
2734+ } else {
2735+ return (java .lang .String ) ref ;
2736+ }
2737+ }
2738+ /**
2739+ *
2740+ *
2741+ * <pre>
2742+ * Optional. A SQL expression to specify the [default value]
2743+ * (https://cloud.google.com/bigquery/docs/default-values) for this field.
2744+ * </pre>
2745+ *
2746+ * <code>string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
2747+ *
2748+ * @return The bytes for defaultValueExpression.
2749+ */
2750+ public com .google .protobuf .ByteString getDefaultValueExpressionBytes () {
2751+ java .lang .Object ref = defaultValueExpression_ ;
2752+ if (ref instanceof String ) {
2753+ com .google .protobuf .ByteString b =
2754+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
2755+ defaultValueExpression_ = b ;
2756+ return b ;
2757+ } else {
2758+ return (com .google .protobuf .ByteString ) ref ;
2759+ }
2760+ }
2761+ /**
2762+ *
2763+ *
2764+ * <pre>
2765+ * Optional. A SQL expression to specify the [default value]
2766+ * (https://cloud.google.com/bigquery/docs/default-values) for this field.
2767+ * </pre>
2768+ *
2769+ * <code>string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
2770+ *
2771+ * @param value The defaultValueExpression to set.
2772+ * @return This builder for chaining.
2773+ */
2774+ public Builder setDefaultValueExpression (java .lang .String value ) {
2775+ if (value == null ) {
2776+ throw new NullPointerException ();
2777+ }
2778+ defaultValueExpression_ = value ;
2779+ bitField0_ |= 0x00000100 ;
2780+ onChanged ();
2781+ return this ;
2782+ }
2783+ /**
2784+ *
2785+ *
2786+ * <pre>
2787+ * Optional. A SQL expression to specify the [default value]
2788+ * (https://cloud.google.com/bigquery/docs/default-values) for this field.
2789+ * </pre>
2790+ *
2791+ * <code>string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
2792+ *
2793+ * @return This builder for chaining.
2794+ */
2795+ public Builder clearDefaultValueExpression () {
2796+ defaultValueExpression_ = getDefaultInstance ().getDefaultValueExpression ();
2797+ bitField0_ = (bitField0_ & ~0x00000100 );
2798+ onChanged ();
2799+ return this ;
2800+ }
2801+ /**
2802+ *
2803+ *
2804+ * <pre>
2805+ * Optional. A SQL expression to specify the [default value]
2806+ * (https://cloud.google.com/bigquery/docs/default-values) for this field.
2807+ * </pre>
2808+ *
2809+ * <code>string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
2810+ *
2811+ * @param value The bytes for defaultValueExpression to set.
2812+ * @return This builder for chaining.
2813+ */
2814+ public Builder setDefaultValueExpressionBytes (com .google .protobuf .ByteString value ) {
2815+ if (value == null ) {
2816+ throw new NullPointerException ();
2817+ }
2818+ checkByteStringIsUtf8 (value );
2819+ defaultValueExpression_ = value ;
2820+ bitField0_ |= 0x00000100 ;
2821+ onChanged ();
2822+ return this ;
2823+ }
2824+
26362825 @ java .lang .Override
26372826 public final Builder setUnknownFields (final com .google .protobuf .UnknownFieldSet unknownFields ) {
26382827 return super .setUnknownFields (unknownFields );
0 commit comments