Class AzureNodePool

  • All Implemented Interfaces:
    AzureNodePoolOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class AzureNodePool
    extends com.google.protobuf.GeneratedMessageV3
    implements AzureNodePoolOrBuilder
     An Anthos node pool running on Azure.
     
    Protobuf type google.cloud.gkemulticloud.v1.AzureNodePool
    See Also:
    Serialized Form
    • 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()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

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

        public String getName()
         The name of this resource.
        
         Node pool names are formatted as
         `projects/<project-number>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
        
         For more details on Google Cloud resource names,
         see [Resource Names](https://cloud.google.com/apis/design/resource_names)
         
        string name = 1;
        Specified by:
        getName in interface AzureNodePoolOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of this resource.
        
         Node pool names are formatted as
         `projects/<project-number>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
        
         For more details on Google Cloud resource names,
         see [Resource Names](https://cloud.google.com/apis/design/resource_names)
         
        string name = 1;
        Specified by:
        getNameBytes in interface AzureNodePoolOrBuilder
        Returns:
        The bytes for name.
      • getVersion

        public String getVersion()
         Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
         node pool.
         
        string version = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getVersion in interface AzureNodePoolOrBuilder
        Returns:
        The version.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
         node pool.
         
        string version = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getVersionBytes in interface AzureNodePoolOrBuilder
        Returns:
        The bytes for version.
      • hasConfig

        public boolean hasConfig()
         Required. The node configuration of the node pool.
         
        .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasConfig in interface AzureNodePoolOrBuilder
        Returns:
        Whether the config field is set.
      • getConfig

        public AzureNodeConfig getConfig()
         Required. The node configuration of the node pool.
         
        .google.cloud.gkemulticloud.v1.AzureNodeConfig config = 22 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getConfig in interface AzureNodePoolOrBuilder
        Returns:
        The config.
      • getSubnetId

        public String getSubnetId()
         Required. The ARM ID of the subnet where the node pool VMs run. Make sure
         it's a subnet under the virtual network in the cluster configuration.
         
        string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSubnetId in interface AzureNodePoolOrBuilder
        Returns:
        The subnetId.
      • getSubnetIdBytes

        public com.google.protobuf.ByteString getSubnetIdBytes()
         Required. The ARM ID of the subnet where the node pool VMs run. Make sure
         it's a subnet under the virtual network in the cluster configuration.
         
        string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSubnetIdBytes in interface AzureNodePoolOrBuilder
        Returns:
        The bytes for subnetId.
      • hasAutoscaling

        public boolean hasAutoscaling()
         Required. Autoscaler configuration for this node pool.
         
        .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasAutoscaling in interface AzureNodePoolOrBuilder
        Returns:
        Whether the autoscaling field is set.
      • getAutoscaling

        public AzureNodePoolAutoscaling getAutoscaling()
         Required. Autoscaler configuration for this node pool.
         
        .google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling autoscaling = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAutoscaling in interface AzureNodePoolOrBuilder
        Returns:
        The autoscaling.
      • getStateValue

        public int getStateValue()
         Output only. The current state of the node pool.
         
        .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface AzureNodePoolOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getState

        public AzureNodePool.State getState()
         Output only. The current state of the node pool.
         
        .google.cloud.gkemulticloud.v1.AzureNodePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface AzureNodePoolOrBuilder
        Returns:
        The state.
      • getUid

        public String getUid()
         Output only. A globally unique identifier for the node pool.
         
        string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUid in interface AzureNodePoolOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public com.google.protobuf.ByteString getUidBytes()
         Output only. A globally unique identifier for the node pool.
         
        string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUidBytes in interface AzureNodePoolOrBuilder
        Returns:
        The bytes for uid.
      • getReconciling

        public boolean getReconciling()
         Output only. If set, there are currently pending changes to the node
         pool.
         
        bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getReconciling in interface AzureNodePoolOrBuilder
        Returns:
        The reconciling.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time at which this node pool was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface AzureNodePoolOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time at which this node pool was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface AzureNodePoolOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time at which this node pool was created.
         
        .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface AzureNodePoolOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time at which this node pool was last updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface AzureNodePoolOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time at which this node pool was last updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface AzureNodePoolOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time at which this node pool was last updated.
         
        .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface AzureNodePoolOrBuilder
      • getEtag

        public String getEtag()
         Allows clients to perform consistent read-modify-writes
         through optimistic concurrency control.
        
         Can be sent on update and delete requests to ensure the
         client has an up-to-date value before proceeding.
         
        string etag = 12;
        Specified by:
        getEtag in interface AzureNodePoolOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         Allows clients to perform consistent read-modify-writes
         through optimistic concurrency control.
        
         Can be sent on update and delete requests to ensure the
         client has an up-to-date value before proceeding.
         
        string etag = 12;
        Specified by:
        getEtagBytes in interface AzureNodePoolOrBuilder
        Returns:
        The bytes for etag.
      • getAnnotationsCount

        public int getAnnotationsCount()
        Description copied from interface: AzureNodePoolOrBuilder
         Optional. Annotations on the node pool.
        
         This field has the same restrictions as Kubernetes annotations.
         The total size of all keys and values combined is limited to 256k.
         Keys can have 2 segments: prefix (optional) and name (required),
         separated by a slash (/).
         Prefix must be a DNS subdomain.
         Name must be 63 characters or less, begin and end with alphanumerics,
         with dashes (-), underscores (_), dots (.), and alphanumerics between.
         
        map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAnnotationsCount in interface AzureNodePoolOrBuilder
      • containsAnnotations

        public boolean containsAnnotations​(String key)
         Optional. Annotations on the node pool.
        
         This field has the same restrictions as Kubernetes annotations.
         The total size of all keys and values combined is limited to 256k.
         Keys can have 2 segments: prefix (optional) and name (required),
         separated by a slash (/).
         Prefix must be a DNS subdomain.
         Name must be 63 characters or less, begin and end with alphanumerics,
         with dashes (-), underscores (_), dots (.), and alphanumerics between.
         
        map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsAnnotations in interface AzureNodePoolOrBuilder
      • getAnnotationsMap

        public Map<String,​String> getAnnotationsMap()
         Optional. Annotations on the node pool.
        
         This field has the same restrictions as Kubernetes annotations.
         The total size of all keys and values combined is limited to 256k.
         Keys can have 2 segments: prefix (optional) and name (required),
         separated by a slash (/).
         Prefix must be a DNS subdomain.
         Name must be 63 characters or less, begin and end with alphanumerics,
         with dashes (-), underscores (_), dots (.), and alphanumerics between.
         
        map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAnnotationsMap in interface AzureNodePoolOrBuilder
      • getAnnotationsOrDefault

        public String getAnnotationsOrDefault​(String key,
                                              String defaultValue)
         Optional. Annotations on the node pool.
        
         This field has the same restrictions as Kubernetes annotations.
         The total size of all keys and values combined is limited to 256k.
         Keys can have 2 segments: prefix (optional) and name (required),
         separated by a slash (/).
         Prefix must be a DNS subdomain.
         Name must be 63 characters or less, begin and end with alphanumerics,
         with dashes (-), underscores (_), dots (.), and alphanumerics between.
         
        map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAnnotationsOrDefault in interface AzureNodePoolOrBuilder
      • getAnnotationsOrThrow

        public String getAnnotationsOrThrow​(String key)
         Optional. Annotations on the node pool.
        
         This field has the same restrictions as Kubernetes annotations.
         The total size of all keys and values combined is limited to 256k.
         Keys can have 2 segments: prefix (optional) and name (required),
         separated by a slash (/).
         Prefix must be a DNS subdomain.
         Name must be 63 characters or less, begin and end with alphanumerics,
         with dashes (-), underscores (_), dots (.), and alphanumerics between.
         
        map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAnnotationsOrThrow in interface AzureNodePoolOrBuilder
      • hasMaxPodsConstraint

        public boolean hasMaxPodsConstraint()
         Required. The constraint on the maximum number of pods that can be run
         simultaneously on a node in the node pool.
         
        .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasMaxPodsConstraint in interface AzureNodePoolOrBuilder
        Returns:
        Whether the maxPodsConstraint field is set.
      • getMaxPodsConstraint

        public MaxPodsConstraint getMaxPodsConstraint()
         Required. The constraint on the maximum number of pods that can be run
         simultaneously on a node in the node pool.
         
        .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMaxPodsConstraint in interface AzureNodePoolOrBuilder
        Returns:
        The maxPodsConstraint.
      • getMaxPodsConstraintOrBuilder

        public MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder()
         Required. The constraint on the maximum number of pods that can be run
         simultaneously on a node in the node pool.
         
        .google.cloud.gkemulticloud.v1.MaxPodsConstraint max_pods_constraint = 21 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMaxPodsConstraintOrBuilder in interface AzureNodePoolOrBuilder
      • getAzureAvailabilityZone

        public String getAzureAvailabilityZone()
         Optional. The Azure availability zone of the nodes in this nodepool.
        
         When unspecified, it defaults to `1`.
         
        string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAzureAvailabilityZone in interface AzureNodePoolOrBuilder
        Returns:
        The azureAvailabilityZone.
      • getAzureAvailabilityZoneBytes

        public com.google.protobuf.ByteString getAzureAvailabilityZoneBytes()
         Optional. The Azure availability zone of the nodes in this nodepool.
        
         When unspecified, it defaults to `1`.
         
        string azure_availability_zone = 23 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAzureAvailabilityZoneBytes in interface AzureNodePoolOrBuilder
        Returns:
        The bytes for azureAvailabilityZone.
      • getErrorsList

        public List<AzureNodePoolError> getErrorsList()
         Output only. A set of errors found in the node pool.
         
        repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorsList in interface AzureNodePoolOrBuilder
      • getErrorsCount

        public int getErrorsCount()
         Output only. A set of errors found in the node pool.
         
        repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorsCount in interface AzureNodePoolOrBuilder
      • getErrors

        public AzureNodePoolError getErrors​(int index)
         Output only. A set of errors found in the node pool.
         
        repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrors in interface AzureNodePoolOrBuilder
      • 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 AzureNodePool parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AzureNodePool parseFrom​(ByteBuffer data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AzureNodePool parseFrom​(com.google.protobuf.ByteString data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AzureNodePool parseFrom​(com.google.protobuf.ByteString data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AzureNodePool parseFrom​(byte[] data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AzureNodePool parseFrom​(byte[] data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AzureNodePool parseFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

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

        public static AzureNodePool getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<AzureNodePool> parser()
      • getParserForType

        public com.google.protobuf.Parser<AzureNodePool> 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 AzureNodePool getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder