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 protectedGrpcTpuStub(TpuStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcTpuStub, using the given settings.protectedGrpcTpuStub(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 booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcTpuStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcTpuStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcTpuStubcreate(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.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetTensorFlowVersionRequest,TensorFlowVersion>getTensorFlowVersionCallable()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()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:
getOperationsStubin classTpuStub
-
listNodesCallable
public com.google.api.gax.rpc.UnaryCallable<ListNodesRequest,ListNodesResponse> listNodesCallable()
- Overrides:
listNodesCallablein classTpuStub
-
listNodesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNodesRequest,TpuClient.ListNodesPagedResponse> listNodesPagedCallable()
- Overrides:
listNodesPagedCallablein classTpuStub
-
getNodeCallable
public com.google.api.gax.rpc.UnaryCallable<GetNodeRequest,Node> getNodeCallable()
- Overrides:
getNodeCallablein classTpuStub
-
createNodeCallable
public com.google.api.gax.rpc.UnaryCallable<CreateNodeRequest,com.google.longrunning.Operation> createNodeCallable()
- Overrides:
createNodeCallablein classTpuStub
-
createNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateNodeRequest,Node,OperationMetadata> createNodeOperationCallable()
- Overrides:
createNodeOperationCallablein classTpuStub
-
deleteNodeCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteNodeRequest,com.google.longrunning.Operation> deleteNodeCallable()
- Overrides:
deleteNodeCallablein classTpuStub
-
deleteNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteNodeRequest,Node,OperationMetadata> deleteNodeOperationCallable()
- Overrides:
deleteNodeOperationCallablein classTpuStub
-
reimageNodeCallable
public com.google.api.gax.rpc.UnaryCallable<ReimageNodeRequest,com.google.longrunning.Operation> reimageNodeCallable()
- Overrides:
reimageNodeCallablein classTpuStub
-
reimageNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<ReimageNodeRequest,Node,OperationMetadata> reimageNodeOperationCallable()
- Overrides:
reimageNodeOperationCallablein classTpuStub
-
stopNodeCallable
public com.google.api.gax.rpc.UnaryCallable<StopNodeRequest,com.google.longrunning.Operation> stopNodeCallable()
- Overrides:
stopNodeCallablein classTpuStub
-
stopNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<StopNodeRequest,Node,OperationMetadata> stopNodeOperationCallable()
- Overrides:
stopNodeOperationCallablein classTpuStub
-
startNodeCallable
public com.google.api.gax.rpc.UnaryCallable<StartNodeRequest,com.google.longrunning.Operation> startNodeCallable()
- Overrides:
startNodeCallablein classTpuStub
-
startNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartNodeRequest,Node,OperationMetadata> startNodeOperationCallable()
- Overrides:
startNodeOperationCallablein classTpuStub
-
listTensorFlowVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTensorFlowVersionsRequest,ListTensorFlowVersionsResponse> listTensorFlowVersionsCallable()
- Overrides:
listTensorFlowVersionsCallablein classTpuStub
-
listTensorFlowVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTensorFlowVersionsRequest,TpuClient.ListTensorFlowVersionsPagedResponse> listTensorFlowVersionsPagedCallable()
- Overrides:
listTensorFlowVersionsPagedCallablein classTpuStub
-
getTensorFlowVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetTensorFlowVersionRequest,TensorFlowVersion> getTensorFlowVersionCallable()
- Overrides:
getTensorFlowVersionCallablein classTpuStub
-
listAcceleratorTypesCallable
public com.google.api.gax.rpc.UnaryCallable<ListAcceleratorTypesRequest,ListAcceleratorTypesResponse> listAcceleratorTypesCallable()
- Overrides:
listAcceleratorTypesCallablein classTpuStub
-
listAcceleratorTypesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAcceleratorTypesRequest,TpuClient.ListAcceleratorTypesPagedResponse> listAcceleratorTypesPagedCallable()
- Overrides:
listAcceleratorTypesPagedCallablein classTpuStub
-
getAcceleratorTypeCallable
public com.google.api.gax.rpc.UnaryCallable<GetAcceleratorTypeRequest,AcceleratorType> getAcceleratorTypeCallable()
- Overrides:
getAcceleratorTypeCallablein classTpuStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classTpuStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,TpuClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classTpuStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classTpuStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-