diff --git a/vision/snippets/src/main/java/com/example/vision/Detect.java b/vision/snippets/src/main/java/com/example/vision/Detect.java index c07bc70e7f6..f50f03e7c9f 100644 --- a/vision/snippets/src/main/java/com/example/vision/Detect.java +++ b/vision/snippets/src/main/java/com/example/vision/Detect.java @@ -13,8 +13,6 @@ */ package com.example.vision; -import com.google.cloud.vision.spi.v1.ImageAnnotatorClient; -import com.google.cloud.vision.spi.v1.ImageAnnotatorSettings; import com.google.cloud.vision.v1.AnnotateImageRequest; import com.google.cloud.vision.v1.AnnotateImageResponse; import com.google.cloud.vision.v1.BatchAnnotateImagesResponse; @@ -28,6 +26,8 @@ import com.google.cloud.vision.v1.Feature; import com.google.cloud.vision.v1.Feature.Type; import com.google.cloud.vision.v1.Image; +import com.google.cloud.vision.v1.ImageAnnotatorClient; +import com.google.cloud.vision.v1.ImageAnnotatorSettings; import com.google.cloud.vision.v1.ImageSource; import com.google.cloud.vision.v1.LocationInfo; import com.google.cloud.vision.v1.Page; diff --git a/vision/snippets/src/main/java/com/example/vision/QuickstartSample.java b/vision/snippets/src/main/java/com/example/vision/QuickstartSample.java index f75307f71cd..195b67f16a4 100644 --- a/vision/snippets/src/main/java/com/example/vision/QuickstartSample.java +++ b/vision/snippets/src/main/java/com/example/vision/QuickstartSample.java @@ -18,7 +18,6 @@ // [START vision_quickstart] // Imports the Google Cloud client library -import com.google.cloud.vision.spi.v1.ImageAnnotatorClient; import com.google.cloud.vision.v1.AnnotateImageRequest; import com.google.cloud.vision.v1.AnnotateImageResponse; import com.google.cloud.vision.v1.BatchAnnotateImagesResponse; @@ -26,6 +25,7 @@ import com.google.cloud.vision.v1.Feature; import com.google.cloud.vision.v1.Feature.Type; import com.google.cloud.vision.v1.Image; +import com.google.cloud.vision.v1.ImageAnnotatorClient; import com.google.protobuf.ByteString; import java.nio.file.Files;