Class TargetChange.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<TargetChange.Builder> implements TargetChangeOrBuilder
 Targets being watched have changed.
 
Protobuf type google.firestore.v1.TargetChange
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllTargetIds(Iterable<? extends Integer> values)
    The target IDs of targets that have changed.
    addTargetIds(int value)
    The target IDs of targets that have changed.
     
     
     
    The error that resulted in this change, if applicable.
    The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).
    A token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty.
    The type of change that occurred.
    The target IDs of targets that have changed.
    com.google.rpc.Status
    The error that resulted in this change, if applicable.
    com.google.rpc.Status.Builder
    The error that resulted in this change, if applicable.
    com.google.rpc.StatusOrBuilder
    The error that resulted in this change, if applicable.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Timestamp
    The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).
    com.google.protobuf.Timestamp.Builder
    The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).
    com.google.protobuf.TimestampOrBuilder
    The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).
    com.google.protobuf.ByteString
    A token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty.
    The type of change that occurred.
    int
    The type of change that occurred.
    int
    getTargetIds(int index)
    The target IDs of targets that have changed.
    int
    The target IDs of targets that have changed.
    The target IDs of targets that have changed.
    boolean
    The error that resulted in this change, if applicable.
    boolean
    The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeCause(com.google.rpc.Status value)
    The error that resulted in this change, if applicable.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    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).
    setCause(com.google.rpc.Status value)
    The error that resulted in this change, if applicable.
    setCause(com.google.rpc.Status.Builder builderForValue)
    The error that resulted in this change, if applicable.
    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).
    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).
    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.
    The type of change that occurred.
    The type of change that occurred.
    setTargetIds(int index, int value)
    The target IDs of targets that have changed.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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.GeneratedMessage.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