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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(InstancesStubSettings settings)

public static final HttpJsonInstancesStub create(InstancesStubSettings settings)
Parameter
Name Description
settings InstancesStubSettings
Returns
Type Description
HttpJsonInstancesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

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

Methods

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

debugInstanceCallable()

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

debugInstanceOperationCallable()

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

deleteInstanceCallable()

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

deleteInstanceOperationCallable()

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getInstanceCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listInstancesCallable()

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

listInstancesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()