Class HorizontalPodAutoscaling.Builder (2.11.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.v1beta1.HorizontalPodAutoscaling

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HorizontalPodAutoscaling build()
Returns
TypeDescription
HorizontalPodAutoscaling

buildPartial()

public HorizontalPodAutoscaling buildPartial()
Returns
TypeDescription
HorizontalPodAutoscaling

clear()

public HorizontalPodAutoscaling.Builder clear()
Returns
TypeDescription
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
TypeDescription
HorizontalPodAutoscaling.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HorizontalPodAutoscaling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HorizontalPodAutoscaling.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public HorizontalPodAutoscaling getDefaultInstanceForType()
Returns
TypeDescription
HorizontalPodAutoscaling

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The disabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HorizontalPodAutoscaling other)

public HorizontalPodAutoscaling.Builder mergeFrom(HorizontalPodAutoscaling other)
Parameter
NameDescription
otherHorizontalPodAutoscaling
Returns
TypeDescription
HorizontalPodAutoscaling.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HorizontalPodAutoscaling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The disabled to set.

Returns
TypeDescription
HorizontalPodAutoscaling.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public HorizontalPodAutoscaling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HorizontalPodAutoscaling.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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