@@ -728,7 +728,6 @@ public static void detectPropertiesGcs(String gcsPath, PrintStream out) throws E
728
728
}
729
729
// [END vision_image_property_detection_gcs]
730
730
731
- // [START vision_detect_safe_search]
732
731
/**
733
732
* Detects whether the specified image has features you would want to moderate.
734
733
*
@@ -737,6 +736,7 @@ public static void detectPropertiesGcs(String gcsPath, PrintStream out) throws E
737
736
* @throws Exception on errors while closing the client.
738
737
* @throws IOException on Input/Output errors.
739
738
*/
739
+ // [START vision_safe_search_detection]
740
740
public static void detectSafeSearch (String filePath , PrintStream out ) throws Exception ,
741
741
IOException {
742
742
List <AnnotateImageRequest > requests = new ArrayList <>();
@@ -771,9 +771,8 @@ public static void detectSafeSearch(String filePath, PrintStream out) throws Exc
771
771
}
772
772
}
773
773
}
774
- // [END vision_detect_safe_search ]
774
+ // [END vision_safe_search_detection ]
775
775
776
- // [START vision_detect_safe_search_uri]
777
776
/**
778
777
* Detects whether the specified image on Google Cloud Storage has features you would want
779
778
* to moderate.
@@ -783,6 +782,7 @@ public static void detectSafeSearch(String filePath, PrintStream out) throws Exc
783
782
* @throws Exception on errors while closing the client.
784
783
* @throws IOException on Input/Output errors.
785
784
*/
785
+ // [START vision_safe_search_detection_gcs]
786
786
public static void detectSafeSearchGcs (String gcsPath , PrintStream out ) throws Exception ,
787
787
IOException {
788
788
List <AnnotateImageRequest > requests = new ArrayList <>();
@@ -816,7 +816,7 @@ public static void detectSafeSearchGcs(String gcsPath, PrintStream out) throws E
816
816
}
817
817
}
818
818
}
819
- // [END vision_detect_safe_search_uri ]
819
+ // [END vision_safe_search_detection_gcs ]
820
820
821
821
// [START vision_detect_web]
822
822
/**
0 commit comments