Class TargetChange.Builder

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

public static final class TargetChange.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder> implements TargetChangeOrBuilder
 Targets being watched have changed.
 
Protobuf type google.firestore.v1.TargetChange
  • 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<TargetChange.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public TargetChange.Builder mergeFrom(TargetChange other)
    • isInitialized

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

      public TargetChange.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<TargetChange.Builder>
      Throws:
      IOException
    • getTargetChangeTypeValue

      public int getTargetChangeTypeValue()
       The type of change that occurred.
       
      .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
      Specified by:
      getTargetChangeTypeValue in interface TargetChangeOrBuilder
      Returns:
      The enum numeric value on the wire for targetChangeType.
    • setTargetChangeTypeValue

      public TargetChange.Builder setTargetChangeTypeValue(int value)
       The type of change that occurred.
       
      .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
      Parameters:
      value - The enum numeric value on the wire for targetChangeType to set.
      Returns:
      This builder for chaining.
    • getTargetChangeType

      public TargetChange.TargetChangeType getTargetChangeType()
       The type of change that occurred.
       
      .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
      Specified by:
      getTargetChangeType in interface TargetChangeOrBuilder
      Returns:
      The targetChangeType.
    • setTargetChangeType

      public TargetChange.Builder setTargetChangeType(TargetChange.TargetChangeType value)
       The type of change that occurred.
       
      .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
      Parameters:
      value - The targetChangeType to set.
      Returns:
      This builder for chaining.
    • clearTargetChangeType

      public TargetChange.Builder clearTargetChangeType()
       The type of change that occurred.
       
      .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
      Returns:
      This builder for chaining.
    • getTargetIdsList

      public List<Integer> getTargetIdsList()
       The target IDs of targets that have changed.
      
       If empty, the change applies to all targets.
      
       The order of the target IDs is not defined.
       
      repeated int32 target_ids = 2;
      Specified by:
      getTargetIdsList in interface TargetChangeOrBuilder
      Returns:
      A list containing the targetIds.
    • getTargetIdsCount

      public int getTargetIdsCount()
       The target IDs of targets that have changed.
      
       If empty, the change applies to all targets.
      
       The order of the target IDs is not defined.
       
      repeated int32 target_ids = 2;
      Specified by:
      getTargetIdsCount in interface TargetChangeOrBuilder
      Returns:
      The count of targetIds.
    • getTargetIds

      public int getTargetIds(int index)
       The target IDs of targets that have changed.
      
       If empty, the change applies to all targets.
      
       The order of the target IDs is not defined.
       
      repeated int32 target_ids = 2;
      Specified by:
      getTargetIds in interface TargetChangeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The targetIds at the given index.
    • setTargetIds

      public TargetChange.Builder setTargetIds(int index, int value)
       The target IDs of targets that have changed.
      
       If empty, the change applies to all targets.
      
       The order of the target IDs is not defined.
       
      repeated int32 target_ids = 2;
      Parameters:
      index - The index to set the value at.
      value - The targetIds to set.
      Returns:
      This builder for chaining.
    • addTargetIds

      public TargetChange.Builder addTargetIds(int value)
       The target IDs of targets that have changed.
      
       If empty, the change applies to all targets.
      
       The order of the target IDs is not defined.
       
      repeated int32 target_ids = 2;
      Parameters:
      value - The targetIds to add.
      Returns:
      This builder for chaining.
    • addAllTargetIds

      public TargetChange.Builder addAllTargetIds(Iterable<? extends Integer> values)
       The target IDs of targets that have changed.
      
       If empty, the change applies to all targets.
      
       The order of the target IDs is not defined.
       
      repeated int32 target_ids = 2;
      Parameters:
      values - The targetIds to add.
      Returns:
      This builder for chaining.
    • clearTargetIds

      public TargetChange.Builder clearTargetIds()
       The target IDs of targets that have changed.
      
       If empty, the change applies to all targets.
      
       The order of the target IDs is not defined.
       
      repeated int32 target_ids = 2;
      Returns:
      This builder for chaining.
    • hasCause

      public boolean hasCause()
       The error that resulted in this change, if applicable.
       
      .google.rpc.Status cause = 3;
      Specified by:
      hasCause in interface TargetChangeOrBuilder
      Returns:
      Whether the cause field is set.
    • getCause

      public com.google.rpc.Status getCause()
       The error that resulted in this change, if applicable.
       
      .google.rpc.Status cause = 3;
      Specified by:
      getCause in interface TargetChangeOrBuilder
      Returns:
      The cause.
    • setCause

      public TargetChange.Builder setCause(com.google.rpc.Status value)
       The error that resulted in this change, if applicable.
       
      .google.rpc.Status cause = 3;
    • setCause

      public TargetChange.Builder setCause(com.google.rpc.Status.Builder builderForValue)
       The error that resulted in this change, if applicable.
       
      .google.rpc.Status cause = 3;
    • mergeCause

      public TargetChange.Builder mergeCause(com.google.rpc.Status value)
       The error that resulted in this change, if applicable.
       
      .google.rpc.Status cause = 3;
    • clearCause

      public TargetChange.Builder clearCause()
       The error that resulted in this change, if applicable.
       
      .google.rpc.Status cause = 3;
    • getCauseBuilder

      public com.google.rpc.Status.Builder getCauseBuilder()
       The error that resulted in this change, if applicable.
       
      .google.rpc.Status cause = 3;
    • getCauseOrBuilder

      public com.google.rpc.StatusOrBuilder getCauseOrBuilder()
       The error that resulted in this change, if applicable.
       
      .google.rpc.Status cause = 3;
      Specified by:
      getCauseOrBuilder in interface TargetChangeOrBuilder
    • getResumeToken

      public com.google.protobuf.ByteString getResumeToken()
       A token that can be used to resume the stream for the given `target_ids`,
       or all targets if `target_ids` is empty.
      
       Not set on every target change.
       
      bytes resume_token = 4;
      Specified by:
      getResumeToken in interface TargetChangeOrBuilder
      Returns:
      The resumeToken.
    • setResumeToken

      public TargetChange.Builder setResumeToken(com.google.protobuf.ByteString value)
       A token that can be used to resume the stream for the given `target_ids`,
       or all targets if `target_ids` is empty.
      
       Not set on every target change.
       
      bytes resume_token = 4;
      Parameters:
      value - The resumeToken to set.
      Returns:
      This builder for chaining.
    • clearResumeToken

      public TargetChange.Builder clearResumeToken()
       A token that can be used to resume the stream for the given `target_ids`,
       or all targets if `target_ids` is empty.
      
       Not set on every target change.
       
      bytes resume_token = 4;
      Returns:
      This builder for chaining.
    • hasReadTime

      public boolean hasReadTime()
       The consistent `read_time` for the given `target_ids` (omitted when the
       target_ids are not at a consistent snapshot).
      
       The stream is guaranteed to send a `read_time` with `target_ids` empty
       whenever the entire stream reaches a new consistent snapshot. ADD,
       CURRENT, and RESET messages are guaranteed to (eventually) result in a
       new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
      
       For a given stream, `read_time` is guaranteed to be monotonically
       increasing.
       
      .google.protobuf.Timestamp read_time = 6;
      Specified by:
      hasReadTime in interface TargetChangeOrBuilder
      Returns:
      Whether the readTime field is set.
    • getReadTime

      public com.google.protobuf.Timestamp getReadTime()
       The consistent `read_time` for the given `target_ids` (omitted when the
       target_ids are not at a consistent snapshot).
      
       The stream is guaranteed to send a `read_time` with `target_ids` empty
       whenever the entire stream reaches a new consistent snapshot. ADD,
       CURRENT, and RESET messages are guaranteed to (eventually) result in a
       new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
      
       For a given stream, `read_time` is guaranteed to be monotonically
       increasing.
       
      .google.protobuf.Timestamp read_time = 6;
      Specified by:
      getReadTime in interface TargetChangeOrBuilder
      Returns:
      The readTime.
    • setReadTime

      public TargetChange.Builder setReadTime(com.google.protobuf.Timestamp value)
       The consistent `read_time` for the given `target_ids` (omitted when the
       target_ids are not at a consistent snapshot).
      
       The stream is guaranteed to send a `read_time` with `target_ids` empty
       whenever the entire stream reaches a new consistent snapshot. ADD,
       CURRENT, and RESET messages are guaranteed to (eventually) result in a
       new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
      
       For a given stream, `read_time` is guaranteed to be monotonically
       increasing.
       
      .google.protobuf.Timestamp read_time = 6;
    • setReadTime

      public TargetChange.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The consistent `read_time` for the given `target_ids` (omitted when the
       target_ids are not at a consistent snapshot).
      
       The stream is guaranteed to send a `read_time` with `target_ids` empty
       whenever the entire stream reaches a new consistent snapshot. ADD,
       CURRENT, and RESET messages are guaranteed to (eventually) result in a
       new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
      
       For a given stream, `read_time` is guaranteed to be monotonically
       increasing.
       
      .google.protobuf.Timestamp read_time = 6;
    • mergeReadTime

      public TargetChange.Builder mergeReadTime(com.google.protobuf.Timestamp value)
       The consistent `read_time` for the given `target_ids` (omitted when the
       target_ids are not at a consistent snapshot).
      
       The stream is guaranteed to send a `read_time` with `target_ids` empty
       whenever the entire stream reaches a new consistent snapshot. ADD,
       CURRENT, and RESET messages are guaranteed to (eventually) result in a
       new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
      
       For a given stream, `read_time` is guaranteed to be monotonically
       increasing.
       
      .google.protobuf.Timestamp read_time = 6;
    • clearReadTime

      public TargetChange.Builder clearReadTime()
       The consistent `read_time` for the given `target_ids` (omitted when the
       target_ids are not at a consistent snapshot).
      
       The stream is guaranteed to send a `read_time` with `target_ids` empty
       whenever the entire stream reaches a new consistent snapshot. ADD,
       CURRENT, and RESET messages are guaranteed to (eventually) result in a
       new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
      
       For a given stream, `read_time` is guaranteed to be monotonically
       increasing.
       
      .google.protobuf.Timestamp read_time = 6;
    • getReadTimeBuilder

      public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()
       The consistent `read_time` for the given `target_ids` (omitted when the
       target_ids are not at a consistent snapshot).
      
       The stream is guaranteed to send a `read_time` with `target_ids` empty
       whenever the entire stream reaches a new consistent snapshot. ADD,
       CURRENT, and RESET messages are guaranteed to (eventually) result in a
       new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
      
       For a given stream, `read_time` is guaranteed to be monotonically
       increasing.
       
      .google.protobuf.Timestamp read_time = 6;
    • getReadTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()
       The consistent `read_time` for the given `target_ids` (omitted when the
       target_ids are not at a consistent snapshot).
      
       The stream is guaranteed to send a `read_time` with `target_ids` empty
       whenever the entire stream reaches a new consistent snapshot. ADD,
       CURRENT, and RESET messages are guaranteed to (eventually) result in a
       new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
      
       For a given stream, `read_time` is guaranteed to be monotonically
       increasing.
       
      .google.protobuf.Timestamp read_time = 6;
      Specified by:
      getReadTimeOrBuilder in interface TargetChangeOrBuilder
    • setUnknownFields

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

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