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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HorizontalPodAutoscaling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public HorizontalPodAutoscaling build()
Returns
buildPartial()
public HorizontalPodAutoscaling buildPartial()
Returns
clear()
public HorizontalPodAutoscaling.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public HorizontalPodAutoscaling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public HorizontalPodAutoscaling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public HorizontalPodAutoscaling.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public HorizontalPodAutoscaling getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(HorizontalPodAutoscaling other)
public HorizontalPodAutoscaling.Builder mergeFrom(HorizontalPodAutoscaling other)
Parameter
Returns
public HorizontalPodAutoscaling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public HorizontalPodAutoscaling.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HorizontalPodAutoscaling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public HorizontalPodAutoscaling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HorizontalPodAutoscaling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HorizontalPodAutoscaling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides