Class PolicyControllerDeploymentConfig.Builder (1.55.0)

public static final class PolicyControllerDeploymentConfig.Builder extends GeneratedMessageV3.Builder<PolicyControllerDeploymentConfig.Builder> implements PolicyControllerDeploymentConfigOrBuilder

Deployment-specific configuration.

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

Static Methods

getDescriptor()

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

Methods

addAllPodTolerations(Iterable<? extends PolicyControllerDeploymentConfig.Toleration> values)

public PolicyControllerDeploymentConfig.Builder addAllPodTolerations(Iterable<? extends PolicyControllerDeploymentConfig.Toleration> values)

Pod tolerations of node taints.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig.Toleration>
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

addPodTolerations(PolicyControllerDeploymentConfig.Toleration value)

public PolicyControllerDeploymentConfig.Builder addPodTolerations(PolicyControllerDeploymentConfig.Toleration value)

Pod tolerations of node taints.

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

Parameter
Name Description
value PolicyControllerDeploymentConfig.Toleration
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

addPodTolerations(PolicyControllerDeploymentConfig.Toleration.Builder builderForValue)

public PolicyControllerDeploymentConfig.Builder addPodTolerations(PolicyControllerDeploymentConfig.Toleration.Builder builderForValue)

Pod tolerations of node taints.

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

Parameter
Name Description
builderForValue PolicyControllerDeploymentConfig.Toleration.Builder
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

addPodTolerations(int index, PolicyControllerDeploymentConfig.Toleration value)

public PolicyControllerDeploymentConfig.Builder addPodTolerations(int index, PolicyControllerDeploymentConfig.Toleration value)

Pod tolerations of node taints.

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

Parameters
Name Description
index int
value PolicyControllerDeploymentConfig.Toleration
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

addPodTolerations(int index, PolicyControllerDeploymentConfig.Toleration.Builder builderForValue)

public PolicyControllerDeploymentConfig.Builder addPodTolerations(int index, PolicyControllerDeploymentConfig.Toleration.Builder builderForValue)

Pod tolerations of node taints.

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

Parameters
Name Description
index int
builderForValue PolicyControllerDeploymentConfig.Toleration.Builder
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

addPodTolerationsBuilder()

public PolicyControllerDeploymentConfig.Toleration.Builder addPodTolerationsBuilder()

Pod tolerations of node taints.

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

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

addPodTolerationsBuilder(int index)

public PolicyControllerDeploymentConfig.Toleration.Builder addPodTolerationsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PolicyControllerDeploymentConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides

build()

public PolicyControllerDeploymentConfig build()
Returns
Type Description
PolicyControllerDeploymentConfig

buildPartial()

public PolicyControllerDeploymentConfig buildPartial()
Returns
Type Description
PolicyControllerDeploymentConfig

clear()

public PolicyControllerDeploymentConfig.Builder clear()
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides

clearContainerResources()

public PolicyControllerDeploymentConfig.Builder clearContainerResources()

Container resource requirements.

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

Returns
Type Description
PolicyControllerDeploymentConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public PolicyControllerDeploymentConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PolicyControllerDeploymentConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides

clearPodAffinity()

public PolicyControllerDeploymentConfig.Builder clearPodAffinity()

Pod affinity configuration.

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

Returns
Type Description
PolicyControllerDeploymentConfig.Builder

This builder for chaining.

clearPodAntiAffinity() (deprecated)

public PolicyControllerDeploymentConfig.Builder clearPodAntiAffinity()

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
PolicyControllerDeploymentConfig.Builder

This builder for chaining.

clearPodTolerations()

public PolicyControllerDeploymentConfig.Builder clearPodTolerations()

Pod tolerations of node taints.

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

Returns
Type Description
PolicyControllerDeploymentConfig.Builder

clearReplicaCount()

public PolicyControllerDeploymentConfig.Builder clearReplicaCount()

Pod replica count.

optional int64 replica_count = 1;

Returns
Type Description
PolicyControllerDeploymentConfig.Builder

This builder for chaining.

clone()

public PolicyControllerDeploymentConfig.Builder clone()
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides

getContainerResources()

public ResourceRequirements getContainerResources()

Container resource requirements.

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

Returns
Type Description
ResourceRequirements

The containerResources.

getContainerResourcesBuilder()

public ResourceRequirements.Builder getContainerResourcesBuilder()

Container resource requirements.

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

Returns
Type Description
ResourceRequirements.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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

getPodTolerationsBuilder(int index)

public PolicyControllerDeploymentConfig.Toleration.Builder getPodTolerationsBuilder(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.Builder

getPodTolerationsBuilderList()

public List<PolicyControllerDeploymentConfig.Toleration.Builder> getPodTolerationsBuilderList()

Pod tolerations of node taints.

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

Returns
Type Description
List<Builder>

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContainerResources(ResourceRequirements value)

public PolicyControllerDeploymentConfig.Builder mergeContainerResources(ResourceRequirements value)

Container resource requirements.

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

Parameter
Name Description
value ResourceRequirements
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

mergeFrom(PolicyControllerDeploymentConfig other)

public PolicyControllerDeploymentConfig.Builder mergeFrom(PolicyControllerDeploymentConfig other)
Parameter
Name Description
other PolicyControllerDeploymentConfig
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PolicyControllerDeploymentConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PolicyControllerDeploymentConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PolicyControllerDeploymentConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides

removePodTolerations(int index)

public PolicyControllerDeploymentConfig.Builder removePodTolerations(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.Builder

setContainerResources(ResourceRequirements value)

public PolicyControllerDeploymentConfig.Builder setContainerResources(ResourceRequirements value)

Container resource requirements.

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

Parameter
Name Description
value ResourceRequirements
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

setContainerResources(ResourceRequirements.Builder builderForValue)

public PolicyControllerDeploymentConfig.Builder setContainerResources(ResourceRequirements.Builder builderForValue)

Container resource requirements.

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

Parameter
Name Description
builderForValue ResourceRequirements.Builder
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PolicyControllerDeploymentConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides

setPodAffinity(PolicyControllerDeploymentConfig.Affinity value)

public PolicyControllerDeploymentConfig.Builder setPodAffinity(PolicyControllerDeploymentConfig.Affinity value)

Pod affinity configuration.

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

Parameter
Name Description
value PolicyControllerDeploymentConfig.Affinity

The podAffinity to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Builder

This builder for chaining.

setPodAffinityValue(int value)

public PolicyControllerDeploymentConfig.Builder setPodAffinityValue(int value)

Pod affinity configuration.

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

Parameter
Name Description
value int

The enum numeric value on the wire for podAffinity to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Builder

This builder for chaining.

setPodAntiAffinity(boolean value) (deprecated)

public PolicyControllerDeploymentConfig.Builder setPodAntiAffinity(boolean value)

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];

Parameter
Name Description
value boolean

The podAntiAffinity to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Builder

This builder for chaining.

setPodTolerations(int index, PolicyControllerDeploymentConfig.Toleration value)

public PolicyControllerDeploymentConfig.Builder setPodTolerations(int index, PolicyControllerDeploymentConfig.Toleration value)

Pod tolerations of node taints.

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

Parameters
Name Description
index int
value PolicyControllerDeploymentConfig.Toleration
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

setPodTolerations(int index, PolicyControllerDeploymentConfig.Toleration.Builder builderForValue)

public PolicyControllerDeploymentConfig.Builder setPodTolerations(int index, PolicyControllerDeploymentConfig.Toleration.Builder builderForValue)

Pod tolerations of node taints.

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

Parameters
Name Description
index int
builderForValue PolicyControllerDeploymentConfig.Toleration.Builder
Returns
Type Description
PolicyControllerDeploymentConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PolicyControllerDeploymentConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides

setReplicaCount(long value)

public PolicyControllerDeploymentConfig.Builder setReplicaCount(long value)

Pod replica count.

optional int64 replica_count = 1;

Parameter
Name Description
value long

The replicaCount to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PolicyControllerDeploymentConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PolicyControllerDeploymentConfig.Builder
Overrides