Google Cloud Tpu V1 Client - Class AcceleratorType (1.2.0)

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

A accelerator type that a Node can be configured with.

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

Namespace

Google \ Cloud \ Tpu \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name.

↳ type string

the accelerator type.

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