Package com.google.cloud.tpu.v1.stub
Class GrpcTpuStub
- java.lang.Object
-
- com.google.cloud.tpu.v1.stub.TpuStub
-
- com.google.cloud.tpu.v1.stub.GrpcTpuStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcTpuStub extends TpuStub
gRPC stub implementation for the Tpu service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcTpuStub(TpuStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcTpuStub, using the given settings.protected
GrpcTpuStub(TpuStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcTpuStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcTpuStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcTpuStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcTpuStub
create(TpuStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateNodeRequest,com.google.longrunning.Operation>
createNodeCallable()
com.google.api.gax.rpc.OperationCallable<CreateNodeRequest,Node,OperationMetadata>
createNodeOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteNodeRequest,com.google.longrunning.Operation>
deleteNodeCallable()
com.google.api.gax.rpc.OperationCallable<DeleteNodeRequest,Node,OperationMetadata>
deleteNodeOperationCallable()
com.google.api.gax.rpc.UnaryCallable<GetAcceleratorTypeRequest,AcceleratorType>
getAcceleratorTypeCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationCallable()
com.google.api.gax.rpc.UnaryCallable<GetNodeRequest,Node>
getNodeCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetTensorFlowVersionRequest,TensorFlowVersion>
getTensorFlowVersionCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListAcceleratorTypesRequest,ListAcceleratorTypesResponse>
listAcceleratorTypesCallable()
com.google.api.gax.rpc.UnaryCallable<ListAcceleratorTypesRequest,TpuClient.ListAcceleratorTypesPagedResponse>
listAcceleratorTypesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
listLocationsCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,TpuClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListNodesRequest,ListNodesResponse>
listNodesCallable()
com.google.api.gax.rpc.UnaryCallable<ListNodesRequest,TpuClient.ListNodesPagedResponse>
listNodesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListTensorFlowVersionsRequest,ListTensorFlowVersionsResponse>
listTensorFlowVersionsCallable()
com.google.api.gax.rpc.UnaryCallable<ListTensorFlowVersionsRequest,TpuClient.ListTensorFlowVersionsPagedResponse>
listTensorFlowVersionsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ReimageNodeRequest,com.google.longrunning.Operation>
reimageNodeCallable()
com.google.api.gax.rpc.OperationCallable<ReimageNodeRequest,Node,OperationMetadata>
reimageNodeOperationCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<StartNodeRequest,com.google.longrunning.Operation>
startNodeCallable()
com.google.api.gax.rpc.OperationCallable<StartNodeRequest,Node,OperationMetadata>
startNodeOperationCallable()
com.google.api.gax.rpc.UnaryCallable<StopNodeRequest,com.google.longrunning.Operation>
stopNodeCallable()
com.google.api.gax.rpc.OperationCallable<StopNodeRequest,Node,OperationMetadata>
stopNodeOperationCallable()
-
-
-
Constructor Detail
-
GrpcTpuStub
protected GrpcTpuStub(TpuStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcTpuStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcTpuStub
protected GrpcTpuStub(TpuStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcTpuStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcTpuStub create(TpuStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcTpuStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcTpuStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStub
in classTpuStub
-
listNodesCallable
public com.google.api.gax.rpc.UnaryCallable<ListNodesRequest,ListNodesResponse> listNodesCallable()
- Overrides:
listNodesCallable
in classTpuStub
-
listNodesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNodesRequest,TpuClient.ListNodesPagedResponse> listNodesPagedCallable()
- Overrides:
listNodesPagedCallable
in classTpuStub
-
getNodeCallable
public com.google.api.gax.rpc.UnaryCallable<GetNodeRequest,Node> getNodeCallable()
- Overrides:
getNodeCallable
in classTpuStub
-
createNodeCallable
public com.google.api.gax.rpc.UnaryCallable<CreateNodeRequest,com.google.longrunning.Operation> createNodeCallable()
- Overrides:
createNodeCallable
in classTpuStub
-
createNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateNodeRequest,Node,OperationMetadata> createNodeOperationCallable()
- Overrides:
createNodeOperationCallable
in classTpuStub
-
deleteNodeCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteNodeRequest,com.google.longrunning.Operation> deleteNodeCallable()
- Overrides:
deleteNodeCallable
in classTpuStub
-
deleteNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteNodeRequest,Node,OperationMetadata> deleteNodeOperationCallable()
- Overrides:
deleteNodeOperationCallable
in classTpuStub
-
reimageNodeCallable
public com.google.api.gax.rpc.UnaryCallable<ReimageNodeRequest,com.google.longrunning.Operation> reimageNodeCallable()
- Overrides:
reimageNodeCallable
in classTpuStub
-
reimageNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<ReimageNodeRequest,Node,OperationMetadata> reimageNodeOperationCallable()
- Overrides:
reimageNodeOperationCallable
in classTpuStub
-
stopNodeCallable
public com.google.api.gax.rpc.UnaryCallable<StopNodeRequest,com.google.longrunning.Operation> stopNodeCallable()
- Overrides:
stopNodeCallable
in classTpuStub
-
stopNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<StopNodeRequest,Node,OperationMetadata> stopNodeOperationCallable()
- Overrides:
stopNodeOperationCallable
in classTpuStub
-
startNodeCallable
public com.google.api.gax.rpc.UnaryCallable<StartNodeRequest,com.google.longrunning.Operation> startNodeCallable()
- Overrides:
startNodeCallable
in classTpuStub
-
startNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartNodeRequest,Node,OperationMetadata> startNodeOperationCallable()
- Overrides:
startNodeOperationCallable
in classTpuStub
-
listTensorFlowVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTensorFlowVersionsRequest,ListTensorFlowVersionsResponse> listTensorFlowVersionsCallable()
- Overrides:
listTensorFlowVersionsCallable
in classTpuStub
-
listTensorFlowVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTensorFlowVersionsRequest,TpuClient.ListTensorFlowVersionsPagedResponse> listTensorFlowVersionsPagedCallable()
- Overrides:
listTensorFlowVersionsPagedCallable
in classTpuStub
-
getTensorFlowVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetTensorFlowVersionRequest,TensorFlowVersion> getTensorFlowVersionCallable()
- Overrides:
getTensorFlowVersionCallable
in classTpuStub
-
listAcceleratorTypesCallable
public com.google.api.gax.rpc.UnaryCallable<ListAcceleratorTypesRequest,ListAcceleratorTypesResponse> listAcceleratorTypesCallable()
- Overrides:
listAcceleratorTypesCallable
in classTpuStub
-
listAcceleratorTypesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAcceleratorTypesRequest,TpuClient.ListAcceleratorTypesPagedResponse> listAcceleratorTypesPagedCallable()
- Overrides:
listAcceleratorTypesPagedCallable
in classTpuStub
-
getAcceleratorTypeCallable
public com.google.api.gax.rpc.UnaryCallable<GetAcceleratorTypeRequest,AcceleratorType> getAcceleratorTypeCallable()
- Overrides:
getAcceleratorTypeCallable
in classTpuStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classTpuStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,TpuClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classTpuStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classTpuStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classTpuStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-