Class ClusterAutoscaling

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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

@Generated public final class ClusterAutoscaling extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER

      public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER
      See Also:
    • RESOURCE_LIMITS_FIELD_NUMBER

      public static final int RESOURCE_LIMITS_FIELD_NUMBER
      See Also:
    • AUTOSCALING_PROFILE_FIELD_NUMBER

      public static final int AUTOSCALING_PROFILE_FIELD_NUMBER
      See Also:
    • AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER

      public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER
      See Also:
    • AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER

      public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER
      See Also:
    • DEFAULT_COMPUTE_CLASS_CONFIG_FIELD_NUMBER

      public static final int DEFAULT_COMPUTE_CLASS_CONFIG_FIELD_NUMBER
      See Also:
    • AUTOPILOT_GENERAL_PROFILE_FIELD_NUMBER

      public static final int AUTOPILOT_GENERAL_PROFILE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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:
      getResourceLimitsList in interface ClusterAutoscalingOrBuilder
    • 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:
      getResourceLimitsOrBuilderList in interface ClusterAutoscalingOrBuilder
    • 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:
      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.v1.ResourceLimit resource_limits = 2;
      Specified by:
      getResourceLimits in interface ClusterAutoscalingOrBuilder
    • 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:
      getResourceLimitsOrBuilder in interface ClusterAutoscalingOrBuilder
    • getAutoscalingProfileValue

      public int getAutoscalingProfileValue()
       Defines autoscaling behaviour.
       
      .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;
      Specified by:
      getAutoscalingProfileValue in interface ClusterAutoscalingOrBuilder
      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:
      getAutoscalingProfile in interface ClusterAutoscalingOrBuilder
      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:
      hasAutoprovisioningNodePoolDefaults in interface ClusterAutoscalingOrBuilder
      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:
      getAutoprovisioningNodePoolDefaults in interface ClusterAutoscalingOrBuilder
      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:
      getAutoprovisioningNodePoolDefaultsOrBuilder in interface ClusterAutoscalingOrBuilder
    • 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.
    • hasDefaultComputeClassConfig

      public boolean hasDefaultComputeClassConfig()
       Default compute class is a configuration for default compute class.
       
      .google.container.v1.DefaultComputeClassConfig default_compute_class_config = 9;
      Specified by:
      hasDefaultComputeClassConfig in interface ClusterAutoscalingOrBuilder
      Returns:
      Whether the defaultComputeClassConfig field is set.
    • getDefaultComputeClassConfig

      public DefaultComputeClassConfig getDefaultComputeClassConfig()
       Default compute class is a configuration for default compute class.
       
      .google.container.v1.DefaultComputeClassConfig default_compute_class_config = 9;
      Specified by:
      getDefaultComputeClassConfig in interface ClusterAutoscalingOrBuilder
      Returns:
      The defaultComputeClassConfig.
    • getDefaultComputeClassConfigOrBuilder

      public DefaultComputeClassConfigOrBuilder getDefaultComputeClassConfigOrBuilder()
       Default compute class is a configuration for default compute class.
       
      .google.container.v1.DefaultComputeClassConfig default_compute_class_config = 9;
      Specified by:
      getDefaultComputeClassConfigOrBuilder in interface ClusterAutoscalingOrBuilder
    • getAutopilotGeneralProfileValue

      public int getAutopilotGeneralProfileValue()
       Autopilot general profile for the cluster, which defines the
       configuration for the cluster.
       
      .google.container.v1.ClusterAutoscaling.AutopilotGeneralProfile autopilot_general_profile = 14;
      Specified by:
      getAutopilotGeneralProfileValue in interface ClusterAutoscalingOrBuilder
      Returns:
      The enum numeric value on the wire for autopilotGeneralProfile.
    • getAutopilotGeneralProfile

      public ClusterAutoscaling.AutopilotGeneralProfile getAutopilotGeneralProfile()
       Autopilot general profile for the cluster, which defines the
       configuration for the cluster.
       
      .google.container.v1.ClusterAutoscaling.AutopilotGeneralProfile autopilot_general_profile = 14;
      Specified by:
      getAutopilotGeneralProfile in interface ClusterAutoscalingOrBuilder
      Returns:
      The autopilotGeneralProfile.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ClusterAutoscaling.Builder newBuilder()
    • newBuilder

      public static ClusterAutoscaling.Builder newBuilder(ClusterAutoscaling prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ClusterAutoscaling getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ClusterAutoscaling> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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