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 and Description |
|---|
ADD
The targets have been added.
|
CURRENT
The targets reflect all changes committed before the targets were added
to the stream.
|
NO_CHANGE
No change has occurred.
|
REMOVE
The targets have been removed.
|
RESET
The targets have been reset, and a new initial state for the targets
will be returned in subsequent changes.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ADD_VALUE
The targets have been added.
|
static int |
CURRENT_VALUE
The targets reflect all changes committed before the targets were added
to the stream.
|
static int |
NO_CHANGE_VALUE
No change has occurred.
|
static int |
REMOVE_VALUE
The targets have been removed.
|
static int |
RESET_VALUE
The targets have been reset, and a new initial state for the targets
will be returned in subsequent changes.
|
| Modifier and Type | Method and Description |
|---|---|
static TargetChange.TargetChangeType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<TargetChange.TargetChangeType> |
internalGetValueMap() |
static TargetChange.TargetChangeType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TargetChange.TargetChangeType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TargetChange.TargetChangeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TargetChange.TargetChangeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TargetChange.TargetChangeType NO_CHANGE
No change has occurred. Used only to send an updated `resume_token`.
NO_CHANGE = 0;public static final TargetChange.TargetChangeType ADD
The targets have been added.
ADD = 1;public static final TargetChange.TargetChangeType REMOVE
The targets have been removed.
REMOVE = 2;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;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;public static final TargetChange.TargetChangeType UNRECOGNIZED
public static final int NO_CHANGE_VALUE
No change has occurred. Used only to send an updated `resume_token`.
NO_CHANGE = 0;public static final int ADD_VALUE
The targets have been added.
ADD = 1;public static final int REMOVE_VALUE
The targets have been removed.
REMOVE = 2;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;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;public static TargetChange.TargetChangeType[] values()
for (TargetChange.TargetChangeType c : TargetChange.TargetChangeType.values()) System.out.println(c);
public static TargetChange.TargetChangeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static TargetChange.TargetChangeType valueOf(int value)
forNumber(int) instead.public static TargetChange.TargetChangeType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<TargetChange.TargetChangeType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static TargetChange.TargetChangeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Google LLC. All rights reserved.