public static enum DocumentTransform.FieldTransform.ServerValue extends Enum<DocumentTransform.FieldTransform.ServerValue> implements com.google.protobuf.ProtocolMessageEnum
A value that is calculated by the server.Protobuf enum
google.firestore.v1.DocumentTransform.FieldTransform.ServerValue
Enum Constant and Description |
---|
REQUEST_TIME
The time at which the server processed the request, with millisecond
precision.
|
SERVER_VALUE_UNSPECIFIED
Unspecified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
REQUEST_TIME_VALUE
The time at which the server processed the request, with millisecond
precision.
|
static int |
SERVER_VALUE_UNSPECIFIED_VALUE
Unspecified.
|
Modifier and Type | Method and Description |
---|---|
static DocumentTransform.FieldTransform.ServerValue |
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<DocumentTransform.FieldTransform.ServerValue> |
internalGetValueMap() |
static DocumentTransform.FieldTransform.ServerValue |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DocumentTransform.FieldTransform.ServerValue |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DocumentTransform.FieldTransform.ServerValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentTransform.FieldTransform.ServerValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentTransform.FieldTransform.ServerValue SERVER_VALUE_UNSPECIFIED
Unspecified. This value must not be used.
SERVER_VALUE_UNSPECIFIED = 0;
public static final DocumentTransform.FieldTransform.ServerValue REQUEST_TIME
The time at which the server processed the request, with millisecond precision. If used on multiple fields (same or different documents) in a transaction, all the fields will get the same server timestamp.
REQUEST_TIME = 1;
public static final DocumentTransform.FieldTransform.ServerValue UNRECOGNIZED
public static final int SERVER_VALUE_UNSPECIFIED_VALUE
Unspecified. This value must not be used.
SERVER_VALUE_UNSPECIFIED = 0;
public static final int REQUEST_TIME_VALUE
The time at which the server processed the request, with millisecond precision. If used on multiple fields (same or different documents) in a transaction, all the fields will get the same server timestamp.
REQUEST_TIME = 1;
public static DocumentTransform.FieldTransform.ServerValue[] values()
for (DocumentTransform.FieldTransform.ServerValue c : DocumentTransform.FieldTransform.ServerValue.values()) System.out.println(c);
public static DocumentTransform.FieldTransform.ServerValue 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.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static DocumentTransform.FieldTransform.ServerValue valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static DocumentTransform.FieldTransform.ServerValue forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DocumentTransform.FieldTransform.ServerValue> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DocumentTransform.FieldTransform.ServerValue valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.