Class HttpJsonCatalogServiceStub
- java.lang.Object
-
- com.google.cloud.retail.v2beta.stub.CatalogServiceStub
-
- com.google.cloud.retail.v2beta.stub.HttpJsonCatalogServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.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
Constructors Modifier Constructor Description protected
HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonCatalogServiceStub, using the given settings.protected
HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonCatalogServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonCatalogServiceStub
protected HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.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 Detail
-
create
public static final HttpJsonCatalogServiceStub create(CatalogServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonCatalogServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonCatalogServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
listCatalogsCallable
public com.google.api.gax.rpc.UnaryCallable<ListCatalogsRequest,ListCatalogsResponse> listCatalogsCallable()
- Overrides:
listCatalogsCallable
in classCatalogServiceStub
-
listCatalogsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCatalogsRequest,CatalogServiceClient.ListCatalogsPagedResponse> listCatalogsPagedCallable()
- Overrides:
listCatalogsPagedCallable
in classCatalogServiceStub
-
updateCatalogCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCatalogRequest,Catalog> updateCatalogCallable()
- Overrides:
updateCatalogCallable
in classCatalogServiceStub
-
setDefaultBranchCallable
public com.google.api.gax.rpc.UnaryCallable<SetDefaultBranchRequest,com.google.protobuf.Empty> setDefaultBranchCallable()
- Overrides:
setDefaultBranchCallable
in classCatalogServiceStub
-
getDefaultBranchCallable
public com.google.api.gax.rpc.UnaryCallable<GetDefaultBranchRequest,GetDefaultBranchResponse> getDefaultBranchCallable()
- Overrides:
getDefaultBranchCallable
in classCatalogServiceStub
-
getCompletionConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetCompletionConfigRequest,CompletionConfig> getCompletionConfigCallable()
- Overrides:
getCompletionConfigCallable
in classCatalogServiceStub
-
updateCompletionConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCompletionConfigRequest,CompletionConfig> updateCompletionConfigCallable()
- Overrides:
updateCompletionConfigCallable
in classCatalogServiceStub
-
getAttributesConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetAttributesConfigRequest,AttributesConfig> getAttributesConfigCallable()
- Overrides:
getAttributesConfigCallable
in classCatalogServiceStub
-
updateAttributesConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateAttributesConfigRequest,AttributesConfig> updateAttributesConfigCallable()
- Overrides:
updateAttributesConfigCallable
in classCatalogServiceStub
-
addCatalogAttributeCallable
public com.google.api.gax.rpc.UnaryCallable<AddCatalogAttributeRequest,AttributesConfig> addCatalogAttributeCallable()
- Overrides:
addCatalogAttributeCallable
in classCatalogServiceStub
-
removeCatalogAttributeCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveCatalogAttributeRequest,AttributesConfig> removeCatalogAttributeCallable()
- Overrides:
removeCatalogAttributeCallable
in classCatalogServiceStub
-
batchRemoveCatalogAttributesCallable
public com.google.api.gax.rpc.UnaryCallable<BatchRemoveCatalogAttributesRequest,BatchRemoveCatalogAttributesResponse> batchRemoveCatalogAttributesCallable()
- Overrides:
batchRemoveCatalogAttributesCallable
in classCatalogServiceStub
-
replaceCatalogAttributeCallable
public com.google.api.gax.rpc.UnaryCallable<ReplaceCatalogAttributeRequest,AttributesConfig> replaceCatalogAttributeCallable()
- Overrides:
replaceCatalogAttributeCallable
in classCatalogServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classCatalogServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-