Class HttpJsonPrivateCatalogStub (0.16.0)

public class HttpJsonPrivateCatalogStub extends PrivateCatalogStub

REST stub implementation for the PrivateCatalog service API.

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

Inheritance

java.lang.Object > PrivateCatalogStub > HttpJsonPrivateCatalogStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(PrivateCatalogStubSettings settings)

public static final HttpJsonPrivateCatalogStub create(PrivateCatalogStubSettings settings)
Parameter
NameDescription
settingsPrivateCatalogStubSettings
Returns
TypeDescription
HttpJsonPrivateCatalogStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonPrivateCatalogStub(PrivateCatalogStubSettings settings, ClientContext clientContext)

protected HttpJsonPrivateCatalogStub(PrivateCatalogStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonPrivateCatalogStub, 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
settingsPrivateCatalogStubSettings
clientContextClientContext

HttpJsonPrivateCatalogStub(PrivateCatalogStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonPrivateCatalogStub(PrivateCatalogStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

searchCatalogsCallable()

public UnaryCallable<SearchCatalogsRequest,SearchCatalogsResponse> searchCatalogsCallable()
Returns
TypeDescription
UnaryCallable<SearchCatalogsRequest,SearchCatalogsResponse>
Overrides

searchCatalogsPagedCallable()

public UnaryCallable<SearchCatalogsRequest,PrivateCatalogClient.SearchCatalogsPagedResponse> searchCatalogsPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchCatalogsRequest,SearchCatalogsPagedResponse>
Overrides

searchProductsCallable()

public UnaryCallable<SearchProductsRequest,SearchProductsResponse> searchProductsCallable()
Returns
TypeDescription
UnaryCallable<SearchProductsRequest,SearchProductsResponse>
Overrides

searchProductsPagedCallable()

public UnaryCallable<SearchProductsRequest,PrivateCatalogClient.SearchProductsPagedResponse> searchProductsPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchProductsRequest,SearchProductsPagedResponse>
Overrides

searchVersionsCallable()

public UnaryCallable<SearchVersionsRequest,SearchVersionsResponse> searchVersionsCallable()
Returns
TypeDescription
UnaryCallable<SearchVersionsRequest,SearchVersionsResponse>
Overrides

searchVersionsPagedCallable()

public UnaryCallable<SearchVersionsRequest,PrivateCatalogClient.SearchVersionsPagedResponse> searchVersionsPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchVersionsRequest,SearchVersionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()