- 3.54.0 (latest)
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
public static final class MachineSpec.Builder extends GeneratedMessageV3.Builder<MachineSpec.Builder> implements MachineSpecOrBuilder
Specification of a single machine.
Protobuf type google.cloud.aiplatform.v1.MachineSpec
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MachineSpec.BuilderImplements
MachineSpecOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MachineSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
MachineSpec.Builder |
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.aiplatform.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
MachineSpec.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public MachineSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
MachineSpec.Builder |
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public MachineSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
MachineSpec.Builder |
clone()
public MachineSpec.Builder clone()
Returns | |
---|---|
Type | Description |
MachineSpec.Builder |
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.aiplatform.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.aiplatform.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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MachineSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
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 | int The 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.aiplatform.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value | AcceleratorType The 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.aiplatform.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for acceleratorType to set. |
Returns | |
---|---|
Type | Description |
MachineSpec.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public MachineSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
MachineSpec.Builder |
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 | String The 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 | ByteString The bytes for machineType to set. |
Returns | |
---|---|
Type | Description |
MachineSpec.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MachineSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
MachineSpec.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final MachineSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MachineSpec.Builder |