@@ -2100,6 +2100,32 @@ public com.google.spanner.v1.RequestOptionsOrBuilder getRequestOptionsOrBuilder(
21002100 : requestOptions_ ;
21012101 }
21022102
2103+ public static final int LAST_STATEMENTS_FIELD_NUMBER = 6 ;
2104+ private boolean lastStatements_ = false ;
2105+ /**
2106+ *
2107+ *
2108+ * <pre>
2109+ * Optional. If set to true, this request marks the end of the transaction.
2110+ * The transaction should be committed or aborted after these statements
2111+ * execute, and attempts to execute any other requests against this
2112+ * transaction (including reads and queries) will be rejected.
2113+ *
2114+ * Setting this option may cause some error reporting to be deferred until
2115+ * commit time (e.g. validation of unique constraints). Given this, successful
2116+ * execution of statements should not be assumed until a subsequent Commit
2117+ * call completes successfully.
2118+ * </pre>
2119+ *
2120+ * <code>bool last_statements = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
2121+ *
2122+ * @return The lastStatements.
2123+ */
2124+ @ java .lang .Override
2125+ public boolean getLastStatements () {
2126+ return lastStatements_ ;
2127+ }
2128+
21032129 private byte memoizedIsInitialized = -1 ;
21042130
21052131 @ java .lang .Override
@@ -2129,6 +2155,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
21292155 if (((bitField0_ & 0x00000002 ) != 0 )) {
21302156 output .writeMessage (5 , getRequestOptions ());
21312157 }
2158+ if (lastStatements_ != false ) {
2159+ output .writeBool (6 , lastStatements_ );
2160+ }
21322161 getUnknownFields ().writeTo (output );
21332162 }
21342163
@@ -2153,6 +2182,9 @@ public int getSerializedSize() {
21532182 if (((bitField0_ & 0x00000002 ) != 0 )) {
21542183 size += com .google .protobuf .CodedOutputStream .computeMessageSize (5 , getRequestOptions ());
21552184 }
2185+ if (lastStatements_ != false ) {
2186+ size += com .google .protobuf .CodedOutputStream .computeBoolSize (6 , lastStatements_ );
2187+ }
21562188 size += getUnknownFields ().getSerializedSize ();
21572189 memoizedSize = size ;
21582190 return size ;
@@ -2180,6 +2212,7 @@ public boolean equals(final java.lang.Object obj) {
21802212 if (hasRequestOptions ()) {
21812213 if (!getRequestOptions ().equals (other .getRequestOptions ())) return false ;
21822214 }
2215+ if (getLastStatements () != other .getLastStatements ()) return false ;
21832216 if (!getUnknownFields ().equals (other .getUnknownFields ())) return false ;
21842217 return true ;
21852218 }
@@ -2207,6 +2240,8 @@ public int hashCode() {
22072240 hash = (37 * hash ) + REQUEST_OPTIONS_FIELD_NUMBER ;
22082241 hash = (53 * hash ) + getRequestOptions ().hashCode ();
22092242 }
2243+ hash = (37 * hash ) + LAST_STATEMENTS_FIELD_NUMBER ;
2244+ hash = (53 * hash ) + com .google .protobuf .Internal .hashBoolean (getLastStatements ());
22102245 hash = (29 * hash ) + getUnknownFields ().hashCode ();
22112246 memoizedHashCode = hash ;
22122247 return hash ;
@@ -2376,6 +2411,7 @@ public Builder clear() {
23762411 requestOptionsBuilder_ .dispose ();
23772412 requestOptionsBuilder_ = null ;
23782413 }
2414+ lastStatements_ = false ;
23792415 return this ;
23802416 }
23812417
@@ -2442,6 +2478,9 @@ private void buildPartial0(com.google.spanner.v1.ExecuteBatchDmlRequest result)
24422478 requestOptionsBuilder_ == null ? requestOptions_ : requestOptionsBuilder_ .build ();
24432479 to_bitField0_ |= 0x00000002 ;
24442480 }
2481+ if (((from_bitField0_ & 0x00000020 ) != 0 )) {
2482+ result .lastStatements_ = lastStatements_ ;
2483+ }
24452484 result .bitField0_ |= to_bitField0_ ;
24462485 }
24472486
@@ -2531,6 +2570,9 @@ public Builder mergeFrom(com.google.spanner.v1.ExecuteBatchDmlRequest other) {
25312570 if (other .hasRequestOptions ()) {
25322571 mergeRequestOptions (other .getRequestOptions ());
25332572 }
2573+ if (other .getLastStatements () != false ) {
2574+ setLastStatements (other .getLastStatements ());
2575+ }
25342576 this .mergeUnknownFields (other .getUnknownFields ());
25352577 onChanged ();
25362578 return this ;
@@ -2595,6 +2637,12 @@ public Builder mergeFrom(
25952637 bitField0_ |= 0x00000010 ;
25962638 break ;
25972639 } // case 42
2640+ case 48 :
2641+ {
2642+ lastStatements_ = input .readBool ();
2643+ bitField0_ |= 0x00000020 ;
2644+ break ;
2645+ } // case 48
25982646 default :
25992647 {
26002648 if (!super .parseUnknownField (input , extensionRegistry , tag )) {
@@ -3715,6 +3763,83 @@ public com.google.spanner.v1.RequestOptionsOrBuilder getRequestOptionsOrBuilder(
37153763 return requestOptionsBuilder_ ;
37163764 }
37173765
3766+ private boolean lastStatements_ ;
3767+ /**
3768+ *
3769+ *
3770+ * <pre>
3771+ * Optional. If set to true, this request marks the end of the transaction.
3772+ * The transaction should be committed or aborted after these statements
3773+ * execute, and attempts to execute any other requests against this
3774+ * transaction (including reads and queries) will be rejected.
3775+ *
3776+ * Setting this option may cause some error reporting to be deferred until
3777+ * commit time (e.g. validation of unique constraints). Given this, successful
3778+ * execution of statements should not be assumed until a subsequent Commit
3779+ * call completes successfully.
3780+ * </pre>
3781+ *
3782+ * <code>bool last_statements = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
3783+ *
3784+ * @return The lastStatements.
3785+ */
3786+ @ java .lang .Override
3787+ public boolean getLastStatements () {
3788+ return lastStatements_ ;
3789+ }
3790+ /**
3791+ *
3792+ *
3793+ * <pre>
3794+ * Optional. If set to true, this request marks the end of the transaction.
3795+ * The transaction should be committed or aborted after these statements
3796+ * execute, and attempts to execute any other requests against this
3797+ * transaction (including reads and queries) will be rejected.
3798+ *
3799+ * Setting this option may cause some error reporting to be deferred until
3800+ * commit time (e.g. validation of unique constraints). Given this, successful
3801+ * execution of statements should not be assumed until a subsequent Commit
3802+ * call completes successfully.
3803+ * </pre>
3804+ *
3805+ * <code>bool last_statements = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
3806+ *
3807+ * @param value The lastStatements to set.
3808+ * @return This builder for chaining.
3809+ */
3810+ public Builder setLastStatements (boolean value ) {
3811+
3812+ lastStatements_ = value ;
3813+ bitField0_ |= 0x00000020 ;
3814+ onChanged ();
3815+ return this ;
3816+ }
3817+ /**
3818+ *
3819+ *
3820+ * <pre>
3821+ * Optional. If set to true, this request marks the end of the transaction.
3822+ * The transaction should be committed or aborted after these statements
3823+ * execute, and attempts to execute any other requests against this
3824+ * transaction (including reads and queries) will be rejected.
3825+ *
3826+ * Setting this option may cause some error reporting to be deferred until
3827+ * commit time (e.g. validation of unique constraints). Given this, successful
3828+ * execution of statements should not be assumed until a subsequent Commit
3829+ * call completes successfully.
3830+ * </pre>
3831+ *
3832+ * <code>bool last_statements = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
3833+ *
3834+ * @return This builder for chaining.
3835+ */
3836+ public Builder clearLastStatements () {
3837+ bitField0_ = (bitField0_ & ~0x00000020 );
3838+ lastStatements_ = false ;
3839+ onChanged ();
3840+ return this ;
3841+ }
3842+
37183843 @ java .lang .Override
37193844 public final Builder setUnknownFields (final com .google .protobuf .UnknownFieldSet unknownFields ) {
37203845 return super .setUnknownFields (unknownFields );
0 commit comments