Class MaxPodsConstraint.Builder (2.24.0)

public static final class MaxPodsConstraint.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MaxPodsConstraint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MaxPodsConstraint.Builder
Overrides

build()

public MaxPodsConstraint build()
Returns
TypeDescription
MaxPodsConstraint

buildPartial()

public MaxPodsConstraint buildPartial()
Returns
TypeDescription
MaxPodsConstraint

clear()

public MaxPodsConstraint.Builder clear()
Returns
TypeDescription
MaxPodsConstraint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MaxPodsConstraint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
MaxPodsConstraint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MaxPodsConstraint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MaxPodsConstraint.Builder
Overrides

clone()

public MaxPodsConstraint.Builder clone()
Returns
TypeDescription
MaxPodsConstraint.Builder
Overrides

getDefaultInstanceForType()

public MaxPodsConstraint getDefaultInstanceForType()
Returns
TypeDescription
MaxPodsConstraint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMaxPodsPerNode()

public long getMaxPodsPerNode()

Constraint enforced on the max num of pods per node.

int64 max_pods_per_node = 1;

Returns
TypeDescription
long

The maxPodsPerNode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MaxPodsConstraint other)

public MaxPodsConstraint.Builder mergeFrom(MaxPodsConstraint other)
Parameter
NameDescription
otherMaxPodsConstraint
Returns
TypeDescription
MaxPodsConstraint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MaxPodsConstraint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MaxPodsConstraint.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MaxPodsConstraint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MaxPodsConstraint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MaxPodsConstraint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MaxPodsConstraint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MaxPodsConstraint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The maxPodsPerNode to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MaxPodsConstraint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MaxPodsConstraint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MaxPodsConstraint.Builder
Overrides