Enum Secret.SecretType

java.lang.Object
java.lang.Enum<Secret.SecretType>
com.google.cloud.secretmanager.v1.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 Details

    • SECRET_TYPE_UNSPECIFIED

      public static final Secret.SecretType SECRET_TYPE_UNSPECIFIED
       Applicable to all secrets which do not have any restriction on the
       SecretVersions.
       
      SECRET_TYPE_UNSPECIFIED = 0;
    • CLOUD_SQL_DB_CREDENTIALS

      public static final Secret.SecretType 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

      public static final Secret.SecretType ACCESS_KEY
       Applicable to secrets where the payload contains an access key.
       
      ACCESS_KEY = 2;
    • CERTIFICATE

      public static final Secret.SecretType CERTIFICATE
       Applicable to secrets where the payload contains a certificate.
       
      CERTIFICATE = 3;
    • OTHER_DB_CREDENTIALS

      public static final Secret.SecretType OTHER_DB_CREDENTIALS
       Applicable to secrets where the payload contains database credentials.
       
      OTHER_DB_CREDENTIALS = 4;
    • OTHER

      public static final Secret.SecretType OTHER
       Applicable to secrets whose type doesn't belong to any of the above
       defined types.
       
      OTHER = 50;
    • UNRECOGNIZED

      public static final Secret.SecretType UNRECOGNIZED
  • Field Details

    • SECRET_TYPE_UNSPECIFIED_VALUE

      public static final int SECRET_TYPE_UNSPECIFIED_VALUE
       Applicable 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_VALUE
       Applicable 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_VALUE
       Applicable to secrets where the payload contains an access key.
       
      ACCESS_KEY = 2;
      See Also:
    • CERTIFICATE_VALUE

      public static final int CERTIFICATE_VALUE
       Applicable to secrets where the payload contains a certificate.
       
      CERTIFICATE = 3;
      See Also:
    • OTHER_DB_CREDENTIALS_VALUE

      public static final int OTHER_DB_CREDENTIALS_VALUE
       Applicable to secrets where the payload contains database credentials.
       
      OTHER_DB_CREDENTIALS = 4;
      See Also:
    • OTHER_VALUE

      public static final int OTHER_VALUE
       Applicable to secrets whose type doesn't belong to any of the above
       defined types.
       
      OTHER = 50;
      See Also:
  • Method Details

    • values

      public static Secret.SecretType[] 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

      public static Secret.SecretType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Secret.SecretType valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Secret.SecretType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Secret.SecretType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Secret.SecretType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null