Package com.google.cloud.visionai.v1
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.Immutable.com.google.protobuf.ByteStringImmutable.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][] this field is optional, and the default value is `n1-standard-2`. For [BatchPredictionJob][] or as part of [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][] this field is optional, and the default value is `n1-standard-2`. For [BatchPredictionJob][] or as part of [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.visionai.v1.MachineSpec.accelerator_count].
.google.cloud.visionai.v1.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.visionai.v1.MachineSpec.accelerator_count].
.google.cloud.visionai.v1.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.
-