Class MaxPodsConstraint.Builder (2.45.0)

public static final class MaxPodsConstraint.Builder extends GeneratedMessageV3.Builder<MaxPodsConstraint.Builder> implements MaxPodsConstraintOrBuilder

Constraints applied to pods.

Protobuf type google.container.v1.MaxPodsConstraint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MaxPodsConstraint build()
Returns
Type Description
MaxPodsConstraint

buildPartial()

public MaxPodsConstraint buildPartial()
Returns
Type Description
MaxPodsConstraint

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMaxPodsPerNode()

public MaxPodsConstraint.Builder clearMaxPodsPerNode()

Constraint enforced on the max num of pods per node.

int64 max_pods_per_node = 1;

Returns
Type Description
MaxPodsConstraint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MaxPodsConstraint getDefaultInstanceForType()
Returns
Type Description
MaxPodsConstraint

getDescriptorForType()

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

getMaxPodsPerNode()

public long getMaxPodsPerNode()

Constraint enforced on the max num of pods per node.

int64 max_pods_per_node = 1;

Returns
Type Description
long

The maxPodsPerNode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MaxPodsConstraint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxPodsPerNode(long value)

public MaxPodsConstraint.Builder setMaxPodsPerNode(long value)

Constraint enforced on the max num of pods per node.

int64 max_pods_per_node = 1;

Parameter
Name Description
value long

The maxPodsPerNode to set.

Returns
Type Description
MaxPodsConstraint.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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