Enum TargetChange.TargetChangeType

java.lang.Object
java.lang.Enum<TargetChange.TargetChangeType>
com.google.firestore.v1.TargetChange.TargetChangeType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<TargetChange.TargetChangeType>
Enclosing class:
TargetChange

public static enum TargetChange.TargetChangeType extends Enum<TargetChange.TargetChangeType> implements com.google.protobuf.ProtocolMessageEnum
 The type of change.
 
Protobuf enum google.firestore.v1.TargetChange.TargetChangeType
  • Enum Constant Details

    • NO_CHANGE

      public static final TargetChange.TargetChangeType NO_CHANGE
       No change has occurred. Used only to send an updated `resume_token`.
       
      NO_CHANGE = 0;
    • ADD

      public static final TargetChange.TargetChangeType ADD
       The targets have been added.
       
      ADD = 1;
    • REMOVE

      public static final TargetChange.TargetChangeType REMOVE
       The targets have been removed.
       
      REMOVE = 2;
    • CURRENT

      public static final TargetChange.TargetChangeType CURRENT
       The targets reflect all changes committed before the targets were added
       to the stream.
      
       This will be sent after or with a `read_time` that is greater than or
       equal to the time at which the targets were added.
      
       Listeners can wait for this change if read-after-write semantics
       are desired.
       
      CURRENT = 3;
    • RESET

      public static final TargetChange.TargetChangeType RESET
       The targets have been reset, and a new initial state for the targets
       will be returned in subsequent changes.
      
       After the initial state is complete, `CURRENT` will be returned even
       if the target was previously indicated to be `CURRENT`.
       
      RESET = 4;
    • UNRECOGNIZED

      public static final TargetChange.TargetChangeType UNRECOGNIZED
  • Field Details

    • NO_CHANGE_VALUE

      public static final int NO_CHANGE_VALUE
       No change has occurred. Used only to send an updated `resume_token`.
       
      NO_CHANGE = 0;
      See Also:
    • ADD_VALUE

      public static final int ADD_VALUE
       The targets have been added.
       
      ADD = 1;
      See Also:
    • REMOVE_VALUE

      public static final int REMOVE_VALUE
       The targets have been removed.
       
      REMOVE = 2;
      See Also:
    • CURRENT_VALUE

      public static final int CURRENT_VALUE
       The targets reflect all changes committed before the targets were added
       to the stream.
      
       This will be sent after or with a `read_time` that is greater than or
       equal to the time at which the targets were added.
      
       Listeners can wait for this change if read-after-write semantics
       are desired.
       
      CURRENT = 3;
      See Also:
    • RESET_VALUE

      public static final int RESET_VALUE
       The targets have been reset, and a new initial state for the targets
       will be returned in subsequent changes.
      
       After the initial state is complete, `CURRENT` will be returned even
       if the target was previously indicated to be `CURRENT`.
       
      RESET = 4;
      See Also:
  • Method Details

    • values

      public static TargetChange.TargetChangeType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TargetChange.TargetChangeType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static TargetChange.TargetChangeType valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static TargetChange.TargetChangeType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<TargetChange.TargetChangeType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static TargetChange.TargetChangeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null