Class HttpJsonTargetInstancesStub (1.57.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonTargetInstancesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonTargetInstancesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonTargetInstancesStub
Exceptions
Type Description
IOException

create(TargetInstancesStubSettings settings)

public static final HttpJsonTargetInstancesStub create(TargetInstancesStubSettings settings)
Parameter
Name Description
settings TargetInstancesStubSettings
Returns
Type Description
HttpJsonTargetInstancesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings TargetInstancesStubSettings
clientContext ClientContext

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
Name Description
settings TargetInstancesStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

aggregatedListCallable()

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

aggregatedListPagedCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

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

deleteOperationCallable()

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

getCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

setSecurityPolicyCallable()

public UnaryCallable<SetSecurityPolicyTargetInstanceRequest,Operation> setSecurityPolicyCallable()
Returns
Type Description
UnaryCallable<SetSecurityPolicyTargetInstanceRequest,Operation>
Overrides

setSecurityPolicyOperationCallable()

public OperationCallable<SetSecurityPolicyTargetInstanceRequest,Operation,Operation> setSecurityPolicyOperationCallable()
Returns
Type Description
OperationCallable<SetSecurityPolicyTargetInstanceRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()