Class GrpcServicesStub (2.8.0)

public class GrpcServicesStub extends ServicesStub

gRPC stub implementation for the Services service API.

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

Inheritance

java.lang.Object > ServicesStub > GrpcServicesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcServicesStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcServicesStub
Exceptions
TypeDescription
IOException

create(ServicesStubSettings settings)

public static final GrpcServicesStub create(ServicesStubSettings settings)
Parameter
NameDescription
settingsServicesStubSettings
Returns
TypeDescription
GrpcServicesStub
Exceptions
TypeDescription
IOException

Constructors

GrpcServicesStub(ServicesStubSettings settings, ClientContext clientContext)

protected GrpcServicesStub(ServicesStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcServicesStub, 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
settingsServicesStubSettings
clientContextClientContext

GrpcServicesStub(ServicesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcServicesStub(ServicesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcServicesStub, 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
settingsServicesStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

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

deleteServiceCallable()

public UnaryCallable<DeleteServiceRequest,Operation> deleteServiceCallable()
Returns
TypeDescription
UnaryCallable<DeleteServiceRequest,Operation>
Overrides

deleteServiceOperationCallable()

public OperationCallable<DeleteServiceRequest,Empty,OperationMetadataV1> deleteServiceOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteServiceRequest,Empty,OperationMetadataV1>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getServiceCallable()

public UnaryCallable<GetServiceRequest,Service> getServiceCallable()
Returns
TypeDescription
UnaryCallable<GetServiceRequest,Service>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listServicesCallable()

public UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
Returns
TypeDescription
UnaryCallable<ListServicesRequest,ListServicesResponse>
Overrides

listServicesPagedCallable()

public UnaryCallable<ListServicesRequest,ServicesClient.ListServicesPagedResponse> listServicesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListServicesRequest,ListServicesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateServiceCallable()

public UnaryCallable<UpdateServiceRequest,Operation> updateServiceCallable()
Returns
TypeDescription
UnaryCallable<UpdateServiceRequest,Operation>
Overrides

updateServiceOperationCallable()

public OperationCallable<UpdateServiceRequest,Service,OperationMetadataV1> updateServiceOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateServiceRequest,Service,OperationMetadataV1>
Overrides