Class PolicyControllerDeploymentConfig.Toleration.Builder (1.55.0)

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

Toleration of a node taint.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PolicyControllerDeploymentConfig.Toleration build()
Returns
Type Description
PolicyControllerDeploymentConfig.Toleration

buildPartial()

public PolicyControllerDeploymentConfig.Toleration buildPartial()
Returns
Type Description
PolicyControllerDeploymentConfig.Toleration

clear()

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

clearEffect()

public PolicyControllerDeploymentConfig.Toleration.Builder clearEffect()

Matches a taint effect.

optional string effect = 4;

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public PolicyControllerDeploymentConfig.Toleration.Builder clearKey()

Matches a taint key (not necessarily unique).

optional string key = 1;

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperator()

public PolicyControllerDeploymentConfig.Toleration.Builder clearOperator()

Matches a taint operator.

optional string operator = 2;

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

clearValue()

public PolicyControllerDeploymentConfig.Toleration.Builder clearValue()

Matches a taint value.

optional string value = 3;

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PolicyControllerDeploymentConfig.Toleration getDefaultInstanceForType()
Returns
Type Description
PolicyControllerDeploymentConfig.Toleration

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEffect()

public String getEffect()

Matches a taint effect.

optional string effect = 4;

Returns
Type Description
String

The effect.

getEffectBytes()

public ByteString getEffectBytes()

Matches a taint effect.

optional string effect = 4;

Returns
Type Description
ByteString

The bytes for effect.

getKey()

public String getKey()

Matches a taint key (not necessarily unique).

optional string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Matches a taint key (not necessarily unique).

optional string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getOperator()

public String getOperator()

Matches a taint operator.

optional string operator = 2;

Returns
Type Description
String

The operator.

getOperatorBytes()

public ByteString getOperatorBytes()

Matches a taint operator.

optional string operator = 2;

Returns
Type Description
ByteString

The bytes for operator.

getValue()

public String getValue()

Matches a taint value.

optional string value = 3;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Matches a taint value.

optional string value = 3;

Returns
Type Description
ByteString

The bytes for value.

hasEffect()

public boolean hasEffect()

Matches a taint effect.

optional string effect = 4;

Returns
Type Description
boolean

Whether the effect field is set.

hasKey()

public boolean hasKey()

Matches a taint key (not necessarily unique).

optional string key = 1;

Returns
Type Description
boolean

Whether the key field is set.

hasOperator()

public boolean hasOperator()

Matches a taint operator.

optional string operator = 2;

Returns
Type Description
boolean

Whether the operator field is set.

hasValue()

public boolean hasValue()

Matches a taint value.

optional string value = 3;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PolicyControllerDeploymentConfig.Toleration other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEffect(String value)

public PolicyControllerDeploymentConfig.Toleration.Builder setEffect(String value)

Matches a taint effect.

optional string effect = 4;

Parameter
Name Description
value String

The effect to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

setEffectBytes(ByteString value)

public PolicyControllerDeploymentConfig.Toleration.Builder setEffectBytes(ByteString value)

Matches a taint effect.

optional string effect = 4;

Parameter
Name Description
value ByteString

The bytes for effect to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public PolicyControllerDeploymentConfig.Toleration.Builder setKey(String value)

Matches a taint key (not necessarily unique).

optional string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public PolicyControllerDeploymentConfig.Toleration.Builder setKeyBytes(ByteString value)

Matches a taint key (not necessarily unique).

optional string key = 1;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

setOperator(String value)

public PolicyControllerDeploymentConfig.Toleration.Builder setOperator(String value)

Matches a taint operator.

optional string operator = 2;

Parameter
Name Description
value String

The operator to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

setOperatorBytes(ByteString value)

public PolicyControllerDeploymentConfig.Toleration.Builder setOperatorBytes(ByteString value)

Matches a taint operator.

optional string operator = 2;

Parameter
Name Description
value ByteString

The bytes for operator to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public PolicyControllerDeploymentConfig.Toleration.Builder setValue(String value)

Matches a taint value.

optional string value = 3;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.

setValueBytes(ByteString value)

public PolicyControllerDeploymentConfig.Toleration.Builder setValueBytes(ByteString value)

Matches a taint value.

optional string value = 3;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
PolicyControllerDeploymentConfig.Toleration.Builder

This builder for chaining.