From 5360828da812838f4198cc1647ace96dcfa14d3c Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 27 Feb 2020 11:01:13 -0800 Subject: [PATCH] samples: fix generated samples directory (#70) --- .../vision/v1/VisionAsyncBatchAnnotateImages.java | 8 ++------ .../examples/vision/v1/VisionBatchAnnotateFiles.java | 6 ++---- .../examples/vision/v1/VisionBatchAnnotateFilesGcs.java | 3 +-- 3 files changed, 5 insertions(+), 12 deletions(-) rename vision/{ => generated}/src/main/java/com/google/cloud/examples/vision/v1/VisionAsyncBatchAnnotateImages.java (95%) rename vision/{ => generated}/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFiles.java (97%) rename vision/{ => generated}/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFilesGcs.java (97%) diff --git a/vision/src/main/java/com/google/cloud/examples/vision/v1/VisionAsyncBatchAnnotateImages.java b/vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionAsyncBatchAnnotateImages.java similarity index 95% rename from vision/src/main/java/com/google/cloud/examples/vision/v1/VisionAsyncBatchAnnotateImages.java rename to vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionAsyncBatchAnnotateImages.java index 666424d5e9e..066c0579a29 100644 --- a/vision/src/main/java/com/google/cloud/examples/vision/v1/VisionAsyncBatchAnnotateImages.java +++ b/vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionAsyncBatchAnnotateImages.java @@ -13,15 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", -// "vision_async_batch_annotate_images") +// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", "vision_async_batch_annotate_images") // sample-metadata: // title: Async Batch Image Annotation // description: Perform async batch image annotation -// usage: gradle run -// -PmainClass=com.google.cloud.examples.vision.v1.VisionAsyncBatchAnnotateImages -// [--args='[--input_image_uri "gs://cloud-samples-data/vision/label/wakeupcat.jpg"] [--output_uri -// "gs://your-bucket/prefix/"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.vision.v1.VisionAsyncBatchAnnotateImages [--args='[--input_image_uri "gs://cloud-samples-data/vision/label/wakeupcat.jpg"] [--output_uri "gs://your-bucket/prefix/"]'] package com.google.cloud.examples.vision.v1; diff --git a/vision/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFiles.java b/vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFiles.java similarity index 97% rename from vision/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFiles.java rename to vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFiles.java index b0280f91eae..3198a189087 100644 --- a/vision/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFiles.java +++ b/vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFiles.java @@ -17,8 +17,7 @@ // sample-metadata: // title: // description: Perform batch file annotation -// usage: gradle run -PmainClass=com.google.cloud.examples.vision.v1.VisionBatchAnnotateFiles -// [--args='[--file_path "resources/kafka.pdf"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.vision.v1.VisionBatchAnnotateFiles [--args='[--file_path "resources/kafka.pdf"]'] package com.google.cloud.examples.vision.v1; @@ -95,8 +94,7 @@ public static void sampleBatchAnnotateFiles(String filePath) { Feature featuresElement = Feature.newBuilder().setType(type).build(); List features = Arrays.asList(featuresElement); - // The service can process up to 5 pages per document file. Here we specify the first, second, - // and + // The service can process up to 5 pages per document file. Here we specify the first, second, and // last page of the document to be processed. int pagesElement = 1; int pagesElement2 = 2; diff --git a/vision/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFilesGcs.java b/vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFilesGcs.java similarity index 97% rename from vision/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFilesGcs.java rename to vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFilesGcs.java index 3dfe91cb94c..0cd73675a2f 100644 --- a/vision/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFilesGcs.java +++ b/vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFilesGcs.java @@ -17,8 +17,7 @@ // sample-metadata: // title: // description: Perform batch file annotation -// usage: gradle run -PmainClass=com.google.cloud.examples.vision.v1.VisionBatchAnnotateFilesGcs -// [--args='[--storage_uri "gs://cloud-samples-data/vision/document_understanding/kafka.pdf"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.vision.v1.VisionBatchAnnotateFilesGcs [--args='[--storage_uri "gs://cloud-samples-data/vision/document_understanding/kafka.pdf"]'] package com.google.cloud.examples.vision.v1;