Class WriteResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder>
com.google.firestore.v1.WriteResponse.Builder
All Implemented Interfaces:
WriteResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WriteResponse

public static final class WriteResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WriteResponse.Builder> implements WriteResponseOrBuilder
 The response for [Firestore.Write][google.firestore.v1.Firestore.Write].
 
Protobuf type google.firestore.v1.WriteResponse
  • 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<WriteResponse.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public WriteResponse.Builder mergeFrom(WriteResponse other)
    • isInitialized

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

      public WriteResponse.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<WriteResponse.Builder>
      Throws:
      IOException
    • getStreamId

      public String getStreamId()
       The ID of the stream.
       Only set on the first message, when a new stream was created.
       
      string stream_id = 1;
      Specified by:
      getStreamId in interface WriteResponseOrBuilder
      Returns:
      The streamId.
    • getStreamIdBytes

      public com.google.protobuf.ByteString getStreamIdBytes()
       The ID of the stream.
       Only set on the first message, when a new stream was created.
       
      string stream_id = 1;
      Specified by:
      getStreamIdBytes in interface WriteResponseOrBuilder
      Returns:
      The bytes for streamId.
    • setStreamId

      public WriteResponse.Builder setStreamId(String value)
       The ID of the stream.
       Only set on the first message, when a new stream was created.
       
      string stream_id = 1;
      Parameters:
      value - The streamId to set.
      Returns:
      This builder for chaining.
    • clearStreamId

      public WriteResponse.Builder clearStreamId()
       The ID of the stream.
       Only set on the first message, when a new stream was created.
       
      string stream_id = 1;
      Returns:
      This builder for chaining.
    • setStreamIdBytes

      public WriteResponse.Builder setStreamIdBytes(com.google.protobuf.ByteString value)
       The ID of the stream.
       Only set on the first message, when a new stream was created.
       
      string stream_id = 1;
      Parameters:
      value - The bytes for streamId to set.
      Returns:
      This builder for chaining.
    • getStreamToken

      public com.google.protobuf.ByteString getStreamToken()
       A token that represents the position of this response in the stream.
       This can be used by a client to resume the stream at this point.
      
       This field is always set.
       
      bytes stream_token = 2;
      Specified by:
      getStreamToken in interface WriteResponseOrBuilder
      Returns:
      The streamToken.
    • setStreamToken

      public WriteResponse.Builder setStreamToken(com.google.protobuf.ByteString value)
       A token that represents the position of this response in the stream.
       This can be used by a client to resume the stream at this point.
      
       This field is always set.
       
      bytes stream_token = 2;
      Parameters:
      value - The streamToken to set.
      Returns:
      This builder for chaining.
    • clearStreamToken

      public WriteResponse.Builder clearStreamToken()
       A token that represents the position of this response in the stream.
       This can be used by a client to resume the stream at this point.
      
       This field is always set.
       
      bytes stream_token = 2;
      Returns:
      This builder for chaining.
    • 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 = 3;
      Specified by:
      getWriteResultsList in interface WriteResponseOrBuilder
    • 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 = 3;
      Specified by:
      getWriteResultsCount in interface WriteResponseOrBuilder
    • 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 = 3;
      Specified by:
      getWriteResults in interface WriteResponseOrBuilder
    • setWriteResults

      public WriteResponse.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 = 3;
    • setWriteResults

      public WriteResponse.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 = 3;
    • addWriteResults

      public WriteResponse.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 = 3;
    • addWriteResults

      public WriteResponse.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 = 3;
    • addWriteResults

      public WriteResponse.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 = 3;
    • addWriteResults

      public WriteResponse.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 = 3;
    • addAllWriteResults

      public WriteResponse.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 = 3;
    • clearWriteResults

      public WriteResponse.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 = 3;
    • removeWriteResults

      public WriteResponse.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 = 3;
    • 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 = 3;
    • 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 = 3;
      Specified by:
      getWriteResultsOrBuilder in interface WriteResponseOrBuilder
    • 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 = 3;
      Specified by:
      getWriteResultsOrBuilderList in interface WriteResponseOrBuilder
    • 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 = 3;
    • 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 = 3;
    • 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 = 3;
    • 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 write.
       
      .google.protobuf.Timestamp commit_time = 4;
      Specified by:
      hasCommitTime in interface WriteResponseOrBuilder
      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 write.
       
      .google.protobuf.Timestamp commit_time = 4;
      Specified by:
      getCommitTime in interface WriteResponseOrBuilder
      Returns:
      The commitTime.
    • setCommitTime

      public WriteResponse.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 write.
       
      .google.protobuf.Timestamp commit_time = 4;
    • setCommitTime

      public WriteResponse.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 write.
       
      .google.protobuf.Timestamp commit_time = 4;
    • mergeCommitTime

      public WriteResponse.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 write.
       
      .google.protobuf.Timestamp commit_time = 4;
    • clearCommitTime

      public WriteResponse.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 write.
       
      .google.protobuf.Timestamp commit_time = 4;
    • 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 write.
       
      .google.protobuf.Timestamp commit_time = 4;
    • 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 write.
       
      .google.protobuf.Timestamp commit_time = 4;
      Specified by:
      getCommitTimeOrBuilder in interface WriteResponseOrBuilder
    • setUnknownFields

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

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