@Generated("by gapic-generator-java")
Package com.google.cloud.tpu.v1
A client to Cloud TPU API
The interfaces provided are listed below, along with usage samples.
======================= TpuClient =======================
Service Description: Manages TPU nodes and other resources
TPU API v1
Sample for TpuClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TpuClient tpuClient = TpuClient.create()) {
NodeName name = NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]");
Node response = tpuClient.getNode(name);
}
-
Class Summary Class Description AcceleratorType A accelerator type that a Node can be configured with.AcceleratorType.Builder A accelerator type that a Node can be configured with.AcceleratorTypeName AcceleratorTypeName.Builder Builder for projects/{project}/locations/{location}/acceleratorTypes/{accelerator_type}.CloudTpuProto CreateNodeRequest Request for [CreateNode][google.cloud.tpu.v1.Tpu.CreateNode].CreateNodeRequest.Builder Request for [CreateNode][google.cloud.tpu.v1.Tpu.CreateNode].DeleteNodeRequest Request for [DeleteNode][google.cloud.tpu.v1.Tpu.DeleteNode].DeleteNodeRequest.Builder Request for [DeleteNode][google.cloud.tpu.v1.Tpu.DeleteNode].GetAcceleratorTypeRequest Request for [GetAcceleratorType][google.cloud.tpu.v1.Tpu.GetAcceleratorType].GetAcceleratorTypeRequest.Builder Request for [GetAcceleratorType][google.cloud.tpu.v1.Tpu.GetAcceleratorType].GetNodeRequest Request for [GetNode][google.cloud.tpu.v1.Tpu.GetNode].GetNodeRequest.Builder Request for [GetNode][google.cloud.tpu.v1.Tpu.GetNode].GetTensorFlowVersionRequest Request for [GetTensorFlowVersion][google.cloud.tpu.v1.Tpu.GetTensorFlowVersion].GetTensorFlowVersionRequest.Builder Request for [GetTensorFlowVersion][google.cloud.tpu.v1.Tpu.GetTensorFlowVersion].ListAcceleratorTypesRequest Request for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].ListAcceleratorTypesRequest.Builder Request for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].ListAcceleratorTypesResponse Response for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].ListAcceleratorTypesResponse.Builder Response for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].ListNodesRequest Request for [ListNodes][google.cloud.tpu.v1.Tpu.ListNodes].ListNodesRequest.Builder Request for [ListNodes][google.cloud.tpu.v1.Tpu.ListNodes].ListNodesResponse Response for [ListNodes][google.cloud.tpu.v1.Tpu.ListNodes].ListNodesResponse.Builder Response for [ListNodes][google.cloud.tpu.v1.Tpu.ListNodes].ListTensorFlowVersionsRequest Request for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].ListTensorFlowVersionsRequest.Builder Request for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].ListTensorFlowVersionsResponse Response for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].ListTensorFlowVersionsResponse.Builder Response for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].LocationName LocationName.Builder Builder for projects/{project}/locations/{location}.NetworkEndpoint A network endpoint over which a TPU worker can be reached.NetworkEndpoint.Builder A network endpoint over which a TPU worker can be reached.Node A TPU instance.Node.Builder A TPU instance.NodeName NodeName.Builder Builder for projects/{project}/locations/{location}/nodes/{node}.OperationMetadata Metadata describing an [Operation][google.longrunning.Operation]OperationMetadata.Builder Metadata describing an [Operation][google.longrunning.Operation]ReimageNodeRequest Request for [ReimageNode][google.cloud.tpu.v1.Tpu.ReimageNode].ReimageNodeRequest.Builder Request for [ReimageNode][google.cloud.tpu.v1.Tpu.ReimageNode].SchedulingConfig Sets the scheduling options for this node.SchedulingConfig.Builder Sets the scheduling options for this node.StartNodeRequest Request for [StartNode][google.cloud.tpu.v1.Tpu.StartNode].StartNodeRequest.Builder Request for [StartNode][google.cloud.tpu.v1.Tpu.StartNode].StopNodeRequest Request for [StopNode][google.cloud.tpu.v1.Tpu.StopNode].StopNodeRequest.Builder Request for [StopNode][google.cloud.tpu.v1.Tpu.StopNode].Symptom A Symptom instance.Symptom.Builder A Symptom instance.TensorFlowVersion A tensorflow version that a Node can be configured with.TensorFlowVersion.Builder A tensorflow version that a Node can be configured with.TensorFlowVersionName TensorFlowVersionName.Builder Builder for projects/{project}/locations/{location}/tensorFlowVersions/{tensor_flow_version}.TpuClient Service Description: Manages TPU nodes and other resourcesTpuClient.ListAcceleratorTypesFixedSizeCollection TpuClient.ListAcceleratorTypesPage TpuClient.ListAcceleratorTypesPagedResponse TpuClient.ListLocationsFixedSizeCollection TpuClient.ListLocationsPage TpuClient.ListLocationsPagedResponse TpuClient.ListNodesFixedSizeCollection TpuClient.ListNodesPage TpuClient.ListNodesPagedResponse TpuClient.ListTensorFlowVersionsFixedSizeCollection TpuClient.ListTensorFlowVersionsPage TpuClient.ListTensorFlowVersionsPagedResponse TpuGrpc Manages TPU nodes and other resources TPU API v1TpuGrpc.TpuBlockingStub A stub to allow clients to do synchronous rpc calls to service Tpu.TpuGrpc.TpuFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service Tpu.TpuGrpc.TpuImplBase Base class for the server implementation of the service Tpu.TpuGrpc.TpuStub A stub to allow clients to do asynchronous rpc calls to service Tpu.TpuSettings Settings class to configure an instance ofTpuClient
.TpuSettings.Builder Builder for TpuSettings. -
Enum Summary Enum Description Node.ApiVersion TPU API Version.Node.Health Health defines the status of a TPU node as reported by Health Monitor.Node.State Represents the different states of a TPU node during its lifecycle.Symptom.SymptomType SymptomType represents the different types of Symptoms that a TPU can be at.