Class protos.google.cloud.tpu.v1.Tpu (3.8.0) Stay organized with collections Save and categorize content based on your preferences.
Represents a Tpu
Inheritance
$protobuf.rpc.Service >protos.google.cloud.tpu.v1.TpuPackage
@google-cloud/tpuConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl:$protobuf.RPCImpl,requestDelimited?:boolean,responseDelimited?:boolean);Constructs a new Tpu service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl | $protobuf.RPCImplRPC implementation |
requestDelimited | booleanWhether requests are length-delimited |
responseDelimited | booleanWhether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
publicstaticcreate(rpcImpl:$protobuf.RPCImpl,requestDelimited?:boolean,responseDelimited?:boolean):Tpu;Creates new Tpu service using the specified rpc implementation.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl | $protobuf.RPCImplRPC implementation |
requestDelimited | booleanWhether requests are length-delimited |
responseDelimited | booleanWhether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
Tpu | RPC service. Useful where requests and/or responses are streamed. |
createNode(request, callback)
publiccreateNode(request:google.cloud.tpu.v1.ICreateNodeRequest,callback:google.cloud.tpu.v1.Tpu.CreateNodeCallback):void;Calls CreateNode.
| Parameters | |
|---|---|
| Name | Description |
request | ICreateNodeRequestCreateNodeRequest message or plain object |
callback | CreateNodeCallbackNode-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void | |
createNode(request)
publiccreateNode(request:google.cloud.tpu.v1.ICreateNodeRequest):Promise<google.longrunning.Operation>;Calls CreateNode.
| Parameter | |
|---|---|
| Name | Description |
request | ICreateNodeRequestCreateNodeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteNode(request, callback)
publicdeleteNode(request:google.cloud.tpu.v1.IDeleteNodeRequest,callback:google.cloud.tpu.v1.Tpu.DeleteNodeCallback):void;Calls DeleteNode.
| Parameters | |
|---|---|
| Name | Description |
request | IDeleteNodeRequestDeleteNodeRequest message or plain object |
callback | DeleteNodeCallbackNode-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void | |
deleteNode(request)
publicdeleteNode(request:google.cloud.tpu.v1.IDeleteNodeRequest):Promise<google.longrunning.Operation>;Calls DeleteNode.
| Parameter | |
|---|---|
| Name | Description |
request | IDeleteNodeRequestDeleteNodeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> | Promise |
getAcceleratorType(request, callback)
publicgetAcceleratorType(request:google.cloud.tpu.v1.IGetAcceleratorTypeRequest,callback:google.cloud.tpu.v1.Tpu.GetAcceleratorTypeCallback):void;Calls GetAcceleratorType.
| Parameters | |
|---|---|
| Name | Description |
request | IGetAcceleratorTypeRequestGetAcceleratorTypeRequest message or plain object |
callback | GetAcceleratorTypeCallbackNode-style callback called with the error, if any, and AcceleratorType |
| Returns | |
|---|---|
| Type | Description |
void | |
getAcceleratorType(request)
publicgetAcceleratorType(request:google.cloud.tpu.v1.IGetAcceleratorTypeRequest):Promise<google.cloud.tpu.v1.AcceleratorType>;Calls GetAcceleratorType.
| Parameter | |
|---|---|
| Name | Description |
request | IGetAcceleratorTypeRequestGetAcceleratorTypeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.tpu.v1.AcceleratorType> | Promise |
getNode(request, callback)
publicgetNode(request:google.cloud.tpu.v1.IGetNodeRequest,callback:google.cloud.tpu.v1.Tpu.GetNodeCallback):void;Calls GetNode.
| Parameters | |
|---|---|
| Name | Description |
request | IGetNodeRequestGetNodeRequest message or plain object |
callback | GetNodeCallbackNode-style callback called with the error, if any, and Node |
| Returns | |
|---|---|
| Type | Description |
void | |
getNode(request)
publicgetNode(request:google.cloud.tpu.v1.IGetNodeRequest):Promise<google.cloud.tpu.v1.Node>;Calls GetNode.
| Parameter | |
|---|---|
| Name | Description |
request | IGetNodeRequestGetNodeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.tpu.v1.Node> | Promise |
getTensorFlowVersion(request, callback)
publicgetTensorFlowVersion(request:google.cloud.tpu.v1.IGetTensorFlowVersionRequest,callback:google.cloud.tpu.v1.Tpu.GetTensorFlowVersionCallback):void;Calls GetTensorFlowVersion.
| Parameters | |
|---|---|
| Name | Description |
request | IGetTensorFlowVersionRequestGetTensorFlowVersionRequest message or plain object |
callback | GetTensorFlowVersionCallbackNode-style callback called with the error, if any, and TensorFlowVersion |
| Returns | |
|---|---|
| Type | Description |
void | |
getTensorFlowVersion(request)
publicgetTensorFlowVersion(request:google.cloud.tpu.v1.IGetTensorFlowVersionRequest):Promise<google.cloud.tpu.v1.TensorFlowVersion>;Calls GetTensorFlowVersion.
| Parameter | |
|---|---|
| Name | Description |
request | IGetTensorFlowVersionRequestGetTensorFlowVersionRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.tpu.v1.TensorFlowVersion> | Promise |
listAcceleratorTypes(request, callback)
publiclistAcceleratorTypes(request:google.cloud.tpu.v1.IListAcceleratorTypesRequest,callback:google.cloud.tpu.v1.Tpu.ListAcceleratorTypesCallback):void;Calls ListAcceleratorTypes.
| Parameters | |
|---|---|
| Name | Description |
request | IListAcceleratorTypesRequestListAcceleratorTypesRequest message or plain object |
callback | ListAcceleratorTypesCallbackNode-style callback called with the error, if any, and ListAcceleratorTypesResponse |
| Returns | |
|---|---|
| Type | Description |
void | |
listAcceleratorTypes(request)
publiclistAcceleratorTypes(request:google.cloud.tpu.v1.IListAcceleratorTypesRequest):Promise<google.cloud.tpu.v1.ListAcceleratorTypesResponse>;Calls ListAcceleratorTypes.
| Parameter | |
|---|---|
| Name | Description |
request | IListAcceleratorTypesRequestListAcceleratorTypesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.tpu.v1.ListAcceleratorTypesResponse> | Promise |
listNodes(request, callback)
publiclistNodes(request:google.cloud.tpu.v1.IListNodesRequest,callback:google.cloud.tpu.v1.Tpu.ListNodesCallback):void;Calls ListNodes.
| Parameters | |
|---|---|
| Name | Description |
request | IListNodesRequestListNodesRequest message or plain object |
callback | ListNodesCallbackNode-style callback called with the error, if any, and ListNodesResponse |
| Returns | |
|---|---|
| Type | Description |
void | |
listNodes(request)
publiclistNodes(request:google.cloud.tpu.v1.IListNodesRequest):Promise<google.cloud.tpu.v1.ListNodesResponse>;Calls ListNodes.
| Parameter | |
|---|---|
| Name | Description |
request | IListNodesRequestListNodesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.tpu.v1.ListNodesResponse> | Promise |
listTensorFlowVersions(request, callback)
publiclistTensorFlowVersions(request:google.cloud.tpu.v1.IListTensorFlowVersionsRequest,callback:google.cloud.tpu.v1.Tpu.ListTensorFlowVersionsCallback):void;Calls ListTensorFlowVersions.
| Parameters | |
|---|---|
| Name | Description |
request | IListTensorFlowVersionsRequestListTensorFlowVersionsRequest message or plain object |
callback | ListTensorFlowVersionsCallbackNode-style callback called with the error, if any, and ListTensorFlowVersionsResponse |
| Returns | |
|---|---|
| Type | Description |
void | |
listTensorFlowVersions(request)
publiclistTensorFlowVersions(request:google.cloud.tpu.v1.IListTensorFlowVersionsRequest):Promise<google.cloud.tpu.v1.ListTensorFlowVersionsResponse>;Calls ListTensorFlowVersions.
| Parameter | |
|---|---|
| Name | Description |
request | IListTensorFlowVersionsRequestListTensorFlowVersionsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.tpu.v1.ListTensorFlowVersionsResponse> | Promise |
reimageNode(request, callback)
publicreimageNode(request:google.cloud.tpu.v1.IReimageNodeRequest,callback:google.cloud.tpu.v1.Tpu.ReimageNodeCallback):void;Calls ReimageNode.
| Parameters | |
|---|---|
| Name | Description |
request | IReimageNodeRequestReimageNodeRequest message or plain object |
callback | ReimageNodeCallbackNode-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void | |
reimageNode(request)
publicreimageNode(request:google.cloud.tpu.v1.IReimageNodeRequest):Promise<google.longrunning.Operation>;Calls ReimageNode.
| Parameter | |
|---|---|
| Name | Description |
request | IReimageNodeRequestReimageNodeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> | Promise |
startNode(request, callback)
publicstartNode(request:google.cloud.tpu.v1.IStartNodeRequest,callback:google.cloud.tpu.v1.Tpu.StartNodeCallback):void;Calls StartNode.
| Parameters | |
|---|---|
| Name | Description |
request | IStartNodeRequestStartNodeRequest message or plain object |
callback | StartNodeCallbackNode-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void | |
startNode(request)
publicstartNode(request:google.cloud.tpu.v1.IStartNodeRequest):Promise<google.longrunning.Operation>;Calls StartNode.
| Parameter | |
|---|---|
| Name | Description |
request | IStartNodeRequestStartNodeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> | Promise |
stopNode(request, callback)
publicstopNode(request:google.cloud.tpu.v1.IStopNodeRequest,callback:google.cloud.tpu.v1.Tpu.StopNodeCallback):void;Calls StopNode.
| Parameters | |
|---|---|
| Name | Description |
request | IStopNodeRequestStopNodeRequest message or plain object |
callback | StopNodeCallbackNode-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void | |
stopNode(request)
publicstopNode(request:google.cloud.tpu.v1.IStopNodeRequest):Promise<google.longrunning.Operation>;Calls StopNode.
| Parameter | |
|---|---|
| Name | Description |
request | IStopNodeRequestStopNodeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> | Promise |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.