Class GrpcInstancesStub (0.2.0)

public class GrpcInstancesStub extends InstancesStub

gRPC stub implementation for the Instances service API.

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

Inheritance

java.lang.Object > InstancesStub > GrpcInstancesStub

Static Methods

create(ClientContext clientContext)

public static final GrpcInstancesStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcInstancesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(InstancesStubSettings settings)

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

Constructors

GrpcInstancesStub(InstancesStubSettings settings, ClientContext clientContext)

protected GrpcInstancesStub(InstancesStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcInstancesStub, 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

GrpcInstancesStub(InstancesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcInstancesStub(InstancesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcInstancesStub, 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 GrpcStubCallableFactory

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

getInstanceCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
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()