3333 * calls that map to API methods. Sample code to get started:
3434 *
3535 * <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
3841 * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
3942 * ErrorGroupName groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]");
4043 * ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
7174 * <p>To customize credentials:
7275 *
7376 * <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
7682 * ErrorGroupServiceSettings errorGroupServiceSettings =
7783 * ErrorGroupServiceSettings.newBuilder()
7884 * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
8490 * <p>To customize the endpoint:
8591 *
8692 * <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
8998 * ErrorGroupServiceSettings errorGroupServiceSettings =
9099 * ErrorGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
91100 * ErrorGroupServiceClient errorGroupServiceClient =
96105 * the wire:
97106 *
98107 * <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
101113 * ErrorGroupServiceSettings errorGroupServiceSettings =
102114 * ErrorGroupServiceSettings.newBuilder()
103115 * .setTransportChannelProvider(
@@ -160,47 +172,18 @@ public ErrorGroupServiceStub getStub() {
160172 return stub ;
161173 }
162174
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-
195175 // AUTO-GENERATED DOCUMENTATION AND METHOD.
196176 /**
197177 * Get the specified group.
198178 *
199179 * <p>Sample code:
200180 *
201181 * <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
204187 * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
205188 * ErrorGroupName groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]");
206189 * ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
@@ -229,8 +212,11 @@ public final ErrorGroup getGroup(ErrorGroupName groupName) {
229212 * <p>Sample code:
230213 *
231214 * <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
234220 * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
235221 * String groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]").toString();
236222 * ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
@@ -256,8 +242,11 @@ public final ErrorGroup getGroup(String groupName) {
256242 * <p>Sample code:
257243 *
258244 * <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
261250 * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
262251 * GetGroupRequest request =
263252 * GetGroupRequest.newBuilder()
@@ -281,8 +270,11 @@ public final ErrorGroup getGroup(GetGroupRequest request) {
281270 * <p>Sample code:
282271 *
283272 * <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
286278 * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
287279 * GetGroupRequest request =
288280 * GetGroupRequest.newBuilder()
@@ -305,8 +297,11 @@ public final UnaryCallable<GetGroupRequest, ErrorGroup> getGroupCallable() {
305297 * <p>Sample code:
306298 *
307299 * <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
310305 * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
311306 * ErrorGroup group = ErrorGroup.newBuilder().build();
312307 * ErrorGroup response = errorGroupServiceClient.updateGroup(group);
@@ -328,8 +323,11 @@ public final ErrorGroup updateGroup(ErrorGroup group) {
328323 * <p>Sample code:
329324 *
330325 * <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
333331 * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
334332 * UpdateGroupRequest request =
335333 * UpdateGroupRequest.newBuilder().setGroup(ErrorGroup.newBuilder().build()).build();
@@ -351,8 +349,11 @@ public final ErrorGroup updateGroup(UpdateGroupRequest request) {
351349 * <p>Sample code:
352350 *
353351 * <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
356357 * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
357358 * UpdateGroupRequest request =
358359 * UpdateGroupRequest.newBuilder().setGroup(ErrorGroup.newBuilder().build()).build();
0 commit comments