Class AutoprovisioningNodePoolDefaults

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

    public final class AutoprovisioningNodePoolDefaults
    extends com.google.protobuf.GeneratedMessageV3
    implements AutoprovisioningNodePoolDefaultsOrBuilder
     AutoprovisioningNodePoolDefaults contains defaults for a node pool created
     by NAP.
     
    Protobuf type google.container.v1beta1.AutoprovisioningNodePoolDefaults
    See Also:
    Serialized Form
    • Field Detail

      • OAUTH_SCOPES_FIELD_NUMBER

        public static final int OAUTH_SCOPES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SERVICE_ACCOUNT_FIELD_NUMBER

        public static final int SERVICE_ACCOUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPGRADE_SETTINGS_FIELD_NUMBER

        public static final int UPGRADE_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MANAGEMENT_FIELD_NUMBER

        public static final int MANAGEMENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MIN_CPU_PLATFORM_FIELD_NUMBER

        public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DISK_SIZE_GB_FIELD_NUMBER

        public static final int DISK_SIZE_GB_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER

        public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BOOT_DISK_KMS_KEY_FIELD_NUMBER

        public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IMAGE_TYPE_FIELD_NUMBER

        public static final int IMAGE_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER

        public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_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
      • getOauthScopesList

        public com.google.protobuf.ProtocolStringList getOauthScopesList()
         The set of Google API scopes to be made available on all of the
         node VMs under the "default" service account.
        
         The following scopes are recommended, but not required, and by default are
         not included:
        
         * `https://www.googleapis.com/auth/compute` is required for mounting
         persistent storage on your nodes.
         * `https://www.googleapis.com/auth/devstorage.read_only` is required for
         communicating with **gcr.io**
         (the [Google Container
         Registry](https://cloud.google.com/container-registry/)).
        
         If unspecified, no scopes are added, unless Cloud Logging or Cloud
         Monitoring are enabled, in which case their required scopes will be added.
         
        repeated string oauth_scopes = 1;
        Specified by:
        getOauthScopesList in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        A list containing the oauthScopes.
      • getOauthScopesCount

        public int getOauthScopesCount()
         The set of Google API scopes to be made available on all of the
         node VMs under the "default" service account.
        
         The following scopes are recommended, but not required, and by default are
         not included:
        
         * `https://www.googleapis.com/auth/compute` is required for mounting
         persistent storage on your nodes.
         * `https://www.googleapis.com/auth/devstorage.read_only` is required for
         communicating with **gcr.io**
         (the [Google Container
         Registry](https://cloud.google.com/container-registry/)).
        
         If unspecified, no scopes are added, unless Cloud Logging or Cloud
         Monitoring are enabled, in which case their required scopes will be added.
         
        repeated string oauth_scopes = 1;
        Specified by:
        getOauthScopesCount in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The count of oauthScopes.
      • getOauthScopes

        public String getOauthScopes​(int index)
         The set of Google API scopes to be made available on all of the
         node VMs under the "default" service account.
        
         The following scopes are recommended, but not required, and by default are
         not included:
        
         * `https://www.googleapis.com/auth/compute` is required for mounting
         persistent storage on your nodes.
         * `https://www.googleapis.com/auth/devstorage.read_only` is required for
         communicating with **gcr.io**
         (the [Google Container
         Registry](https://cloud.google.com/container-registry/)).
        
         If unspecified, no scopes are added, unless Cloud Logging or Cloud
         Monitoring are enabled, in which case their required scopes will be added.
         
        repeated string oauth_scopes = 1;
        Specified by:
        getOauthScopes in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The oauthScopes at the given index.
      • getOauthScopesBytes

        public com.google.protobuf.ByteString getOauthScopesBytes​(int index)
         The set of Google API scopes to be made available on all of the
         node VMs under the "default" service account.
        
         The following scopes are recommended, but not required, and by default are
         not included:
        
         * `https://www.googleapis.com/auth/compute` is required for mounting
         persistent storage on your nodes.
         * `https://www.googleapis.com/auth/devstorage.read_only` is required for
         communicating with **gcr.io**
         (the [Google Container
         Registry](https://cloud.google.com/container-registry/)).
        
         If unspecified, no scopes are added, unless Cloud Logging or Cloud
         Monitoring are enabled, in which case their required scopes will be added.
         
        repeated string oauth_scopes = 1;
        Specified by:
        getOauthScopesBytes in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the oauthScopes at the given index.
      • getServiceAccount

        public String getServiceAccount()
         The Google Cloud Platform Service Account to be used by the node VMs.
         Specify the email address of the Service Account; otherwise, if no Service
         Account is specified, the "default" service account is used.
         
        string service_account = 2;
        Specified by:
        getServiceAccount in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The serviceAccount.
      • getServiceAccountBytes

        public com.google.protobuf.ByteString getServiceAccountBytes()
         The Google Cloud Platform Service Account to be used by the node VMs.
         Specify the email address of the Service Account; otherwise, if no Service
         Account is specified, the "default" service account is used.
         
        string service_account = 2;
        Specified by:
        getServiceAccountBytes in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The bytes for serviceAccount.
      • hasUpgradeSettings

        public boolean hasUpgradeSettings()
         Upgrade settings control disruption and speed of the upgrade.
         
        .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3;
        Specified by:
        hasUpgradeSettings in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        Whether the upgradeSettings field is set.
      • hasManagement

        public boolean hasManagement()
         NodeManagement configuration for this NodePool.
         
        .google.container.v1beta1.NodeManagement management = 4;
        Specified by:
        hasManagement in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        Whether the management field is set.
      • getMinCpuPlatform

        @Deprecated
        public String getMinCpuPlatform()
        Deprecated.
        google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. See google/container/v1beta1/cluster_service.proto;l=4288
         Deprecated. Minimum CPU platform to be used for NAP created node pools.
         The instance may be scheduled on the specified or newer CPU platform.
         Applicable values are the friendly names of CPU platforms, such as
         minCpuPlatform: Intel Haswell or
         minCpuPlatform: Intel Sandy Bridge. For more
         information, read [how to specify min CPU
         platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
         This field is deprecated, min_cpu_platform should be specified using
         `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
         To unset the min cpu platform field pass "automatic"
         as field value.
         
        string min_cpu_platform = 5 [deprecated = true];
        Specified by:
        getMinCpuPlatform in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The minCpuPlatform.
      • getMinCpuPlatformBytes

        @Deprecated
        public com.google.protobuf.ByteString getMinCpuPlatformBytes()
        Deprecated.
        google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. See google/container/v1beta1/cluster_service.proto;l=4288
         Deprecated. Minimum CPU platform to be used for NAP created node pools.
         The instance may be scheduled on the specified or newer CPU platform.
         Applicable values are the friendly names of CPU platforms, such as
         minCpuPlatform: Intel Haswell or
         minCpuPlatform: Intel Sandy Bridge. For more
         information, read [how to specify min CPU
         platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
         This field is deprecated, min_cpu_platform should be specified using
         `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
         To unset the min cpu platform field pass "automatic"
         as field value.
         
        string min_cpu_platform = 5 [deprecated = true];
        Specified by:
        getMinCpuPlatformBytes in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The bytes for minCpuPlatform.
      • getDiskSizeGb

        public int getDiskSizeGb()
         Size of the disk attached to each node, specified in GB.
         The smallest allowed disk size is 10GB.
        
         If unspecified, the default disk size is 100GB.
         
        int32 disk_size_gb = 6;
        Specified by:
        getDiskSizeGb in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The diskSizeGb.
      • getDiskType

        public String getDiskType()
         Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
         'pd-balanced')
        
         If unspecified, the default disk type is 'pd-standard'
         
        string disk_type = 7;
        Specified by:
        getDiskType in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The diskType.
      • getDiskTypeBytes

        public com.google.protobuf.ByteString getDiskTypeBytes()
         Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
         'pd-balanced')
        
         If unspecified, the default disk type is 'pd-standard'
         
        string disk_type = 7;
        Specified by:
        getDiskTypeBytes in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The bytes for diskType.
      • hasShieldedInstanceConfig

        public boolean hasShieldedInstanceConfig()
         Shielded Instance options.
         
        .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8;
        Specified by:
        hasShieldedInstanceConfig in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        Whether the shieldedInstanceConfig field is set.
      • getBootDiskKmsKey

        public String getBootDiskKmsKey()
        
         The Customer Managed Encryption Key used to encrypt the boot disk attached
         to each node in the node pool. This should be of the form
         projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
         For more information about protecting resources with Cloud KMS Keys please
         see:
         https://cloud.google.com/compute/docs/disks/customer-managed-encryption
         
        string boot_disk_kms_key = 9;
        Specified by:
        getBootDiskKmsKey in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The bootDiskKmsKey.
      • getBootDiskKmsKeyBytes

        public com.google.protobuf.ByteString getBootDiskKmsKeyBytes()
        
         The Customer Managed Encryption Key used to encrypt the boot disk attached
         to each node in the node pool. This should be of the form
         projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
         For more information about protecting resources with Cloud KMS Keys please
         see:
         https://cloud.google.com/compute/docs/disks/customer-managed-encryption
         
        string boot_disk_kms_key = 9;
        Specified by:
        getBootDiskKmsKeyBytes in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The bytes for bootDiskKmsKey.
      • getImageType

        public String getImageType()
         The image type to use for NAP created node. Please see
         https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
         available image types.
         
        string image_type = 10;
        Specified by:
        getImageType in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The imageType.
      • getImageTypeBytes

        public com.google.protobuf.ByteString getImageTypeBytes()
         The image type to use for NAP created node. Please see
         https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
         available image types.
         
        string image_type = 10;
        Specified by:
        getImageTypeBytes in interface AutoprovisioningNodePoolDefaultsOrBuilder
        Returns:
        The bytes for imageType.
      • 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 AutoprovisioningNodePoolDefaults parseFrom​(ByteBuffer data,
                                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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