Class VerticalPodAutoscaling.Builder (2.15.0)

public static final class VerticalPodAutoscaling.Builder extends GeneratedMessageV3.Builder<VerticalPodAutoscaling.Builder> implements VerticalPodAutoscalingOrBuilder

VerticalPodAutoscaling contains global, per-cluster information required by Vertical Pod Autoscaler to automatically adjust the resources of pods controlled by it.

Protobuf type google.container.v1.VerticalPodAutoscaling

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VerticalPodAutoscaling build()
Returns
TypeDescription
VerticalPodAutoscaling

buildPartial()

public VerticalPodAutoscaling buildPartial()
Returns
TypeDescription
VerticalPodAutoscaling

clear()

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

clearEnabled()

public VerticalPodAutoscaling.Builder clearEnabled()

Enables vertical pod autoscaling.

bool enabled = 1;

Returns
TypeDescription
VerticalPodAutoscaling.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public VerticalPodAutoscaling getDefaultInstanceForType()
Returns
TypeDescription
VerticalPodAutoscaling

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Enables vertical pod autoscaling.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VerticalPodAutoscaling other)

public VerticalPodAutoscaling.Builder mergeFrom(VerticalPodAutoscaling other)
Parameter
NameDescription
otherVerticalPodAutoscaling
Returns
TypeDescription
VerticalPodAutoscaling.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public VerticalPodAutoscaling.Builder setEnabled(boolean value)

Enables vertical pod autoscaling.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
VerticalPodAutoscaling.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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