Class HttpJsonTargetInstancesStub (1.28.0)

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.

Inheritance

java.lang.Object > TargetInstancesStub > HttpJsonTargetInstancesStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonTargetInstancesStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonTargetInstancesStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonTargetInstancesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonTargetInstancesStub
Exceptions
TypeDescription
IOException

create(TargetInstancesStubSettings settings)

public static final HttpJsonTargetInstancesStub create(TargetInstancesStubSettings settings)
Parameter
NameDescription
settingsTargetInstancesStubSettings
Returns
TypeDescription
HttpJsonTargetInstancesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonTargetInstancesStub(TargetInstancesStubSettings settings, ClientContext clientContext)

protected HttpJsonTargetInstancesStub(TargetInstancesStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsTargetInstancesStubSettings
clientContextClientContext

HttpJsonTargetInstancesStub(TargetInstancesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonTargetInstancesStub(TargetInstancesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsTargetInstancesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListTargetInstancesRequest,TargetInstanceAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListTargetInstancesRequest,TargetInstanceAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListTargetInstancesRequest,TargetInstancesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListTargetInstancesRequest,AggregatedListPagedResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

public UnaryCallable<DeleteTargetInstanceRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteTargetInstanceRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteTargetInstanceRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteTargetInstanceRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetTargetInstanceRequest,TargetInstance> getCallable()
Returns
TypeDescription
UnaryCallable<GetTargetInstanceRequest,TargetInstance>
Overrides

insertCallable()

public UnaryCallable<InsertTargetInstanceRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertTargetInstanceRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertTargetInstanceRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertTargetInstanceRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListTargetInstancesRequest,TargetInstanceList> listCallable()
Returns
TypeDescription
UnaryCallable<ListTargetInstancesRequest,TargetInstanceList>
Overrides

listPagedCallable()

public UnaryCallable<ListTargetInstancesRequest,TargetInstancesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListTargetInstancesRequest,ListPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()