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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(TenantServiceStubSettings settings)

public static final GrpcTenantServiceStub create(TenantServiceStubSettings settings)
Parameter
Name Description
settings TenantServiceStubSettings
Returns
Type Description
GrpcTenantServiceStub
Exceptions
Type Description
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
Name Description
settings TenantServiceStubSettings
clientContext ClientContext

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
Name Description
settings TenantServiceStubSettings
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

createTenantCallable()

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

deleteTenantCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getTenantCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listTenantsCallable()

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

listTenantsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateTenantCallable()

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