public static enum SecretVersion.State extends Enum<SecretVersion.State> implements ProtocolMessageEnum
The state of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion], indicating if it can be accessed.Protobuf enum
google.cloud.secretmanager.v1.SecretVersion.State
Enum Constant and Description |
---|
DESTROYED
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] is destroyed and the secret data is no longer
stored.
|
DISABLED
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may not be accessed, but the secret data
is still available and can be placed back into the [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]
state.
|
ENABLED
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may be accessed.
|
STATE_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DESTROYED_VALUE
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] is destroyed and the secret data is no longer
stored.
|
static int |
DISABLED_VALUE
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may not be accessed, but the secret data
is still available and can be placed back into the [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]
state.
|
static int |
ENABLED_VALUE
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may be accessed.
|
static int |
STATE_UNSPECIFIED_VALUE
Not specified.
|
Modifier and Type | Method and Description |
---|---|
static SecretVersion.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<SecretVersion.State> |
internalGetValueMap() |
static SecretVersion.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static SecretVersion.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SecretVersion.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecretVersion.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecretVersion.State STATE_UNSPECIFIED
Not specified. This value is unused and invalid.
STATE_UNSPECIFIED = 0;
public static final SecretVersion.State ENABLED
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may be accessed.
ENABLED = 1;
public static final SecretVersion.State DISABLED
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may not be accessed, but the secret data is still available and can be placed back into the [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED] state.
DISABLED = 2;
public static final SecretVersion.State DESTROYED
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] is destroyed and the secret data is no longer stored. A version may not leave this state once entered.
DESTROYED = 3;
public static final SecretVersion.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Not specified. This value is unused and invalid.
STATE_UNSPECIFIED = 0;
public static final int ENABLED_VALUE
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may be accessed.
ENABLED = 1;
public static final int DISABLED_VALUE
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may not be accessed, but the secret data is still available and can be placed back into the [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED] state.
DISABLED = 2;
public static final int DESTROYED_VALUE
The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] is destroyed and the secret data is no longer stored. A version may not leave this state once entered.
DESTROYED = 3;
public static SecretVersion.State[] values()
for (SecretVersion.State c : SecretVersion.State.values()) System.out.println(c);
public static SecretVersion.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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static SecretVersion.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static SecretVersion.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<SecretVersion.State> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static SecretVersion.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.