Class PodAutoscaling.Builder (2.67.0)

public static final class PodAutoscaling.Builder extends GeneratedMessageV3.Builder<PodAutoscaling.Builder> implements PodAutoscalingOrBuilder

PodAutoscaling is used for configuration of parameters for workload autoscaling.

Protobuf type google.container.v1.PodAutoscaling

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PodAutoscaling build()
Returns
Type Description
PodAutoscaling

buildPartial()

public PodAutoscaling buildPartial()
Returns
Type Description
PodAutoscaling

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHpaProfile()

public PodAutoscaling.Builder clearHpaProfile()

Selected Horizontal Pod Autoscaling profile.

optional .google.container.v1.PodAutoscaling.HPAProfile hpa_profile = 2;

Returns
Type Description
PodAutoscaling.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PodAutoscaling getDefaultInstanceForType()
Returns
Type Description
PodAutoscaling

getDescriptorForType()

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

getHpaProfile()

public PodAutoscaling.HPAProfile getHpaProfile()

Selected Horizontal Pod Autoscaling profile.

optional .google.container.v1.PodAutoscaling.HPAProfile hpa_profile = 2;

Returns
Type Description
PodAutoscaling.HPAProfile

The hpaProfile.

getHpaProfileValue()

public int getHpaProfileValue()

Selected Horizontal Pod Autoscaling profile.

optional .google.container.v1.PodAutoscaling.HPAProfile hpa_profile = 2;

Returns
Type Description
int

The enum numeric value on the wire for hpaProfile.

hasHpaProfile()

public boolean hasHpaProfile()

Selected Horizontal Pod Autoscaling profile.

optional .google.container.v1.PodAutoscaling.HPAProfile hpa_profile = 2;

Returns
Type Description
boolean

Whether the hpaProfile field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PodAutoscaling other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHpaProfile(PodAutoscaling.HPAProfile value)

public PodAutoscaling.Builder setHpaProfile(PodAutoscaling.HPAProfile value)

Selected Horizontal Pod Autoscaling profile.

optional .google.container.v1.PodAutoscaling.HPAProfile hpa_profile = 2;

Parameter
Name Description
value PodAutoscaling.HPAProfile

The hpaProfile to set.

Returns
Type Description
PodAutoscaling.Builder

This builder for chaining.

setHpaProfileValue(int value)

public PodAutoscaling.Builder setHpaProfileValue(int value)

Selected Horizontal Pod Autoscaling profile.

optional .google.container.v1.PodAutoscaling.HPAProfile hpa_profile = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for hpaProfile to set.

Returns
Type Description
PodAutoscaling.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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