Class HttpJsonTenantServiceStub (2.44.0)

public class HttpJsonTenantServiceStub extends TenantServiceStub

REST stub implementation for the TenantService service API.

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

Inheritance

java.lang.Object > TenantServiceStub > HttpJsonTenantServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(TenantServiceStubSettings settings)

public static final HttpJsonTenantServiceStub create(TenantServiceStubSettings settings)
Parameter
Name Description
settings TenantServiceStubSettings
Returns
Type Description
HttpJsonTenantServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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

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