From e60d73155f387636f1a990b2e026b88b150a66b4 Mon Sep 17 00:00:00 2001 From: Nirupa Anantha Kumar Date: Wed, 1 Aug 2018 11:10:44 -0700 Subject: [PATCH] Automl - minor bug fixes (#1168) * Test push * Vision AutoML * Vision AutoML updates + Translate AutoML * Translate README fixes * Fixing Kokoro failure issue * Language AutoML * Vision AutoML * Translate AutoML files added * Triggering tests * Triggering tests * Updates based on comments * Updates after review comments * Fixed build issue * Fixed build issue * Fix other bugs after review * pom file updates * region tag modification * bucket name update for language * other minor updates --- language/automl/pom.xml | 2 +- .../main/java/com/google/cloud/language/samples/ModelApi.java | 4 ++-- .../java/com/google/cloud/language/samples/DatasetApiIT.java | 2 +- translate/automl/pom.xml | 2 +- .../java/com/google/cloud/translate/automl/DatasetApi.java | 2 +- .../com/google/cloud/translate/automl/PredictionApiIT.java | 1 - vision/automl/pom.xml | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/language/automl/pom.xml b/language/automl/pom.xml index 66f481dcf40..d4b2dd00dc1 100644 --- a/language/automl/pom.xml +++ b/language/automl/pom.xml @@ -15,7 +15,7 @@ --> 4.0.0 - com.example.vision + com.google.cloud.language.samples language-automl jar diff --git a/language/automl/src/main/java/com/google/cloud/language/samples/ModelApi.java b/language/automl/src/main/java/com/google/cloud/language/samples/ModelApi.java index 16b4841f290..e1ce03b6846 100644 --- a/language/automl/src/main/java/com/google/cloud/language/samples/ModelApi.java +++ b/language/automl/src/main/java/com/google/cloud/language/samples/ModelApi.java @@ -131,14 +131,14 @@ public static void listModels(String projectId, String computeRegion, String fil LocationName projectLocation = LocationName.of(projectId, computeRegion); // Create list models request. - ListModelsRequest listModlesRequest = + ListModelsRequest listModelsRequest = ListModelsRequest.newBuilder() .setParent(projectLocation.toString()) .setFilter(filter) .build(); System.out.println("List of models:"); - for (Model model : client.listModels(listModlesRequest).iterateAll()) { + for (Model model : client.listModels(listModelsRequest).iterateAll()) { // Display the model information. System.out.println(String.format("Model name: %s", model.getName())); System.out.println( diff --git a/language/automl/src/test/java/com/google/cloud/language/samples/DatasetApiIT.java b/language/automl/src/test/java/com/google/cloud/language/samples/DatasetApiIT.java index 35f2dbf2f71..793c64ed11f 100644 --- a/language/automl/src/test/java/com/google/cloud/language/samples/DatasetApiIT.java +++ b/language/automl/src/test/java/com/google/cloud/language/samples/DatasetApiIT.java @@ -34,7 +34,7 @@ public class DatasetApiIT { private static final String PROJECT_ID = "java-docs-samples-testing"; - private static final String BUCKET = PROJECT_ID + "-vcm"; + private static final String BUCKET = PROJECT_ID + "-lcm"; private static final String COMPUTE_REGION = "us-central1"; private static final String DATASET_NAME = "test_language_dataset"; private ByteArrayOutputStream bout; diff --git a/translate/automl/pom.xml b/translate/automl/pom.xml index 488081b3fe2..833d477e4c1 100644 --- a/translate/automl/pom.xml +++ b/translate/automl/pom.xml @@ -1,5 +1,5 @@ 4.0.0 - com.example.vision + com.example.vision.samples.automl vision-automl jar