Package com.google.cloud.compute.v1.stub
Class HttpJsonTargetInstancesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.TargetInstancesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonTargetInstancesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonTargetInstancesStub extends TargetInstancesStub
REST stub implementation for the TargetInstances service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonTargetInstancesStub(TargetInstancesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonTargetInstancesStub, using the given settings.protectedHttpJsonTargetInstancesStub(TargetInstancesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonTargetInstancesStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonTargetInstancesStub
protected HttpJsonTargetInstancesStub(TargetInstancesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonTargetInstancesStub, 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
-
HttpJsonTargetInstancesStub
protected HttpJsonTargetInstancesStub(TargetInstancesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonTargetInstancesStub, 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 HttpJsonTargetInstancesStub create(TargetInstancesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonTargetInstancesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonTargetInstancesStub 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()
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListTargetInstancesRequest,TargetInstanceAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallablein classTargetInstancesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListTargetInstancesRequest,TargetInstancesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classTargetInstancesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTargetInstanceRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classTargetInstancesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteTargetInstanceRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classTargetInstancesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetTargetInstanceRequest,TargetInstance> getCallable()
- Overrides:
getCallablein classTargetInstancesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertTargetInstanceRequest,Operation> insertCallable()
- Overrides:
insertCallablein classTargetInstancesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertTargetInstanceRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classTargetInstancesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListTargetInstancesRequest,TargetInstanceList> listCallable()
- Overrides:
listCallablein classTargetInstancesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTargetInstancesRequest,TargetInstancesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classTargetInstancesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classTargetInstancesStub
-
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
-
-