Class AutoprovisioningNodePoolDefaults.Builder (2.8.0)

public static final class AutoprovisioningNodePoolDefaults.Builder extends GeneratedMessageV3.Builder<AutoprovisioningNodePoolDefaults.Builder> implements AutoprovisioningNodePoolDefaultsOrBuilder

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.

Protobuf type google.container.v1beta1.AutoprovisioningNodePoolDefaults

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllOauthScopes(Iterable<String> values)

public AutoprovisioningNodePoolDefaults.Builder addAllOauthScopes(Iterable<String> values)

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:

repeated string oauth_scopes = 1;

Parameter
NameDescription
valuesIterable<String>

The oauthScopes to add.

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

addOauthScopes(String value)

public AutoprovisioningNodePoolDefaults.Builder addOauthScopes(String value)

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:

repeated string oauth_scopes = 1;

Parameter
NameDescription
valueString

The oauthScopes to add.

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

addOauthScopesBytes(ByteString value)

public AutoprovisioningNodePoolDefaults.Builder addOauthScopesBytes(ByteString value)

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:

repeated string oauth_scopes = 1;

Parameter
NameDescription
valueByteString

The bytes of the oauthScopes to add.

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutoprovisioningNodePoolDefaults.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder
Overrides

build()

public AutoprovisioningNodePoolDefaults build()
Returns
TypeDescription
AutoprovisioningNodePoolDefaults

buildPartial()

public AutoprovisioningNodePoolDefaults buildPartial()
Returns
TypeDescription
AutoprovisioningNodePoolDefaults

clear()

public AutoprovisioningNodePoolDefaults.Builder clear()
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder
Overrides

clearBootDiskKmsKey()

public AutoprovisioningNodePoolDefaults.Builder clearBootDiskKmsKey()

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;

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

clearDiskSizeGb()

public AutoprovisioningNodePoolDefaults.Builder clearDiskSizeGb()

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;

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

clearDiskType()

public AutoprovisioningNodePoolDefaults.Builder clearDiskType()

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;

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AutoprovisioningNodePoolDefaults.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder
Overrides

clearImageType()

public AutoprovisioningNodePoolDefaults.Builder clearImageType()

The image type to use for NAP created node.

string image_type = 10;

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

clearManagement()

public AutoprovisioningNodePoolDefaults.Builder clearManagement()

NodeManagement configuration for this NodePool.

.google.container.v1beta1.NodeManagement management = 4;

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

clearMinCpuPlatform() (deprecated)

public AutoprovisioningNodePoolDefaults.Builder clearMinCpuPlatform()

Deprecated. google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. See google/container/v1beta1/cluster_service.proto;l=3884

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. This field is deprecated, min_cpu_platform should be specified using https://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];

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

clearOauthScopes()

public AutoprovisioningNodePoolDefaults.Builder clearOauthScopes()

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:

repeated string oauth_scopes = 1;

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AutoprovisioningNodePoolDefaults.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder
Overrides

clearServiceAccount()

public AutoprovisioningNodePoolDefaults.Builder clearServiceAccount()

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;

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

clearShieldedInstanceConfig()

public AutoprovisioningNodePoolDefaults.Builder clearShieldedInstanceConfig()

Shielded Instance options.

.google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8;

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

clearUpgradeSettings()

public AutoprovisioningNodePoolDefaults.Builder clearUpgradeSettings()

Upgrade settings control disruption and speed of the upgrade.

.google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3;

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

clone()

public AutoprovisioningNodePoolDefaults.Builder clone()
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder
Overrides

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;

Returns
TypeDescription
String

The bootDiskKmsKey.

getBootDiskKmsKeyBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for bootDiskKmsKey.

getDefaultInstanceForType()

public AutoprovisioningNodePoolDefaults getDefaultInstanceForType()
Returns
TypeDescription
AutoprovisioningNodePoolDefaults

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
String

The diskType.

getDiskTypeBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for diskType.

getImageType()

public String getImageType()

The image type to use for NAP created node.

string image_type = 10;

Returns
TypeDescription
String

The imageType.

getImageTypeBytes()

public ByteString getImageTypeBytes()

The image type to use for NAP created node.

string image_type = 10;

Returns
TypeDescription
ByteString

The bytes for imageType.

getManagement()

public NodeManagement getManagement()

NodeManagement configuration for this NodePool.

.google.container.v1beta1.NodeManagement management = 4;

Returns
TypeDescription
NodeManagement

The management.

getManagementBuilder()

public NodeManagement.Builder getManagementBuilder()

NodeManagement configuration for this NodePool.

.google.container.v1beta1.NodeManagement management = 4;

Returns
TypeDescription
NodeManagement.Builder

getManagementOrBuilder()

public NodeManagementOrBuilder getManagementOrBuilder()

NodeManagement configuration for this NodePool.

.google.container.v1beta1.NodeManagement management = 4;

Returns
TypeDescription
NodeManagementOrBuilder

getMinCpuPlatform() (deprecated)

public String getMinCpuPlatform()

Deprecated. google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. See google/container/v1beta1/cluster_service.proto;l=3884

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. This field is deprecated, min_cpu_platform should be specified using https://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];

Returns
TypeDescription
String

The minCpuPlatform.

getMinCpuPlatformBytes() (deprecated)

public ByteString getMinCpuPlatformBytes()

Deprecated. google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. See google/container/v1beta1/cluster_service.proto;l=3884

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. This field is deprecated, min_cpu_platform should be specified using https://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];

Returns
TypeDescription
ByteString

The bytes for minCpuPlatform.

getOauthScopes(int index)

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:

repeated string oauth_scopes = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The oauthScopes at the given index.

getOauthScopesBytes(int index)

public 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:

repeated string oauth_scopes = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the oauthScopes at the given index.

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:

repeated string oauth_scopes = 1;

Returns
TypeDescription
int

The count of oauthScopes.

getOauthScopesList()

public 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:

repeated string oauth_scopes = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the oauthScopes.

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;

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getShieldedInstanceConfig()

public ShieldedInstanceConfig getShieldedInstanceConfig()

Shielded Instance options.

.google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8;

Returns
TypeDescription
ShieldedInstanceConfig

The shieldedInstanceConfig.

getShieldedInstanceConfigBuilder()

public ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder()

Shielded Instance options.

.google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8;

Returns
TypeDescription
ShieldedInstanceConfig.Builder

getShieldedInstanceConfigOrBuilder()

public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()

Shielded Instance options.

.google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8;

Returns
TypeDescription
ShieldedInstanceConfigOrBuilder

getUpgradeSettings()

public NodePool.UpgradeSettings getUpgradeSettings()

Upgrade settings control disruption and speed of the upgrade.

.google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3;

Returns
TypeDescription
NodePool.UpgradeSettings

The upgradeSettings.

getUpgradeSettingsBuilder()

public NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder()

Upgrade settings control disruption and speed of the upgrade.

.google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3;

Returns
TypeDescription
NodePool.UpgradeSettings.Builder

getUpgradeSettingsOrBuilder()

public NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder()

Upgrade settings control disruption and speed of the upgrade.

.google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3;

Returns
TypeDescription
NodePool.UpgradeSettingsOrBuilder

hasManagement()

public boolean hasManagement()

NodeManagement configuration for this NodePool.

.google.container.v1beta1.NodeManagement management = 4;

Returns
TypeDescription
boolean

Whether the management field is set.

hasShieldedInstanceConfig()

public boolean hasShieldedInstanceConfig()

Shielded Instance options.

.google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8;

Returns
TypeDescription
boolean

Whether the shieldedInstanceConfig field is set.

hasUpgradeSettings()

public boolean hasUpgradeSettings()

Upgrade settings control disruption and speed of the upgrade.

.google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3;

Returns
TypeDescription
boolean

Whether the upgradeSettings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutoprovisioningNodePoolDefaults other)

public AutoprovisioningNodePoolDefaults.Builder mergeFrom(AutoprovisioningNodePoolDefaults other)
Parameter
NameDescription
otherAutoprovisioningNodePoolDefaults
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutoprovisioningNodePoolDefaults.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AutoprovisioningNodePoolDefaults.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder
Overrides

mergeManagement(NodeManagement value)

public AutoprovisioningNodePoolDefaults.Builder mergeManagement(NodeManagement value)

NodeManagement configuration for this NodePool.

.google.container.v1beta1.NodeManagement management = 4;

Parameter
NameDescription
valueNodeManagement
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

mergeShieldedInstanceConfig(ShieldedInstanceConfig value)

public AutoprovisioningNodePoolDefaults.Builder mergeShieldedInstanceConfig(ShieldedInstanceConfig value)

Shielded Instance options.

.google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8;

Parameter
NameDescription
valueShieldedInstanceConfig
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutoprovisioningNodePoolDefaults.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder
Overrides

mergeUpgradeSettings(NodePool.UpgradeSettings value)

public AutoprovisioningNodePoolDefaults.Builder mergeUpgradeSettings(NodePool.UpgradeSettings value)

Upgrade settings control disruption and speed of the upgrade.

.google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3;

Parameter
NameDescription
valueNodePool.UpgradeSettings
Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

setBootDiskKmsKey(String value)

public AutoprovisioningNodePoolDefaults.Builder setBootDiskKmsKey(String value)

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;

Parameter
NameDescription
valueString

The bootDiskKmsKey to set.

Returns
TypeDescription
AutoprovisioningNodePoolDefaults.Builder

This builder for chaining.

setBootDiskKmsKeyBytes(ByteString value)

public AutoprovisioningNodePoolDefaults.Builder setBootDiskKmsKeyBytes(ByteString value)

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;