Interface MachineSpecOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MachineSpec,MachineSpec.Builder
@Generated
public interface MachineSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintThe number of accelerators to attach to the machine.Immutable.intImmutable.Optional.com.google.protobuf.ByteStringOptional.Immutable.com.google.protobuf.ByteStringImmutable.Optional.com.google.protobuf.ByteStringOptional.intOptional.Optional.Optional.Immutable.com.google.protobuf.ByteStringImmutable.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getMachineType
String getMachineType()Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The machineType.
-
getMachineTypeBytes
com.google.protobuf.ByteString getMachineTypeBytes()Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required.
string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for machineType.
-
getAcceleratorTypeValue
int getAcceleratorTypeValue()Immutable. The type of accelerator(s) that may be attached to the machine as per [accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count].
.google.cloud.aiplatform.v1beta1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The enum numeric value on the wire for acceleratorType.
-
getAcceleratorType
AcceleratorType getAcceleratorType()Immutable. The type of accelerator(s) that may be attached to the machine as per [accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count].
.google.cloud.aiplatform.v1beta1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The acceleratorType.
-
getAcceleratorCount
int getAcceleratorCount()The number of accelerators to attach to the machine.
int32 accelerator_count = 3;- Returns:
- The acceleratorCount.
-
getGpuPartitionSize
String getGpuPartitionSize()Optional. Immutable. The Nvidia GPU partition size. When specified, the requested accelerators will be partitioned into smaller GPU partitions. For example, if the request is for 8 units of NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will create 8 * 7 = 56 partitioned MIG instances. The partition size must be a value supported by the requested accelerator. Refer to [Nvidia GPU Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) for the available partition sizes. If set, the accelerator_count should be set to 1.
string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Returns:
- The gpuPartitionSize.
-
getGpuPartitionSizeBytes
com.google.protobuf.ByteString getGpuPartitionSizeBytes()Optional. Immutable. The Nvidia GPU partition size. When specified, the requested accelerators will be partitioned into smaller GPU partitions. For example, if the request is for 8 units of NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will create 8 * 7 = 56 partitioned MIG instances. The partition size must be a value supported by the requested accelerator. Refer to [Nvidia GPU Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) for the available partition sizes. If set, the accelerator_count should be set to 1.
string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for gpuPartitionSize.
-
getTpuTopology
String getTpuTopology()Immutable. The topology of the TPUs. Corresponds to the TPU topologies available from GKE. (Example: tpu_topology: "2x2x1").
string tpu_topology = 4 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The tpuTopology.
-
getTpuTopologyBytes
com.google.protobuf.ByteString getTpuTopologyBytes()Immutable. The topology of the TPUs. Corresponds to the TPU topologies available from GKE. (Example: tpu_topology: "2x2x1").
string tpu_topology = 4 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for tpuTopology.
-
getMultihostGpuNodeCount
int getMultihostGpuNodeCount()Optional. Immutable. The number of nodes per replica for multihost GPU deployments.
int32 multihost_gpu_node_count = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Returns:
- The multihostGpuNodeCount.
-
hasReservationAffinity
boolean hasReservationAffinity()Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
.google.cloud.aiplatform.v1beta1.ReservationAffinity reservation_affinity = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the reservationAffinity field is set.
-
getReservationAffinity
ReservationAffinity getReservationAffinity()Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
.google.cloud.aiplatform.v1beta1.ReservationAffinity reservation_affinity = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Returns:
- The reservationAffinity.
-
getReservationAffinityOrBuilder
ReservationAffinityOrBuilder getReservationAffinityOrBuilder()Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
.google.cloud.aiplatform.v1beta1.ReservationAffinity reservation_affinity = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; -
getMinGpuDriverVersion
String getMinGpuDriverVersion()Optional. Immutable. The minimum GPU driver version that this machine requires. For example, "535.104.06". If not specified, the default GPU driver version will be used by the underlying infrastructure.
string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- The minGpuDriverVersion.
-
getMinGpuDriverVersionBytes
com.google.protobuf.ByteString getMinGpuDriverVersionBytes()Optional. Immutable. The minimum GPU driver version that this machine requires. For example, "535.104.06". If not specified, the default GPU driver version will be used by the underlying infrastructure.
string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for minGpuDriverVersion.
-