Package com.google.container.v1
Class ClusterAutoscaling
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.container.v1.ClusterAutoscaling
-
- All Implemented Interfaces:
ClusterAutoscalingOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ClusterAutoscaling extends com.google.protobuf.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 typegoogle.container.v1.ClusterAutoscaling- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusterAutoscaling.AutoscalingProfileDefines possible options for autoscaling_profile field.static classClusterAutoscaling.BuilderClusterAutoscaling 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.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAUTOPROVISIONING_LOCATIONS_FIELD_NUMBERstatic intAUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBERstatic intAUTOSCALING_PROFILE_FIELD_NUMBERstatic intENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBERstatic intRESOURCE_LIMITS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAutoprovisioningLocations(int index)The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool's nodes can be created by NAP.com.google.protobuf.ByteStringgetAutoprovisioningLocationsBytes(int index)The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool's nodes can be created by NAP.intgetAutoprovisioningLocationsCount()The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool's nodes can be created by NAP.com.google.protobuf.ProtocolStringListgetAutoprovisioningLocationsList()The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool's nodes can be created by NAP.AutoprovisioningNodePoolDefaultsgetAutoprovisioningNodePoolDefaults()AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.AutoprovisioningNodePoolDefaultsOrBuildergetAutoprovisioningNodePoolDefaultsOrBuilder()AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.ClusterAutoscaling.AutoscalingProfilegetAutoscalingProfile()Defines autoscaling behaviour.intgetAutoscalingProfileValue()Defines autoscaling behaviour.static ClusterAutoscalinggetDefaultInstance()ClusterAutoscalinggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetEnableNodeAutoprovisioning()Enables automatic node pool creation and deletion.com.google.protobuf.Parser<ClusterAutoscaling>getParserForType()ResourceLimitgetResourceLimits(int index)Contains global constraints regarding minimum and maximum amount of resources in the cluster.intgetResourceLimitsCount()Contains global constraints regarding minimum and maximum amount of resources in the cluster.List<ResourceLimit>getResourceLimitsList()Contains global constraints regarding minimum and maximum amount of resources in the cluster.ResourceLimitOrBuildergetResourceLimitsOrBuilder(int index)Contains global constraints regarding minimum and maximum amount of resources in the cluster.List<? extends ResourceLimitOrBuilder>getResourceLimitsOrBuilderList()Contains global constraints regarding minimum and maximum amount of resources in the cluster.intgetSerializedSize()booleanhasAutoprovisioningNodePoolDefaults()AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ClusterAutoscaling.BuildernewBuilder()static ClusterAutoscaling.BuildernewBuilder(ClusterAutoscaling prototype)ClusterAutoscaling.BuildernewBuilderForType()protected ClusterAutoscaling.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ClusterAutoscalingparseDelimitedFrom(InputStream input)static ClusterAutoscalingparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ClusterAutoscalingparseFrom(byte[] data)static ClusterAutoscalingparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ClusterAutoscalingparseFrom(com.google.protobuf.ByteString data)static ClusterAutoscalingparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ClusterAutoscalingparseFrom(com.google.protobuf.CodedInputStream input)static ClusterAutoscalingparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ClusterAutoscalingparseFrom(InputStream input)static ClusterAutoscalingparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ClusterAutoscalingparseFrom(ByteBuffer data)static ClusterAutoscalingparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ClusterAutoscaling>parser()ClusterAutoscaling.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER
public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_LIMITS_FIELD_NUMBER
public static final int RESOURCE_LIMITS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTOSCALING_PROFILE_FIELD_NUMBER
public static final int AUTOSCALING_PROFILE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER
public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER
public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getEnableNodeAutoprovisioning
public boolean getEnableNodeAutoprovisioning()
Enables automatic node pool creation and deletion.
bool enable_node_autoprovisioning = 1;- Specified by:
getEnableNodeAutoprovisioningin interfaceClusterAutoscalingOrBuilder- Returns:
- The enableNodeAutoprovisioning.
-
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;- Specified by:
getResourceLimitsListin interfaceClusterAutoscalingOrBuilder
-
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;- Specified by:
getResourceLimitsOrBuilderListin interfaceClusterAutoscalingOrBuilder
-
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;- Specified by:
getResourceLimitsCountin interfaceClusterAutoscalingOrBuilder
-
getResourceLimits
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;- Specified by:
getResourceLimitsin interfaceClusterAutoscalingOrBuilder
-
getResourceLimitsOrBuilder
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;- Specified by:
getResourceLimitsOrBuilderin interfaceClusterAutoscalingOrBuilder
-
getAutoscalingProfileValue
public int getAutoscalingProfileValue()
Defines autoscaling behaviour.
.google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;- Specified by:
getAutoscalingProfileValuein interfaceClusterAutoscalingOrBuilder- Returns:
- The enum numeric value on the wire for autoscalingProfile.
-
getAutoscalingProfile
public ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile()
Defines autoscaling behaviour.
.google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;- Specified by:
getAutoscalingProfilein interfaceClusterAutoscalingOrBuilder- Returns:
- The autoscalingProfile.
-
hasAutoprovisioningNodePoolDefaults
public boolean hasAutoprovisioningNodePoolDefaults()
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
.google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;- Specified by:
hasAutoprovisioningNodePoolDefaultsin interfaceClusterAutoscalingOrBuilder- Returns:
- Whether the autoprovisioningNodePoolDefaults field is set.
-
getAutoprovisioningNodePoolDefaults
public AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults()
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
.google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;- Specified by:
getAutoprovisioningNodePoolDefaultsin interfaceClusterAutoscalingOrBuilder- Returns:
- 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;- Specified by:
getAutoprovisioningNodePoolDefaultsOrBuilderin interfaceClusterAutoscalingOrBuilder
-
getAutoprovisioningLocationsList
public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList()
The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;- Specified by:
getAutoprovisioningLocationsListin interfaceClusterAutoscalingOrBuilder- Returns:
- A list containing the autoprovisioningLocations.
-
getAutoprovisioningLocationsCount
public int getAutoprovisioningLocationsCount()
The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;- Specified by:
getAutoprovisioningLocationsCountin interfaceClusterAutoscalingOrBuilder- Returns:
- The count of autoprovisioningLocations.
-
getAutoprovisioningLocations
public String getAutoprovisioningLocations(int index)
The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;- Specified by:
getAutoprovisioningLocationsin interfaceClusterAutoscalingOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The autoprovisioningLocations at the given index.
-
getAutoprovisioningLocationsBytes
public com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index)
The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;- Specified by:
getAutoprovisioningLocationsBytesin interfaceClusterAutoscalingOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the autoprovisioningLocations at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ClusterAutoscaling parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterAutoscaling parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterAutoscaling parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterAutoscaling parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterAutoscaling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterAutoscaling parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterAutoscaling parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ClusterAutoscaling parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ClusterAutoscaling parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ClusterAutoscaling parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ClusterAutoscaling parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ClusterAutoscaling parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ClusterAutoscaling.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ClusterAutoscaling.Builder newBuilder()
-
newBuilder
public static ClusterAutoscaling.Builder newBuilder(ClusterAutoscaling prototype)
-
toBuilder
public ClusterAutoscaling.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ClusterAutoscaling.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ClusterAutoscaling getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ClusterAutoscaling> parser()
-
getParserForType
public com.google.protobuf.Parser<ClusterAutoscaling> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ClusterAutoscaling getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-