Package com.google.cloud.retail.v2.stub
Class GrpcCatalogServiceStub
- java.lang.Object
-
- com.google.cloud.retail.v2.stub.CatalogServiceStub
-
- com.google.cloud.retail.v2.stub.GrpcCatalogServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcCatalogServiceStub extends CatalogServiceStub
gRPC 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
GrpcCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcCatalogServiceStub, using the given settings.protected
GrpcCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcCatalogServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcCatalogServiceStub
protected GrpcCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcCatalogServiceStub, 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
-
GrpcCatalogServiceStub
protected GrpcCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcCatalogServiceStub, 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 GrpcCatalogServiceStub create(CatalogServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcCatalogServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcCatalogServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
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
-
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
-
-