Class MachineSpec (3.38.0)

public final class MachineSpec extends GeneratedMessageV3 implements MachineSpecOrBuilder

Specification of a single machine.

Protobuf type google.cloud.aiplatform.v1.MachineSpec

Static Fields

ACCELERATOR_COUNT_FIELD_NUMBER

public static final int ACCELERATOR_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

ACCELERATOR_TYPE_FIELD_NUMBER

public static final int ACCELERATOR_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

TPU_TOPOLOGY_FIELD_NUMBER

public static final int TPU_TOPOLOGY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MachineSpec getDefaultInstance()
Returns
TypeDescription
MachineSpec

getDescriptor()

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

newBuilder()

public static MachineSpec.Builder newBuilder()
Returns
TypeDescription
MachineSpec.Builder

newBuilder(MachineSpec prototype)

public static MachineSpec.Builder newBuilder(MachineSpec prototype)
Parameter
NameDescription
prototypeMachineSpec
Returns
TypeDescription
MachineSpec.Builder

parseDelimitedFrom(InputStream input)

public static MachineSpec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MachineSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MachineSpec parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MachineSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MachineSpec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MachineSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MachineSpec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MachineSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MachineSpec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MachineSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MachineSpec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MachineSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachineSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MachineSpec> parser()
Returns
TypeDescription
Parser<MachineSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<MachineSpec> getParserForType()
Returns
TypeDescription
Parser<MachineSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTpuTopology()

public 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];

Returns
TypeDescription
String

The tpuTopology.

getTpuTopologyBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for tpuTopology.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MachineSpec.Builder newBuilderForType()
Returns
TypeDescription
MachineSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MachineSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MachineSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MachineSpec.Builder toBuilder()
Returns
TypeDescription
MachineSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException