{@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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java index 210872a9..d0b35a44 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java +++ b/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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java index a795d06e..5d894fb2 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java +++ b/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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java index 7c0fbbfb..0d401d8a 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java +++ b/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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java index af2022ca..8f71032d 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java +++ b/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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java index a8b727d9..0e2d88f2 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java +++ b/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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/package-info.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/package-info.java index fb1ce044..091353c5 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/package-info.java +++ b/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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java index b3a30c64..a27b657e 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java +++ b/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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java index 023cd12e..b58d93c7 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java +++ b/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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java index 8ebecaf2..57e2ec67 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonErrorGroupServiceStub.java +++ b/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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonReportErrorsServiceStub.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonReportErrorsServiceStub.java index 09394ae3..6e9ff112 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/HttpJsonReportErrorsServiceStub.java +++ b/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/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java b/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java index cd781b04..ffecf763 100644 --- a/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java +++ b/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 diff --git a/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/grpc-google-cloud-error-reporting-v1beta1/pom.xml index bc76ea36..39ddcae8 100644 --- a/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@4.0.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 -0.90.6 +0.90.7 grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent -0.124.6-beta +0.124.7-beta diff --git a/pom.xml b/pom.xml index 03f97815..e3716027 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-errorreporting-parent pom -0.124.6-beta +0.124.7-beta Google Cloud Error Reporting Parent https://github.com/googleapis/java-errorreporting @@ -61,24 +61,24 @@ com.google.cloud google-cloud-errorreporting -0.124.6-beta +0.124.7-beta com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 -0.90.6 +0.90.7 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 -0.90.6 +0.90.7 diff --git a/proto-google-cloud-error-reporting-v1beta1/pom.xml b/proto-google-cloud-error-reporting-v1beta1/pom.xml index f1c9ea08..c5ee998b 100644 --- a/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ com.google.cloud google-cloud-shared-dependencies -3.0.2 +3.0.3 pom import 4.0.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 -0.90.6 +0.90.7 proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent -0.124.6-beta +0.124.7-beta diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3435ab17..f69c7384 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index dd541850..26beb09a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-errorreporting -0.124.5-beta +0.124.6-beta diff --git a/versions.txt b/versions.txt index 444a870b..f388da0f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-errorreporting:0.124.6-beta:0.124.6-beta -grpc-google-cloud-error-reporting-v1beta1:0.90.6:0.90.6 -proto-google-cloud-error-reporting-v1beta1:0.90.6:0.90.6 +google-cloud-errorreporting:0.124.7-beta:0.124.7-beta +grpc-google-cloud-error-reporting-v1beta1:0.90.7:0.90.7 +proto-google-cloud-error-reporting-v1beta1:0.90.7:0.90.7 com.google.cloud google-cloud-errorreporting -0.124.6-beta +0.124.7-beta