Class HttpJsonCatalogServiceStub
java.lang.Object
com.google.cloud.retail.v2beta.stub.CatalogServiceStub
com.google.cloud.retail.v2beta.stub.HttpJsonCatalogServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonCatalogServiceStub, using the given settings.protectedHttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonCatalogServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonCatalogServiceStubcreate(ClientContext clientContext) static final HttpJsonCatalogServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonCatalogServiceStubcreate(CatalogServiceStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanUnaryCallable<SetDefaultBranchRequest,com.google.protobuf.Empty> voidshutdown()void
-
Constructor Details
-
HttpJsonCatalogServiceStub
protected HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
HttpJsonCatalogServiceStub
protected HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
public static final HttpJsonCatalogServiceStub create(CatalogServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonCatalogServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonCatalogServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
listCatalogsCallable
- Overrides:
listCatalogsCallablein classCatalogServiceStub
-
listCatalogsPagedCallable
public UnaryCallable<ListCatalogsRequest,CatalogServiceClient.ListCatalogsPagedResponse> listCatalogsPagedCallable()- Overrides:
listCatalogsPagedCallablein classCatalogServiceStub
-
updateCatalogCallable
- Overrides:
updateCatalogCallablein classCatalogServiceStub
-
setDefaultBranchCallable
- Overrides:
setDefaultBranchCallablein classCatalogServiceStub
-
getDefaultBranchCallable
- Overrides:
getDefaultBranchCallablein classCatalogServiceStub
-
getCompletionConfigCallable
- Overrides:
getCompletionConfigCallablein classCatalogServiceStub
-
updateCompletionConfigCallable
public UnaryCallable<UpdateCompletionConfigRequest,CompletionConfig> updateCompletionConfigCallable()- Overrides:
updateCompletionConfigCallablein classCatalogServiceStub
-
getAttributesConfigCallable
- Overrides:
getAttributesConfigCallablein classCatalogServiceStub
-
updateAttributesConfigCallable
public UnaryCallable<UpdateAttributesConfigRequest,AttributesConfig> updateAttributesConfigCallable()- Overrides:
updateAttributesConfigCallablein classCatalogServiceStub
-
addCatalogAttributeCallable
- Overrides:
addCatalogAttributeCallablein classCatalogServiceStub
-
removeCatalogAttributeCallable
public UnaryCallable<RemoveCatalogAttributeRequest,AttributesConfig> removeCatalogAttributeCallable()- Overrides:
removeCatalogAttributeCallablein classCatalogServiceStub
-
batchRemoveCatalogAttributesCallable
public UnaryCallable<BatchRemoveCatalogAttributesRequest,BatchRemoveCatalogAttributesResponse> batchRemoveCatalogAttributesCallable()- Overrides:
batchRemoveCatalogAttributesCallablein classCatalogServiceStub
-
replaceCatalogAttributeCallable
public UnaryCallable<ReplaceCatalogAttributeRequest,AttributesConfig> replaceCatalogAttributeCallable()- Overrides:
replaceCatalogAttributeCallablein classCatalogServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCatalogServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-