From 8a92965dca4b4d4f40b415c2f7c9cc27df70cff3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 16:24:21 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#929) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../v1beta1/ErrorGroupServiceClient.java | 77 ++++++++--- .../v1beta1/ErrorGroupServiceSettings.java | 12 +- .../v1beta1/ErrorStatsServiceClient.java | 126 +++++++++++++----- .../v1beta1/ErrorStatsServiceSettings.java | 12 +- .../v1beta1/ReportErrorsServiceClient.java | 56 +++++--- .../v1beta1/ReportErrorsServiceSettings.java | 7 +- .../v1beta1/package-info.java | 21 ++- .../stub/ErrorGroupServiceStubSettings.java | 12 +- .../stub/ErrorStatsServiceStubSettings.java | 12 +- .../stub/HttpJsonErrorGroupServiceStub.java | 3 +- .../stub/HttpJsonReportErrorsServiceStub.java | 3 +- .../stub/ReportErrorsServiceStubSettings.java | 7 +- 12 files changed, 238 insertions(+), 110 deletions(-) diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java index b2b3eb6a4081..da16dc825f88 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java @@ -33,8 +33,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * ErrorGroupName groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]"); * ErrorGroup response = errorGroupServiceClient.getGroup(groupName); @@ -71,8 +74,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ErrorGroupServiceSettings errorGroupServiceSettings = * ErrorGroupServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -84,8 +90,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ErrorGroupServiceSettings errorGroupServiceSettings = * ErrorGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * ErrorGroupServiceClient errorGroupServiceClient = @@ -96,8 +105,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ErrorGroupServiceSettings errorGroupServiceSettings = * ErrorGroupServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -199,8 +211,11 @@ public final ErrorGroup getGroup(GroupName groupName) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * ErrorGroupName groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]"); * ErrorGroup response = errorGroupServiceClient.getGroup(groupName); @@ -229,8 +244,11 @@ public final ErrorGroup getGroup(ErrorGroupName groupName) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * String groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]").toString(); * ErrorGroup response = errorGroupServiceClient.getGroup(groupName); @@ -256,8 +274,11 @@ public final ErrorGroup getGroup(String groupName) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * GetGroupRequest request = * GetGroupRequest.newBuilder() @@ -281,8 +302,11 @@ public final ErrorGroup getGroup(GetGroupRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * GetGroupRequest request = * GetGroupRequest.newBuilder() @@ -305,8 +329,11 @@ public final UnaryCallablegetGroupCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * ErrorGroup group = ErrorGroup.newBuilder().build(); * ErrorGroup response = errorGroupServiceClient.updateGroup(group); @@ -328,8 +355,11 @@ public final ErrorGroup updateGroup(ErrorGroup group) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * UpdateGroupRequest request = * UpdateGroupRequest.newBuilder().setGroup(ErrorGroup.newBuilder().build()).build(); @@ -351,8 +381,11 @@ public final ErrorGroup updateGroup(UpdateGroupRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * UpdateGroupRequest request = * UpdateGroupRequest.newBuilder().setGroup(ErrorGroup.newBuilder().build()).build(); diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java index 210872a9a2bc..d0b35a445cec 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java @@ -51,17 +51,17 @@ *For example, to set the total timeout of getGroup to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ErrorGroupServiceSettings.Builder errorGroupServiceSettingsBuilder = * ErrorGroupServiceSettings.newBuilder(); * errorGroupServiceSettingsBuilder * .getGroupSettings() * .setRetrySettings( - * errorGroupServiceSettingsBuilder - * .getGroupSettings() - * .getRetrySettings() - * .toBuilder() + * errorGroupServiceSettingsBuilder.getGroupSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ErrorGroupServiceSettings errorGroupServiceSettings = errorGroupServiceSettingsBuilder.build(); diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java index a795d06ead75..5d894fb210fe 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java @@ -42,8 +42,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ProjectName projectName = ProjectName.of("[PROJECT]"); * DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName); @@ -80,8 +83,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ErrorStatsServiceSettings errorStatsServiceSettings = * ErrorStatsServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -93,8 +99,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ErrorStatsServiceSettings errorStatsServiceSettings = * ErrorStatsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * ErrorStatsServiceClient errorStatsServiceClient = @@ -105,8 +114,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ErrorStatsServiceSettings errorStatsServiceSettings = * ErrorStatsServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -176,8 +188,11 @@ public ErrorStatsServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ProjectName projectName = ProjectName.of("[PROJECT]"); * QueryTimeRange timeRange = QueryTimeRange.newBuilder().build(); @@ -219,8 +234,11 @@ public final ListGroupStatsPagedResponse listGroupStats( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * String projectName = ProjectName.of("[PROJECT]").toString(); * QueryTimeRange timeRange = QueryTimeRange.newBuilder().build(); @@ -262,8 +280,11 @@ public final ListGroupStatsPagedResponse listGroupStats( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ListGroupStatsRequest request = * ListGroupStatsRequest.newBuilder() @@ -298,8 +319,11 @@ public final ListGroupStatsPagedResponse listGroupStats(ListGroupStatsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ListGroupStatsRequest request = * ListGroupStatsRequest.newBuilder() @@ -335,8 +359,11 @@ public final ListGroupStatsPagedResponse listGroupStats(ListGroupStatsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ListGroupStatsRequest request = * ListGroupStatsRequest.newBuilder() @@ -379,8 +406,11 @@ public final ListGroupStatsPagedResponse listGroupStats(ListGroupStatsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ProjectName projectName = ProjectName.of("[PROJECT]"); * String groupId = "groupId293428218"; @@ -414,8 +444,11 @@ public final ListEventsPagedResponse listEvents(ProjectName projectName, String *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * String projectName = ProjectName.of("[PROJECT]").toString(); * String groupId = "groupId293428218"; @@ -446,8 +479,11 @@ public final ListEventsPagedResponse listEvents(String projectName, String group *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ListEventsRequest request = * ListEventsRequest.newBuilder() @@ -478,8 +514,11 @@ public final ListEventsPagedResponse listEvents(ListEventsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ListEventsRequest request = * ListEventsRequest.newBuilder() @@ -510,8 +549,11 @@ public final UnaryCallablelistEvent * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ListEventsRequest request = * ListEventsRequest.newBuilder() @@ -548,8 +590,11 @@ public final UnaryCallablelistEventsCall * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ProjectName projectName = ProjectName.of("[PROJECT]"); * DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName); @@ -577,8 +622,11 @@ public final DeleteEventsResponse deleteEvents(ProjectName projectName) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * String projectName = ProjectName.of("[PROJECT]").toString(); * DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName); @@ -604,8 +652,11 @@ public final DeleteEventsResponse deleteEvents(String projectName) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * DeleteEventsRequest request = * DeleteEventsRequest.newBuilder() @@ -629,8 +680,11 @@ public final DeleteEventsResponse deleteEvents(DeleteEventsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * DeleteEventsRequest request = * DeleteEventsRequest.newBuilder() diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java index 7c0fbbfbc5bb..0d401d8aaa2b 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java @@ -55,17 +55,17 @@ *For example, to set the total timeout of deleteEvents to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ErrorStatsServiceSettings.Builder errorStatsServiceSettingsBuilder = * ErrorStatsServiceSettings.newBuilder(); * errorStatsServiceSettingsBuilder * .deleteEventsSettings() * .setRetrySettings( - * errorStatsServiceSettingsBuilder - * .deleteEventsSettings() - * .getRetrySettings() - * .toBuilder() + * errorStatsServiceSettingsBuilder.deleteEventsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ErrorStatsServiceSettings errorStatsServiceSettings = errorStatsServiceSettingsBuilder.build(); diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java index af2022ca814a..8f71032da384 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java @@ -33,8 +33,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) { * ProjectName projectName = ProjectName.of("[PROJECT]"); * ReportedErrorEvent event = ReportedErrorEvent.newBuilder().build(); @@ -73,8 +76,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ReportErrorsServiceSettings reportErrorsServiceSettings = * ReportErrorsServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -86,8 +92,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ReportErrorsServiceSettings reportErrorsServiceSettings = * ReportErrorsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * ReportErrorsServiceClient reportErrorsServiceClient = @@ -98,8 +107,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ReportErrorsServiceSettings reportErrorsServiceSettings = * ReportErrorsServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -187,8 +199,11 @@ public ReportErrorsServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) { * ProjectName projectName = ProjectName.of("[PROJECT]"); * ReportedErrorEvent event = ReportedErrorEvent.newBuilder().build(); @@ -239,8 +254,11 @@ public final ReportErrorEventResponse reportErrorEvent( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) { * String projectName = ProjectName.of("[PROJECT]").toString(); * ReportedErrorEvent event = ReportedErrorEvent.newBuilder().build(); @@ -288,8 +306,11 @@ public final ReportErrorEventResponse reportErrorEvent( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) { * ReportErrorEventRequest request = * ReportErrorEventRequest.newBuilder() @@ -332,8 +353,11 @@ public final ReportErrorEventResponse reportErrorEvent(ReportErrorEventRequest r *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) { * ReportErrorEventRequest request = * ReportErrorEventRequest.newBuilder() diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java index a8b727d92bda..0e2d88f27219 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java @@ -51,8 +51,11 @@ *For example, to set the total timeout of reportErrorEvent to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ReportErrorsServiceSettings.Builder reportErrorsServiceSettingsBuilder = * ReportErrorsServiceSettings.newBuilder(); * reportErrorsServiceSettingsBuilder diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/package-info.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/package-info.java index fb1ce044f4f0..091353c55829 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/package-info.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/package-info.java @@ -24,8 +24,11 @@ *Sample for ErrorGroupServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * ErrorGroupName groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]"); * ErrorGroup response = errorGroupServiceClient.getGroup(groupName); @@ -40,8 +43,11 @@ *Sample for ErrorStatsServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ProjectName projectName = ProjectName.of("[PROJECT]"); * DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName); @@ -55,8 +61,11 @@ *Sample for ReportErrorsServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) { * ProjectName projectName = ProjectName.of("[PROJECT]"); * ReportedErrorEvent event = ReportedErrorEvent.newBuilder().build(); diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java index b3a30c6445df..a27b657e0202 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java @@ -65,17 +65,17 @@ *For example, to set the total timeout of getGroup to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ErrorGroupServiceStubSettings.Builder errorGroupServiceSettingsBuilder = * ErrorGroupServiceStubSettings.newBuilder(); * errorGroupServiceSettingsBuilder * .getGroupSettings() * .setRetrySettings( - * errorGroupServiceSettingsBuilder - * .getGroupSettings() - * .getRetrySettings() - * .toBuilder() + * errorGroupServiceSettingsBuilder.getGroupSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ErrorGroupServiceStubSettings errorGroupServiceSettings = diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java index 023cd12e0377..b58d93c793ee 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java @@ -80,17 +80,17 @@ *For example, to set the total timeout of deleteEvents to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ErrorStatsServiceStubSettings.Builder errorStatsServiceSettingsBuilder = * ErrorStatsServiceStubSettings.newBuilder(); * errorStatsServiceSettingsBuilder * .deleteEventsSettings() * .setRetrySettings( - * errorStatsServiceSettingsBuilder - * .deleteEventsSettings() - * .getRetrySettings() - * .toBuilder() + * errorStatsServiceSettingsBuilder.deleteEventsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ErrorStatsServiceStubSettings errorStatsServiceSettings = diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java index 8ebecaf218ff..57e2ec67ad1f 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java @@ -112,7 +112,8 @@ public class HttpJsonErrorGroupServiceStub extends ErrorGroupServiceStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("group", request.getGroup())) + ProtoRestSerializer.create() + .toBody("group", request.getGroup(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonReportErrorsServiceStub.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonReportErrorsServiceStub.java index 09394ae37d3b..6e9ff112de52 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonReportErrorsServiceStub.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonReportErrorsServiceStub.java @@ -78,7 +78,8 @@ public class HttpJsonReportErrorsServiceStub extends ReportErrorsServiceStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("event", request.getEvent())) + ProtoRestSerializer.create() + .toBody("event", request.getEvent(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java index cd781b04d637..ffecf763c6b5 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java @@ -64,8 +64,11 @@ * For example, to set the total timeout of reportErrorEvent to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ReportErrorsServiceStubSettings.Builder reportErrorsServiceSettingsBuilder = * ReportErrorsServiceStubSettings.newBuilder(); * reportErrorsServiceSettingsBuilder