Package com.google.cloud.tpu.v1
Class TpuGrpc.TpuBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<TpuGrpc.TpuBlockingV2Stub>
com.google.cloud.tpu.v1.TpuGrpc.TpuBlockingV2Stub
- Enclosing class:
- TpuGrpc
public static final class TpuGrpc.TpuBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<TpuGrpc.TpuBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Tpu.
Manages TPU nodes and other resources TPU API v1
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected TpuGrpc.TpuBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createNode(CreateNodeRequest request) Creates a node.deleteNode(DeleteNodeRequest request) Deletes a node.Gets AcceleratorType.getNode(GetNodeRequest request) Gets the details of a node.Gets TensorFlow Version.Lists accelerator types supported by this API.listNodes(ListNodesRequest request) Lists nodes.List TensorFlow versions supported by this API.reimageNode(ReimageNodeRequest request) Reimages a node's OS.startNode(StartNodeRequest request) Starts a node.stopNode(StopNodeRequest request) Stops a node, this operation is only available with single TPU nodes.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
- Specified by:
buildin classio.grpc.stub.AbstractStub<TpuGrpc.TpuBlockingV2Stub>
-
listNodes
Lists nodes.
- Throws:
io.grpc.StatusException
-
getNode
Gets the details of a node.
- Throws:
io.grpc.StatusException
-
createNode
Creates a node.
- Throws:
io.grpc.StatusException
-
deleteNode
Deletes a node.
- Throws:
io.grpc.StatusException
-
reimageNode
Reimages a node's OS.
- Throws:
io.grpc.StatusException
-
stopNode
Stops a node, this operation is only available with single TPU nodes.
- Throws:
io.grpc.StatusException
-
startNode
Starts a node.
- Throws:
io.grpc.StatusException
-
listTensorFlowVersions
public ListTensorFlowVersionsResponse listTensorFlowVersions(ListTensorFlowVersionsRequest request) throws io.grpc.StatusException List TensorFlow versions supported by this API.
- Throws:
io.grpc.StatusException
-
getTensorFlowVersion
public TensorFlowVersion getTensorFlowVersion(GetTensorFlowVersionRequest request) throws io.grpc.StatusException Gets TensorFlow Version.
- Throws:
io.grpc.StatusException
-
listAcceleratorTypes
public ListAcceleratorTypesResponse listAcceleratorTypes(ListAcceleratorTypesRequest request) throws io.grpc.StatusException Lists accelerator types supported by this API.
- Throws:
io.grpc.StatusException
-
getAcceleratorType
public AcceleratorType getAcceleratorType(GetAcceleratorTypeRequest request) throws io.grpc.StatusException Gets AcceleratorType.
- Throws:
io.grpc.StatusException
-