Class PolicyControllerDeploymentConfig (1.54.0)

public final class PolicyControllerDeploymentConfig extends GeneratedMessageV3 implements PolicyControllerDeploymentConfigOrBuilder

Deployment-specific configuration.

Protobuf type google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PolicyControllerDeploymentConfig

Static Fields

CONTAINER_RESOURCES_FIELD_NUMBER

public static final int CONTAINER_RESOURCES_FIELD_NUMBER
Field Value
Type Description
int

POD_AFFINITY_FIELD_NUMBER

public static final int POD_AFFINITY_FIELD_NUMBER
Field Value
Type Description
int

POD_ANTI_AFFINITY_FIELD_NUMBER

public static final int POD_ANTI_AFFINITY_FIELD_NUMBER
Field Value
Type Description
int

POD_TOLERATIONS_FIELD_NUMBER

public static final int POD_TOLERATIONS_FIELD_NUMBER
Field Value
Type Description
int

REPLICA_COUNT_FIELD_NUMBER

public static final int REPLICA_COUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PolicyControllerDeploymentConfig getDefaultInstance()
Returns
Type Description
PolicyControllerDeploymentConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PolicyControllerDeploymentConfig.Builder newBuilder()
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

newBuilder(PolicyControllerDeploymentConfig prototype)

public static PolicyControllerDeploymentConfig.Builder newBuilder(PolicyControllerDeploymentConfig prototype)
Parameter
Name Description
prototype PolicyControllerDeploymentConfig
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

parseDelimitedFrom(InputStream input)

public static PolicyControllerDeploymentConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyControllerDeploymentConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PolicyControllerDeploymentConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PolicyControllerDeploymentConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PolicyControllerDeploymentConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PolicyControllerDeploymentConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PolicyControllerDeploymentConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyControllerDeploymentConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PolicyControllerDeploymentConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyControllerDeploymentConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PolicyControllerDeploymentConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PolicyControllerDeploymentConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyControllerDeploymentConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PolicyControllerDeploymentConfig> parser()
Returns
Type Description
Parser<PolicyControllerDeploymentConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContainerResources()

public ResourceRequirements getContainerResources()

Container resource requirements.

optional .google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements container_resources = 2;

Returns
Type Description
ResourceRequirements

The containerResources.

getContainerResourcesOrBuilder()

public ResourceRequirementsOrBuilder getContainerResourcesOrBuilder()

Container resource requirements.

optional .google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements container_resources = 2;

Returns
Type Description
ResourceRequirementsOrBuilder

getDefaultInstanceForType()

public PolicyControllerDeploymentConfig getDefaultInstanceForType()
Returns
Type Description
PolicyControllerDeploymentConfig

getParserForType()

public Parser<PolicyControllerDeploymentConfig> getParserForType()
Returns
Type Description
Parser<PolicyControllerDeploymentConfig>
Overrides

getPodAffinity()

public PolicyControllerDeploymentConfig.Affinity getPodAffinity()

Pod affinity configuration.

.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity pod_affinity = 5;

Returns
Type Description
PolicyControllerDeploymentConfig.Affinity

The podAffinity.

getPodAffinityValue()

public int getPodAffinityValue()

Pod affinity configuration.

.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Affinity pod_affinity = 5;

Returns
Type Description
int

The enum numeric value on the wire for podAffinity.

getPodAntiAffinity() (deprecated)

public boolean getPodAntiAffinity()

Deprecated. google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.pod_anti_affinity is deprecated. See google/cloud/gkehub/policycontroller/v1beta/policycontroller.proto;l=233

Pod anti-affinity enablement. Deprecated: use pod_affinity instead.

optional bool pod_anti_affinity = 3 [deprecated = true];

Returns
Type Description
boolean

The podAntiAffinity.

getPodTolerations(int index)

public PolicyControllerDeploymentConfig.Toleration getPodTolerations(int index)

Pod tolerations of node taints.

repeated .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration pod_tolerations = 4;

Parameter
Name Description
index int
Returns
Type Description
PolicyControllerDeploymentConfig.Toleration

getPodTolerationsCount()

public int getPodTolerationsCount()

Pod tolerations of node taints.

repeated .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration pod_tolerations = 4;

Returns
Type Description
int

getPodTolerationsList()

public List<PolicyControllerDeploymentConfig.Toleration> getPodTolerationsList()

Pod tolerations of node taints.

repeated .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration pod_tolerations = 4;

Returns
Type Description
List<Toleration>

getPodTolerationsOrBuilder(int index)

public PolicyControllerDeploymentConfig.TolerationOrBuilder getPodTolerationsOrBuilder(int index)

Pod tolerations of node taints.

repeated .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration pod_tolerations = 4;

Parameter
Name Description
index int
Returns
Type Description
PolicyControllerDeploymentConfig.TolerationOrBuilder

getPodTolerationsOrBuilderList()

public List<? extends PolicyControllerDeploymentConfig.TolerationOrBuilder> getPodTolerationsOrBuilderList()

Pod tolerations of node taints.

repeated .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration pod_tolerations = 4;

Returns
Type Description
List<? extends com.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.TolerationOrBuilder>

getReplicaCount()

public long getReplicaCount()

Pod replica count.

optional int64 replica_count = 1;

Returns
Type Description
long

The replicaCount.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasContainerResources()

public boolean hasContainerResources()

Container resource requirements.

optional .google.cloud.gkehub.policycontroller.v1beta.ResourceRequirements container_resources = 2;

Returns
Type Description
boolean

Whether the containerResources field is set.

hasPodAntiAffinity() (deprecated)

public boolean hasPodAntiAffinity()

Deprecated. google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.pod_anti_affinity is deprecated. See google/cloud/gkehub/policycontroller/v1beta/policycontroller.proto;l=233

Pod anti-affinity enablement. Deprecated: use pod_affinity instead.

optional bool pod_anti_affinity = 3 [deprecated = true];

Returns
Type Description
boolean

Whether the podAntiAffinity field is set.

hasReplicaCount()

public boolean hasReplicaCount()

Pod replica count.

optional int64 replica_count = 1;

Returns
Type Description
boolean

Whether the replicaCount field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PolicyControllerDeploymentConfig.Builder newBuilderForType()
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PolicyControllerDeploymentConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PolicyControllerDeploymentConfig.Builder toBuilder()
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException