Skip to content

Commit 5360828

Browse files
authored
samples: fix generated samples directory (#70)
1 parent 4d10a2a commit 5360828

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

vision/src/main/java/com/google/cloud/examples/vision/v1/VisionAsyncBatchAnnotateImages.java renamed to vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionAsyncBatchAnnotateImages.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync",
17-
// "vision_async_batch_annotate_images")
16+
// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", "vision_async_batch_annotate_images")
1817
// sample-metadata:
1918
// title: Async Batch Image Annotation
2019
// description: Perform async batch image annotation
21-
// usage: gradle run
22-
// -PmainClass=com.google.cloud.examples.vision.v1.VisionAsyncBatchAnnotateImages
23-
// [--args='[--input_image_uri "gs://cloud-samples-data/vision/label/wakeupcat.jpg"] [--output_uri
24-
// "gs://your-bucket/prefix/"]']
20+
// 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/"]']
2521

2622
package com.google.cloud.examples.vision.v1;
2723

vision/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFiles.java renamed to vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFiles.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
// sample-metadata:
1818
// title:
1919
// description: Perform batch file annotation
20-
// usage: gradle run -PmainClass=com.google.cloud.examples.vision.v1.VisionBatchAnnotateFiles
21-
// [--args='[--file_path "resources/kafka.pdf"]']
20+
// usage: gradle run -PmainClass=com.google.cloud.examples.vision.v1.VisionBatchAnnotateFiles [--args='[--file_path "resources/kafka.pdf"]']
2221

2322
package com.google.cloud.examples.vision.v1;
2423

@@ -95,8 +94,7 @@ public static void sampleBatchAnnotateFiles(String filePath) {
9594
Feature featuresElement = Feature.newBuilder().setType(type).build();
9695
List<Feature> features = Arrays.asList(featuresElement);
9796

98-
// The service can process up to 5 pages per document file. Here we specify the first, second,
99-
// and
97+
// The service can process up to 5 pages per document file. Here we specify the first, second, and
10098
// last page of the document to be processed.
10199
int pagesElement = 1;
102100
int pagesElement2 = 2;

vision/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFilesGcs.java renamed to vision/generated/src/main/java/com/google/cloud/examples/vision/v1/VisionBatchAnnotateFilesGcs.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
// sample-metadata:
1818
// title:
1919
// description: Perform batch file annotation
20-
// usage: gradle run -PmainClass=com.google.cloud.examples.vision.v1.VisionBatchAnnotateFilesGcs
21-
// [--args='[--storage_uri "gs://cloud-samples-data/vision/document_understanding/kafka.pdf"]']
20+
// usage: gradle run -PmainClass=com.google.cloud.examples.vision.v1.VisionBatchAnnotateFilesGcs [--args='[--storage_uri "gs://cloud-samples-data/vision/document_understanding/kafka.pdf"]']
2221

2322
package com.google.cloud.examples.vision.v1;
2423

0 commit comments

Comments
 (0)