Enum PolicyControllerDeploymentConfig.Affinity

java.lang.Object
java.lang.Enum<PolicyControllerDeploymentConfig.Affinity>
com.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<PolicyControllerDeploymentConfig.Affinity>
Enclosing class:
PolicyControllerDeploymentConfig

public static enum PolicyControllerDeploymentConfig.Affinity extends Enum<PolicyControllerDeploymentConfig.Affinity> implements com.google.protobuf.ProtocolMessageEnum
 The pod affinity configuration used by a deployment.
 
Protobuf enum google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity
  • Enum Constant Details

  • Field Details

    • AFFINITY_UNSPECIFIED_VALUE

      public static final int AFFINITY_UNSPECIFIED_VALUE
       No affinity configuration has been specified.
       
      AFFINITY_UNSPECIFIED = 0;
      See Also:
    • NO_AFFINITY_VALUE

      public static final int NO_AFFINITY_VALUE
       Affinity configurations will be removed from the deployment.
       
      NO_AFFINITY = 1;
      See Also:
    • ANTI_AFFINITY_VALUE

      public static final int ANTI_AFFINITY_VALUE
       Anti-affinity configuration will be applied to this deployment.
       Default for admissions deployment.
       
      ANTI_AFFINITY = 2;
      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

      public static PolicyControllerDeploymentConfig.Affinity 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 PolicyControllerDeploymentConfig.Affinity 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 PolicyControllerDeploymentConfig.Affinity 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<PolicyControllerDeploymentConfig.Affinity> 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 PolicyControllerDeploymentConfig.Affinity 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