public static enum Field.TtlConfig.State extends Enum<Field.TtlConfig.State> implements com.google.protobuf.ProtocolMessageEnum
The state of applying the TTL configuration to all documents.Protobuf enum
google.firestore.admin.v1.Field.TtlConfig.State
Enum Constant and Description |
---|
ACTIVE
The TTL is active for all documents.
|
CREATING
The TTL is being applied.
|
NEEDS_REPAIR
The TTL configuration could not be enabled for all existing documents.
|
STATE_UNSPECIFIED
The state is unspecified or unknown.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVE_VALUE
The TTL is active for all documents.
|
static int |
CREATING_VALUE
The TTL is being applied.
|
static int |
NEEDS_REPAIR_VALUE
The TTL configuration could not be enabled for all existing documents.
|
static int |
STATE_UNSPECIFIED_VALUE
The state is unspecified or unknown.
|
Modifier and Type | Method and Description |
---|---|
static Field.TtlConfig.State |
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<Field.TtlConfig.State> |
internalGetValueMap() |
static Field.TtlConfig.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Field.TtlConfig.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Field.TtlConfig.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Field.TtlConfig.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Field.TtlConfig.State STATE_UNSPECIFIED
The state is unspecified or unknown.
STATE_UNSPECIFIED = 0;
public static final Field.TtlConfig.State CREATING
The TTL is being applied. There is an active long-running operation to track the change. Newly written documents will have TTLs applied as requested. Requested TTLs on existing documents are still being processed. When TTLs on all existing documents have been processed, the state will move to 'ACTIVE'.
CREATING = 1;
public static final Field.TtlConfig.State ACTIVE
The TTL is active for all documents.
ACTIVE = 2;
public static final Field.TtlConfig.State NEEDS_REPAIR
The TTL configuration could not be enabled for all existing documents. Newly written documents will continue to have their TTL applied. The LRO returned when last attempting to enable TTL for this `Field` has failed, and may have more details.
NEEDS_REPAIR = 3;
public static final Field.TtlConfig.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
The state is unspecified or unknown.
STATE_UNSPECIFIED = 0;
public static final int CREATING_VALUE
The TTL is being applied. There is an active long-running operation to track the change. Newly written documents will have TTLs applied as requested. Requested TTLs on existing documents are still being processed. When TTLs on all existing documents have been processed, the state will move to 'ACTIVE'.
CREATING = 1;
public static final int ACTIVE_VALUE
The TTL is active for all documents.
ACTIVE = 2;
public static final int NEEDS_REPAIR_VALUE
The TTL configuration could not be enabled for all existing documents. Newly written documents will continue to have their TTL applied. The LRO returned when last attempting to enable TTL for this `Field` has failed, and may have more details.
NEEDS_REPAIR = 3;
public static Field.TtlConfig.State[] values()
for (Field.TtlConfig.State c : Field.TtlConfig.State.values()) System.out.println(c);
public static Field.TtlConfig.State 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 Field.TtlConfig.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Field.TtlConfig.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Field.TtlConfig.State> 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 Field.TtlConfig.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.