public final class AutoprovisioningNodePoolDefaults extends GeneratedMessageV3 implements AutoprovisioningNodePoolDefaultsOrBuilder
AutoprovisioningNodePoolDefaults contains defaults for a node pool created
by NAP.
Protobuf type google.container.v1beta1.AutoprovisioningNodePoolDefaults
Static Fields
BOOT_DISK_KMS_KEY_FIELD_NUMBER
public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER
Field Value
DISK_SIZE_GB_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER
Field Value
DISK_TYPE_FIELD_NUMBER
public static final int DISK_TYPE_FIELD_NUMBER
Field Value
IMAGE_TYPE_FIELD_NUMBER
public static final int IMAGE_TYPE_FIELD_NUMBER
Field Value
MANAGEMENT_FIELD_NUMBER
public static final int MANAGEMENT_FIELD_NUMBER
Field Value
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
Field Value
OAUTH_SCOPES_FIELD_NUMBER
public static final int OAUTH_SCOPES_FIELD_NUMBER
Field Value
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
Field Value
UPGRADE_SETTINGS_FIELD_NUMBER
public static final int UPGRADE_SETTINGS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AutoprovisioningNodePoolDefaults getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AutoprovisioningNodePoolDefaults.Builder newBuilder()
Returns
newBuilder(AutoprovisioningNodePoolDefaults prototype)
public static AutoprovisioningNodePoolDefaults.Builder newBuilder(AutoprovisioningNodePoolDefaults prototype)
Parameter
Returns
public static AutoprovisioningNodePoolDefaults parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AutoprovisioningNodePoolDefaults parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AutoprovisioningNodePoolDefaults parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AutoprovisioningNodePoolDefaults parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AutoprovisioningNodePoolDefaults parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AutoprovisioningNodePoolDefaults parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutoprovisioningNodePoolDefaults parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AutoprovisioningNodePoolDefaults parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutoprovisioningNodePoolDefaults parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AutoprovisioningNodePoolDefaults parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AutoprovisioningNodePoolDefaults parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AutoprovisioningNodePoolDefaults parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AutoprovisioningNodePoolDefaults> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Type | Description |
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
Type | Description |
ByteString | The bytes for bootDiskKmsKey.
|
getDefaultInstanceForType()
public AutoprovisioningNodePoolDefaults getDefaultInstanceForType()
Returns
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
Type | Description |
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
Type | Description |
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
getImageType()
public String getImageType()
Returns
Type | Description |
String | The imageType.
|
getImageTypeBytes()
public ByteString getImageTypeBytes()
Returns
getManagement()
public NodeManagement getManagement()
NodeManagement configuration for this NodePool.
.google.container.v1beta1.NodeManagement management = 4;
Returns
getManagementOrBuilder()
public NodeManagementOrBuilder getManagementOrBuilder()
NodeManagement configuration for this NodePool.
.google.container.v1beta1.NodeManagement management = 4;
Returns
public String getMinCpuPlatform()
Deprecated. google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
deprecated. See google/container/v1beta1/cluster_service.proto;l=3857
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
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
Type | Description |
String | The minCpuPlatform.
|
public ByteString getMinCpuPlatformBytes()
Deprecated. google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is
deprecated. See google/container/v1beta1/cluster_service.proto;l=3857
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
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
Type | Description |
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
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
Type | Description |
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
getParserForType()
public Parser<AutoprovisioningNodePoolDefaults> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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
Type | Description |
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
Type | Description |
ByteString | The bytes for serviceAccount.
|
getShieldedInstanceConfig()
public ShieldedInstanceConfig getShieldedInstanceConfig()
Shielded Instance options.
.google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8;
Returns
getShieldedInstanceConfigOrBuilder()
public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
Shielded Instance options.
.google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpgradeSettings()
public NodePool.UpgradeSettings getUpgradeSettings()
Upgrade settings control disruption and speed of the upgrade.
.google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3;
Returns
getUpgradeSettingsOrBuilder()
public NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder()
Upgrade settings control disruption and speed of the upgrade.
.google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3;
Returns
hasManagement()
public boolean hasManagement()
NodeManagement configuration for this NodePool.
.google.container.v1beta1.NodeManagement management = 4;
Returns
Type | Description |
boolean | Whether the management field is set.
|
hasShieldedInstanceConfig()
public boolean hasShieldedInstanceConfig()
Shielded Instance options.
.google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8;
Returns
Type | Description |
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
Type | Description |
boolean | Whether the upgradeSettings field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AutoprovisioningNodePoolDefaults.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AutoprovisioningNodePoolDefaults.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AutoprovisioningNodePoolDefaults.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions