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 protected
HttpJsonTpuStub(TpuStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonTpuStub, using the given settings.protected
HttpJsonTpuStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonTpuStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonTpuStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonTpuStub
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,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.HttpJsonOperationsStub
getHttpJsonOperationsStub()
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()
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<ListRuntimeVersionsRequest,ListRuntimeVersionsResponse>
listRuntimeVersionsCallable()
com.google.api.gax.rpc.UnaryCallable<ListRuntimeVersionsRequest,TpuClient.ListRuntimeVersionsPagedResponse>
listRuntimeVersionsPagedCallable()
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()
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:
getHttpJsonOperationsStub
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,com.google.protobuf.Empty,OperationMetadata> deleteNodeOperationCallable()
- Overrides:
deleteNodeOperationCallable
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
-
updateNodeCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateNodeRequest,com.google.longrunning.Operation> updateNodeCallable()
- Overrides:
updateNodeCallable
in classTpuStub
-
updateNodeOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateNodeRequest,Node,OperationMetadata> updateNodeOperationCallable()
- Overrides:
updateNodeOperationCallable
in classTpuStub
-
generateServiceIdentityCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateServiceIdentityRequest,GenerateServiceIdentityResponse> generateServiceIdentityCallable()
- Overrides:
generateServiceIdentityCallable
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
-
listRuntimeVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuntimeVersionsRequest,ListRuntimeVersionsResponse> listRuntimeVersionsCallable()
- Overrides:
listRuntimeVersionsCallable
in classTpuStub
-
listRuntimeVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuntimeVersionsRequest,TpuClient.ListRuntimeVersionsPagedResponse> listRuntimeVersionsPagedCallable()
- Overrides:
listRuntimeVersionsPagedCallable
in classTpuStub
-
getRuntimeVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetRuntimeVersionRequest,RuntimeVersion> getRuntimeVersionCallable()
- Overrides:
getRuntimeVersionCallable
in classTpuStub
-
getGuestAttributesCallable
public com.google.api.gax.rpc.UnaryCallable<GetGuestAttributesRequest,GetGuestAttributesResponse> getGuestAttributesCallable()
- Overrides:
getGuestAttributesCallable
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
-
-