Class HttpJsonInstancesStub (2.14.0)

public class HttpJsonInstancesStub extends InstancesStub

REST stub implementation for the Instances service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > InstancesStub > HttpJsonInstancesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(InstancesStubSettings settings)

public static final HttpJsonInstancesStub create(InstancesStubSettings settings)
Parameter
NameDescription
settingsInstancesStubSettings
Returns
TypeDescription
HttpJsonInstancesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonInstancesStub(InstancesStubSettings settings, ClientContext clientContext)

protected HttpJsonInstancesStub(InstancesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonInstancesStub, 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
settingsInstancesStubSettings
clientContextClientContext

HttpJsonInstancesStub(InstancesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonInstancesStub(InstancesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonInstancesStub, 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
settingsInstancesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

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

debugInstanceCallable()

public UnaryCallable<DebugInstanceRequest,Operation> debugInstanceCallable()
Returns
TypeDescription
UnaryCallable<DebugInstanceRequest,Operation>
Overrides

debugInstanceOperationCallable()

public OperationCallable<DebugInstanceRequest,Instance,OperationMetadataV1> debugInstanceOperationCallable()
Returns
TypeDescription
OperationCallable<DebugInstanceRequest,Instance,OperationMetadataV1>
Overrides

deleteInstanceCallable()

public UnaryCallable<DeleteInstanceRequest,Operation> deleteInstanceCallable()
Returns
TypeDescription
UnaryCallable<DeleteInstanceRequest,Operation>
Overrides

deleteInstanceOperationCallable()

public OperationCallable<DeleteInstanceRequest,Empty,OperationMetadataV1> deleteInstanceOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteInstanceRequest,Empty,OperationMetadataV1>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getInstanceCallable()

public UnaryCallable<GetInstanceRequest,Instance> getInstanceCallable()
Returns
TypeDescription
UnaryCallable<GetInstanceRequest,Instance>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listInstancesCallable()

public UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()
Returns
TypeDescription
UnaryCallable<ListInstancesRequest,ListInstancesResponse>
Overrides

listInstancesPagedCallable()

public UnaryCallable<ListInstancesRequest,InstancesClient.ListInstancesPagedResponse> listInstancesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListInstancesRequest,ListInstancesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()