@@ -48,6 +48,7 @@ private AppendRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> buil
48
48
private AppendRowsRequest () {
49
49
writeStream_ = "" ;
50
50
traceId_ = "" ;
51
+ defaultMissingValueInterpretation_ = 0 ;
51
52
}
52
53
53
54
@ java .lang .Override
@@ -2119,6 +2120,66 @@ public int getMissingValueInterpretationsValueOrThrow(java.lang.String key) {
2119
2120
return map .get (key );
2120
2121
}
2121
2122
2123
+ public static final int DEFAULT_MISSING_VALUE_INTERPRETATION_FIELD_NUMBER = 8 ;
2124
+ private int defaultMissingValueInterpretation_ = 0 ;
2125
+ /**
2126
+ *
2127
+ *
2128
+ * <pre>
2129
+ * Optional. Default missing value interpretation for all columns in the
2130
+ * table. When a value is specified on an `AppendRowsRequest`, it is applied
2131
+ * to all requests on the connection from that point forward, until a
2132
+ * subsequent `AppendRowsRequest` sets it to a different value.
2133
+ * `missing_value_interpretation` can override
2134
+ * `default_missing_value_interpretation`. For example, if you want to write
2135
+ * `NULL` instead of using default values for some columns, you can set
2136
+ * `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same
2137
+ * time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
2138
+ * </pre>
2139
+ *
2140
+ * <code>
2141
+ * .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
2142
+ * </code>
2143
+ *
2144
+ * @return The enum numeric value on the wire for defaultMissingValueInterpretation.
2145
+ */
2146
+ @ java .lang .Override
2147
+ public int getDefaultMissingValueInterpretationValue () {
2148
+ return defaultMissingValueInterpretation_ ;
2149
+ }
2150
+ /**
2151
+ *
2152
+ *
2153
+ * <pre>
2154
+ * Optional. Default missing value interpretation for all columns in the
2155
+ * table. When a value is specified on an `AppendRowsRequest`, it is applied
2156
+ * to all requests on the connection from that point forward, until a
2157
+ * subsequent `AppendRowsRequest` sets it to a different value.
2158
+ * `missing_value_interpretation` can override
2159
+ * `default_missing_value_interpretation`. For example, if you want to write
2160
+ * `NULL` instead of using default values for some columns, you can set
2161
+ * `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same
2162
+ * time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
2163
+ * </pre>
2164
+ *
2165
+ * <code>
2166
+ * .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
2167
+ * </code>
2168
+ *
2169
+ * @return The defaultMissingValueInterpretation.
2170
+ */
2171
+ @ java .lang .Override
2172
+ public com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation
2173
+ getDefaultMissingValueInterpretation () {
2174
+ com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation result =
2175
+ com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation .forNumber (
2176
+ defaultMissingValueInterpretation_ );
2177
+ return result == null
2178
+ ? com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation
2179
+ .UNRECOGNIZED
2180
+ : result ;
2181
+ }
2182
+
2122
2183
private byte memoizedIsInitialized = -1 ;
2123
2184
2124
2185
@ java .lang .Override
@@ -2157,6 +2218,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
2157
2218
internalGetMissingValueInterpretations (),
2158
2219
MissingValueInterpretationsDefaultEntryHolder .defaultEntry ,
2159
2220
7 );
2221
+ if (defaultMissingValueInterpretation_
2222
+ != com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation
2223
+ .MISSING_VALUE_INTERPRETATION_UNSPECIFIED
2224
+ .getNumber ()) {
2225
+ output .writeEnum (8 , defaultMissingValueInterpretation_ );
2226
+ }
2160
2227
getUnknownFields ().writeTo (output );
2161
2228
}
2162
2229
@@ -2193,6 +2260,14 @@ public int getSerializedSize() {
2193
2260
com .google .protobuf .CodedOutputStream .computeMessageSize (
2194
2261
7 , missingValueInterpretations__ );
2195
2262
}
2263
+ if (defaultMissingValueInterpretation_
2264
+ != com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation
2265
+ .MISSING_VALUE_INTERPRETATION_UNSPECIFIED
2266
+ .getNumber ()) {
2267
+ size +=
2268
+ com .google .protobuf .CodedOutputStream .computeEnumSize (
2269
+ 8 , defaultMissingValueInterpretation_ );
2270
+ }
2196
2271
size += getUnknownFields ().getSerializedSize ();
2197
2272
memoizedSize = size ;
2198
2273
return size ;
@@ -2217,6 +2292,8 @@ public boolean equals(final java.lang.Object obj) {
2217
2292
if (!getTraceId ().equals (other .getTraceId ())) return false ;
2218
2293
if (!internalGetMissingValueInterpretations ()
2219
2294
.equals (other .internalGetMissingValueInterpretations ())) return false ;
2295
+ if (defaultMissingValueInterpretation_ != other .defaultMissingValueInterpretation_ )
2296
+ return false ;
2220
2297
if (!getRowsCase ().equals (other .getRowsCase ())) return false ;
2221
2298
switch (rowsCase_ ) {
2222
2299
case 4 :
@@ -2248,6 +2325,8 @@ public int hashCode() {
2248
2325
hash = (37 * hash ) + MISSING_VALUE_INTERPRETATIONS_FIELD_NUMBER ;
2249
2326
hash = (53 * hash ) + internalGetMissingValueInterpretations ().hashCode ();
2250
2327
}
2328
+ hash = (37 * hash ) + DEFAULT_MISSING_VALUE_INTERPRETATION_FIELD_NUMBER ;
2329
+ hash = (53 * hash ) + defaultMissingValueInterpretation_ ;
2251
2330
switch (rowsCase_ ) {
2252
2331
case 4 :
2253
2332
hash = (37 * hash ) + PROTO_ROWS_FIELD_NUMBER ;
@@ -2435,6 +2514,7 @@ public Builder clear() {
2435
2514
}
2436
2515
traceId_ = "" ;
2437
2516
internalGetMutableMissingValueInterpretations ().clear ();
2517
+ defaultMissingValueInterpretation_ = 0 ;
2438
2518
rowsCase_ = 0 ;
2439
2519
rows_ = null ;
2440
2520
return this ;
@@ -2487,6 +2567,9 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsReques
2487
2567
result .missingValueInterpretations_ = internalGetMissingValueInterpretations ();
2488
2568
result .missingValueInterpretations_ .makeImmutable ();
2489
2569
}
2570
+ if (((from_bitField0_ & 0x00000020 ) != 0 )) {
2571
+ result .defaultMissingValueInterpretation_ = defaultMissingValueInterpretation_ ;
2572
+ }
2490
2573
}
2491
2574
2492
2575
private void buildPartialOneofs (com .google .cloud .bigquery .storage .v1 .AppendRowsRequest result ) {
@@ -2559,6 +2642,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsRequest
2559
2642
internalGetMutableMissingValueInterpretations ()
2560
2643
.mergeFrom (other .internalGetMissingValueInterpretations ());
2561
2644
bitField0_ |= 0x00000010 ;
2645
+ if (other .defaultMissingValueInterpretation_ != 0 ) {
2646
+ setDefaultMissingValueInterpretationValue (
2647
+ other .getDefaultMissingValueInterpretationValue ());
2648
+ }
2562
2649
switch (other .getRowsCase ()) {
2563
2650
case PROTO_ROWS :
2564
2651
{
@@ -2641,6 +2728,12 @@ public Builder mergeFrom(
2641
2728
bitField0_ |= 0x00000010 ;
2642
2729
break ;
2643
2730
} // case 58
2731
+ case 64 :
2732
+ {
2733
+ defaultMissingValueInterpretation_ = input .readEnum ();
2734
+ bitField0_ |= 0x00000020 ;
2735
+ break ;
2736
+ } // case 64
2644
2737
default :
2645
2738
{
2646
2739
if (!super .parseUnknownField (input , extensionRegistry , tag )) {
@@ -4005,6 +4098,152 @@ public Builder putAllMissingValueInterpretationsValue(
4005
4098
return this ;
4006
4099
}
4007
4100
4101
+ private int defaultMissingValueInterpretation_ = 0 ;
4102
+ /**
4103
+ *
4104
+ *
4105
+ * <pre>
4106
+ * Optional. Default missing value interpretation for all columns in the
4107
+ * table. When a value is specified on an `AppendRowsRequest`, it is applied
4108
+ * to all requests on the connection from that point forward, until a
4109
+ * subsequent `AppendRowsRequest` sets it to a different value.
4110
+ * `missing_value_interpretation` can override
4111
+ * `default_missing_value_interpretation`. For example, if you want to write
4112
+ * `NULL` instead of using default values for some columns, you can set
4113
+ * `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same
4114
+ * time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
4115
+ * </pre>
4116
+ *
4117
+ * <code>
4118
+ * .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
4119
+ * </code>
4120
+ *
4121
+ * @return The enum numeric value on the wire for defaultMissingValueInterpretation.
4122
+ */
4123
+ @ java .lang .Override
4124
+ public int getDefaultMissingValueInterpretationValue () {
4125
+ return defaultMissingValueInterpretation_ ;
4126
+ }
4127
+ /**
4128
+ *
4129
+ *
4130
+ * <pre>
4131
+ * Optional. Default missing value interpretation for all columns in the
4132
+ * table. When a value is specified on an `AppendRowsRequest`, it is applied
4133
+ * to all requests on the connection from that point forward, until a
4134
+ * subsequent `AppendRowsRequest` sets it to a different value.
4135
+ * `missing_value_interpretation` can override
4136
+ * `default_missing_value_interpretation`. For example, if you want to write
4137
+ * `NULL` instead of using default values for some columns, you can set
4138
+ * `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same
4139
+ * time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
4140
+ * </pre>
4141
+ *
4142
+ * <code>
4143
+ * .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
4144
+ * </code>
4145
+ *
4146
+ * @param value The enum numeric value on the wire for defaultMissingValueInterpretation to set.
4147
+ * @return This builder for chaining.
4148
+ */
4149
+ public Builder setDefaultMissingValueInterpretationValue (int value ) {
4150
+ defaultMissingValueInterpretation_ = value ;
4151
+ bitField0_ |= 0x00000020 ;
4152
+ onChanged ();
4153
+ return this ;
4154
+ }
4155
+ /**
4156
+ *
4157
+ *
4158
+ * <pre>
4159
+ * Optional. Default missing value interpretation for all columns in the
4160
+ * table. When a value is specified on an `AppendRowsRequest`, it is applied
4161
+ * to all requests on the connection from that point forward, until a
4162
+ * subsequent `AppendRowsRequest` sets it to a different value.
4163
+ * `missing_value_interpretation` can override
4164
+ * `default_missing_value_interpretation`. For example, if you want to write
4165
+ * `NULL` instead of using default values for some columns, you can set
4166
+ * `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same
4167
+ * time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
4168
+ * </pre>
4169
+ *
4170
+ * <code>
4171
+ * .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
4172
+ * </code>
4173
+ *
4174
+ * @return The defaultMissingValueInterpretation.
4175
+ */
4176
+ @ java .lang .Override
4177
+ public com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation
4178
+ getDefaultMissingValueInterpretation () {
4179
+ com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation result =
4180
+ com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation
4181
+ .forNumber (defaultMissingValueInterpretation_ );
4182
+ return result == null
4183
+ ? com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation
4184
+ .UNRECOGNIZED
4185
+ : result ;
4186
+ }
4187
+ /**
4188
+ *
4189
+ *
4190
+ * <pre>
4191
+ * Optional. Default missing value interpretation for all columns in the
4192
+ * table. When a value is specified on an `AppendRowsRequest`, it is applied
4193
+ * to all requests on the connection from that point forward, until a
4194
+ * subsequent `AppendRowsRequest` sets it to a different value.
4195
+ * `missing_value_interpretation` can override
4196
+ * `default_missing_value_interpretation`. For example, if you want to write
4197
+ * `NULL` instead of using default values for some columns, you can set
4198
+ * `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same
4199
+ * time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
4200
+ * </pre>
4201
+ *
4202
+ * <code>
4203
+ * .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
4204
+ * </code>
4205
+ *
4206
+ * @param value The defaultMissingValueInterpretation to set.
4207
+ * @return This builder for chaining.
4208
+ */
4209
+ public Builder setDefaultMissingValueInterpretation (
4210
+ com .google .cloud .bigquery .storage .v1 .AppendRowsRequest .MissingValueInterpretation value ) {
4211
+ if (value == null ) {
4212
+ throw new NullPointerException ();
4213
+ }
4214
+ bitField0_ |= 0x00000020 ;
4215
+ defaultMissingValueInterpretation_ = value .getNumber ();
4216
+ onChanged ();
4217
+ return this ;
4218
+ }
4219
+ /**
4220
+ *
4221
+ *
4222
+ * <pre>
4223
+ * Optional. Default missing value interpretation for all columns in the
4224
+ * table. When a value is specified on an `AppendRowsRequest`, it is applied
4225
+ * to all requests on the connection from that point forward, until a
4226
+ * subsequent `AppendRowsRequest` sets it to a different value.
4227
+ * `missing_value_interpretation` can override
4228
+ * `default_missing_value_interpretation`. For example, if you want to write
4229
+ * `NULL` instead of using default values for some columns, you can set
4230
+ * `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same
4231
+ * time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
4232
+ * </pre>
4233
+ *
4234
+ * <code>
4235
+ * .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
4236
+ * </code>
4237
+ *
4238
+ * @return This builder for chaining.
4239
+ */
4240
+ public Builder clearDefaultMissingValueInterpretation () {
4241
+ bitField0_ = (bitField0_ & ~0x00000020 );
4242
+ defaultMissingValueInterpretation_ = 0 ;
4243
+ onChanged ();
4244
+ return this ;
4245
+ }
4246
+
4008
4247
@ java .lang .Override
4009
4248
public final Builder setUnknownFields (final com .google .protobuf .UnknownFieldSet unknownFields ) {
4010
4249
return super .setUnknownFields (unknownFields );
0 commit comments