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