Class HttpJsonCatalogServiceStub (0.48.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

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

createCatalogItemCallable()

public UnaryCallable<CreateCatalogItemRequest,CatalogItem> createCatalogItemCallable()
Returns
TypeDescription
UnaryCallable<CreateCatalogItemRequest,CatalogItem>
Overrides

deleteCatalogItemCallable()

public UnaryCallable<DeleteCatalogItemRequest,Empty> deleteCatalogItemCallable()
Returns
TypeDescription
UnaryCallable<DeleteCatalogItemRequest,Empty>
Overrides

getCatalogItemCallable()

public UnaryCallable<GetCatalogItemRequest,CatalogItem> getCatalogItemCallable()
Returns
TypeDescription
UnaryCallable<GetCatalogItemRequest,CatalogItem>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

importCatalogItemsCallable()

public UnaryCallable<ImportCatalogItemsRequest,Operation> importCatalogItemsCallable()
Returns
TypeDescription
UnaryCallable<ImportCatalogItemsRequest,Operation>
Overrides

importCatalogItemsOperationCallable()

public OperationCallable<ImportCatalogItemsRequest,ImportCatalogItemsResponse,ImportMetadata> importCatalogItemsOperationCallable()
Returns
TypeDescription
OperationCallable<ImportCatalogItemsRequest,ImportCatalogItemsResponse,ImportMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCatalogItemsCallable()

public UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsResponse> listCatalogItemsCallable()
Returns
TypeDescription
UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsResponse>
Overrides

listCatalogItemsPagedCallable()

public UnaryCallable<ListCatalogItemsRequest,CatalogServiceClient.ListCatalogItemsPagedResponse> listCatalogItemsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCatalogItemCallable()

public UnaryCallable<UpdateCatalogItemRequest,CatalogItem> updateCatalogItemCallable()
Returns
TypeDescription
UnaryCallable<UpdateCatalogItemRequest,CatalogItem>
Overrides