51
51
* calls that map to API methods. Sample code to get started:
52
52
*
53
53
* <pre>{@code
54
- * // This snippet has been automatically generated for illustrative purposes only.
55
- * // It may require modifications to work in your environment.
54
+ * // This snippet has been automatically generated and should be regarded as a code template only.
55
+ * // It will require modifications to work:
56
+ * // - It may require correct/in-range values for request initialization.
57
+ * // - It may require specifying regional endpoints when creating the service client as shown in
58
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
56
59
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
57
60
* CommitCursorRequest request =
58
61
* CommitCursorRequest.newBuilder()
93
96
* <p>To customize credentials:
94
97
*
95
98
* <pre>{@code
96
- * // This snippet has been automatically generated for illustrative purposes only.
97
- * // It may require modifications to work in your environment.
99
+ * // This snippet has been automatically generated and should be regarded as a code template only.
100
+ * // It will require modifications to work:
101
+ * // - It may require correct/in-range values for request initialization.
102
+ * // - It may require specifying regional endpoints when creating the service client as shown in
103
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
98
104
* CursorServiceSettings cursorServiceSettings =
99
105
* CursorServiceSettings.newBuilder()
100
106
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
105
111
* <p>To customize the endpoint:
106
112
*
107
113
* <pre>{@code
108
- * // This snippet has been automatically generated for illustrative purposes only.
109
- * // It may require modifications to work in your environment.
114
+ * // This snippet has been automatically generated and should be regarded as a code template only.
115
+ * // It will require modifications to work:
116
+ * // - It may require correct/in-range values for request initialization.
117
+ * // - It may require specifying regional endpoints when creating the service client as shown in
118
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
110
119
* CursorServiceSettings cursorServiceSettings =
111
120
* CursorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
112
121
* CursorServiceClient cursorServiceClient = CursorServiceClient.create(cursorServiceSettings);
@@ -171,8 +180,11 @@ public CursorServiceStub getStub() {
171
180
* <p>Sample code:
172
181
*
173
182
* <pre>{@code
174
- * // This snippet has been automatically generated for illustrative purposes only.
175
- * // It may require modifications to work in your environment.
183
+ * // This snippet has been automatically generated and should be regarded as a code template only.
184
+ * // It will require modifications to work:
185
+ * // - It may require correct/in-range values for request initialization.
186
+ * // - It may require specifying regional endpoints when creating the service client as shown in
187
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
176
188
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
177
189
* BidiStream<StreamingCommitCursorRequest, StreamingCommitCursorResponse> bidiStream =
178
190
* cursorServiceClient.streamingCommitCursorCallable().call();
@@ -196,8 +208,11 @@ public CursorServiceStub getStub() {
196
208
* <p>Sample code:
197
209
*
198
210
* <pre>{@code
199
- * // This snippet has been automatically generated for illustrative purposes only.
200
- * // It may require modifications to work in your environment.
211
+ * // This snippet has been automatically generated and should be regarded as a code template only.
212
+ * // It will require modifications to work:
213
+ * // - It may require correct/in-range values for request initialization.
214
+ * // - It may require specifying regional endpoints when creating the service client as shown in
215
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
201
216
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
202
217
* CommitCursorRequest request =
203
218
* CommitCursorRequest.newBuilder()
@@ -223,8 +238,11 @@ public final CommitCursorResponse commitCursor(CommitCursorRequest request) {
223
238
* <p>Sample code:
224
239
*
225
240
* <pre>{@code
226
- * // This snippet has been automatically generated for illustrative purposes only.
227
- * // It may require modifications to work in your environment.
241
+ * // This snippet has been automatically generated and should be regarded as a code template only.
242
+ * // It will require modifications to work:
243
+ * // - It may require correct/in-range values for request initialization.
244
+ * // - It may require specifying regional endpoints when creating the service client as shown in
245
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
228
246
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
229
247
* CommitCursorRequest request =
230
248
* CommitCursorRequest.newBuilder()
@@ -250,8 +268,11 @@ public final UnaryCallable<CommitCursorRequest, CommitCursorResponse> commitCurs
250
268
* <p>Sample code:
251
269
*
252
270
* <pre>{@code
253
- * // This snippet has been automatically generated for illustrative purposes only.
254
- * // It may require modifications to work in your environment.
271
+ * // This snippet has been automatically generated and should be regarded as a code template only.
272
+ * // It will require modifications to work:
273
+ * // - It may require correct/in-range values for request initialization.
274
+ * // - It may require specifying regional endpoints when creating the service client as shown in
275
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
255
276
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
256
277
* SubscriptionName parent = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
257
278
* for (PartitionCursor element :
@@ -280,8 +301,11 @@ public final ListPartitionCursorsPagedResponse listPartitionCursors(Subscription
280
301
* <p>Sample code:
281
302
*
282
303
* <pre>{@code
283
- * // This snippet has been automatically generated for illustrative purposes only.
284
- * // It may require modifications to work in your environment.
304
+ * // This snippet has been automatically generated and should be regarded as a code template only.
305
+ * // It will require modifications to work:
306
+ * // - It may require correct/in-range values for request initialization.
307
+ * // - It may require specifying regional endpoints when creating the service client as shown in
308
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
285
309
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
286
310
* String parent = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString();
287
311
* for (PartitionCursor element :
@@ -308,8 +332,11 @@ public final ListPartitionCursorsPagedResponse listPartitionCursors(String paren
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 (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
314
341
* ListPartitionCursorsRequest request =
315
342
* ListPartitionCursorsRequest.newBuilder()
@@ -340,8 +367,11 @@ public final ListPartitionCursorsPagedResponse listPartitionCursors(
340
367
* <p>Sample code:
341
368
*
342
369
* <pre>{@code
343
- * // This snippet has been automatically generated for illustrative purposes only.
344
- * // It may require modifications to work in your environment.
370
+ * // This snippet has been automatically generated and should be regarded as a code template only.
371
+ * // It will require modifications to work:
372
+ * // - It may require correct/in-range values for request initialization.
373
+ * // - It may require specifying regional endpoints when creating the service client as shown in
374
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
345
375
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
346
376
* ListPartitionCursorsRequest request =
347
377
* ListPartitionCursorsRequest.newBuilder()
@@ -371,8 +401,11 @@ public final ListPartitionCursorsPagedResponse listPartitionCursors(
371
401
* <p>Sample code:
372
402
*
373
403
* <pre>{@code
374
- * // This snippet has been automatically generated for illustrative purposes only.
375
- * // It may require modifications to work in your environment.
404
+ * // This snippet has been automatically generated and should be regarded as a code template only.
405
+ * // It will require modifications to work:
406
+ * // - It may require correct/in-range values for request initialization.
407
+ * // - It may require specifying regional endpoints when creating the service client as shown in
408
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
376
409
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
377
410
* ListPartitionCursorsRequest request =
378
411
* ListPartitionCursorsRequest.newBuilder()
0 commit comments