Google Cloud Tpu V2 Client - Class Tpu (2.1.0)

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

Details of the TPU resource(s) being requested.

Generated from protobuf message google.cloud.tpu.v2.QueuedResource.Tpu

Namespace

Google \ Cloud \ Tpu \ V2 \ QueuedResource

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ node_spec array<Tpu\NodeSpec>

Optional. The TPU node(s) being requested.

getNodeSpec

Optional. The TPU node(s) being requested.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNodeSpec

Optional. The TPU node(s) being requested.

Parameter
Name Description
var array<Tpu\NodeSpec>
Returns
Type Description
$this