Class HorizontalPodAutoscaling.Builder (2.57.0)

public static final class HorizontalPodAutoscaling.Builder extends GeneratedMessageV3.Builder<HorizontalPodAutoscaling.Builder> implements HorizontalPodAutoscalingOrBuilder

Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods.

Protobuf type google.container.v1.HorizontalPodAutoscaling

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HorizontalPodAutoscaling build()
Returns
Type Description
HorizontalPodAutoscaling

buildPartial()

public HorizontalPodAutoscaling buildPartial()
Returns
Type Description
HorizontalPodAutoscaling

clear()

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

clearDisabled()

public HorizontalPodAutoscaling.Builder clearDisabled()

Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.

bool disabled = 1;

Returns
Type Description
HorizontalPodAutoscaling.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public HorizontalPodAutoscaling getDefaultInstanceForType()
Returns
Type Description
HorizontalPodAutoscaling

getDescriptorForType()

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

getDisabled()

public boolean getDisabled()

Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.

bool disabled = 1;

Returns
Type Description
boolean

The disabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HorizontalPodAutoscaling other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisabled(boolean value)

public HorizontalPodAutoscaling.Builder setDisabled(boolean value)

Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.

bool disabled = 1;

Parameter
Name Description
value boolean

The disabled to set.

Returns
Type Description
HorizontalPodAutoscaling.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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