Class CommitResponse.Builder

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

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

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

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

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

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

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

        public CommitResponse.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<CommitResponse.Builder>
      • clearField

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

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

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

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

        public CommitResponse.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<CommitResponse.Builder>
      • isInitialized

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

        public CommitResponse.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<CommitResponse.Builder>
        Throws:
        IOException
      • getMutationResultsList

        public List<MutationResult> getMutationResultsList()
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
        Specified by:
        getMutationResultsList in interface CommitResponseOrBuilder
      • getMutationResultsCount

        public int getMutationResultsCount()
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
        Specified by:
        getMutationResultsCount in interface CommitResponseOrBuilder
      • getMutationResults

        public MutationResult getMutationResults​(int index)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
        Specified by:
        getMutationResults in interface CommitResponseOrBuilder
      • setMutationResults

        public CommitResponse.Builder setMutationResults​(int index,
                                                         MutationResult value)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • setMutationResults

        public CommitResponse.Builder setMutationResults​(int index,
                                                         MutationResult.Builder builderForValue)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • addMutationResults

        public CommitResponse.Builder addMutationResults​(MutationResult value)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • addMutationResults

        public CommitResponse.Builder addMutationResults​(int index,
                                                         MutationResult value)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • addMutationResults

        public CommitResponse.Builder addMutationResults​(MutationResult.Builder builderForValue)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • addMutationResults

        public CommitResponse.Builder addMutationResults​(int index,
                                                         MutationResult.Builder builderForValue)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • addAllMutationResults

        public CommitResponse.Builder addAllMutationResults​(Iterable<? extends MutationResult> values)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • clearMutationResults

        public CommitResponse.Builder clearMutationResults()
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • removeMutationResults

        public CommitResponse.Builder removeMutationResults​(int index)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • getMutationResultsBuilder

        public MutationResult.Builder getMutationResultsBuilder​(int index)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • getMutationResultsOrBuilder

        public MutationResultOrBuilder getMutationResultsOrBuilder​(int index)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
        Specified by:
        getMutationResultsOrBuilder in interface CommitResponseOrBuilder
      • addMutationResultsBuilder

        public MutationResult.Builder addMutationResultsBuilder()
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • addMutationResultsBuilder

        public MutationResult.Builder addMutationResultsBuilder​(int index)
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • getMutationResultsBuilderList

        public List<MutationResult.Builder> getMutationResultsBuilderList()
         The result of performing the mutations.
         The i-th mutation result corresponds to the i-th mutation in the request.
         
        repeated .google.datastore.v1.MutationResult mutation_results = 3;
      • getIndexUpdates

        public int getIndexUpdates()
         The number of index entries updated during the commit, or zero if none were
         updated.
         
        int32 index_updates = 4;
        Specified by:
        getIndexUpdates in interface CommitResponseOrBuilder
        Returns:
        The indexUpdates.
      • setIndexUpdates

        public CommitResponse.Builder setIndexUpdates​(int value)
         The number of index entries updated during the commit, or zero if none were
         updated.
         
        int32 index_updates = 4;
        Parameters:
        value - The indexUpdates to set.
        Returns:
        This builder for chaining.
      • clearIndexUpdates

        public CommitResponse.Builder clearIndexUpdates()
         The number of index entries updated during the commit, or zero if none were
         updated.
         
        int32 index_updates = 4;
        Returns:
        This builder for chaining.
      • hasCommitTime

        public boolean hasCommitTime()
         The transaction commit timestamp. Not set for non-transactional commits.
         
        .google.protobuf.Timestamp commit_time = 8;
        Specified by:
        hasCommitTime in interface CommitResponseOrBuilder
        Returns:
        Whether the commitTime field is set.
      • getCommitTime

        public com.google.protobuf.Timestamp getCommitTime()
         The transaction commit timestamp. Not set for non-transactional commits.
         
        .google.protobuf.Timestamp commit_time = 8;
        Specified by:
        getCommitTime in interface CommitResponseOrBuilder
        Returns:
        The commitTime.
      • setCommitTime

        public CommitResponse.Builder setCommitTime​(com.google.protobuf.Timestamp value)
         The transaction commit timestamp. Not set for non-transactional commits.
         
        .google.protobuf.Timestamp commit_time = 8;
      • setCommitTime

        public CommitResponse.Builder setCommitTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The transaction commit timestamp. Not set for non-transactional commits.
         
        .google.protobuf.Timestamp commit_time = 8;
      • mergeCommitTime

        public CommitResponse.Builder mergeCommitTime​(com.google.protobuf.Timestamp value)
         The transaction commit timestamp. Not set for non-transactional commits.
         
        .google.protobuf.Timestamp commit_time = 8;
      • clearCommitTime

        public CommitResponse.Builder clearCommitTime()
         The transaction commit timestamp. Not set for non-transactional commits.
         
        .google.protobuf.Timestamp commit_time = 8;
      • getCommitTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder()
         The transaction commit timestamp. Not set for non-transactional commits.
         
        .google.protobuf.Timestamp commit_time = 8;
      • getCommitTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder()
         The transaction commit timestamp. Not set for non-transactional commits.
         
        .google.protobuf.Timestamp commit_time = 8;
        Specified by:
        getCommitTimeOrBuilder in interface CommitResponseOrBuilder
      • setUnknownFields

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

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