Reference documentation and code samples for the Google Cloud Tpu V2 Client class NodeSpec.
Details of the TPU node(s) being requested. Users can request either a
single node or multiple nodes.
NodeSpec provides the specification for node(s) to be created.
Generated from protobuf messagegoogle.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec
Namespace
Google \ Cloud \ Tpu \ V2 \ QueuedResource \ Tpu
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent resource name.
↳ node_id
string
Optional. The unqualified resource name. Should follow the^[A-Za-z0-9_.~+%-]+$regex format. This is only specified when requesting a single node. In case of multislice requests, multislice_params must be populated instead.
Optional. The unqualified resource name. Should follow the^[A-Za-z0-9_.~+%-]+$regex format. This is only specified when
requesting a single node. In case of multislice requests,
multislice_params must be populated instead.
Returns
Type
Description
string
hasNodeId
setNodeId
Optional. The unqualified resource name. Should follow the^[A-Za-z0-9_.~+%-]+$regex format. This is only specified when
requesting a single node. In case of multislice requests,
multislice_params must be populated instead.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMultisliceParams
Optional. Fields to specify in case of multislice request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Tpu V2 Client - Class NodeSpec (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.Tpu.NodeSpec)\n- [2.1.1](/php/docs/reference/cloud-tpu/2.1.1/V2.QueuedResource.Tpu.NodeSpec)\n- [2.0.0](/php/docs/reference/cloud-tpu/2.0.0/V2.QueuedResource.Tpu.NodeSpec)\n- [1.4.7](/php/docs/reference/cloud-tpu/1.4.7/V2.QueuedResource.Tpu.NodeSpec)\n- [1.3.2](/php/docs/reference/cloud-tpu/1.3.2/V2.QueuedResource.Tpu.NodeSpec)\n- [1.2.0](/php/docs/reference/cloud-tpu/1.2.0/V2.QueuedResource.Tpu.NodeSpec)\n- [1.1.1](/php/docs/reference/cloud-tpu/1.1.1/V2.QueuedResource.Tpu.NodeSpec)\n- [1.0.5](/php/docs/reference/cloud-tpu/1.0.5/V2.QueuedResource.Tpu.NodeSpec) \nReference documentation and code samples for the Google Cloud Tpu V2 Client class NodeSpec.\n\nDetails of the TPU node(s) being requested. Users can request either a\nsingle node or multiple nodes.\n\nNodeSpec provides the specification for node(s) to be created.\n\nGenerated from protobuf message `google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Tpu \\\\ V2 \\\\ QueuedResource \\\\ Tpu\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The parent resource name.\n\n### setParent\n\nRequired. The parent resource name.\n\n### getNodeId\n\nOptional. The unqualified resource name. Should follow the\n`^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when\nrequesting a single node. In case of multislice requests,\nmultislice_params must be populated instead.\n\n### hasNodeId\n\n### setNodeId\n\nOptional. The unqualified resource name. Should follow the\n`^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when\nrequesting a single node. In case of multislice requests,\nmultislice_params must be populated instead.\n\n### getMultisliceParams\n\nOptional. Fields to specify in case of multislice request.\n\n### hasMultisliceParams\n\n### setMultisliceParams\n\nOptional. Fields to specify in case of multislice request.\n\n### getNode\n\nRequired. The node.\n\n### hasNode\n\n### clearNode\n\n### setNode\n\nRequired. The node.\n\n### getNameStrategy"]]