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 protected
HttpJsonTargetInstancesStub(TargetInstancesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonTargetInstancesStub, using the given settings.protected
HttpJsonTargetInstancesStub(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:
aggregatedListCallable
in classTargetInstancesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListTargetInstancesRequest,TargetInstancesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classTargetInstancesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTargetInstanceRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classTargetInstancesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteTargetInstanceRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classTargetInstancesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetTargetInstanceRequest,TargetInstance> getCallable()
- Overrides:
getCallable
in classTargetInstancesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertTargetInstanceRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classTargetInstancesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertTargetInstanceRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classTargetInstancesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListTargetInstancesRequest,TargetInstanceList> listCallable()
- Overrides:
listCallable
in classTargetInstancesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTargetInstancesRequest,TargetInstancesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classTargetInstancesStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-