• 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.v1p3beta1.stub;
18 
19 import static com.google.cloud.vision.v1p3beta1.ProductSearchClient.ListProductSetsPagedResponse;
20 import static com.google.cloud.vision.v1p3beta1.ProductSearchClient.ListProductsInProductSetPagedResponse;
21 import static com.google.cloud.vision.v1p3beta1.ProductSearchClient.ListProductsPagedResponse;
22 import static com.google.cloud.vision.v1p3beta1.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.v1p3beta1.AddProductToProductSetRequest;
29 import com.google.cloud.vision.v1p3beta1.BatchOperationMetadata;
30 import com.google.cloud.vision.v1p3beta1.CreateProductRequest;
31 import com.google.cloud.vision.v1p3beta1.CreateProductSetRequest;
32 import com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest;
33 import com.google.cloud.vision.v1p3beta1.DeleteProductRequest;
34 import com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest;
35 import com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest;
36 import com.google.cloud.vision.v1p3beta1.GetProductRequest;
37 import com.google.cloud.vision.v1p3beta1.GetProductSetRequest;
38 import com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest;
39 import com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest;
40 import com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse;
41 import com.google.cloud.vision.v1p3beta1.ListProductSetsRequest;
42 import com.google.cloud.vision.v1p3beta1.ListProductSetsResponse;
43 import com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest;
44 import com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse;
45 import com.google.cloud.vision.v1p3beta1.ListProductsRequest;
46 import com.google.cloud.vision.v1p3beta1.ListProductsResponse;
47 import com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest;
48 import com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse;
49 import com.google.cloud.vision.v1p3beta1.Product;
50 import com.google.cloud.vision.v1p3beta1.ProductSet;
51 import com.google.cloud.vision.v1p3beta1.ReferenceImage;
52 import com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest;
53 import com.google.cloud.vision.v1p3beta1.UpdateProductRequest;
54 import com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest;
55 import com.google.longrunning.Operation;
56 import com.google.longrunning.stub.OperationsStub;
57 import com.google.protobuf.Empty;
58 import javax.annotation.Generated;
59 
60 // AUTO-GENERATED DOCUMENTATION AND CLASS.
61 /**
62  * Base stub class for the ProductSearch service API.
63  *
64  * <p>This class is for advanced usage and reflects the underlying API directly.
65  */
66 @BetaApi
67 @Generated("by gapic-generator-java")
68 public abstract class ProductSearchStub implements BackgroundResource {
69 
getOperationsStub()70   public OperationsStub getOperationsStub() {
71     return null;
72   }
73 
getHttpJsonOperationsStub()74   public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
75     return null;
76   }
77 
createProductSetCallable()78   public UnaryCallable<CreateProductSetRequest, ProductSet> createProductSetCallable() {
79     throw new UnsupportedOperationException("Not implemented: createProductSetCallable()");
80   }
81 
82   public UnaryCallable<ListProductSetsRequest, ListProductSetsPagedResponse>
listProductSetsPagedCallable()83       listProductSetsPagedCallable() {
84     throw new UnsupportedOperationException("Not implemented: listProductSetsPagedCallable()");
85   }
86 
listProductSetsCallable()87   public UnaryCallable<ListProductSetsRequest, ListProductSetsResponse> listProductSetsCallable() {
88     throw new UnsupportedOperationException("Not implemented: listProductSetsCallable()");
89   }
90 
getProductSetCallable()91   public UnaryCallable<GetProductSetRequest, ProductSet> getProductSetCallable() {
92     throw new UnsupportedOperationException("Not implemented: getProductSetCallable()");
93   }
94 
updateProductSetCallable()95   public UnaryCallable<UpdateProductSetRequest, ProductSet> updateProductSetCallable() {
96     throw new UnsupportedOperationException("Not implemented: updateProductSetCallable()");
97   }
98 
deleteProductSetCallable()99   public UnaryCallable<DeleteProductSetRequest, Empty> deleteProductSetCallable() {
100     throw new UnsupportedOperationException("Not implemented: deleteProductSetCallable()");
101   }
102 
createProductCallable()103   public UnaryCallable<CreateProductRequest, Product> createProductCallable() {
104     throw new UnsupportedOperationException("Not implemented: createProductCallable()");
105   }
106 
listProductsPagedCallable()107   public UnaryCallable<ListProductsRequest, ListProductsPagedResponse> listProductsPagedCallable() {
108     throw new UnsupportedOperationException("Not implemented: listProductsPagedCallable()");
109   }
110 
listProductsCallable()111   public UnaryCallable<ListProductsRequest, ListProductsResponse> listProductsCallable() {
112     throw new UnsupportedOperationException("Not implemented: listProductsCallable()");
113   }
114 
getProductCallable()115   public UnaryCallable<GetProductRequest, Product> getProductCallable() {
116     throw new UnsupportedOperationException("Not implemented: getProductCallable()");
117   }
118 
updateProductCallable()119   public UnaryCallable<UpdateProductRequest, Product> updateProductCallable() {
120     throw new UnsupportedOperationException("Not implemented: updateProductCallable()");
121   }
122 
deleteProductCallable()123   public UnaryCallable<DeleteProductRequest, Empty> deleteProductCallable() {
124     throw new UnsupportedOperationException("Not implemented: deleteProductCallable()");
125   }
126 
createReferenceImageCallable()127   public UnaryCallable<CreateReferenceImageRequest, ReferenceImage> createReferenceImageCallable() {
128     throw new UnsupportedOperationException("Not implemented: createReferenceImageCallable()");
129   }
130 
deleteReferenceImageCallable()131   public UnaryCallable<DeleteReferenceImageRequest, Empty> deleteReferenceImageCallable() {
132     throw new UnsupportedOperationException("Not implemented: deleteReferenceImageCallable()");
133   }
134 
135   public UnaryCallable<ListReferenceImagesRequest, ListReferenceImagesPagedResponse>
listReferenceImagesPagedCallable()136       listReferenceImagesPagedCallable() {
137     throw new UnsupportedOperationException("Not implemented: listReferenceImagesPagedCallable()");
138   }
139 
140   public UnaryCallable<ListReferenceImagesRequest, ListReferenceImagesResponse>
listReferenceImagesCallable()141       listReferenceImagesCallable() {
142     throw new UnsupportedOperationException("Not implemented: listReferenceImagesCallable()");
143   }
144 
getReferenceImageCallable()145   public UnaryCallable<GetReferenceImageRequest, ReferenceImage> getReferenceImageCallable() {
146     throw new UnsupportedOperationException("Not implemented: getReferenceImageCallable()");
147   }
148 
addProductToProductSetCallable()149   public UnaryCallable<AddProductToProductSetRequest, Empty> addProductToProductSetCallable() {
150     throw new UnsupportedOperationException("Not implemented: addProductToProductSetCallable()");
151   }
152 
153   public UnaryCallable<RemoveProductFromProductSetRequest, Empty>
removeProductFromProductSetCallable()154       removeProductFromProductSetCallable() {
155     throw new UnsupportedOperationException(
156         "Not implemented: removeProductFromProductSetCallable()");
157   }
158 
159   public UnaryCallable<ListProductsInProductSetRequest, ListProductsInProductSetPagedResponse>
listProductsInProductSetPagedCallable()160       listProductsInProductSetPagedCallable() {
161     throw new UnsupportedOperationException(
162         "Not implemented: listProductsInProductSetPagedCallable()");
163   }
164 
165   public UnaryCallable<ListProductsInProductSetRequest, ListProductsInProductSetResponse>
listProductsInProductSetCallable()166       listProductsInProductSetCallable() {
167     throw new UnsupportedOperationException("Not implemented: listProductsInProductSetCallable()");
168   }
169 
170   public OperationCallable<
171           ImportProductSetsRequest, ImportProductSetsResponse, BatchOperationMetadata>
importProductSetsOperationCallable()172       importProductSetsOperationCallable() {
173     throw new UnsupportedOperationException(
174         "Not implemented: importProductSetsOperationCallable()");
175   }
176 
importProductSetsCallable()177   public UnaryCallable<ImportProductSetsRequest, Operation> importProductSetsCallable() {
178     throw new UnsupportedOperationException("Not implemented: importProductSetsCallable()");
179   }
180 
181   @Override
close()182   public abstract void close();
183 }
184