Class MachineSpec (1.7.0)

publicfinalclass MachineSpecextendsGeneratedMessageV3implementsMachineSpecOrBuilder

Specification of a single machine.

Protobuf type google.cloud.vertexai.v1.MachineSpec

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

ACCELERATOR_COUNT_FIELD_NUMBER

publicstaticfinalintACCELERATOR_COUNT_FIELD_NUMBER
Field Value
Type Description
int

ACCELERATOR_TYPE_FIELD_NUMBER

publicstaticfinalintACCELERATOR_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_TYPE_FIELD_NUMBER

publicstaticfinalintMACHINE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

TPU_TOPOLOGY_FIELD_NUMBER

publicstaticfinalintTPU_TOPOLOGY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticMachineSpecgetDefaultInstance()
Returns
Type Description
MachineSpec

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticMachineSpec.BuildernewBuilder()
Returns
Type Description
MachineSpec.Builder

newBuilder(MachineSpec prototype)

publicstaticMachineSpec.BuildernewBuilder(MachineSpecprototype)
Parameter
Name Description
prototype MachineSpec
Returns
Type Description
MachineSpec.Builder

parseDelimitedFrom(InputStream input)

publicstaticMachineSpecparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
MachineSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticMachineSpecparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineSpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticMachineSpecparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
MachineSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticMachineSpecparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticMachineSpecparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
MachineSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticMachineSpecparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticMachineSpecparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MachineSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticMachineSpecparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticMachineSpecparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
MachineSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticMachineSpecparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineSpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticMachineSpecparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MachineSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticMachineSpecparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineSpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<MachineSpec>parser()
Returns
Type Description
Parser<MachineSpec>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAcceleratorCount()

publicintgetAcceleratorCount()

The number of accelerators to attach to the machine.

int32 accelerator_count = 3;

Returns
Type Description
int

The acceleratorCount.

getAcceleratorType()

publicAcceleratorTypegetAcceleratorType()

Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.

.google.cloud.vertexai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AcceleratorType

The acceleratorType.

getAcceleratorTypeValue()

publicintgetAcceleratorTypeValue()

Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.

.google.cloud.vertexai.v1.AcceleratorType accelerator_type = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for acceleratorType.

getDefaultInstanceForType()

publicMachineSpecgetDefaultInstanceForType()
Returns
Type Description
MachineSpec

getMachineType()

publicStringgetMachineType()

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()

publicByteStringgetMachineTypeBytes()

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.

getParserForType()

publicParser<MachineSpec>getParserForType()
Returns
Type Description
Parser<MachineSpec>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getTpuTopology()

publicStringgetTpuTopology()

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
Type Description
String

The tpuTopology.

getTpuTopologyBytes()

publicByteStringgetTpuTopologyBytes()

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
Type Description
ByteString

The bytes for tpuTopology.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicMachineSpec.BuildernewBuilderForType()
Returns
Type Description
MachineSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedMachineSpec.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MachineSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicMachineSpec.BuildertoBuilder()
Returns
Type Description
MachineSpec.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.