Class CommitRequest.Builder

  • All Implemented Interfaces:
    CommitRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CommitRequest

    public static final class CommitRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
    implements CommitRequestOrBuilder
     The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit].
     
    Protobuf type google.datastore.v1.CommitRequest
    • 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<CommitRequest.Builder>
      • clear

        public CommitRequest.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<CommitRequest.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<CommitRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CommitRequest.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<CommitRequest.Builder>
      • setField

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

        public CommitRequest.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<CommitRequest.Builder>
      • clearOneof

        public CommitRequest.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<CommitRequest.Builder>
      • setRepeatedField

        public CommitRequest.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<CommitRequest.Builder>
      • addRepeatedField

        public CommitRequest.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<CommitRequest.Builder>
      • mergeFrom

        public CommitRequest.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>
      • isInitialized

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

        public CommitRequest.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<CommitRequest.Builder>
        Throws:
        IOException
      • getProjectId

        public String getProjectId()
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProjectId in interface CommitRequestOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProjectIdBytes in interface CommitRequestOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public CommitRequest.Builder setProjectId​(String value)
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public CommitRequest.Builder clearProjectId()
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public CommitRequest.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getDatabaseId

        public String getDatabaseId()
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Specified by:
        getDatabaseId in interface CommitRequestOrBuilder
        Returns:
        The databaseId.
      • getDatabaseIdBytes

        public com.google.protobuf.ByteString getDatabaseIdBytes()
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Specified by:
        getDatabaseIdBytes in interface CommitRequestOrBuilder
        Returns:
        The bytes for databaseId.
      • setDatabaseId

        public CommitRequest.Builder setDatabaseId​(String value)
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Parameters:
        value - The databaseId to set.
        Returns:
        This builder for chaining.
      • clearDatabaseId

        public CommitRequest.Builder clearDatabaseId()
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Returns:
        This builder for chaining.
      • setDatabaseIdBytes

        public CommitRequest.Builder setDatabaseIdBytes​(com.google.protobuf.ByteString value)
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Parameters:
        value - The bytes for databaseId to set.
        Returns:
        This builder for chaining.
      • getModeValue

        public int getModeValue()
         The type of commit to perform. Defaults to `TRANSACTIONAL`.
         
        .google.datastore.v1.CommitRequest.Mode mode = 5;
        Specified by:
        getModeValue in interface CommitRequestOrBuilder
        Returns:
        The enum numeric value on the wire for mode.
      • setModeValue

        public CommitRequest.Builder setModeValue​(int value)
         The type of commit to perform. Defaults to `TRANSACTIONAL`.
         
        .google.datastore.v1.CommitRequest.Mode mode = 5;
        Parameters:
        value - The enum numeric value on the wire for mode to set.
        Returns:
        This builder for chaining.
      • getMode

        public CommitRequest.Mode getMode()
         The type of commit to perform. Defaults to `TRANSACTIONAL`.
         
        .google.datastore.v1.CommitRequest.Mode mode = 5;
        Specified by:
        getMode in interface CommitRequestOrBuilder
        Returns:
        The mode.
      • setMode

        public CommitRequest.Builder setMode​(CommitRequest.Mode value)
         The type of commit to perform. Defaults to `TRANSACTIONAL`.
         
        .google.datastore.v1.CommitRequest.Mode mode = 5;
        Parameters:
        value - The mode to set.
        Returns:
        This builder for chaining.
      • clearMode

        public CommitRequest.Builder clearMode()
         The type of commit to perform. Defaults to `TRANSACTIONAL`.
         
        .google.datastore.v1.CommitRequest.Mode mode = 5;
        Returns:
        This builder for chaining.
      • hasTransaction

        public boolean hasTransaction()
         The identifier of the transaction associated with the commit. A
         transaction identifier is returned by a call to
         [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
         
        bytes transaction = 1;
        Specified by:
        hasTransaction in interface CommitRequestOrBuilder
        Returns:
        Whether the transaction field is set.
      • getTransaction

        public com.google.protobuf.ByteString getTransaction()
         The identifier of the transaction associated with the commit. A
         transaction identifier is returned by a call to
         [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
         
        bytes transaction = 1;
        Specified by:
        getTransaction in interface CommitRequestOrBuilder
        Returns:
        The transaction.
      • setTransaction

        public CommitRequest.Builder setTransaction​(com.google.protobuf.ByteString value)
         The identifier of the transaction associated with the commit. A
         transaction identifier is returned by a call to
         [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
         
        bytes transaction = 1;
        Parameters:
        value - The transaction to set.
        Returns:
        This builder for chaining.
      • clearTransaction

        public CommitRequest.Builder clearTransaction()
         The identifier of the transaction associated with the commit. A
         transaction identifier is returned by a call to
         [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
         
        bytes transaction = 1;
        Returns:
        This builder for chaining.
      • hasSingleUseTransaction

        public boolean hasSingleUseTransaction()
         Options for beginning a new transaction for this request.
         The transaction is committed when the request completes. If specified,
         [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
         [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
         
        .google.datastore.v1.TransactionOptions single_use_transaction = 10;
        Specified by:
        hasSingleUseTransaction in interface CommitRequestOrBuilder
        Returns:
        Whether the singleUseTransaction field is set.
      • getSingleUseTransaction

        public TransactionOptions getSingleUseTransaction()
         Options for beginning a new transaction for this request.
         The transaction is committed when the request completes. If specified,
         [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
         [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
         
        .google.datastore.v1.TransactionOptions single_use_transaction = 10;
        Specified by:
        getSingleUseTransaction in interface CommitRequestOrBuilder
        Returns:
        The singleUseTransaction.
      • setSingleUseTransaction

        public CommitRequest.Builder setSingleUseTransaction​(TransactionOptions value)
         Options for beginning a new transaction for this request.
         The transaction is committed when the request completes. If specified,
         [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
         [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
         
        .google.datastore.v1.TransactionOptions single_use_transaction = 10;
      • setSingleUseTransaction

        public CommitRequest.Builder setSingleUseTransaction​(TransactionOptions.Builder builderForValue)
         Options for beginning a new transaction for this request.
         The transaction is committed when the request completes. If specified,
         [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
         [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
         
        .google.datastore.v1.TransactionOptions single_use_transaction = 10;
      • mergeSingleUseTransaction

        public CommitRequest.Builder mergeSingleUseTransaction​(TransactionOptions value)
         Options for beginning a new transaction for this request.
         The transaction is committed when the request completes. If specified,
         [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
         [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
         
        .google.datastore.v1.TransactionOptions single_use_transaction = 10;
      • clearSingleUseTransaction

        public CommitRequest.Builder clearSingleUseTransaction()
         Options for beginning a new transaction for this request.
         The transaction is committed when the request completes. If specified,
         [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
         [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
         
        .google.datastore.v1.TransactionOptions single_use_transaction = 10;
      • getSingleUseTransactionBuilder

        public TransactionOptions.Builder getSingleUseTransactionBuilder()
         Options for beginning a new transaction for this request.
         The transaction is committed when the request completes. If specified,
         [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
         [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
         
        .google.datastore.v1.TransactionOptions single_use_transaction = 10;
      • getSingleUseTransactionOrBuilder

        public TransactionOptionsOrBuilder getSingleUseTransactionOrBuilder()
         Options for beginning a new transaction for this request.
         The transaction is committed when the request completes. If specified,
         [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
         [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
         
        .google.datastore.v1.TransactionOptions single_use_transaction = 10;
        Specified by:
        getSingleUseTransactionOrBuilder in interface CommitRequestOrBuilder
      • getMutationsList

        public List<Mutation> getMutationsList()
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
        Specified by:
        getMutationsList in interface CommitRequestOrBuilder
      • getMutationsCount

        public int getMutationsCount()
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
        Specified by:
        getMutationsCount in interface CommitRequestOrBuilder
      • getMutations

        public Mutation getMutations​(int index)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
        Specified by:
        getMutations in interface CommitRequestOrBuilder
      • setMutations

        public CommitRequest.Builder setMutations​(int index,
                                                  Mutation value)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • setMutations

        public CommitRequest.Builder setMutations​(int index,
                                                  Mutation.Builder builderForValue)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • addMutations

        public CommitRequest.Builder addMutations​(Mutation value)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • addMutations

        public CommitRequest.Builder addMutations​(int index,
                                                  Mutation value)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • addMutations

        public CommitRequest.Builder addMutations​(Mutation.Builder builderForValue)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • addMutations

        public CommitRequest.Builder addMutations​(int index,
                                                  Mutation.Builder builderForValue)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • addAllMutations

        public CommitRequest.Builder addAllMutations​(Iterable<? extends Mutation> values)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • clearMutations

        public CommitRequest.Builder clearMutations()
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • removeMutations

        public CommitRequest.Builder removeMutations​(int index)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • getMutationsBuilder

        public Mutation.Builder getMutationsBuilder​(int index)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • getMutationsOrBuilder

        public MutationOrBuilder getMutationsOrBuilder​(int index)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
        Specified by:
        getMutationsOrBuilder in interface CommitRequestOrBuilder
      • getMutationsOrBuilderList

        public List<? extends MutationOrBuilder> getMutationsOrBuilderList()
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
        Specified by:
        getMutationsOrBuilderList in interface CommitRequestOrBuilder
      • addMutationsBuilder

        public Mutation.Builder addMutationsBuilder()
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • addMutationsBuilder

        public Mutation.Builder addMutationsBuilder​(int index)
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • getMutationsBuilderList

        public List<Mutation.Builder> getMutationsBuilderList()
         The mutations to perform.
        
         When mode is `TRANSACTIONAL`, mutations affecting a single entity are
         applied in order. The following sequences of mutations affecting a single
         entity are not permitted in a single `Commit` request:
        
         - `insert` followed by `insert`
         - `update` followed by `insert`
         - `upsert` followed by `insert`
         - `delete` followed by `update`
        
         When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
         entity.
         
        repeated .google.datastore.v1.Mutation mutations = 6;
      • setUnknownFields

        public final CommitRequest.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<CommitRequest.Builder>
      • mergeUnknownFields

        public final CommitRequest.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<CommitRequest.Builder>