33
33
* calls that map to API methods. Sample code to get started:
34
34
*
35
35
* <pre>{@code
36
- * // This snippet has been automatically generated for illustrative purposes only.
37
- * // It may require modifications to work in your environment.
36
+ * // This snippet has been automatically generated and should be regarded as a code template only.
37
+ * // It will require modifications to work:
38
+ * // - It may require correct/in-range values for request initialization.
39
+ * // - It may require specifying regional endpoints when creating the service client as shown in
40
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
38
41
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
39
42
* ErrorGroupName groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]");
40
43
* ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
71
74
* <p>To customize credentials:
72
75
*
73
76
* <pre>{@code
74
- * // This snippet has been automatically generated for illustrative purposes only.
75
- * // It may require modifications to work in your environment.
77
+ * // This snippet has been automatically generated and should be regarded as a code template only.
78
+ * // It will require modifications to work:
79
+ * // - It may require correct/in-range values for request initialization.
80
+ * // - It may require specifying regional endpoints when creating the service client as shown in
81
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
76
82
* ErrorGroupServiceSettings errorGroupServiceSettings =
77
83
* ErrorGroupServiceSettings.newBuilder()
78
84
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
84
90
* <p>To customize the endpoint:
85
91
*
86
92
* <pre>{@code
87
- * // This snippet has been automatically generated for illustrative purposes only.
88
- * // It may require modifications to work in your environment.
93
+ * // This snippet has been automatically generated and should be regarded as a code template only.
94
+ * // It will require modifications to work:
95
+ * // - It may require correct/in-range values for request initialization.
96
+ * // - It may require specifying regional endpoints when creating the service client as shown in
97
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
89
98
* ErrorGroupServiceSettings errorGroupServiceSettings =
90
99
* ErrorGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
91
100
* ErrorGroupServiceClient errorGroupServiceClient =
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
* ErrorGroupServiceSettings errorGroupServiceSettings =
102
114
* ErrorGroupServiceSettings.newBuilder()
103
115
* .setTransportChannelProvider(
@@ -160,47 +172,18 @@ public ErrorGroupServiceStub getStub() {
160
172
return stub ;
161
173
}
162
174
163
- // Inserted by synthtool to preserve backwards-compatibility
164
- /**
165
- * Get the specified group.
166
- *
167
- * <p>Sample code:
168
- *
169
- * <pre><code>
170
- * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
171
- * GroupName groupName = GroupName.of("[PROJECT]", "[GROUP]");
172
- * ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
173
- * }
174
- * </code></pre>
175
- *
176
- * @param groupName Required. The group resource name. Written as
177
- * <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
178
- * Call <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
179
- * <code>groupStats.list</code></a> to return a list of groups belonging to
180
- * this project.
181
- * <p>Example: <code>projects/my-project-123/groups/my-group</code>
182
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
183
- * @deprecated Use ErrorGroupServiceClient#getGroup(ErrorGroupName)
184
- */
185
- @ Deprecated
186
- public final ErrorGroup getGroup (GroupName groupName ) {
187
-
188
- GetGroupRequest request =
189
- GetGroupRequest .newBuilder ()
190
- .setGroupName (groupName == null ? null : groupName .toString ())
191
- .build ();
192
- return getGroup (request );
193
- }
194
-
195
175
// AUTO-GENERATED DOCUMENTATION AND METHOD.
196
176
/**
197
177
* Get the specified group.
198
178
*
199
179
* <p>Sample code:
200
180
*
201
181
* <pre>{@code
202
- * // This snippet has been automatically generated for illustrative purposes only.
203
- * // It may require modifications to work in your environment.
182
+ * // This snippet has been automatically generated and should be regarded as a code template only.
183
+ * // It will require modifications to work:
184
+ * // - It may require correct/in-range values for request initialization.
185
+ * // - It may require specifying regional endpoints when creating the service client as shown in
186
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
204
187
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
205
188
* ErrorGroupName groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]");
206
189
* ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
@@ -229,8 +212,11 @@ public final ErrorGroup getGroup(ErrorGroupName groupName) {
229
212
* <p>Sample code:
230
213
*
231
214
* <pre>{@code
232
- * // This snippet has been automatically generated for illustrative purposes only.
233
- * // It may require modifications to work in your environment.
215
+ * // This snippet has been automatically generated and should be regarded as a code template only.
216
+ * // It will require modifications to work:
217
+ * // - It may require correct/in-range values for request initialization.
218
+ * // - It may require specifying regional endpoints when creating the service client as shown in
219
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
234
220
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
235
221
* String groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]").toString();
236
222
* ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
@@ -256,8 +242,11 @@ public final ErrorGroup getGroup(String groupName) {
256
242
* <p>Sample code:
257
243
*
258
244
* <pre>{@code
259
- * // This snippet has been automatically generated for illustrative purposes only.
260
- * // It may require modifications to work in your environment.
245
+ * // This snippet has been automatically generated and should be regarded as a code template only.
246
+ * // It will require modifications to work:
247
+ * // - It may require correct/in-range values for request initialization.
248
+ * // - It may require specifying regional endpoints when creating the service client as shown in
249
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
261
250
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
262
251
* GetGroupRequest request =
263
252
* GetGroupRequest.newBuilder()
@@ -281,8 +270,11 @@ public final ErrorGroup getGroup(GetGroupRequest request) {
281
270
* <p>Sample code:
282
271
*
283
272
* <pre>{@code
284
- * // This snippet has been automatically generated for illustrative purposes only.
285
- * // It may require modifications to work in your environment.
273
+ * // This snippet has been automatically generated and should be regarded as a code template only.
274
+ * // It will require modifications to work:
275
+ * // - It may require correct/in-range values for request initialization.
276
+ * // - It may require specifying regional endpoints when creating the service client as shown in
277
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
286
278
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
287
279
* GetGroupRequest request =
288
280
* GetGroupRequest.newBuilder()
@@ -305,8 +297,11 @@ public final UnaryCallable<GetGroupRequest, ErrorGroup> getGroupCallable() {
305
297
* <p>Sample code:
306
298
*
307
299
* <pre>{@code
308
- * // This snippet has been automatically generated for illustrative purposes only.
309
- * // It may require modifications to work in your environment.
300
+ * // This snippet has been automatically generated and should be regarded as a code template only.
301
+ * // It will require modifications to work:
302
+ * // - It may require correct/in-range values for request initialization.
303
+ * // - It may require specifying regional endpoints when creating the service client as shown in
304
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
310
305
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
311
306
* ErrorGroup group = ErrorGroup.newBuilder().build();
312
307
* ErrorGroup response = errorGroupServiceClient.updateGroup(group);
@@ -328,8 +323,11 @@ public final ErrorGroup updateGroup(ErrorGroup group) {
328
323
* <p>Sample code:
329
324
*
330
325
* <pre>{@code
331
- * // This snippet has been automatically generated for illustrative purposes only.
332
- * // It may require modifications to work in your environment.
326
+ * // This snippet has been automatically generated and should be regarded as a code template only.
327
+ * // It will require modifications to work:
328
+ * // - It may require correct/in-range values for request initialization.
329
+ * // - It may require specifying regional endpoints when creating the service client as shown in
330
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
333
331
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
334
332
* UpdateGroupRequest request =
335
333
* UpdateGroupRequest.newBuilder().setGroup(ErrorGroup.newBuilder().build()).build();
@@ -351,8 +349,11 @@ public final ErrorGroup updateGroup(UpdateGroupRequest request) {
351
349
* <p>Sample code:
352
350
*
353
351
* <pre>{@code
354
- * // This snippet has been automatically generated for illustrative purposes only.
355
- * // It may require modifications to work in your environment.
352
+ * // This snippet has been automatically generated and should be regarded as a code template only.
353
+ * // It will require modifications to work:
354
+ * // - It may require correct/in-range values for request initialization.
355
+ * // - It may require specifying regional endpoints when creating the service client as shown in
356
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
356
357
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
357
358
* UpdateGroupRequest request =
358
359
* UpdateGroupRequest.newBuilder().setGroup(ErrorGroup.newBuilder().build()).build();
0 commit comments