Class GrpcCatalogServiceStub (2.20.0)

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

addCatalogAttributeCallable()

public UnaryCallable<AddCatalogAttributeRequest,AttributesConfig> addCatalogAttributeCallable()
Returns
TypeDescription
UnaryCallable<AddCatalogAttributeRequest,AttributesConfig>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchRemoveCatalogAttributesCallable()

public UnaryCallable<BatchRemoveCatalogAttributesRequest,BatchRemoveCatalogAttributesResponse> batchRemoveCatalogAttributesCallable()
Returns
TypeDescription
UnaryCallable<BatchRemoveCatalogAttributesRequest,BatchRemoveCatalogAttributesResponse>
Overrides

close()

public final void close()
Overrides

getAttributesConfigCallable()

public UnaryCallable<GetAttributesConfigRequest,AttributesConfig> getAttributesConfigCallable()
Returns
TypeDescription
UnaryCallable<GetAttributesConfigRequest,AttributesConfig>
Overrides

getCompletionConfigCallable()

public UnaryCallable<GetCompletionConfigRequest,CompletionConfig> getCompletionConfigCallable()
Returns
TypeDescription
UnaryCallable<GetCompletionConfigRequest,CompletionConfig>
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

removeCatalogAttributeCallable()

public UnaryCallable<RemoveCatalogAttributeRequest,AttributesConfig> removeCatalogAttributeCallable()
Returns
TypeDescription
UnaryCallable<RemoveCatalogAttributeRequest,AttributesConfig>
Overrides

replaceCatalogAttributeCallable()

public UnaryCallable<ReplaceCatalogAttributeRequest,AttributesConfig> replaceCatalogAttributeCallable()
Returns
TypeDescription
UnaryCallable<ReplaceCatalogAttributeRequest,AttributesConfig>
Overrides

setDefaultBranchCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAttributesConfigCallable()

public UnaryCallable<UpdateAttributesConfigRequest,AttributesConfig> updateAttributesConfigCallable()
Returns
TypeDescription
UnaryCallable<UpdateAttributesConfigRequest,AttributesConfig>
Overrides

updateCatalogCallable()

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

updateCompletionConfigCallable()

public UnaryCallable<UpdateCompletionConfigRequest,CompletionConfig> updateCompletionConfigCallable()
Returns
TypeDescription
UnaryCallable<UpdateCompletionConfigRequest,CompletionConfig>
Overrides