|
41 | 41 | * <pre> |
42 | 42 | * <code> |
43 | 43 | * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { |
44 | | - * List<AnnotateImageRequest> requests = new ArrayList<>(); |
45 | | - * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); |
| 44 | + * List<AnnotateFileRequest> requests = new ArrayList<>(); |
| 45 | + * BatchAnnotateFilesResponse response = imageAnnotatorClient.batchAnnotateFiles(requests); |
46 | 46 | * } |
47 | 47 | * </code> |
48 | 48 | * </pre> |
@@ -163,75 +163,6 @@ public final OperationsClient getOperationsClient() { |
163 | 163 | return operationsClient; |
164 | 164 | } |
165 | 165 |
|
166 | | - // AUTO-GENERATED DOCUMENTATION AND METHOD |
167 | | - /** |
168 | | - * Run image detection and annotation for a batch of images. |
169 | | - * |
170 | | - * <p>Sample code: |
171 | | - * |
172 | | - * <pre><code> |
173 | | - * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { |
174 | | - * List<AnnotateImageRequest> requests = new ArrayList<>(); |
175 | | - * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); |
176 | | - * } |
177 | | - * </code></pre> |
178 | | - * |
179 | | - * @param requests Required. Individual image annotation requests for this batch. |
180 | | - * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
181 | | - */ |
182 | | - public final BatchAnnotateImagesResponse batchAnnotateImages( |
183 | | - List<AnnotateImageRequest> requests) { |
184 | | - BatchAnnotateImagesRequest request = |
185 | | - BatchAnnotateImagesRequest.newBuilder().addAllRequests(requests).build(); |
186 | | - return batchAnnotateImages(request); |
187 | | - } |
188 | | - |
189 | | - // AUTO-GENERATED DOCUMENTATION AND METHOD |
190 | | - /** |
191 | | - * Run image detection and annotation for a batch of images. |
192 | | - * |
193 | | - * <p>Sample code: |
194 | | - * |
195 | | - * <pre><code> |
196 | | - * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { |
197 | | - * List<AnnotateImageRequest> requests = new ArrayList<>(); |
198 | | - * BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() |
199 | | - * .addAllRequests(requests) |
200 | | - * .build(); |
201 | | - * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(request); |
202 | | - * } |
203 | | - * </code></pre> |
204 | | - * |
205 | | - * @param request The request object containing all of the parameters for the API call. |
206 | | - * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
207 | | - */ |
208 | | - public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImagesRequest request) { |
209 | | - return batchAnnotateImagesCallable().call(request); |
210 | | - } |
211 | | - |
212 | | - // AUTO-GENERATED DOCUMENTATION AND METHOD |
213 | | - /** |
214 | | - * Run image detection and annotation for a batch of images. |
215 | | - * |
216 | | - * <p>Sample code: |
217 | | - * |
218 | | - * <pre><code> |
219 | | - * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { |
220 | | - * List<AnnotateImageRequest> requests = new ArrayList<>(); |
221 | | - * BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() |
222 | | - * .addAllRequests(requests) |
223 | | - * .build(); |
224 | | - * ApiFuture<BatchAnnotateImagesResponse> future = imageAnnotatorClient.batchAnnotateImagesCallable().futureCall(request); |
225 | | - * // Do something |
226 | | - * BatchAnnotateImagesResponse response = future.get(); |
227 | | - * } |
228 | | - * </code></pre> |
229 | | - */ |
230 | | - public final UnaryCallable<BatchAnnotateImagesRequest, BatchAnnotateImagesResponse> |
231 | | - batchAnnotateImagesCallable() { |
232 | | - return stub.batchAnnotateImagesCallable(); |
233 | | - } |
234 | | - |
235 | 166 | // AUTO-GENERATED DOCUMENTATION AND METHOD |
236 | 167 | /** |
237 | 168 | * Service that performs image detection and annotation for a batch of files. Now only |
@@ -570,6 +501,75 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq |
570 | 501 | return stub.asyncBatchAnnotateFilesCallable(); |
571 | 502 | } |
572 | 503 |
|
| 504 | + // AUTO-GENERATED DOCUMENTATION AND METHOD |
| 505 | + /** |
| 506 | + * Run image detection and annotation for a batch of images. |
| 507 | + * |
| 508 | + * <p>Sample code: |
| 509 | + * |
| 510 | + * <pre><code> |
| 511 | + * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { |
| 512 | + * List<AnnotateImageRequest> requests = new ArrayList<>(); |
| 513 | + * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); |
| 514 | + * } |
| 515 | + * </code></pre> |
| 516 | + * |
| 517 | + * @param requests Required. Individual image annotation requests for this batch. |
| 518 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
| 519 | + */ |
| 520 | + public final BatchAnnotateImagesResponse batchAnnotateImages( |
| 521 | + List<AnnotateImageRequest> requests) { |
| 522 | + BatchAnnotateImagesRequest request = |
| 523 | + BatchAnnotateImagesRequest.newBuilder().addAllRequests(requests).build(); |
| 524 | + return batchAnnotateImages(request); |
| 525 | + } |
| 526 | + |
| 527 | + // AUTO-GENERATED DOCUMENTATION AND METHOD |
| 528 | + /** |
| 529 | + * Run image detection and annotation for a batch of images. |
| 530 | + * |
| 531 | + * <p>Sample code: |
| 532 | + * |
| 533 | + * <pre><code> |
| 534 | + * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { |
| 535 | + * List<AnnotateImageRequest> requests = new ArrayList<>(); |
| 536 | + * BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() |
| 537 | + * .addAllRequests(requests) |
| 538 | + * .build(); |
| 539 | + * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(request); |
| 540 | + * } |
| 541 | + * </code></pre> |
| 542 | + * |
| 543 | + * @param request The request object containing all of the parameters for the API call. |
| 544 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
| 545 | + */ |
| 546 | + public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImagesRequest request) { |
| 547 | + return batchAnnotateImagesCallable().call(request); |
| 548 | + } |
| 549 | + |
| 550 | + // AUTO-GENERATED DOCUMENTATION AND METHOD |
| 551 | + /** |
| 552 | + * Run image detection and annotation for a batch of images. |
| 553 | + * |
| 554 | + * <p>Sample code: |
| 555 | + * |
| 556 | + * <pre><code> |
| 557 | + * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { |
| 558 | + * List<AnnotateImageRequest> requests = new ArrayList<>(); |
| 559 | + * BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() |
| 560 | + * .addAllRequests(requests) |
| 561 | + * .build(); |
| 562 | + * ApiFuture<BatchAnnotateImagesResponse> future = imageAnnotatorClient.batchAnnotateImagesCallable().futureCall(request); |
| 563 | + * // Do something |
| 564 | + * BatchAnnotateImagesResponse response = future.get(); |
| 565 | + * } |
| 566 | + * </code></pre> |
| 567 | + */ |
| 568 | + public final UnaryCallable<BatchAnnotateImagesRequest, BatchAnnotateImagesResponse> |
| 569 | + batchAnnotateImagesCallable() { |
| 570 | + return stub.batchAnnotateImagesCallable(); |
| 571 | + } |
| 572 | + |
573 | 573 | @Override |
574 | 574 | public final void close() { |
575 | 575 | stub.close(); |
|
0 commit comments