Class HttpJsonCatalogServiceStub (2.22.0)

public class HttpJsonCatalogServiceStub extends CatalogServiceStub

REST stub implementation for the CatalogService service API.

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

Inheritance

java.lang.Object > CatalogServiceStub > HttpJsonCatalogServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonCatalogServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonCatalogServiceStub
Exceptions
TypeDescription
IOException

create(CatalogServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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

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