Class GrpcCatalogServiceStub (2.2.1)

public class GrpcCatalogServiceStub extends CatalogServiceStub

gRPC stub implementation for the CatalogService service API.

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

Inheritance

java.lang.Object > CatalogServiceStub > GrpcCatalogServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(CatalogServiceStubSettings settings)

public static final GrpcCatalogServiceStub create(CatalogServiceStubSettings settings)
Parameter
NameDescription
settingsCatalogServiceStubSettings
Returns
TypeDescription
GrpcCatalogServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext)

protected GrpcCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcCatalogServiceStub, 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
settingsCatalogServiceStubSettings
clientContextClientContext

GrpcCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

getDefaultBranchCallable()

public UnaryCallable<GetDefaultBranchRequest,GetDefaultBranchResponse> getDefaultBranchCallable()
Returns
TypeDescription
UnaryCallable<GetDefaultBranchRequest,GetDefaultBranchResponse>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCatalogsCallable()

public UnaryCallable<ListCatalogsRequest,ListCatalogsResponse> listCatalogsCallable()
Returns
TypeDescription
UnaryCallable<ListCatalogsRequest,ListCatalogsResponse>
Overrides

listCatalogsPagedCallable()

public UnaryCallable<ListCatalogsRequest,CatalogServiceClient.ListCatalogsPagedResponse> listCatalogsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCatalogsRequest,ListCatalogsPagedResponse>
Overrides

setDefaultBranchCallable()

public UnaryCallable<SetDefaultBranchRequest,Empty> setDefaultBranchCallable()
Returns
TypeDescription
UnaryCallable<SetDefaultBranchRequest,Empty>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCatalogCallable()

public UnaryCallable<UpdateCatalogRequest,Catalog> updateCatalogCallable()
Returns
TypeDescription
UnaryCallable<UpdateCatalogRequest,Catalog>
Overrides