public static enum SecretVersion.State extends Enum<SecretVersion.State> implements com.google.protobuf.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 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<SecretVersion.State> |
internalGetValueMap() |
static SecretVersion.State |
valueOf(com.google.protobuf.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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.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 com.google.protobuf.Internal.EnumLiteMap<SecretVersion.State> 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 SecretVersion.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.