Class HorizontalPodAutoscaling.Builder (2.86.0)

public static final class HorizontalPodAutoscaling.Builder extends GeneratedMessage.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.v1beta1.HorizontalPodAutoscaling

Static Methods

getDescriptor()

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

Methods

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.

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

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.