public static final class MachineSpec.Builder extends GeneratedMessage.Builder<MachineSpec.Builder> implements MachineSpecOrBuilderSpecification of a single machine.
Protobuf type google.cloud.visionai.v1.MachineSpec
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MachineSpec.BuilderImplements
MachineSpecOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public MachineSpec build()| Returns | |
|---|---|
| Type | Description |
MachineSpec |
|
buildPartial()
public MachineSpec buildPartial()| Returns | |
|---|---|
| Type | Description |
MachineSpec |
|
clear()
public MachineSpec.Builder clear()| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
|
clearAcceleratorCount()
public MachineSpec.Builder clearAcceleratorCount()The number of accelerators to attach to the machine.
int32 accelerator_count = 3;
| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
This builder for chaining. |
clearAcceleratorType()
public MachineSpec.Builder clearAcceleratorType()Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.
.google.cloud.visionai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
This builder for chaining. |
clearMachineType()
public MachineSpec.Builder clearMachineType()Immutable. The type of the machine.
See the list of machine types supported for prediction
See the list of machine types supported for custom training.
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 | |
|---|---|
| Type | Description |
MachineSpec.Builder |
This builder for chaining. |
getAcceleratorCount()
public int getAcceleratorCount()The number of accelerators to attach to the machine.
int32 accelerator_count = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The acceleratorCount. |
getAcceleratorType()
public AcceleratorType getAcceleratorType()Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.
.google.cloud.visionai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
AcceleratorType |
The acceleratorType. |
getAcceleratorTypeValue()
public int getAcceleratorTypeValue()Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.
.google.cloud.visionai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for acceleratorType. |
getDefaultInstanceForType()
public MachineSpec getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MachineSpec |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMachineType()
public String getMachineType()Immutable. The type of the machine.
See the list of machine types supported for prediction
See the list of machine types supported for custom training.
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 | |
|---|---|
| Type | Description |
String |
The machineType. |
getMachineTypeBytes()
public ByteString getMachineTypeBytes()Immutable. The type of the machine.
See the list of machine types supported for prediction
See the list of machine types supported for custom training.
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for machineType. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(MachineSpec other)
public MachineSpec.Builder mergeFrom(MachineSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
MachineSpec |
| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MachineSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MachineSpec.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
|
setAcceleratorCount(int value)
public MachineSpec.Builder setAcceleratorCount(int value)The number of accelerators to attach to the machine.
int32 accelerator_count = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe acceleratorCount to set. |
| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
This builder for chaining. |
setAcceleratorType(AcceleratorType value)
public MachineSpec.Builder setAcceleratorType(AcceleratorType value)Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.
.google.cloud.visionai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
AcceleratorTypeThe acceleratorType to set. |
| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
This builder for chaining. |
setAcceleratorTypeValue(int value)
public MachineSpec.Builder setAcceleratorTypeValue(int value)Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.
.google.cloud.visionai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for acceleratorType to set. |
| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
This builder for chaining. |
setMachineType(String value)
public MachineSpec.Builder setMachineType(String value)Immutable. The type of the machine.
See the list of machine types supported for prediction
See the list of machine types supported for custom training.
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineType to set. |
| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
This builder for chaining. |
setMachineTypeBytes(ByteString value)
public MachineSpec.Builder setMachineTypeBytes(ByteString value)Immutable. The type of the machine.
See the list of machine types supported for prediction
See the list of machine types supported for custom training.
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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for machineType to set. |
| Returns | |
|---|---|
| Type | Description |
MachineSpec.Builder |
This builder for chaining. |