Class MaxPodsConstraint.Builder (2.86.0)

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

Constraints applied to pods.

Protobuf type google.container.v1beta1.MaxPodsConstraint

Static Methods

getDescriptor()

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

Methods

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

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.

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 GeneratedMessage.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

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.