50
50
* calls that map to API methods. Sample code to get started:
51
51
*
52
52
* <pre>{@code
53
- * // This snippet has been automatically generated for illustrative purposes only.
54
- * // It may require modifications to work in your environment.
53
+ * // This snippet has been automatically generated and should be regarded as a code template only.
54
+ * // It will require modifications to work:
55
+ * // - It may require correct/in-range values for request initialization.
56
+ * // - It may require specifying regional endpoints when creating the service client as shown in
57
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
55
58
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
56
59
* String projectId = "projectId-894832108";
57
60
* String traceId = "traceId-1067401920";
88
91
* <p>To customize credentials:
89
92
*
90
93
* <pre>{@code
91
- * // This snippet has been automatically generated for illustrative purposes only.
92
- * // 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
93
99
* TraceServiceSettings traceServiceSettings =
94
100
* TraceServiceSettings.newBuilder()
95
101
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
100
106
* <p>To customize the endpoint:
101
107
*
102
108
* <pre>{@code
103
- * // This snippet has been automatically generated for illustrative purposes only.
104
- * // It may require modifications to work in your environment.
109
+ * // This snippet has been automatically generated and should be regarded as a code template only.
110
+ * // It will require modifications to work:
111
+ * // - It may require correct/in-range values for request initialization.
112
+ * // - It may require specifying regional endpoints when creating the service client as shown in
113
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
105
114
* TraceServiceSettings traceServiceSettings =
106
115
* TraceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
107
116
* TraceServiceClient traceServiceClient = TraceServiceClient.create(traceServiceSettings);
111
120
* the wire:
112
121
*
113
122
* <pre>{@code
114
- * // This snippet has been automatically generated for illustrative purposes only.
115
- * // It may require modifications to work in your environment.
123
+ * // This snippet has been automatically generated and should be regarded as a code template only.
124
+ * // It will require modifications to work:
125
+ * // - It may require correct/in-range values for request initialization.
126
+ * // - It may require specifying regional endpoints when creating the service client as shown in
127
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
116
128
* TraceServiceSettings traceServiceSettings =
117
129
* TraceServiceSettings.newBuilder()
118
130
* .setTransportChannelProvider(
@@ -179,8 +191,11 @@ public TraceServiceStub getStub() {
179
191
* <p>Sample code:
180
192
*
181
193
* <pre>{@code
182
- * // This snippet has been automatically generated for illustrative purposes only.
183
- * // It may require modifications to work in your environment.
194
+ * // This snippet has been automatically generated and should be regarded as a code template only.
195
+ * // It will require modifications to work:
196
+ * // - It may require correct/in-range values for request initialization.
197
+ * // - It may require specifying regional endpoints when creating the service client as shown in
198
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
184
199
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
185
200
* String projectId = "projectId-894832108";
186
201
* for (Trace element : traceServiceClient.listTraces(projectId).iterateAll()) {
@@ -204,8 +219,11 @@ public final ListTracesPagedResponse listTraces(String projectId) {
204
219
* <p>Sample code:
205
220
*
206
221
* <pre>{@code
207
- * // This snippet has been automatically generated for illustrative purposes only.
208
- * // It may require modifications to work in your environment.
222
+ * // This snippet has been automatically generated and should be regarded as a code template only.
223
+ * // It will require modifications to work:
224
+ * // - It may require correct/in-range values for request initialization.
225
+ * // - It may require specifying regional endpoints when creating the service client as shown in
226
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
209
227
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
210
228
* ListTracesRequest request =
211
229
* ListTracesRequest.newBuilder()
@@ -237,8 +255,11 @@ public final ListTracesPagedResponse listTraces(ListTracesRequest request) {
237
255
* <p>Sample code:
238
256
*
239
257
* <pre>{@code
240
- * // This snippet has been automatically generated for illustrative purposes only.
241
- * // It may require modifications to work in your environment.
258
+ * // This snippet has been automatically generated and should be regarded as a code template only.
259
+ * // It will require modifications to work:
260
+ * // - It may require correct/in-range values for request initialization.
261
+ * // - It may require specifying regional endpoints when creating the service client as shown in
262
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
242
263
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
243
264
* ListTracesRequest request =
244
265
* ListTracesRequest.newBuilder()
@@ -269,8 +290,11 @@ public final UnaryCallable<ListTracesRequest, ListTracesPagedResponse> listTrace
269
290
* <p>Sample code:
270
291
*
271
292
* <pre>{@code
272
- * // This snippet has been automatically generated for illustrative purposes only.
273
- * // It may require modifications to work in your environment.
293
+ * // This snippet has been automatically generated and should be regarded as a code template only.
294
+ * // It will require modifications to work:
295
+ * // - It may require correct/in-range values for request initialization.
296
+ * // - It may require specifying regional endpoints when creating the service client as shown in
297
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
274
298
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
275
299
* ListTracesRequest request =
276
300
* ListTracesRequest.newBuilder()
@@ -308,8 +332,11 @@ public final UnaryCallable<ListTracesRequest, ListTracesResponse> listTracesCall
308
332
* <p>Sample code:
309
333
*
310
334
* <pre>{@code
311
- * // This snippet has been automatically generated for illustrative purposes only.
312
- * // It may require modifications to work in your environment.
335
+ * // This snippet has been automatically generated and should be regarded as a code template only.
336
+ * // It will require modifications to work:
337
+ * // - It may require correct/in-range values for request initialization.
338
+ * // - It may require specifying regional endpoints when creating the service client as shown in
339
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
313
340
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
314
341
* String projectId = "projectId-894832108";
315
342
* String traceId = "traceId-1067401920";
@@ -334,8 +361,11 @@ public final Trace getTrace(String projectId, String traceId) {
334
361
* <p>Sample code:
335
362
*
336
363
* <pre>{@code
337
- * // This snippet has been automatically generated for illustrative purposes only.
338
- * // It may require modifications to work in your environment.
364
+ * // This snippet has been automatically generated and should be regarded as a code template only.
365
+ * // It will require modifications to work:
366
+ * // - It may require correct/in-range values for request initialization.
367
+ * // - It may require specifying regional endpoints when creating the service client as shown in
368
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
339
369
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
340
370
* GetTraceRequest request =
341
371
* GetTraceRequest.newBuilder()
@@ -360,8 +390,11 @@ public final Trace getTrace(GetTraceRequest request) {
360
390
* <p>Sample code:
361
391
*
362
392
* <pre>{@code
363
- * // This snippet has been automatically generated for illustrative purposes only.
364
- * // It may require modifications to work in your environment.
393
+ * // This snippet has been automatically generated and should be regarded as a code template only.
394
+ * // It will require modifications to work:
395
+ * // - It may require correct/in-range values for request initialization.
396
+ * // - It may require specifying regional endpoints when creating the service client as shown in
397
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
365
398
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
366
399
* GetTraceRequest request =
367
400
* GetTraceRequest.newBuilder()
@@ -388,8 +421,11 @@ public final UnaryCallable<GetTraceRequest, Trace> getTraceCallable() {
388
421
* <p>Sample code:
389
422
*
390
423
* <pre>{@code
391
- * // This snippet has been automatically generated for illustrative purposes only.
392
- * // It may require modifications to work in your environment.
424
+ * // This snippet has been automatically generated and should be regarded as a code template only.
425
+ * // It will require modifications to work:
426
+ * // - It may require correct/in-range values for request initialization.
427
+ * // - It may require specifying regional endpoints when creating the service client as shown in
428
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
393
429
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
394
430
* String projectId = "projectId-894832108";
395
431
* Traces traces = Traces.newBuilder().build();
@@ -417,8 +453,11 @@ public final void patchTraces(String projectId, Traces traces) {
417
453
* <p>Sample code:
418
454
*
419
455
* <pre>{@code
420
- * // This snippet has been automatically generated for illustrative purposes only.
421
- * // It may require modifications to work in your environment.
456
+ * // This snippet has been automatically generated and should be regarded as a code template only.
457
+ * // It will require modifications to work:
458
+ * // - It may require correct/in-range values for request initialization.
459
+ * // - It may require specifying regional endpoints when creating the service client as shown in
460
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
422
461
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
423
462
* PatchTracesRequest request =
424
463
* PatchTracesRequest.newBuilder()
@@ -446,8 +485,11 @@ public final void patchTraces(PatchTracesRequest request) {
446
485
* <p>Sample code:
447
486
*
448
487
* <pre>{@code
449
- * // This snippet has been automatically generated for illustrative purposes only.
450
- * // It may require modifications to work in your environment.
488
+ * // This snippet has been automatically generated and should be regarded as a code template only.
489
+ * // It will require modifications to work:
490
+ * // - It may require correct/in-range values for request initialization.
491
+ * // - It may require specifying regional endpoints when creating the service client as shown in
492
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
451
493
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
452
494
* PatchTracesRequest request =
453
495
* PatchTracesRequest.newBuilder()
0 commit comments