Package com.google.cloud.dataproc.v1
Interface GkeNodePoolConfig.GkeNodeConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GkeNodePoolConfig.GkeNodeConfig
,GkeNodePoolConfig.GkeNodeConfig.Builder
- Enclosing class:
- GkeNodePoolConfig
public static interface GkeNodePoolConfig.GkeNodeConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GkeNodePoolConfig.GkeNodePoolAcceleratorConfig
getAccelerators(int index)
Optional.int
getAcceleratorsCount()
Optional.List<GkeNodePoolConfig.GkeNodePoolAcceleratorConfig>
getAcceleratorsList()
Optional.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder
getAcceleratorsOrBuilder(int index)
Optional.List<? extends GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder>
getAcceleratorsOrBuilderList()
Optional.String
getBootDiskKmsKey()
Optional.com.google.protobuf.ByteString
getBootDiskKmsKeyBytes()
Optional.int
getLocalSsdCount()
Optional.String
getMachineType()
Optional.com.google.protobuf.ByteString
getMachineTypeBytes()
Optional.String
getMinCpuPlatform()
Optional.com.google.protobuf.ByteString
getMinCpuPlatformBytes()
Optional.boolean
getPreemptible()
Optional.boolean
getSpot()
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getMachineType
String getMachineType()
Optional. The name of a Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types).
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The machineType.
-
getMachineTypeBytes
com.google.protobuf.ByteString getMachineTypeBytes()
Optional. The name of a Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types).
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The bytes for machineType.
-
getLocalSsdCount
int getLocalSsdCount()
Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see [Adding Local SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The localSsdCount.
-
getPreemptible
boolean getPreemptible()
Optional. Whether the nodes are created as legacy [preemptible VM instances] (https://cloud.google.com/compute/docs/instances/preemptible). Also see [Spot][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.spot] VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the `CONTROLLER` [role] (/dataproc/docs/reference/rest/v1/projects.regions.clusters#role) or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The preemptible.
-
getAcceleratorsList
List<GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> getAcceleratorsList()
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getAccelerators
GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators(int index)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getAcceleratorsCount
int getAcceleratorsCount()
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getAcceleratorsOrBuilderList
List<? extends GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getAcceleratorsOrBuilder
GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getMinCpuPlatform
String getMinCpuPlatform()
Optional. [Minimum CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
com.google.protobuf.ByteString getMinCpuPlatformBytes()
Optional. [Minimum CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The bytes for minCpuPlatform.
-
getBootDiskKmsKey
String getBootDiskKmsKey()
Optional. The [Customer Managed Encryption Key (CMEK)] (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The bootDiskKmsKey.
-
getBootDiskKmsKeyBytes
com.google.protobuf.ByteString getBootDiskKmsKeyBytes()
Optional. The [Customer Managed Encryption Key (CMEK)] (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The bytes for bootDiskKmsKey.
-
getSpot
boolean getSpot()
Optional. Whether the nodes are created as [Spot VM instances] (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to legacy [preemptible VMs][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.preemptible]. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the `CONTROLLER` [role](/dataproc/docs/reference/rest/v1/projects.regions.clusters#role) or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
bool spot = 32 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The spot.
-
-