Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 28dde8c

Browse files
chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 (#860)
* chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 PiperOrigin-RevId: 446250659 Source-Link: googleapis/googleapis@dc4ef31 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 37f6e7a commit 28dde8c

30 files changed

+116
-30
lines changed

google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,6 +33,8 @@
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.
3638
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
3739
* ErrorGroupName groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]");
3840
* ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
@@ -69,6 +71,8 @@
6971
* <p>To customize credentials:
7072
*
7173
* <pre>{@code
74+
* // This snippet has been automatically generated for illustrative purposes only.
75+
* // It may require modifications to work in your environment.
7276
* ErrorGroupServiceSettings errorGroupServiceSettings =
7377
* ErrorGroupServiceSettings.newBuilder()
7478
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -80,6 +84,8 @@
8084
* <p>To customize the endpoint:
8185
*
8286
* <pre>{@code
87+
* // This snippet has been automatically generated for illustrative purposes only.
88+
* // It may require modifications to work in your environment.
8389
* ErrorGroupServiceSettings errorGroupServiceSettings =
8490
* ErrorGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
8591
* ErrorGroupServiceClient errorGroupServiceClient =
@@ -181,6 +187,8 @@ public final ErrorGroup getGroup(GroupName groupName) {
181187
* <p>Sample code:
182188
*
183189
* <pre>{@code
190+
* // This snippet has been automatically generated for illustrative purposes only.
191+
* // It may require modifications to work in your environment.
184192
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
185193
* ErrorGroupName groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]");
186194
* ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
@@ -209,6 +217,8 @@ public final ErrorGroup getGroup(ErrorGroupName groupName) {
209217
* <p>Sample code:
210218
*
211219
* <pre>{@code
220+
* // This snippet has been automatically generated for illustrative purposes only.
221+
* // It may require modifications to work in your environment.
212222
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
213223
* String groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]").toString();
214224
* ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
@@ -234,6 +244,8 @@ public final ErrorGroup getGroup(String groupName) {
234244
* <p>Sample code:
235245
*
236246
* <pre>{@code
247+
* // This snippet has been automatically generated for illustrative purposes only.
248+
* // It may require modifications to work in your environment.
237249
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
238250
* GetGroupRequest request =
239251
* GetGroupRequest.newBuilder()
@@ -257,6 +269,8 @@ public final ErrorGroup getGroup(GetGroupRequest request) {
257269
* <p>Sample code:
258270
*
259271
* <pre>{@code
272+
* // This snippet has been automatically generated for illustrative purposes only.
273+
* // It may require modifications to work in your environment.
260274
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
261275
* GetGroupRequest request =
262276
* GetGroupRequest.newBuilder()
@@ -279,6 +293,8 @@ public final UnaryCallable<GetGroupRequest, ErrorGroup> getGroupCallable() {
279293
* <p>Sample code:
280294
*
281295
* <pre>{@code
296+
* // This snippet has been automatically generated for illustrative purposes only.
297+
* // It may require modifications to work in your environment.
282298
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
283299
* ErrorGroup group = ErrorGroup.newBuilder().build();
284300
* ErrorGroup response = errorGroupServiceClient.updateGroup(group);
@@ -300,6 +316,8 @@ public final ErrorGroup updateGroup(ErrorGroup group) {
300316
* <p>Sample code:
301317
*
302318
* <pre>{@code
319+
* // This snippet has been automatically generated for illustrative purposes only.
320+
* // It may require modifications to work in your environment.
303321
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
304322
* UpdateGroupRequest request =
305323
* UpdateGroupRequest.newBuilder().setGroup(ErrorGroup.newBuilder().build()).build();
@@ -321,6 +339,8 @@ public final ErrorGroup updateGroup(UpdateGroupRequest request) {
321339
* <p>Sample code:
322340
*
323341
* <pre>{@code
342+
* // This snippet has been automatically generated for illustrative purposes only.
343+
* // It may require modifications to work in your environment.
324344
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
325345
* UpdateGroupRequest request =
326346
* UpdateGroupRequest.newBuilder().setGroup(ErrorGroup.newBuilder().build()).build();

google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,6 +50,8 @@
5050
* <p>For example, to set the total timeout of getGroup to 30 seconds:
5151
*
5252
* <pre>{@code
53+
* // This snippet has been automatically generated for illustrative purposes only.
54+
* // It may require modifications to work in your environment.
5355
* ErrorGroupServiceSettings.Builder errorGroupServiceSettingsBuilder =
5456
* ErrorGroupServiceSettings.newBuilder();
5557
* errorGroupServiceSettingsBuilder

google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -42,6 +42,8 @@
4242
* calls that map to API methods. Sample code to get started:
4343
*
4444
* <pre>{@code
45+
* // This snippet has been automatically generated for illustrative purposes only.
46+
* // It may require modifications to work in your environment.
4547
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
4648
* ProjectName projectName = ProjectName.of("[PROJECT]");
4749
* DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName);
@@ -78,6 +80,8 @@
7880
* <p>To customize credentials:
7981
*
8082
* <pre>{@code
83+
* // This snippet has been automatically generated for illustrative purposes only.
84+
* // It may require modifications to work in your environment.
8185
* ErrorStatsServiceSettings errorStatsServiceSettings =
8286
* ErrorStatsServiceSettings.newBuilder()
8387
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -89,6 +93,8 @@
8993
* <p>To customize the endpoint:
9094
*
9195
* <pre>{@code
96+
* // This snippet has been automatically generated for illustrative purposes only.
97+
* // It may require modifications to work in your environment.
9298
* ErrorStatsServiceSettings errorStatsServiceSettings =
9399
* ErrorStatsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
94100
* ErrorStatsServiceClient errorStatsServiceClient =
@@ -158,6 +164,8 @@ public ErrorStatsServiceStub getStub() {
158164
* <p>Sample code:
159165
*
160166
* <pre>{@code
167+
* // This snippet has been automatically generated for illustrative purposes only.
168+
* // It may require modifications to work in your environment.
161169
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
162170
* ProjectName projectName = ProjectName.of("[PROJECT]");
163171
* QueryTimeRange timeRange = QueryTimeRange.newBuilder().build();
@@ -199,6 +207,8 @@ public final ListGroupStatsPagedResponse listGroupStats(
199207
* <p>Sample code:
200208
*
201209
* <pre>{@code
210+
* // This snippet has been automatically generated for illustrative purposes only.
211+
* // It may require modifications to work in your environment.
202212
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
203213
* String projectName = ProjectName.of("[PROJECT]").toString();
204214
* QueryTimeRange timeRange = QueryTimeRange.newBuilder().build();
@@ -240,6 +250,8 @@ public final ListGroupStatsPagedResponse listGroupStats(
240250
* <p>Sample code:
241251
*
242252
* <pre>{@code
253+
* // This snippet has been automatically generated for illustrative purposes only.
254+
* // It may require modifications to work in your environment.
243255
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
244256
* ListGroupStatsRequest request =
245257
* ListGroupStatsRequest.newBuilder()
@@ -274,6 +286,8 @@ public final ListGroupStatsPagedResponse listGroupStats(ListGroupStatsRequest re
274286
* <p>Sample code:
275287
*
276288
* <pre>{@code
289+
* // This snippet has been automatically generated for illustrative purposes only.
290+
* // It may require modifications to work in your environment.
277291
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
278292
* ListGroupStatsRequest request =
279293
* ListGroupStatsRequest.newBuilder()
@@ -309,6 +323,8 @@ public final ListGroupStatsPagedResponse listGroupStats(ListGroupStatsRequest re
309323
* <p>Sample code:
310324
*
311325
* <pre>{@code
326+
* // This snippet has been automatically generated for illustrative purposes only.
327+
* // It may require modifications to work in your environment.
312328
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
313329
* ListGroupStatsRequest request =
314330
* ListGroupStatsRequest.newBuilder()
@@ -351,6 +367,8 @@ public final ListGroupStatsPagedResponse listGroupStats(ListGroupStatsRequest re
351367
* <p>Sample code:
352368
*
353369
* <pre>{@code
370+
* // This snippet has been automatically generated for illustrative purposes only.
371+
* // It may require modifications to work in your environment.
354372
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
355373
* ProjectName projectName = ProjectName.of("[PROJECT]");
356374
* String groupId = "groupId293428218";
@@ -384,6 +402,8 @@ public final ListEventsPagedResponse listEvents(ProjectName projectName, String
384402
* <p>Sample code:
385403
*
386404
* <pre>{@code
405+
* // This snippet has been automatically generated for illustrative purposes only.
406+
* // It may require modifications to work in your environment.
387407
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
388408
* String projectName = ProjectName.of("[PROJECT]").toString();
389409
* String groupId = "groupId293428218";
@@ -414,6 +434,8 @@ public final ListEventsPagedResponse listEvents(String projectName, String group
414434
* <p>Sample code:
415435
*
416436
* <pre>{@code
437+
* // This snippet has been automatically generated for illustrative purposes only.
438+
* // It may require modifications to work in your environment.
417439
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
418440
* ListEventsRequest request =
419441
* ListEventsRequest.newBuilder()
@@ -444,6 +466,8 @@ public final ListEventsPagedResponse listEvents(ListEventsRequest request) {
444466
* <p>Sample code:
445467
*
446468
* <pre>{@code
469+
* // This snippet has been automatically generated for illustrative purposes only.
470+
* // It may require modifications to work in your environment.
447471
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
448472
* ListEventsRequest request =
449473
* ListEventsRequest.newBuilder()
@@ -474,6 +498,8 @@ public final UnaryCallable<ListEventsRequest, ListEventsPagedResponse> listEvent
474498
* <p>Sample code:
475499
*
476500
* <pre>{@code
501+
* // This snippet has been automatically generated for illustrative purposes only.
502+
* // It may require modifications to work in your environment.
477503
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
478504
* ListEventsRequest request =
479505
* ListEventsRequest.newBuilder()
@@ -510,6 +536,8 @@ public final UnaryCallable<ListEventsRequest, ListEventsResponse> listEventsCall
510536
* <p>Sample code:
511537
*
512538
* <pre>{@code
539+
* // This snippet has been automatically generated for illustrative purposes only.
540+
* // It may require modifications to work in your environment.
513541
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
514542
* ProjectName projectName = ProjectName.of("[PROJECT]");
515543
* DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName);
@@ -537,6 +565,8 @@ public final DeleteEventsResponse deleteEvents(ProjectName projectName) {
537565
* <p>Sample code:
538566
*
539567
* <pre>{@code
568+
* // This snippet has been automatically generated for illustrative purposes only.
569+
* // It may require modifications to work in your environment.
540570
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
541571
* String projectName = ProjectName.of("[PROJECT]").toString();
542572
* DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName);
@@ -562,6 +592,8 @@ public final DeleteEventsResponse deleteEvents(String projectName) {
562592
* <p>Sample code:
563593
*
564594
* <pre>{@code
595+
* // This snippet has been automatically generated for illustrative purposes only.
596+
* // It may require modifications to work in your environment.
565597
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
566598
* DeleteEventsRequest request =
567599
* DeleteEventsRequest.newBuilder()
@@ -585,6 +617,8 @@ public final DeleteEventsResponse deleteEvents(DeleteEventsRequest request) {
585617
* <p>Sample code:
586618
*
587619
* <pre>{@code
620+
* // This snippet has been automatically generated for illustrative purposes only.
621+
* // It may require modifications to work in your environment.
588622
* try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
589623
* DeleteEventsRequest request =
590624
* DeleteEventsRequest.newBuilder()

google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -54,6 +54,8 @@
5454
* <p>For example, to set the total timeout of deleteEvents to 30 seconds:
5555
*
5656
* <pre>{@code
57+
* // This snippet has been automatically generated for illustrative purposes only.
58+
* // It may require modifications to work in your environment.
5759
* ErrorStatsServiceSettings.Builder errorStatsServiceSettingsBuilder =
5860
* ErrorStatsServiceSettings.newBuilder();
5961
* errorStatsServiceSettingsBuilder

google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,6 +33,8 @@
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.
3638
* try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) {
3739
* ProjectName projectName = ProjectName.of("[PROJECT]");
3840
* ReportedErrorEvent event = ReportedErrorEvent.newBuilder().build();
@@ -71,6 +73,8 @@
7173
* <p>To customize credentials:
7274
*
7375
* <pre>{@code
76+
* // This snippet has been automatically generated for illustrative purposes only.
77+
* // It may require modifications to work in your environment.
7478
* ReportErrorsServiceSettings reportErrorsServiceSettings =
7579
* ReportErrorsServiceSettings.newBuilder()
7680
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -82,6 +86,8 @@
8286
* <p>To customize the endpoint:
8387
*
8488
* <pre>{@code
89+
* // This snippet has been automatically generated for illustrative purposes only.
90+
* // It may require modifications to work in your environment.
8591
* ReportErrorsServiceSettings reportErrorsServiceSettings =
8692
* ReportErrorsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
8793
* ReportErrorsServiceClient reportErrorsServiceClient =
@@ -169,6 +175,8 @@ public ReportErrorsServiceStub getStub() {
169175
* <p>Sample code:
170176
*
171177
* <pre>{@code
178+
* // This snippet has been automatically generated for illustrative purposes only.
179+
* // It may require modifications to work in your environment.
172180
* try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) {
173181
* ProjectName projectName = ProjectName.of("[PROJECT]");
174182
* ReportedErrorEvent event = ReportedErrorEvent.newBuilder().build();
@@ -219,6 +227,8 @@ public final ReportErrorEventResponse reportErrorEvent(
219227
* <p>Sample code:
220228
*
221229
* <pre>{@code
230+
* // This snippet has been automatically generated for illustrative purposes only.
231+
* // It may require modifications to work in your environment.
222232
* try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) {
223233
* String projectName = ProjectName.of("[PROJECT]").toString();
224234
* ReportedErrorEvent event = ReportedErrorEvent.newBuilder().build();
@@ -266,6 +276,8 @@ public final ReportErrorEventResponse reportErrorEvent(
266276
* <p>Sample code:
267277
*
268278
* <pre>{@code
279+
* // This snippet has been automatically generated for illustrative purposes only.
280+
* // It may require modifications to work in your environment.
269281
* try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) {
270282
* ReportErrorEventRequest request =
271283
* ReportErrorEventRequest.newBuilder()
@@ -308,6 +320,8 @@ public final ReportErrorEventResponse reportErrorEvent(ReportErrorEventRequest r
308320
* <p>Sample code:
309321
*
310322
* <pre>{@code
323+
* // This snippet has been automatically generated for illustrative purposes only.
324+
* // It may require modifications to work in your environment.
311325
* try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) {
312326
* ReportErrorEventRequest request =
313327
* ReportErrorEventRequest.newBuilder()

google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,6 +50,8 @@
5050
* <p>For example, to set the total timeout of reportErrorEvent to 30 seconds:
5151
*
5252
* <pre>{@code
53+
* // This snippet has been automatically generated for illustrative purposes only.
54+
* // It may require modifications to work in your environment.
5355
* ReportErrorsServiceSettings.Builder reportErrorsServiceSettingsBuilder =
5456
* ReportErrorsServiceSettings.newBuilder();
5557
* reportErrorsServiceSettingsBuilder

0 commit comments

Comments
 (0)