36
36
* calls that map to API methods. Sample code to get started:
37
37
*
38
38
* <pre>{@code
39
- * // This snippet has been automatically generated for illustrative purposes only.
40
- * // It may require modifications to work in your environment.
39
+ * // This snippet has been automatically generated and should be regarded as a code template only.
40
+ * // It will require modifications to work:
41
+ * // - It may require correct/in-range values for request initialization.
42
+ * // - It may require specifying regional endpoints when creating the service client as shown in
43
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
41
44
* try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
42
45
* List<AnnotateImageRequest> requests = new ArrayList<>();
43
46
* BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
73
76
* <p>To customize credentials:
74
77
*
75
78
* <pre>{@code
76
- * // This snippet has been automatically generated for illustrative purposes only.
77
- * // It may require modifications to work in your environment.
79
+ * // This snippet has been automatically generated and should be regarded as a code template only.
80
+ * // It will require modifications to work:
81
+ * // - It may require correct/in-range values for request initialization.
82
+ * // - It may require specifying regional endpoints when creating the service client as shown in
83
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
78
84
* ImageAnnotatorSettings imageAnnotatorSettings =
79
85
* ImageAnnotatorSettings.newBuilder()
80
86
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
85
91
* <p>To customize the endpoint:
86
92
*
87
93
* <pre>{@code
88
- * // This snippet has been automatically generated for illustrative purposes only.
89
- * // It may require modifications to work in your environment.
94
+ * // This snippet has been automatically generated and should be regarded as a code template only.
95
+ * // It will require modifications to work:
96
+ * // - It may require correct/in-range values for request initialization.
97
+ * // - It may require specifying regional endpoints when creating the service client as shown in
98
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
90
99
* ImageAnnotatorSettings imageAnnotatorSettings =
91
100
* ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build();
92
101
* ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings);
96
105
* the wire:
97
106
*
98
107
* <pre>{@code
99
- * // This snippet has been automatically generated for illustrative purposes only.
100
- * // It may require modifications to work in your environment.
108
+ * // This snippet has been automatically generated and should be regarded as a code template only.
109
+ * // It will require modifications to work:
110
+ * // - It may require correct/in-range values for request initialization.
111
+ * // - It may require specifying regional endpoints when creating the service client as shown in
112
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
101
113
* ImageAnnotatorSettings imageAnnotatorSettings =
102
114
* ImageAnnotatorSettings.newBuilder()
103
115
* .setTransportChannelProvider(
@@ -166,8 +178,11 @@ public ImageAnnotatorStub getStub() {
166
178
* <p>Sample code:
167
179
*
168
180
* <pre>{@code
169
- * // This snippet has been automatically generated for illustrative purposes only.
170
- * // It may require modifications to work in your environment.
181
+ * // This snippet has been automatically generated and should be regarded as a code template only.
182
+ * // It will require modifications to work:
183
+ * // - It may require correct/in-range values for request initialization.
184
+ * // - It may require specifying regional endpoints when creating the service client as shown in
185
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
171
186
* try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
172
187
* List<AnnotateImageRequest> requests = new ArrayList<>();
173
188
* BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -191,8 +206,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(
191
206
* <p>Sample code:
192
207
*
193
208
* <pre>{@code
194
- * // This snippet has been automatically generated for illustrative purposes only.
195
- * // It may require modifications to work in your environment.
209
+ * // This snippet has been automatically generated and should be regarded as a code template only.
210
+ * // It will require modifications to work:
211
+ * // - It may require correct/in-range values for request initialization.
212
+ * // - It may require specifying regional endpoints when creating the service client as shown in
213
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
196
214
* try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
197
215
* BatchAnnotateImagesRequest request =
198
216
* BatchAnnotateImagesRequest.newBuilder()
@@ -216,8 +234,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
216
234
* <p>Sample code:
217
235
*
218
236
* <pre>{@code
219
- * // This snippet has been automatically generated for illustrative purposes only.
220
- * // It may require modifications to work in your environment.
237
+ * // This snippet has been automatically generated and should be regarded as a code template only.
238
+ * // It will require modifications to work:
239
+ * // - It may require correct/in-range values for request initialization.
240
+ * // - It may require specifying regional endpoints when creating the service client as shown in
241
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
221
242
* try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
222
243
* BatchAnnotateImagesRequest request =
223
244
* BatchAnnotateImagesRequest.newBuilder()
0 commit comments