Google Cloud Tpu V2 Client - Class AcceleratorType (1.3.2)

Reference documentation and code samples for the Google Cloud Tpu V2 Client class AcceleratorType.

A accelerator type that a Node can be configured with.

Generated from protobuf message google.cloud.tpu.v2.AcceleratorType

Namespace

Google \ Cloud \ Tpu \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name.

↳ type string

The accelerator type.

↳ accelerator_configs array<Google\Cloud\Tpu\V2\AcceleratorConfig>

The accelerator config.

getName

The resource name.

Returns
TypeDescription
string

setName

The resource name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

The accelerator type.

Returns
TypeDescription
string

setType

The accelerator type.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAcceleratorConfigs

The accelerator config.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAcceleratorConfigs

The accelerator config.

Parameter
NameDescription
var array<Google\Cloud\Tpu\V2\AcceleratorConfig>
Returns
TypeDescription
$this