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 Summary
Enum ConstantsEnum ConstantDescriptionNo affinity configuration has been specified.Anti-affinity configuration will be applied to this deployment.Affinity configurations will be removed from the deployment. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNo affinity configuration has been specified.static final intAnti-affinity configuration will be applied to this deployment.static final intAffinity configurations will be removed from the deployment. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PolicyControllerDeploymentConfig.Affinity>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AFFINITY_UNSPECIFIED
No affinity configuration has been specified.
AFFINITY_UNSPECIFIED = 0; -
NO_AFFINITY
Affinity configurations will be removed from the deployment.
NO_AFFINITY = 1; -
ANTI_AFFINITY
Anti-affinity configuration will be applied to this deployment. Default for admissions deployment.
ANTI_AFFINITY = 2; -
UNRECOGNIZED
-
-
Field Details
-
AFFINITY_UNSPECIFIED_VALUE
public static final int AFFINITY_UNSPECIFIED_VALUENo affinity configuration has been specified.
AFFINITY_UNSPECIFIED = 0;- See Also:
-
NO_AFFINITY_VALUE
public static final int NO_AFFINITY_VALUEAffinity configurations will be removed from the deployment.
NO_AFFINITY = 1;- See Also:
-
ANTI_AFFINITY_VALUE
public static final int ANTI_AFFINITY_VALUEAnti-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
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
public static com.google.protobuf.Internal.EnumLiteMap<PolicyControllerDeploymentConfig.Affinity> 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
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 nameNullPointerException- if the argument is null
-