Class AutoprovisioningNodePoolDefaults

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.container.v1.AutoprovisioningNodePoolDefaults
All Implemented Interfaces:
AutoprovisioningNodePoolDefaultsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AutoprovisioningNodePoolDefaults extends com.google.protobuf.GeneratedMessage implements AutoprovisioningNodePoolDefaultsOrBuilder
 AutoprovisioningNodePoolDefaults contains defaults for a node pool created
 by NAP.
 
Protobuf type google.container.v1.AutoprovisioningNodePoolDefaults
See Also:
  • Field Details

    • OAUTH_SCOPES_FIELD_NUMBER

      public static final int OAUTH_SCOPES_FIELD_NUMBER
      See Also:
    • SERVICE_ACCOUNT_FIELD_NUMBER

      public static final int SERVICE_ACCOUNT_FIELD_NUMBER
      See Also:
    • UPGRADE_SETTINGS_FIELD_NUMBER

      public static final int UPGRADE_SETTINGS_FIELD_NUMBER
      See Also:
    • MANAGEMENT_FIELD_NUMBER

      public static final int MANAGEMENT_FIELD_NUMBER
      See Also:
    • MIN_CPU_PLATFORM_FIELD_NUMBER

      public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
      See Also:
    • DISK_SIZE_GB_FIELD_NUMBER

      public static final int DISK_SIZE_GB_FIELD_NUMBER
      See Also:
    • DISK_TYPE_FIELD_NUMBER

      public static final int DISK_TYPE_FIELD_NUMBER
      See Also:
    • SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER

      public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
      See Also:
    • BOOT_DISK_KMS_KEY_FIELD_NUMBER

      public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER
      See Also:
    • IMAGE_TYPE_FIELD_NUMBER

      public static final int IMAGE_TYPE_FIELD_NUMBER
      See Also:
    • INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER

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

      public com.google.protobuf.ProtocolStringList getOauthScopesList()
       Scopes that are used by NAP when creating node pools.
       
      repeated string oauth_scopes = 1;
      Specified by:
      getOauthScopesList in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      A list containing the oauthScopes.
    • getOauthScopesCount

      public int getOauthScopesCount()
       Scopes that are used by NAP when creating node pools.
       
      repeated string oauth_scopes = 1;
      Specified by:
      getOauthScopesCount in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      The count of oauthScopes.
    • getOauthScopes

      public String getOauthScopes(int index)
       Scopes that are used by NAP when creating node pools.
       
      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)
       Scopes that are used by NAP when creating node pools.
       
      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.
       
      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.
       
      string service_account = 2;
      Specified by:
      getServiceAccountBytes in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      The bytes for serviceAccount.
    • hasUpgradeSettings

      public boolean hasUpgradeSettings()
       Specifies the upgrade settings for NAP created node pools
       
      .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;
      Specified by:
      hasUpgradeSettings in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      Whether the upgradeSettings field is set.
    • getUpgradeSettings

      public NodePool.UpgradeSettings getUpgradeSettings()
       Specifies the upgrade settings for NAP created node pools
       
      .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;
      Specified by:
      getUpgradeSettings in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      The upgradeSettings.
    • getUpgradeSettingsOrBuilder

      public NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder()
       Specifies the upgrade settings for NAP created node pools
       
      .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;
      Specified by:
      getUpgradeSettingsOrBuilder in interface AutoprovisioningNodePoolDefaultsOrBuilder
    • hasManagement

      public boolean hasManagement()
       Specifies the node management options for NAP created node-pools.
       
      .google.container.v1.NodeManagement management = 4;
      Specified by:
      hasManagement in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      Whether the management field is set.
    • getManagement

      public NodeManagement getManagement()
       Specifies the node management options for NAP created node-pools.
       
      .google.container.v1.NodeManagement management = 4;
      Specified by:
      getManagement in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      The management.
    • getManagementOrBuilder

      public NodeManagementOrBuilder getManagementOrBuilder()
       Specifies the node management options for NAP created node-pools.
       
      .google.container.v1.NodeManagement management = 4;
      Specified by:
      getManagementOrBuilder in interface AutoprovisioningNodePoolDefaultsOrBuilder
    • getMinCpuPlatform

      @Deprecated public String getMinCpuPlatform()
      Deprecated.
      google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. See google/container/v1/cluster_service.proto;l=5852
       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.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. See google/container/v1/cluster_service.proto;l=5852
       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.v1.ShieldedInstanceConfig shielded_instance_config = 8;
      Specified by:
      hasShieldedInstanceConfig in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      Whether the shieldedInstanceConfig field is set.
    • getShieldedInstanceConfig

      public ShieldedInstanceConfig getShieldedInstanceConfig()
       Shielded Instance options.
       
      .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;
      Specified by:
      getShieldedInstanceConfig in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      The shieldedInstanceConfig.
    • getShieldedInstanceConfigOrBuilder

      public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
       Shielded Instance options.
       
      .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;
      Specified by:
      getShieldedInstanceConfigOrBuilder in interface AutoprovisioningNodePoolDefaultsOrBuilder
    • 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.
    • hasInsecureKubeletReadonlyPortEnabled

      public boolean hasInsecureKubeletReadonlyPortEnabled()
       DEPRECATED. Use NodePoolAutoConfig.NodeKubeletConfig instead.
       
      optional bool insecure_kubelet_readonly_port_enabled = 13;
      Specified by:
      hasInsecureKubeletReadonlyPortEnabled in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      Whether the insecureKubeletReadonlyPortEnabled field is set.
    • getInsecureKubeletReadonlyPortEnabled

      public boolean getInsecureKubeletReadonlyPortEnabled()
       DEPRECATED. Use NodePoolAutoConfig.NodeKubeletConfig instead.
       
      optional bool insecure_kubelet_readonly_port_enabled = 13;
      Specified by:
      getInsecureKubeletReadonlyPortEnabled in interface AutoprovisioningNodePoolDefaultsOrBuilder
      Returns:
      The insecureKubeletReadonlyPortEnabled.
    • 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 AutoprovisioningNodePoolDefaults parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • 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
    • parseFrom

      public static AutoprovisioningNodePoolDefaults parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AutoprovisioningNodePoolDefaults parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AutoprovisioningNodePoolDefaults parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AutoprovisioningNodePoolDefaults parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AutoprovisioningNodePoolDefaults parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static AutoprovisioningNodePoolDefaults.Builder newBuilder()
    • newBuilder

    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AutoprovisioningNodePoolDefaults getDefaultInstance()
    • parser

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

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