Class CommitResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
com.google.firestore.v1.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 [Firestore.Commit][google.firestore.v1.Firestore.Commit].
 
Protobuf type google.firestore.v1.CommitResponse
  • Method Details

    • 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>
    • mergeFrom

      public CommitResponse.Builder mergeFrom(CommitResponse other)
    • 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
    • getWriteResultsList

      public List<WriteResult> getWriteResultsList()
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
      Specified by:
      getWriteResultsList in interface CommitResponseOrBuilder
    • getWriteResultsCount

      public int getWriteResultsCount()
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
      Specified by:
      getWriteResultsCount in interface CommitResponseOrBuilder
    • getWriteResults

      public WriteResult getWriteResults(int index)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
      Specified by:
      getWriteResults in interface CommitResponseOrBuilder
    • setWriteResults

      public CommitResponse.Builder setWriteResults(int index, WriteResult value)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • setWriteResults

      public CommitResponse.Builder setWriteResults(int index, WriteResult.Builder builderForValue)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • addWriteResults

      public CommitResponse.Builder addWriteResults(WriteResult value)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • addWriteResults

      public CommitResponse.Builder addWriteResults(int index, WriteResult value)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • addWriteResults

      public CommitResponse.Builder addWriteResults(WriteResult.Builder builderForValue)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • addWriteResults

      public CommitResponse.Builder addWriteResults(int index, WriteResult.Builder builderForValue)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • addAllWriteResults

      public CommitResponse.Builder addAllWriteResults(Iterable<? extends WriteResult> values)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • clearWriteResults

      public CommitResponse.Builder clearWriteResults()
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • removeWriteResults

      public CommitResponse.Builder removeWriteResults(int index)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • getWriteResultsBuilder

      public WriteResult.Builder getWriteResultsBuilder(int index)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • getWriteResultsOrBuilder

      public WriteResultOrBuilder getWriteResultsOrBuilder(int index)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
      Specified by:
      getWriteResultsOrBuilder in interface CommitResponseOrBuilder
    • getWriteResultsOrBuilderList

      public List<? extends WriteResultOrBuilder> getWriteResultsOrBuilderList()
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
      Specified by:
      getWriteResultsOrBuilderList in interface CommitResponseOrBuilder
    • addWriteResultsBuilder

      public WriteResult.Builder addWriteResultsBuilder()
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • addWriteResultsBuilder

      public WriteResult.Builder addWriteResultsBuilder(int index)
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • getWriteResultsBuilderList

      public List<WriteResult.Builder> getWriteResultsBuilderList()
       The result of applying the writes.
      
       This i-th write result corresponds to the i-th write in the
       request.
       
      repeated .google.firestore.v1.WriteResult write_results = 1;
    • hasCommitTime

      public boolean hasCommitTime()
       The time at which the commit occurred. Any read with an equal or greater
       `read_time` is guaranteed to see the effects of the commit.
       
      .google.protobuf.Timestamp commit_time = 2;
      Specified by:
      hasCommitTime in interface CommitResponseOrBuilder
      Returns:
      Whether the commitTime field is set.
    • getCommitTime

      public com.google.protobuf.Timestamp getCommitTime()
       The time at which the commit occurred. Any read with an equal or greater
       `read_time` is guaranteed to see the effects of the commit.
       
      .google.protobuf.Timestamp commit_time = 2;
      Specified by:
      getCommitTime in interface CommitResponseOrBuilder
      Returns:
      The commitTime.
    • setCommitTime

      public CommitResponse.Builder setCommitTime(com.google.protobuf.Timestamp value)
       The time at which the commit occurred. Any read with an equal or greater
       `read_time` is guaranteed to see the effects of the commit.
       
      .google.protobuf.Timestamp commit_time = 2;
    • setCommitTime

      public CommitResponse.Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time at which the commit occurred. Any read with an equal or greater
       `read_time` is guaranteed to see the effects of the commit.
       
      .google.protobuf.Timestamp commit_time = 2;
    • mergeCommitTime

      public CommitResponse.Builder mergeCommitTime(com.google.protobuf.Timestamp value)
       The time at which the commit occurred. Any read with an equal or greater
       `read_time` is guaranteed to see the effects of the commit.
       
      .google.protobuf.Timestamp commit_time = 2;
    • clearCommitTime

      public CommitResponse.Builder clearCommitTime()
       The time at which the commit occurred. Any read with an equal or greater
       `read_time` is guaranteed to see the effects of the commit.
       
      .google.protobuf.Timestamp commit_time = 2;
    • getCommitTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder()
       The time at which the commit occurred. Any read with an equal or greater
       `read_time` is guaranteed to see the effects of the commit.
       
      .google.protobuf.Timestamp commit_time = 2;
    • getCommitTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder()
       The time at which the commit occurred. Any read with an equal or greater
       `read_time` is guaranteed to see the effects of the commit.
       
      .google.protobuf.Timestamp commit_time = 2;
      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>