Class GrpcProductSearchStub
- java.lang.Object
-
- com.google.cloud.vision.v1p3beta1.stub.ProductSearchStub
-
- com.google.cloud.vision.v1p3beta1.stub.GrpcProductSearchStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcProductSearchStub extends ProductSearchStub
gRPC stub implementation for the ProductSearch service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcProductSearchStub(ProductSearchStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcProductSearchStub, using the given settings.protected
GrpcProductSearchStub(ProductSearchStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcProductSearchStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.cloud.vision.v1p3beta1.stub.ProductSearchStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcProductSearchStub
protected GrpcProductSearchStub(ProductSearchStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcProductSearchStub, 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
-
GrpcProductSearchStub
protected GrpcProductSearchStub(ProductSearchStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcProductSearchStub, 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 GrpcProductSearchStub create(ProductSearchStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcProductSearchStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcProductSearchStub 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()
- Overrides:
getOperationsStub
in classProductSearchStub
-
createProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<CreateProductSetRequest,ProductSet> createProductSetCallable()
- Overrides:
createProductSetCallable
in classProductSearchStub
-
listProductSetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductSetsRequest,ListProductSetsResponse> listProductSetsCallable()
- Overrides:
listProductSetsCallable
in classProductSearchStub
-
listProductSetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductSetsRequest,ProductSearchClient.ListProductSetsPagedResponse> listProductSetsPagedCallable()
- Overrides:
listProductSetsPagedCallable
in classProductSearchStub
-
getProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<GetProductSetRequest,ProductSet> getProductSetCallable()
- Overrides:
getProductSetCallable
in classProductSearchStub
-
updateProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProductSetRequest,ProductSet> updateProductSetCallable()
- Overrides:
updateProductSetCallable
in classProductSearchStub
-
deleteProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteProductSetRequest,com.google.protobuf.Empty> deleteProductSetCallable()
- Overrides:
deleteProductSetCallable
in classProductSearchStub
-
createProductCallable
public com.google.api.gax.rpc.UnaryCallable<CreateProductRequest,Product> createProductCallable()
- Overrides:
createProductCallable
in classProductSearchStub
-
listProductsCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsRequest,ListProductsResponse> listProductsCallable()
- Overrides:
listProductsCallable
in classProductSearchStub
-
listProductsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsRequest,ProductSearchClient.ListProductsPagedResponse> listProductsPagedCallable()
- Overrides:
listProductsPagedCallable
in classProductSearchStub
-
getProductCallable
public com.google.api.gax.rpc.UnaryCallable<GetProductRequest,Product> getProductCallable()
- Overrides:
getProductCallable
in classProductSearchStub
-
updateProductCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProductRequest,Product> updateProductCallable()
- Overrides:
updateProductCallable
in classProductSearchStub
-
deleteProductCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteProductRequest,com.google.protobuf.Empty> deleteProductCallable()
- Overrides:
deleteProductCallable
in classProductSearchStub
-
createReferenceImageCallable
public com.google.api.gax.rpc.UnaryCallable<CreateReferenceImageRequest,ReferenceImage> createReferenceImageCallable()
- Overrides:
createReferenceImageCallable
in classProductSearchStub
-
deleteReferenceImageCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteReferenceImageRequest,com.google.protobuf.Empty> deleteReferenceImageCallable()
- Overrides:
deleteReferenceImageCallable
in classProductSearchStub
-
listReferenceImagesCallable
public com.google.api.gax.rpc.UnaryCallable<ListReferenceImagesRequest,ListReferenceImagesResponse> listReferenceImagesCallable()
- Overrides:
listReferenceImagesCallable
in classProductSearchStub
-
listReferenceImagesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReferenceImagesRequest,ProductSearchClient.ListReferenceImagesPagedResponse> listReferenceImagesPagedCallable()
- Overrides:
listReferenceImagesPagedCallable
in classProductSearchStub
-
getReferenceImageCallable
public com.google.api.gax.rpc.UnaryCallable<GetReferenceImageRequest,ReferenceImage> getReferenceImageCallable()
- Overrides:
getReferenceImageCallable
in classProductSearchStub
-
addProductToProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<AddProductToProductSetRequest,com.google.protobuf.Empty> addProductToProductSetCallable()
- Overrides:
addProductToProductSetCallable
in classProductSearchStub
-
removeProductFromProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveProductFromProductSetRequest,com.google.protobuf.Empty> removeProductFromProductSetCallable()
- Overrides:
removeProductFromProductSetCallable
in classProductSearchStub
-
listProductsInProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsInProductSetRequest,ListProductsInProductSetResponse> listProductsInProductSetCallable()
- Overrides:
listProductsInProductSetCallable
in classProductSearchStub
-
listProductsInProductSetPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsInProductSetRequest,ProductSearchClient.ListProductsInProductSetPagedResponse> listProductsInProductSetPagedCallable()
- Overrides:
listProductsInProductSetPagedCallable
in classProductSearchStub
-
importProductSetsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportProductSetsRequest,com.google.longrunning.Operation> importProductSetsCallable()
- Overrides:
importProductSetsCallable
in classProductSearchStub
-
importProductSetsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportProductSetsRequest,ImportProductSetsResponse,BatchOperationMetadata> importProductSetsOperationCallable()
- Overrides:
importProductSetsOperationCallable
in classProductSearchStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classProductSearchStub
-
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
-
-