Class MachineSpec.Builder (2.8.9)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MachineSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MachineSpec.Builder
Overrides

build()

public MachineSpec build()
Returns
TypeDescription
MachineSpec

buildPartial()

public MachineSpec buildPartial()
Returns
TypeDescription
MachineSpec

clear()

public MachineSpec.Builder clear()
Returns
TypeDescription
MachineSpec.Builder
Overrides

clearAcceleratorCount()

public MachineSpec.Builder clearAcceleratorCount()

The number of accelerators to attach to the machine.

int32 accelerator_count = 3;

Returns
TypeDescription
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
TypeDescription
MachineSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MachineSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MachineSpec.Builder
Overrides

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
TypeDescription
MachineSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MachineSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MachineSpec.Builder
Overrides

clone()

public MachineSpec.Builder clone()
Returns
TypeDescription
MachineSpec.Builder
Overrides

getAcceleratorCount()

public int getAcceleratorCount()

The number of accelerators to attach to the machine.

int32 accelerator_count = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for acceleratorType.

getDefaultInstanceForType()

public MachineSpec getDefaultInstanceForType()
Returns
TypeDescription
MachineSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for machineType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MachineSpec other)

public MachineSpec.Builder mergeFrom(MachineSpec other)
Parameter
NameDescription
otherMachineSpec
Returns
TypeDescription
MachineSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MachineSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachineSpec.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MachineSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MachineSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MachineSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MachineSpec.Builder
Overrides

setAcceleratorCount(int value)

public MachineSpec.Builder setAcceleratorCount(int value)

The number of accelerators to attach to the machine.

int32 accelerator_count = 3;

Parameter
NameDescription
valueint

The acceleratorCount to set.

Returns
TypeDescription
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
NameDescription
valueAcceleratorType

The acceleratorType to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for acceleratorType to set.

Returns
TypeDescription
MachineSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MachineSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MachineSpec.Builder
Overrides

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
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MachineSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MachineSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MachineSpec.Builder
Overrides