Class 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 type google.container.v1beta1.ClusterAutoscaling
    See Also:
    Serialized Form
    • 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:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getEnableNodeAutoprovisioning

        public boolean getEnableNodeAutoprovisioning()
         Enables automatic node pool creation and deletion.
         
        bool enable_node_autoprovisioning = 1;
        Specified by:
        getEnableNodeAutoprovisioning in interface ClusterAutoscalingOrBuilder
        Returns:
        The enableNodeAutoprovisioning.
      • 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;
        Specified by:
        getResourceLimitsCount in interface ClusterAutoscalingOrBuilder
      • getResourceLimits

        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;
        Specified by:
        getResourceLimits in interface ClusterAutoscalingOrBuilder
      • getAutoscalingProfileValue

        public int getAutoscalingProfileValue()
         Defines autoscaling behaviour.
         
        .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;
        Specified by:
        getAutoscalingProfileValue in interface ClusterAutoscalingOrBuilder
        Returns:
        The enum numeric value on the wire for autoscalingProfile.
      • hasAutoprovisioningNodePoolDefaults

        public boolean hasAutoprovisioningNodePoolDefaults()
         AutoprovisioningNodePoolDefaults contains defaults for a node pool
         created by NAP.
         
        .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
        Specified by:
        hasAutoprovisioningNodePoolDefaults in interface ClusterAutoscalingOrBuilder
        Returns:
        Whether the autoprovisioningNodePoolDefaults field is set.
      • 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:
        getAutoprovisioningLocationsList in interface ClusterAutoscalingOrBuilder
        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:
        getAutoprovisioningLocationsCount in interface ClusterAutoscalingOrBuilder
        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:
        getAutoprovisioningLocations in interface ClusterAutoscalingOrBuilder
        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:
        getAutoprovisioningLocationsBytes in interface ClusterAutoscalingOrBuilder
        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:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Throws:
        IOException
      • newBuilderForType

        public ClusterAutoscaling.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ClusterAutoscaling.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ClusterAutoscaling.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ClusterAutoscaling> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ClusterAutoscaling getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder