Class ClusterAutoscaling (2.5.0)

public final class ClusterAutoscaling extends GeneratedMessageV3 implements ClusterAutoscalingOrBuilder

ClusterAutoscaling contains global, per-cluster information required by Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs.

Protobuf type google.container.v1beta1.ClusterAutoscaling

Static Fields

AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER

public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER

public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER
Field Value
TypeDescription
int

AUTOSCALING_PROFILE_FIELD_NUMBER

public static final int AUTOSCALING_PROFILE_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER

public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_LIMITS_FIELD_NUMBER

public static final int RESOURCE_LIMITS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ClusterAutoscaling getDefaultInstance()
Returns
TypeDescription
ClusterAutoscaling

getDescriptor()

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

newBuilder()

public static ClusterAutoscaling.Builder newBuilder()
Returns
TypeDescription
ClusterAutoscaling.Builder

newBuilder(ClusterAutoscaling prototype)

public static ClusterAutoscaling.Builder newBuilder(ClusterAutoscaling prototype)
Parameter
NameDescription
prototypeClusterAutoscaling
Returns
TypeDescription
ClusterAutoscaling.Builder

parseDelimitedFrom(InputStream input)

public static ClusterAutoscaling parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ClusterAutoscaling parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ClusterAutoscaling parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ClusterAutoscaling parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ClusterAutoscaling parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ClusterAutoscaling parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterAutoscaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ClusterAutoscaling> parser()
Returns
TypeDescription
Parser<ClusterAutoscaling>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAutoprovisioningLocations(int index)

public String getAutoprovisioningLocations(int index)

The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.

repeated string autoprovisioning_locations = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The autoprovisioningLocations at the given index.

getAutoprovisioningLocationsBytes(int index)

public ByteString getAutoprovisioningLocationsBytes(int index)

The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.

repeated string autoprovisioning_locations = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the autoprovisioningLocations at the given index.

getAutoprovisioningLocationsCount()

public int getAutoprovisioningLocationsCount()

The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.

repeated string autoprovisioning_locations = 5;

Returns
TypeDescription
int

The count of autoprovisioningLocations.

getAutoprovisioningLocationsList()

public ProtocolStringList getAutoprovisioningLocationsList()

The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.

repeated string autoprovisioning_locations = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the autoprovisioningLocations.

getAutoprovisioningNodePoolDefaults()

public AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults()

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.

.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;

Returns
TypeDescription
AutoprovisioningNodePoolDefaults

The autoprovisioningNodePoolDefaults.

getAutoprovisioningNodePoolDefaultsOrBuilder()

public AutoprovisioningNodePoolDefaultsOrBuilder getAutoprovisioningNodePoolDefaultsOrBuilder()

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.

.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;

Returns
TypeDescription
AutoprovisioningNodePoolDefaultsOrBuilder

getAutoscalingProfile()

public ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile()

Defines autoscaling behaviour.

.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;

Returns
TypeDescription
ClusterAutoscaling.AutoscalingProfile

The autoscalingProfile.

getAutoscalingProfileValue()

public int getAutoscalingProfileValue()

Defines autoscaling behaviour.

.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for autoscalingProfile.

getDefaultInstanceForType()

public ClusterAutoscaling getDefaultInstanceForType()
Returns
TypeDescription
ClusterAutoscaling

getEnableNodeAutoprovisioning()

public boolean getEnableNodeAutoprovisioning()

Enables automatic node pool creation and deletion.

bool enable_node_autoprovisioning = 1;

Returns
TypeDescription
boolean

The enableNodeAutoprovisioning.

getParserForType()

public Parser<ClusterAutoscaling> getParserForType()
Returns
TypeDescription
Parser<ClusterAutoscaling>
Overrides

getResourceLimits(int index)

public ResourceLimit getResourceLimits(int index)

Contains global constraints regarding minimum and maximum amount of resources in the cluster.

repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceLimit

getResourceLimitsCount()

public int getResourceLimitsCount()

Contains global constraints regarding minimum and maximum amount of resources in the cluster.

repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;

Returns
TypeDescription
int

getResourceLimitsList()

public List<ResourceLimit> getResourceLimitsList()

Contains global constraints regarding minimum and maximum amount of resources in the cluster.

repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;

Returns
TypeDescription
List<ResourceLimit>

getResourceLimitsOrBuilder(int index)

public ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index)

Contains global constraints regarding minimum and maximum amount of resources in the cluster.

repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceLimitOrBuilder

getResourceLimitsOrBuilderList()

public List<? extends ResourceLimitOrBuilder> getResourceLimitsOrBuilderList()

Contains global constraints regarding minimum and maximum amount of resources in the cluster.

repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;

Returns
TypeDescription
List<? extends com.google.container.v1beta1.ResourceLimitOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAutoprovisioningNodePoolDefaults()

public boolean hasAutoprovisioningNodePoolDefaults()

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.

.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;

Returns
TypeDescription
boolean

Whether the autoprovisioningNodePoolDefaults field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ClusterAutoscaling.Builder newBuilderForType()
Returns
TypeDescription
ClusterAutoscaling.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ClusterAutoscaling.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ClusterAutoscaling.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ClusterAutoscaling.Builder toBuilder()
Returns
TypeDescription
ClusterAutoscaling.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException