Enum Secret.SecretType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Secret.SecretType>
- Enclosing class:
- Secret
public static enum Secret.SecretType
extends Enum<Secret.SecretType>
implements com.google.protobuf.ProtocolMessageEnum
This defines the various values of the type of secret can be.Protobuf enum
google.cloud.secretmanager.v1.Secret.SecretType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplicable to secrets where the payload contains an access key.Applicable to secrets where the payload contains a certificate.Applicable to secrets which are used for the managed rotation feature for Cloud SQL Single User.Applicable to secrets whose type doesn't belong to any of the above defined types.Applicable to secrets where the payload contains database credentials.Applicable to all secrets which do not have any restriction on the SecretVersions. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intApplicable to secrets where the payload contains an access key.static final intApplicable to secrets where the payload contains a certificate.static final intApplicable to secrets which are used for the managed rotation feature for Cloud SQL Single User.static final intApplicable to secrets where the payload contains database credentials.static final intApplicable to secrets whose type doesn't belong to any of the above defined types.static final intApplicable to all secrets which do not have any restriction on the SecretVersions. -
Method Summary
Modifier and TypeMethodDescriptionstatic Secret.SecretTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Secret.SecretType>static Secret.SecretTypevalueOf(int value) Deprecated.static Secret.SecretTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Secret.SecretTypeReturns the enum constant of this type with the specified name.static Secret.SecretType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SECRET_TYPE_UNSPECIFIED
Applicable to all secrets which do not have any restriction on the SecretVersions.
SECRET_TYPE_UNSPECIFIED = 0; -
CLOUD_SQL_DB_CREDENTIALS
Applicable to secrets which are used for the managed rotation feature for Cloud SQL Single User.
CLOUD_SQL_DB_CREDENTIALS = 1; -
ACCESS_KEY
Applicable to secrets where the payload contains an access key.
ACCESS_KEY = 2; -
CERTIFICATE
Applicable to secrets where the payload contains a certificate.
CERTIFICATE = 3; -
OTHER_DB_CREDENTIALS
Applicable to secrets where the payload contains database credentials.
OTHER_DB_CREDENTIALS = 4; -
OTHER
Applicable to secrets whose type doesn't belong to any of the above defined types.
OTHER = 50; -
UNRECOGNIZED
-
-
Field Details
-
SECRET_TYPE_UNSPECIFIED_VALUE
public static final int SECRET_TYPE_UNSPECIFIED_VALUEApplicable to all secrets which do not have any restriction on the SecretVersions.
SECRET_TYPE_UNSPECIFIED = 0;- See Also:
-
CLOUD_SQL_DB_CREDENTIALS_VALUE
public static final int CLOUD_SQL_DB_CREDENTIALS_VALUEApplicable to secrets which are used for the managed rotation feature for Cloud SQL Single User.
CLOUD_SQL_DB_CREDENTIALS = 1;- See Also:
-
ACCESS_KEY_VALUE
public static final int ACCESS_KEY_VALUEApplicable to secrets where the payload contains an access key.
ACCESS_KEY = 2;- See Also:
-
CERTIFICATE_VALUE
public static final int CERTIFICATE_VALUEApplicable to secrets where the payload contains a certificate.
CERTIFICATE = 3;- See Also:
-
OTHER_DB_CREDENTIALS_VALUE
public static final int OTHER_DB_CREDENTIALS_VALUEApplicable to secrets where the payload contains database credentials.
OTHER_DB_CREDENTIALS = 4;- See Also:
-
OTHER_VALUE
public static final int OTHER_VALUEApplicable to secrets whose type doesn't belong to any of the above defined types.
OTHER = 50;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-