Class ExecuteBatchDmlRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>
      • clear

        public ExecuteBatchDmlRequest.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>
      • getDefaultInstanceForType

        public ExecuteBatchDmlRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ExecuteBatchDmlRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ExecuteBatchDmlRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ExecuteBatchDmlRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>
      • clearField

        public ExecuteBatchDmlRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>
      • clearOneof

        public ExecuteBatchDmlRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>
      • setRepeatedField

        public ExecuteBatchDmlRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>
      • addRepeatedField

        public ExecuteBatchDmlRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>
      • mergeFrom

        public ExecuteBatchDmlRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExecuteBatchDmlRequest.Builder>
        Throws:
        IOException
      • getSession

        public String getSession()
         Required. The session in which the DML statements should be performed.
         
        string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getSession in interface ExecuteBatchDmlRequestOrBuilder
        Returns:
        The session.
      • getSessionBytes

        public com.google.protobuf.ByteString getSessionBytes()
         Required. The session in which the DML statements should be performed.
         
        string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getSessionBytes in interface ExecuteBatchDmlRequestOrBuilder
        Returns:
        The bytes for session.
      • setSession

        public ExecuteBatchDmlRequest.Builder setSession​(String value)
         Required. The session in which the DML statements should be performed.
         
        string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The session to set.
        Returns:
        This builder for chaining.
      • clearSession

        public ExecuteBatchDmlRequest.Builder clearSession()
         Required. The session in which the DML statements should be performed.
         
        string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setSessionBytes

        public ExecuteBatchDmlRequest.Builder setSessionBytes​(com.google.protobuf.ByteString value)
         Required. The session in which the DML statements should be performed.
         
        string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for session to set.
        Returns:
        This builder for chaining.
      • hasTransaction

        public boolean hasTransaction()
         Required. The transaction to use. Must be a read-write transaction.
        
         To protect against replays, single-use transactions are not supported. The
         caller must either supply an existing transaction ID or begin a new
         transaction.
         
        .google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasTransaction in interface ExecuteBatchDmlRequestOrBuilder
        Returns:
        Whether the transaction field is set.
      • getTransaction

        public TransactionSelector getTransaction()
         Required. The transaction to use. Must be a read-write transaction.
        
         To protect against replays, single-use transactions are not supported. The
         caller must either supply an existing transaction ID or begin a new
         transaction.
         
        .google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTransaction in interface ExecuteBatchDmlRequestOrBuilder
        Returns:
        The transaction.
      • setTransaction

        public ExecuteBatchDmlRequest.Builder setTransaction​(TransactionSelector value)
         Required. The transaction to use. Must be a read-write transaction.
        
         To protect against replays, single-use transactions are not supported. The
         caller must either supply an existing transaction ID or begin a new
         transaction.
         
        .google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
      • setTransaction

        public ExecuteBatchDmlRequest.Builder setTransaction​(TransactionSelector.Builder builderForValue)
         Required. The transaction to use. Must be a read-write transaction.
        
         To protect against replays, single-use transactions are not supported. The
         caller must either supply an existing transaction ID or begin a new
         transaction.
         
        .google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeTransaction

        public ExecuteBatchDmlRequest.Builder mergeTransaction​(TransactionSelector value)
         Required. The transaction to use. Must be a read-write transaction.
        
         To protect against replays, single-use transactions are not supported. The
         caller must either supply an existing transaction ID or begin a new
         transaction.
         
        .google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearTransaction

        public ExecuteBatchDmlRequest.Builder clearTransaction()
         Required. The transaction to use. Must be a read-write transaction.
        
         To protect against replays, single-use transactions are not supported. The
         caller must either supply an existing transaction ID or begin a new
         transaction.
         
        .google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
      • getTransactionBuilder

        public TransactionSelector.Builder getTransactionBuilder()
         Required. The transaction to use. Must be a read-write transaction.
        
         To protect against replays, single-use transactions are not supported. The
         caller must either supply an existing transaction ID or begin a new
         transaction.
         
        .google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
      • getTransactionOrBuilder

        public TransactionSelectorOrBuilder getTransactionOrBuilder()
         Required. The transaction to use. Must be a read-write transaction.
        
         To protect against replays, single-use transactions are not supported. The
         caller must either supply an existing transaction ID or begin a new
         transaction.
         
        .google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTransactionOrBuilder in interface ExecuteBatchDmlRequestOrBuilder
      • getStatementsList

        public List<ExecuteBatchDmlRequest.Statement> getStatementsList()
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStatementsList in interface ExecuteBatchDmlRequestOrBuilder
      • getStatementsCount

        public int getStatementsCount()
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStatementsCount in interface ExecuteBatchDmlRequestOrBuilder
      • getStatements

        public ExecuteBatchDmlRequest.Statement getStatements​(int index)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStatements in interface ExecuteBatchDmlRequestOrBuilder
      • setStatements

        public ExecuteBatchDmlRequest.Builder setStatements​(int index,
                                                            ExecuteBatchDmlRequest.Statement value)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • setStatements

        public ExecuteBatchDmlRequest.Builder setStatements​(int index,
                                                            ExecuteBatchDmlRequest.Statement.Builder builderForValue)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • addStatements

        public ExecuteBatchDmlRequest.Builder addStatements​(ExecuteBatchDmlRequest.Statement value)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • addStatements

        public ExecuteBatchDmlRequest.Builder addStatements​(int index,
                                                            ExecuteBatchDmlRequest.Statement value)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • addStatements

        public ExecuteBatchDmlRequest.Builder addStatements​(ExecuteBatchDmlRequest.Statement.Builder builderForValue)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • addStatements

        public ExecuteBatchDmlRequest.Builder addStatements​(int index,
                                                            ExecuteBatchDmlRequest.Statement.Builder builderForValue)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • addAllStatements

        public ExecuteBatchDmlRequest.Builder addAllStatements​(Iterable<? extends ExecuteBatchDmlRequest.Statement> values)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • clearStatements

        public ExecuteBatchDmlRequest.Builder clearStatements()
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • removeStatements

        public ExecuteBatchDmlRequest.Builder removeStatements​(int index)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • getStatementsBuilder

        public ExecuteBatchDmlRequest.Statement.Builder getStatementsBuilder​(int index)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • getStatementsOrBuilder

        public ExecuteBatchDmlRequest.StatementOrBuilder getStatementsOrBuilder​(int index)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStatementsOrBuilder in interface ExecuteBatchDmlRequestOrBuilder
      • getStatementsOrBuilderList

        public List<? extends ExecuteBatchDmlRequest.StatementOrBuilder> getStatementsOrBuilderList()
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStatementsOrBuilderList in interface ExecuteBatchDmlRequestOrBuilder
      • addStatementsBuilder

        public ExecuteBatchDmlRequest.Statement.Builder addStatementsBuilder()
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • addStatementsBuilder

        public ExecuteBatchDmlRequest.Statement.Builder addStatementsBuilder​(int index)
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • getStatementsBuilderList

        public List<ExecuteBatchDmlRequest.Statement.Builder> getStatementsBuilderList()
         Required. The list of statements to execute in this batch. Statements are executed
         serially, such that the effects of statement `i` are visible to statement
         `i+1`. Each statement must be a DML statement. Execution stops at the
         first failed statement; the remaining statements are not executed.
        
         Callers must provide at least one statement.
         
        repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
      • getSeqno

        public long getSeqno()
         Required. A per-transaction sequence number used to identify this request. This field
         makes each request idempotent such that if the request is received multiple
         times, at most one will succeed.
        
         The sequence number must be monotonically increasing within the
         transaction. If a request arrives for the first time with an out-of-order
         sequence number, the transaction may be aborted. Replays of previously
         handled requests will yield the same response as the first execution.
         
        int64 seqno = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSeqno in interface ExecuteBatchDmlRequestOrBuilder
        Returns:
        The seqno.
      • setSeqno

        public ExecuteBatchDmlRequest.Builder setSeqno​(long value)
         Required. A per-transaction sequence number used to identify this request. This field
         makes each request idempotent such that if the request is received multiple
         times, at most one will succeed.
        
         The sequence number must be monotonically increasing within the
         transaction. If a request arrives for the first time with an out-of-order
         sequence number, the transaction may be aborted. Replays of previously
         handled requests will yield the same response as the first execution.
         
        int64 seqno = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The seqno to set.
        Returns:
        This builder for chaining.
      • clearSeqno

        public ExecuteBatchDmlRequest.Builder clearSeqno()
         Required. A per-transaction sequence number used to identify this request. This field
         makes each request idempotent such that if the request is received multiple
         times, at most one will succeed.
        
         The sequence number must be monotonically increasing within the
         transaction. If a request arrives for the first time with an out-of-order
         sequence number, the transaction may be aborted. Replays of previously
         handled requests will yield the same response as the first execution.
         
        int64 seqno = 4 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • hasRequestOptions

        public boolean hasRequestOptions()
         Common options for this request.
         
        .google.spanner.v1.RequestOptions request_options = 5;
        Specified by:
        hasRequestOptions in interface ExecuteBatchDmlRequestOrBuilder
        Returns:
        Whether the requestOptions field is set.
      • clearRequestOptions

        public ExecuteBatchDmlRequest.Builder clearRequestOptions()
         Common options for this request.
         
        .google.spanner.v1.RequestOptions request_options = 5;
      • getRequestOptionsBuilder

        public RequestOptions.Builder getRequestOptionsBuilder()
         Common options for this request.
         
        .google.spanner.v1.RequestOptions request_options = 5;
      • setUnknownFields

        public final ExecuteBatchDmlRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>
      • mergeUnknownFields

        public final ExecuteBatchDmlRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder>