@@ -1972,6 +1972,27 @@ public com.google.spanner.v1.RequestOptionsOrBuilder getRequestOptionsOrBuilder(
1972
1972
: requestOptions_ ;
1973
1973
}
1974
1974
1975
+ public static final int DATA_BOOST_ENABLED_FIELD_NUMBER = 15 ;
1976
+ private boolean dataBoostEnabled_ = false ;
1977
+ /**
1978
+ *
1979
+ *
1980
+ * <pre>
1981
+ * If this is for a partitioned read and this field is set to `true`, the
1982
+ * request will be executed via Spanner independent compute resources.
1983
+ * If the field is set to `true` but the request does not set
1984
+ * `partition_token`, the API will return an `INVALID_ARGUMENT` error.
1985
+ * </pre>
1986
+ *
1987
+ * <code>bool data_boost_enabled = 15;</code>
1988
+ *
1989
+ * @return The dataBoostEnabled.
1990
+ */
1991
+ @ java .lang .Override
1992
+ public boolean getDataBoostEnabled () {
1993
+ return dataBoostEnabled_ ;
1994
+ }
1995
+
1975
1996
private byte memoizedIsInitialized = -1 ;
1976
1997
1977
1998
@ java .lang .Override
@@ -2018,6 +2039,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
2018
2039
if (requestOptions_ != null ) {
2019
2040
output .writeMessage (11 , getRequestOptions ());
2020
2041
}
2042
+ if (dataBoostEnabled_ != false ) {
2043
+ output .writeBool (15 , dataBoostEnabled_ );
2044
+ }
2021
2045
getUnknownFields ().writeTo (output );
2022
2046
}
2023
2047
@@ -2067,6 +2091,9 @@ public int getSerializedSize() {
2067
2091
if (requestOptions_ != null ) {
2068
2092
size += com .google .protobuf .CodedOutputStream .computeMessageSize (11 , getRequestOptions ());
2069
2093
}
2094
+ if (dataBoostEnabled_ != false ) {
2095
+ size += com .google .protobuf .CodedOutputStream .computeBoolSize (15 , dataBoostEnabled_ );
2096
+ }
2070
2097
size += getUnknownFields ().getSerializedSize ();
2071
2098
memoizedSize = size ;
2072
2099
return size ;
@@ -2105,6 +2132,7 @@ public boolean equals(final java.lang.Object obj) {
2105
2132
if (hasRequestOptions ()) {
2106
2133
if (!getRequestOptions ().equals (other .getRequestOptions ())) return false ;
2107
2134
}
2135
+ if (getDataBoostEnabled () != other .getDataBoostEnabled ()) return false ;
2108
2136
if (!getUnknownFields ().equals (other .getUnknownFields ())) return false ;
2109
2137
return true ;
2110
2138
}
@@ -2148,6 +2176,8 @@ public int hashCode() {
2148
2176
hash = (37 * hash ) + REQUEST_OPTIONS_FIELD_NUMBER ;
2149
2177
hash = (53 * hash ) + getRequestOptions ().hashCode ();
2150
2178
}
2179
+ hash = (37 * hash ) + DATA_BOOST_ENABLED_FIELD_NUMBER ;
2180
+ hash = (53 * hash ) + com .google .protobuf .Internal .hashBoolean (getDataBoostEnabled ());
2151
2181
hash = (29 * hash ) + getUnknownFields ().hashCode ();
2152
2182
memoizedHashCode = hash ;
2153
2183
return hash ;
@@ -2335,6 +2365,7 @@ public Builder clear() {
2335
2365
requestOptionsBuilder_ .dispose ();
2336
2366
requestOptionsBuilder_ = null ;
2337
2367
}
2368
+ dataBoostEnabled_ = false ;
2338
2369
return this ;
2339
2370
}
2340
2371
@@ -2408,6 +2439,9 @@ private void buildPartial0(com.google.spanner.v1.ExecuteSqlRequest result) {
2408
2439
result .requestOptions_ =
2409
2440
requestOptionsBuilder_ == null ? requestOptions_ : requestOptionsBuilder_ .build ();
2410
2441
}
2442
+ if (((from_bitField0_ & 0x00000800 ) != 0 )) {
2443
+ result .dataBoostEnabled_ = dataBoostEnabled_ ;
2444
+ }
2411
2445
}
2412
2446
2413
2447
@ java .lang .Override
@@ -2491,6 +2525,9 @@ public Builder mergeFrom(com.google.spanner.v1.ExecuteSqlRequest other) {
2491
2525
if (other .hasRequestOptions ()) {
2492
2526
mergeRequestOptions (other .getRequestOptions ());
2493
2527
}
2528
+ if (other .getDataBoostEnabled () != false ) {
2529
+ setDataBoostEnabled (other .getDataBoostEnabled ());
2530
+ }
2494
2531
this .mergeUnknownFields (other .getUnknownFields ());
2495
2532
onChanged ();
2496
2533
return this ;
@@ -2590,6 +2627,12 @@ public Builder mergeFrom(
2590
2627
bitField0_ |= 0x00000400 ;
2591
2628
break ;
2592
2629
} // case 90
2630
+ case 120 :
2631
+ {
2632
+ dataBoostEnabled_ = input .readBool ();
2633
+ bitField0_ |= 0x00000800 ;
2634
+ break ;
2635
+ } // case 120
2593
2636
default :
2594
2637
{
2595
2638
if (!super .parseUnknownField (input , extensionRegistry , tag )) {
@@ -4210,6 +4253,68 @@ public com.google.spanner.v1.RequestOptionsOrBuilder getRequestOptionsOrBuilder(
4210
4253
return requestOptionsBuilder_ ;
4211
4254
}
4212
4255
4256
+ private boolean dataBoostEnabled_ ;
4257
+ /**
4258
+ *
4259
+ *
4260
+ * <pre>
4261
+ * If this is for a partitioned read and this field is set to `true`, the
4262
+ * request will be executed via Spanner independent compute resources.
4263
+ * If the field is set to `true` but the request does not set
4264
+ * `partition_token`, the API will return an `INVALID_ARGUMENT` error.
4265
+ * </pre>
4266
+ *
4267
+ * <code>bool data_boost_enabled = 15;</code>
4268
+ *
4269
+ * @return The dataBoostEnabled.
4270
+ */
4271
+ @ java .lang .Override
4272
+ public boolean getDataBoostEnabled () {
4273
+ return dataBoostEnabled_ ;
4274
+ }
4275
+ /**
4276
+ *
4277
+ *
4278
+ * <pre>
4279
+ * If this is for a partitioned read and this field is set to `true`, the
4280
+ * request will be executed via Spanner independent compute resources.
4281
+ * If the field is set to `true` but the request does not set
4282
+ * `partition_token`, the API will return an `INVALID_ARGUMENT` error.
4283
+ * </pre>
4284
+ *
4285
+ * <code>bool data_boost_enabled = 15;</code>
4286
+ *
4287
+ * @param value The dataBoostEnabled to set.
4288
+ * @return This builder for chaining.
4289
+ */
4290
+ public Builder setDataBoostEnabled (boolean value ) {
4291
+
4292
+ dataBoostEnabled_ = value ;
4293
+ bitField0_ |= 0x00000800 ;
4294
+ onChanged ();
4295
+ return this ;
4296
+ }
4297
+ /**
4298
+ *
4299
+ *
4300
+ * <pre>
4301
+ * If this is for a partitioned read and this field is set to `true`, the
4302
+ * request will be executed via Spanner independent compute resources.
4303
+ * If the field is set to `true` but the request does not set
4304
+ * `partition_token`, the API will return an `INVALID_ARGUMENT` error.
4305
+ * </pre>
4306
+ *
4307
+ * <code>bool data_boost_enabled = 15;</code>
4308
+ *
4309
+ * @return This builder for chaining.
4310
+ */
4311
+ public Builder clearDataBoostEnabled () {
4312
+ bitField0_ = (bitField0_ & ~0x00000800 );
4313
+ dataBoostEnabled_ = false ;
4314
+ onChanged ();
4315
+ return this ;
4316
+ }
4317
+
4213
4318
@ java .lang .Override
4214
4319
public final Builder setUnknownFields (final com .google .protobuf .UnknownFieldSet unknownFields ) {
4215
4320
return super .setUnknownFields (unknownFields );
0 commit comments