• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.cloud.vision.v1p4beta1.stub;
18 
19 import static com.google.cloud.vision.v1p4beta1.ProductSearchClient.ListProductSetsPagedResponse;
20 import static com.google.cloud.vision.v1p4beta1.ProductSearchClient.ListProductsInProductSetPagedResponse;
21 import static com.google.cloud.vision.v1p4beta1.ProductSearchClient.ListProductsPagedResponse;
22 import static com.google.cloud.vision.v1p4beta1.ProductSearchClient.ListReferenceImagesPagedResponse;
23 
24 import com.google.api.core.BetaApi;
25 import com.google.api.gax.core.BackgroundResource;
26 import com.google.api.gax.rpc.OperationCallable;
27 import com.google.api.gax.rpc.UnaryCallable;
28 import com.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest;
29 import com.google.cloud.vision.v1p4beta1.BatchOperationMetadata;
30 import com.google.cloud.vision.v1p4beta1.CreateProductRequest;
31 import com.google.cloud.vision.v1p4beta1.CreateProductSetRequest;
32 import com.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest;
33 import com.google.cloud.vision.v1p4beta1.DeleteProductRequest;
34 import com.google.cloud.vision.v1p4beta1.DeleteProductSetRequest;
35 import com.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest;
36 import com.google.cloud.vision.v1p4beta1.GetProductRequest;
37 import com.google.cloud.vision.v1p4beta1.GetProductSetRequest;
38 import com.google.cloud.vision.v1p4beta1.GetReferenceImageRequest;
39 import com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest;
40 import com.google.cloud.vision.v1p4beta1.ImportProductSetsResponse;
41 import com.google.cloud.vision.v1p4beta1.ListProductSetsRequest;
42 import com.google.cloud.vision.v1p4beta1.ListProductSetsResponse;
43 import com.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest;
44 import com.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse;
45 import com.google.cloud.vision.v1p4beta1.ListProductsRequest;
46 import com.google.cloud.vision.v1p4beta1.ListProductsResponse;
47 import com.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest;
48 import com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse;
49 import com.google.cloud.vision.v1p4beta1.Product;
50 import com.google.cloud.vision.v1p4beta1.ProductSet;
51 import com.google.cloud.vision.v1p4beta1.PurgeProductsRequest;
52 import com.google.cloud.vision.v1p4beta1.ReferenceImage;
53 import com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest;
54 import com.google.cloud.vision.v1p4beta1.UpdateProductRequest;
55 import com.google.cloud.vision.v1p4beta1.UpdateProductSetRequest;
56 import com.google.longrunning.Operation;
57 import com.google.longrunning.stub.OperationsStub;
58 import com.google.protobuf.Empty;
59 import javax.annotation.Generated;
60 
61 // AUTO-GENERATED DOCUMENTATION AND CLASS.
62 /**
63  * Base stub class for the ProductSearch service API.
64  *
65  * <p>This class is for advanced usage and reflects the underlying API directly.
66  */
67 @BetaApi
68 @Generated("by gapic-generator-java")
69 public abstract class ProductSearchStub implements BackgroundResource {
70 
getOperationsStub()71   public OperationsStub getOperationsStub() {
72     return null;
73   }
74 
getHttpJsonOperationsStub()75   public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
76     return null;
77   }
78 
createProductSetCallable()79   public UnaryCallable<CreateProductSetRequest, ProductSet> createProductSetCallable() {
80     throw new UnsupportedOperationException("Not implemented: createProductSetCallable()");
81   }
82 
83   public UnaryCallable<ListProductSetsRequest, ListProductSetsPagedResponse>
listProductSetsPagedCallable()84       listProductSetsPagedCallable() {
85     throw new UnsupportedOperationException("Not implemented: listProductSetsPagedCallable()");
86   }
87 
listProductSetsCallable()88   public UnaryCallable<ListProductSetsRequest, ListProductSetsResponse> listProductSetsCallable() {
89     throw new UnsupportedOperationException("Not implemented: listProductSetsCallable()");
90   }
91 
getProductSetCallable()92   public UnaryCallable<GetProductSetRequest, ProductSet> getProductSetCallable() {
93     throw new UnsupportedOperationException("Not implemented: getProductSetCallable()");
94   }
95 
updateProductSetCallable()96   public UnaryCallable<UpdateProductSetRequest, ProductSet> updateProductSetCallable() {
97     throw new UnsupportedOperationException("Not implemented: updateProductSetCallable()");
98   }
99 
deleteProductSetCallable()100   public UnaryCallable<DeleteProductSetRequest, Empty> deleteProductSetCallable() {
101     throw new UnsupportedOperationException("Not implemented: deleteProductSetCallable()");
102   }
103 
createProductCallable()104   public UnaryCallable<CreateProductRequest, Product> createProductCallable() {
105     throw new UnsupportedOperationException("Not implemented: createProductCallable()");
106   }
107 
listProductsPagedCallable()108   public UnaryCallable<ListProductsRequest, ListProductsPagedResponse> listProductsPagedCallable() {
109     throw new UnsupportedOperationException("Not implemented: listProductsPagedCallable()");
110   }
111 
listProductsCallable()112   public UnaryCallable<ListProductsRequest, ListProductsResponse> listProductsCallable() {
113     throw new UnsupportedOperationException("Not implemented: listProductsCallable()");
114   }
115 
getProductCallable()116   public UnaryCallable<GetProductRequest, Product> getProductCallable() {
117     throw new UnsupportedOperationException("Not implemented: getProductCallable()");
118   }
119 
updateProductCallable()120   public UnaryCallable<UpdateProductRequest, Product> updateProductCallable() {
121     throw new UnsupportedOperationException("Not implemented: updateProductCallable()");
122   }
123 
deleteProductCallable()124   public UnaryCallable<DeleteProductRequest, Empty> deleteProductCallable() {
125     throw new UnsupportedOperationException("Not implemented: deleteProductCallable()");
126   }
127 
createReferenceImageCallable()128   public UnaryCallable<CreateReferenceImageRequest, ReferenceImage> createReferenceImageCallable() {
129     throw new UnsupportedOperationException("Not implemented: createReferenceImageCallable()");
130   }
131 
deleteReferenceImageCallable()132   public UnaryCallable<DeleteReferenceImageRequest, Empty> deleteReferenceImageCallable() {
133     throw new UnsupportedOperationException("Not implemented: deleteReferenceImageCallable()");
134   }
135 
136   public UnaryCallable<ListReferenceImagesRequest, ListReferenceImagesPagedResponse>
listReferenceImagesPagedCallable()137       listReferenceImagesPagedCallable() {
138     throw new UnsupportedOperationException("Not implemented: listReferenceImagesPagedCallable()");
139   }
140 
141   public UnaryCallable<ListReferenceImagesRequest, ListReferenceImagesResponse>
listReferenceImagesCallable()142       listReferenceImagesCallable() {
143     throw new UnsupportedOperationException("Not implemented: listReferenceImagesCallable()");
144   }
145 
getReferenceImageCallable()146   public UnaryCallable<GetReferenceImageRequest, ReferenceImage> getReferenceImageCallable() {
147     throw new UnsupportedOperationException("Not implemented: getReferenceImageCallable()");
148   }
149 
addProductToProductSetCallable()150   public UnaryCallable<AddProductToProductSetRequest, Empty> addProductToProductSetCallable() {
151     throw new UnsupportedOperationException("Not implemented: addProductToProductSetCallable()");
152   }
153 
154   public UnaryCallable<RemoveProductFromProductSetRequest, Empty>
removeProductFromProductSetCallable()155       removeProductFromProductSetCallable() {
156     throw new UnsupportedOperationException(
157         "Not implemented: removeProductFromProductSetCallable()");
158   }
159 
160   public UnaryCallable<ListProductsInProductSetRequest, ListProductsInProductSetPagedResponse>
listProductsInProductSetPagedCallable()161       listProductsInProductSetPagedCallable() {
162     throw new UnsupportedOperationException(
163         "Not implemented: listProductsInProductSetPagedCallable()");
164   }
165 
166   public UnaryCallable<ListProductsInProductSetRequest, ListProductsInProductSetResponse>
listProductsInProductSetCallable()167       listProductsInProductSetCallable() {
168     throw new UnsupportedOperationException("Not implemented: listProductsInProductSetCallable()");
169   }
170 
171   public OperationCallable<
172           ImportProductSetsRequest, ImportProductSetsResponse, BatchOperationMetadata>
importProductSetsOperationCallable()173       importProductSetsOperationCallable() {
174     throw new UnsupportedOperationException(
175         "Not implemented: importProductSetsOperationCallable()");
176   }
177 
importProductSetsCallable()178   public UnaryCallable<ImportProductSetsRequest, Operation> importProductSetsCallable() {
179     throw new UnsupportedOperationException("Not implemented: importProductSetsCallable()");
180   }
181 
182   public OperationCallable<PurgeProductsRequest, Empty, BatchOperationMetadata>
purgeProductsOperationCallable()183       purgeProductsOperationCallable() {
184     throw new UnsupportedOperationException("Not implemented: purgeProductsOperationCallable()");
185   }
186 
purgeProductsCallable()187   public UnaryCallable<PurgeProductsRequest, Operation> purgeProductsCallable() {
188     throw new UnsupportedOperationException("Not implemented: purgeProductsCallable()");
189   }
190 
191   @Override
close()192   public abstract void close();
193 }
194