Package com.google.cloud.tpu.v2.stub
Class HttpJsonTpuStub
- java.lang.Object
-
- com.google.cloud.tpu.v2.stub.TpuStub
-
- com.google.cloud.tpu.v2.stub.HttpJsonTpuStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonTpuStub extends TpuStub
REST 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 protectedHttpJsonTpuStub(TpuStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonTpuStub, using the given settings.protectedHttpJsonTpuStub(TpuStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonTpuStub, 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 HttpJsonTpuStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonTpuStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonTpuStubcreate(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,com.google.protobuf.Empty,OperationMetadata>deleteNodeOperationCallable()com.google.api.gax.rpc.UnaryCallable<GenerateServiceIdentityRequest,GenerateServiceIdentityResponse>generateServiceIdentityCallable()com.google.api.gax.rpc.UnaryCallable<GetAcceleratorTypeRequest,AcceleratorType>getAcceleratorTypeCallable()com.google.api.gax.rpc.UnaryCallable<GetGuestAttributesRequest,GetGuestAttributesResponse>getGuestAttributesCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<GetNodeRequest,Node>getNodeCallable()com.google.api.gax.rpc.UnaryCallable<GetRuntimeVersionRequest,RuntimeVersion>getRuntimeVersionCallable()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<ListRuntimeVersionsRequest,ListRuntimeVersionsResponse>listRuntimeVersionsCallable()com.google.api.gax.rpc.UnaryCallable<ListRuntimeVersionsRequest,TpuClient.ListRuntimeVersionsPagedResponse>listRuntimeVersionsPagedCallable()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()com.google.api.gax.rpc.UnaryCallable<UpdateNodeRequest,com.google.longrunning.Operation>updateNodeCallable()com.google.api.gax.rpc.OperationCallable<UpdateNodeRequest,Node,OperationMetadata>updateNodeOperationCallable()-
Methods inherited from class com.google.cloud.tpu.v2.stub.TpuStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonTpuStub
protected HttpJsonTpuStub(TpuStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonTpuStub, 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
-
HttpJsonTpuStub
protected HttpJsonTpuStub(TpuStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonTpuStub, 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 HttpJsonTpuStub create(TpuStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonTpuStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonTpuStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin 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,com.google.protobuf.Empty,OperationMetadata> deleteNodeOperationCallable()
- Overrides:
deleteNodeOperationCallablein 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
-
updateNodeCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateNodeRequest,com.google.longrunning.Operation> updateNodeCallable()
- Overrides:
updateNodeCallablein classTpuStub
-
updateNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateNodeRequest,Node,OperationMetadata> updateNodeOperationCallable()
- Overrides:
updateNodeOperationCallablein classTpuStub
-
generateServiceIdentityCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateServiceIdentityRequest,GenerateServiceIdentityResponse> generateServiceIdentityCallable()
- Overrides:
generateServiceIdentityCallablein 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
-
listRuntimeVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuntimeVersionsRequest,ListRuntimeVersionsResponse> listRuntimeVersionsCallable()
- Overrides:
listRuntimeVersionsCallablein classTpuStub
-
listRuntimeVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuntimeVersionsRequest,TpuClient.ListRuntimeVersionsPagedResponse> listRuntimeVersionsPagedCallable()
- Overrides:
listRuntimeVersionsPagedCallablein classTpuStub
-
getRuntimeVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetRuntimeVersionRequest,RuntimeVersion> getRuntimeVersionCallable()
- Overrides:
getRuntimeVersionCallablein classTpuStub
-
getGuestAttributesCallable
public com.google.api.gax.rpc.UnaryCallable<GetGuestAttributesRequest,GetGuestAttributesResponse> getGuestAttributesCallable()
- Overrides:
getGuestAttributesCallablein 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
-
-