Package com.google.cloud.vision.v1.stub
Class HttpJsonProductSearchStub
- java.lang.Object
-
- com.google.cloud.vision.v1.stub.ProductSearchStub
-
- com.google.cloud.vision.v1.stub.HttpJsonProductSearchStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonProductSearchStub extends ProductSearchStub
REST 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 protectedHttpJsonProductSearchStub(ProductSearchStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonProductSearchStub, using the given settings.protectedHttpJsonProductSearchStub(ProductSearchStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonProductSearchStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.cloud.vision.v1.stub.ProductSearchStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonProductSearchStub
protected HttpJsonProductSearchStub(ProductSearchStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonProductSearchStub, 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
-
HttpJsonProductSearchStub
protected HttpJsonProductSearchStub(ProductSearchStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonProductSearchStub, 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 HttpJsonProductSearchStub create(ProductSearchStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonProductSearchStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonProductSearchStub 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()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin classProductSearchStub
-
createProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<CreateProductSetRequest,ProductSet> createProductSetCallable()
- Overrides:
createProductSetCallablein classProductSearchStub
-
listProductSetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductSetsRequest,ListProductSetsResponse> listProductSetsCallable()
- Overrides:
listProductSetsCallablein classProductSearchStub
-
listProductSetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductSetsRequest,ProductSearchClient.ListProductSetsPagedResponse> listProductSetsPagedCallable()
- Overrides:
listProductSetsPagedCallablein classProductSearchStub
-
getProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<GetProductSetRequest,ProductSet> getProductSetCallable()
- Overrides:
getProductSetCallablein classProductSearchStub
-
updateProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProductSetRequest,ProductSet> updateProductSetCallable()
- Overrides:
updateProductSetCallablein classProductSearchStub
-
deleteProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteProductSetRequest,com.google.protobuf.Empty> deleteProductSetCallable()
- Overrides:
deleteProductSetCallablein classProductSearchStub
-
createProductCallable
public com.google.api.gax.rpc.UnaryCallable<CreateProductRequest,Product> createProductCallable()
- Overrides:
createProductCallablein classProductSearchStub
-
listProductsCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsRequest,ListProductsResponse> listProductsCallable()
- Overrides:
listProductsCallablein classProductSearchStub
-
listProductsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsRequest,ProductSearchClient.ListProductsPagedResponse> listProductsPagedCallable()
- Overrides:
listProductsPagedCallablein classProductSearchStub
-
getProductCallable
public com.google.api.gax.rpc.UnaryCallable<GetProductRequest,Product> getProductCallable()
- Overrides:
getProductCallablein classProductSearchStub
-
updateProductCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProductRequest,Product> updateProductCallable()
- Overrides:
updateProductCallablein classProductSearchStub
-
deleteProductCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteProductRequest,com.google.protobuf.Empty> deleteProductCallable()
- Overrides:
deleteProductCallablein classProductSearchStub
-
createReferenceImageCallable
public com.google.api.gax.rpc.UnaryCallable<CreateReferenceImageRequest,ReferenceImage> createReferenceImageCallable()
- Overrides:
createReferenceImageCallablein classProductSearchStub
-
deleteReferenceImageCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteReferenceImageRequest,com.google.protobuf.Empty> deleteReferenceImageCallable()
- Overrides:
deleteReferenceImageCallablein classProductSearchStub
-
listReferenceImagesCallable
public com.google.api.gax.rpc.UnaryCallable<ListReferenceImagesRequest,ListReferenceImagesResponse> listReferenceImagesCallable()
- Overrides:
listReferenceImagesCallablein classProductSearchStub
-
listReferenceImagesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReferenceImagesRequest,ProductSearchClient.ListReferenceImagesPagedResponse> listReferenceImagesPagedCallable()
- Overrides:
listReferenceImagesPagedCallablein classProductSearchStub
-
getReferenceImageCallable
public com.google.api.gax.rpc.UnaryCallable<GetReferenceImageRequest,ReferenceImage> getReferenceImageCallable()
- Overrides:
getReferenceImageCallablein classProductSearchStub
-
addProductToProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<AddProductToProductSetRequest,com.google.protobuf.Empty> addProductToProductSetCallable()
- Overrides:
addProductToProductSetCallablein classProductSearchStub
-
removeProductFromProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveProductFromProductSetRequest,com.google.protobuf.Empty> removeProductFromProductSetCallable()
- Overrides:
removeProductFromProductSetCallablein classProductSearchStub
-
listProductsInProductSetCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsInProductSetRequest,ListProductsInProductSetResponse> listProductsInProductSetCallable()
- Overrides:
listProductsInProductSetCallablein classProductSearchStub
-
listProductsInProductSetPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsInProductSetRequest,ProductSearchClient.ListProductsInProductSetPagedResponse> listProductsInProductSetPagedCallable()
- Overrides:
listProductsInProductSetPagedCallablein classProductSearchStub
-
importProductSetsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportProductSetsRequest,com.google.longrunning.Operation> importProductSetsCallable()
- Overrides:
importProductSetsCallablein classProductSearchStub
-
importProductSetsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportProductSetsRequest,ImportProductSetsResponse,BatchOperationMetadata> importProductSetsOperationCallable()
- Overrides:
importProductSetsOperationCallablein classProductSearchStub
-
purgeProductsCallable
public com.google.api.gax.rpc.UnaryCallable<PurgeProductsRequest,com.google.longrunning.Operation> purgeProductsCallable()
- Overrides:
purgeProductsCallablein classProductSearchStub
-
purgeProductsOperationCallable
public com.google.api.gax.rpc.OperationCallable<PurgeProductsRequest,com.google.protobuf.Empty,BatchOperationMetadata> purgeProductsOperationCallable()
- Overrides:
purgeProductsOperationCallablein classProductSearchStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-