Class ClusterAutoscaling (2.48.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.v1.ClusterAutoscaling

Static Fields

AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER

public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER
Field Value
Type Description
int

AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER

public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER
Field Value
Type Description
int

AUTOSCALING_PROFILE_FIELD_NUMBER

public static final int AUTOSCALING_PROFILE_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER

public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_LIMITS_FIELD_NUMBER

public static final int RESOURCE_LIMITS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ClusterAutoscaling getDefaultInstance()
Returns
Type Description
ClusterAutoscaling

getDescriptor()

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

newBuilder()

public static ClusterAutoscaling.Builder newBuilder()
Returns
Type Description
ClusterAutoscaling.Builder

newBuilder(ClusterAutoscaling prototype)

public static ClusterAutoscaling.Builder newBuilder(ClusterAutoscaling prototype)
Parameter
Name Description
prototype ClusterAutoscaling
Returns
Type Description
ClusterAutoscaling.Builder

parseDelimitedFrom(InputStream input)

public static ClusterAutoscaling parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ClusterAutoscaling parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ClusterAutoscaling parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ClusterAutoscaling parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ClusterAutoscaling parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ClusterAutoscaling parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ClusterAutoscaling parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClusterAutoscaling
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ClusterAutoscaling> parser()
Returns
Type Description
Parser<ClusterAutoscaling>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the autoprovisioningLocations.

getAutoprovisioningNodePoolDefaults()

public AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults()

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.

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

Returns
Type Description
AutoprovisioningNodePoolDefaults

The autoprovisioningNodePoolDefaults.

getAutoprovisioningNodePoolDefaultsOrBuilder()

public AutoprovisioningNodePoolDefaultsOrBuilder getAutoprovisioningNodePoolDefaultsOrBuilder()

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.

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

Returns
Type Description
AutoprovisioningNodePoolDefaultsOrBuilder

getAutoscalingProfile()

public ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile()

Defines autoscaling behaviour.

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

Returns
Type Description
ClusterAutoscaling.AutoscalingProfile

The autoscalingProfile.

getAutoscalingProfileValue()

public int getAutoscalingProfileValue()

Defines autoscaling behaviour.

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

Returns
Type Description
int

The enum numeric value on the wire for autoscalingProfile.

getDefaultInstanceForType()

public ClusterAutoscaling getDefaultInstanceForType()
Returns
Type Description
ClusterAutoscaling

getEnableNodeAutoprovisioning()

public boolean getEnableNodeAutoprovisioning()

Enables automatic node pool creation and deletion.

bool enable_node_autoprovisioning = 1;

Returns
Type Description
boolean

The enableNodeAutoprovisioning.

getParserForType()

public Parser<ClusterAutoscaling> getParserForType()
Returns
Type Description
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.v1.ResourceLimit resource_limits = 2;

Parameter
Name Description
index int
Returns
Type Description
ResourceLimit

getResourceLimitsCount()

public int getResourceLimitsCount()

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

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

Returns
Type Description
int

getResourceLimitsList()

public List<ResourceLimit> getResourceLimitsList()

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

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

Returns
Type Description
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.v1.ResourceLimit resource_limits = 2;

Parameter
Name Description
index int
Returns
Type Description
ResourceLimitOrBuilder

getResourceLimitsOrBuilderList()

public List<? extends ResourceLimitOrBuilder> getResourceLimitsOrBuilderList()

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

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

Returns
Type Description
List<? extends com.google.container.v1.ResourceLimitOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAutoprovisioningNodePoolDefaults()

public boolean hasAutoprovisioningNodePoolDefaults()

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.

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

Returns
Type Description
boolean

Whether the autoprovisioningNodePoolDefaults field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ClusterAutoscaling.Builder newBuilderForType()
Returns
Type Description
ClusterAutoscaling.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ClusterAutoscaling.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ClusterAutoscaling.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ClusterAutoscaling.Builder toBuilder()
Returns
Type Description
ClusterAutoscaling.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException