public interface MachineSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
int |
getAcceleratorCount()
The number of accelerators to attach to the machine.
|
AcceleratorType |
getAcceleratorType()
Immutable.
|
int |
getAcceleratorTypeValue()
Immutable.
|
String |
getMachineType()
Immutable.
|
com.google.protobuf.ByteString |
getMachineTypeBytes()
Immutable.
|
ReservationAffinity |
getReservationAffinity()
Optional.
|
ReservationAffinityOrBuilder |
getReservationAffinityOrBuilder()
Optional.
|
String |
getTpuTopology()
Immutable.
|
com.google.protobuf.ByteString |
getTpuTopologyBytes()
Immutable.
|
boolean |
hasReservationAffinity()
Optional.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString 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.v1.DeployedModel] this field is optional, and the default value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];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.v1.DeployedModel] this field is optional, and the default value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required.
string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];int getAcceleratorTypeValue()
Immutable. The type of accelerator(s) that may be attached to the machine as per [accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count].
.google.cloud.vertexai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
AcceleratorType getAcceleratorType()
Immutable. The type of accelerator(s) that may be attached to the machine as per [accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count].
.google.cloud.vertexai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
int getAcceleratorCount()
The number of accelerators to attach to the machine.
int32 accelerator_count = 3;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];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];boolean hasReservationAffinity()
Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
.google.cloud.vertexai.v1.ReservationAffinity reservation_affinity = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
ReservationAffinity getReservationAffinity()
Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
.google.cloud.vertexai.v1.ReservationAffinity reservation_affinity = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
ReservationAffinityOrBuilder getReservationAffinityOrBuilder()
Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
.google.cloud.vertexai.v1.ReservationAffinity reservation_affinity = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
Copyright © 2025 Google LLC. All rights reserved.