Enum AutokeyConfig.KeyProjectResolutionMode

java.lang.Object
java.lang.Enum<AutokeyConfig.KeyProjectResolutionMode>
com.google.cloud.kms.v1.AutokeyConfig.KeyProjectResolutionMode
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<AutokeyConfig.KeyProjectResolutionMode>
Enclosing class:
AutokeyConfig

public static enum AutokeyConfig.KeyProjectResolutionMode extends Enum<AutokeyConfig.KeyProjectResolutionMode> implements com.google.protobuf.ProtocolMessageEnum
 Defines the resolution mode enum for the key project.
 The
 [KeyProjectResolutionMode][google.cloud.kms.v1.AutokeyConfig.KeyProjectResolutionMode]
 determines the mechanism by which
 [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig] identifies a
 [key_project][google.cloud.kms.v1.AutokeyConfig.key_project] at its
 specific configuration node. This parameter also determines if Autokey can
 be used within this project or folder.
 
Protobuf enum google.cloud.kms.v1.AutokeyConfig.KeyProjectResolutionMode
  • Enum Constant Details

    • KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED

      public static final AutokeyConfig.KeyProjectResolutionMode KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED
       Default value. KeyProjectResolutionMode when not specified will act as
       `DEDICATED_KEY_PROJECT`.
       
      KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED = 0;
    • DEDICATED_KEY_PROJECT

      public static final AutokeyConfig.KeyProjectResolutionMode DEDICATED_KEY_PROJECT
       Keys are created in a dedicated project specified by `key_project`.
       
      DEDICATED_KEY_PROJECT = 1;
    • RESOURCE_PROJECT

      public static final AutokeyConfig.KeyProjectResolutionMode RESOURCE_PROJECT
       Keys are created in the same project as the resource requesting the key.
       The `key_project` must not be set when this mode is used.
       
      RESOURCE_PROJECT = 2;
    • DISABLED

      public static final AutokeyConfig.KeyProjectResolutionMode DISABLED
       Disables the AutokeyConfig. When this mode is set, any AutokeyConfig
       from higher levels in the resource hierarchy are ignored for this
       resource and its descendants. This setting can be overridden
       by a more specific configuration at a lower level. For example,
       if Autokey is disabled on a folder, it can be re-enabled on a sub-folder
       or project within that folder by setting a different mode (e.g.,
       DEDICATED_KEY_PROJECT or RESOURCE_PROJECT).
       
      DISABLED = 3;
    • UNRECOGNIZED

      public static final AutokeyConfig.KeyProjectResolutionMode UNRECOGNIZED
  • Field Details

    • KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED_VALUE

      public static final int KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED_VALUE
       Default value. KeyProjectResolutionMode when not specified will act as
       `DEDICATED_KEY_PROJECT`.
       
      KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED = 0;
      See Also:
    • DEDICATED_KEY_PROJECT_VALUE

      public static final int DEDICATED_KEY_PROJECT_VALUE
       Keys are created in a dedicated project specified by `key_project`.
       
      DEDICATED_KEY_PROJECT = 1;
      See Also:
    • RESOURCE_PROJECT_VALUE

      public static final int RESOURCE_PROJECT_VALUE
       Keys are created in the same project as the resource requesting the key.
       The `key_project` must not be set when this mode is used.
       
      RESOURCE_PROJECT = 2;
      See Also:
    • DISABLED_VALUE

      public static final int DISABLED_VALUE
       Disables the AutokeyConfig. When this mode is set, any AutokeyConfig
       from higher levels in the resource hierarchy are ignored for this
       resource and its descendants. This setting can be overridden
       by a more specific configuration at a lower level. For example,
       if Autokey is disabled on a folder, it can be re-enabled on a sub-folder
       or project within that folder by setting a different mode (e.g.,
       DEDICATED_KEY_PROJECT or RESOURCE_PROJECT).
       
      DISABLED = 3;
      See Also:
  • Method Details

    • values

      public static AutokeyConfig.KeyProjectResolutionMode[] 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 AutokeyConfig.KeyProjectResolutionMode 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 AutokeyConfig.KeyProjectResolutionMode 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 AutokeyConfig.KeyProjectResolutionMode 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<AutokeyConfig.KeyProjectResolutionMode> 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 AutokeyConfig.KeyProjectResolutionMode 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