Class GrpcTenantServiceStub (2.29.0)

public class GrpcTenantServiceStub extends TenantServiceStub

gRPC stub implementation for the TenantService service API.

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

Inheritance

java.lang.Object > TenantServiceStub > GrpcTenantServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(TenantServiceStubSettings settings)

public static final GrpcTenantServiceStub create(TenantServiceStubSettings settings)
Parameter
NameDescription
settingsTenantServiceStubSettings
Returns
TypeDescription
GrpcTenantServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext)

protected GrpcTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcTenantServiceStub, 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
settingsTenantServiceStubSettings
clientContextClientContext

GrpcTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

createTenantCallable()

public UnaryCallable<CreateTenantRequest,Tenant> createTenantCallable()
Returns
TypeDescription
UnaryCallable<CreateTenantRequest,Tenant>
Overrides

deleteTenantCallable()

public UnaryCallable<DeleteTenantRequest,Empty> deleteTenantCallable()
Returns
TypeDescription
UnaryCallable<DeleteTenantRequest,Empty>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getTenantCallable()

public UnaryCallable<GetTenantRequest,Tenant> getTenantCallable()
Returns
TypeDescription
UnaryCallable<GetTenantRequest,Tenant>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listTenantsCallable()

public UnaryCallable<ListTenantsRequest,ListTenantsResponse> listTenantsCallable()
Returns
TypeDescription
UnaryCallable<ListTenantsRequest,ListTenantsResponse>
Overrides

listTenantsPagedCallable()

public UnaryCallable<ListTenantsRequest,TenantServiceClient.ListTenantsPagedResponse> listTenantsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListTenantsRequest,ListTenantsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateTenantCallable()

public UnaryCallable<UpdateTenantRequest,Tenant> updateTenantCallable()
Returns
TypeDescription
UnaryCallable<UpdateTenantRequest,Tenant>
Overrides