From 46af2e46e29831ee5455a8a68a37f13872720486 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:36:15 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#803) - [ ] 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 --- .../recommender/v1/RecommenderClient.java | 378 +++++++++++++----- .../recommender/v1/RecommenderSettings.java | 12 +- .../cloud/recommender/v1/package-info.java | 7 +- .../v1/stub/HttpJsonRecommenderStub.java | 14 +- .../v1/stub/RecommenderStubSettings.java | 12 +- .../v1beta1/RecommenderClient.java | 364 ++++++++++++----- .../v1beta1/RecommenderSettings.java | 12 +- .../recommender/v1beta1/package-info.java | 7 +- .../v1beta1/stub/HttpJsonRecommenderStub.java | 14 +- .../v1beta1/stub/RecommenderStubSettings.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../getinsight/AsyncGetInsight.java | 7 +- .../getinsight/SyncGetInsight.java | 7 +- .../getinsight/SyncGetInsightInsightname.java | 7 +- .../getinsight/SyncGetInsightString.java | 7 +- .../AsyncGetInsightTypeConfig.java | 7 +- .../SyncGetInsightTypeConfig.java | 7 +- ...nsightTypeConfigInsighttypeconfigname.java | 10 +- .../SyncGetInsightTypeConfigString.java | 7 +- .../AsyncGetRecommendation.java | 7 +- .../SyncGetRecommendation.java | 7 +- ...ncGetRecommendationRecommendationname.java | 7 +- .../SyncGetRecommendationString.java | 7 +- .../AsyncGetRecommenderConfig.java | 7 +- .../SyncGetRecommenderConfig.java | 7 +- ...ecommenderConfigRecommenderconfigname.java | 10 +- .../SyncGetRecommenderConfigString.java | 7 +- .../listinsights/AsyncListInsights.java | 7 +- .../listinsights/AsyncListInsightsPaged.java | 7 +- .../listinsights/SyncListInsights.java | 7 +- .../SyncListInsightsInsighttypename.java | 7 +- .../listinsights/SyncListInsightsString.java | 7 +- .../AsyncListRecommendations.java | 7 +- .../AsyncListRecommendationsPaged.java | 7 +- .../SyncListRecommendations.java | 7 +- ...yncListRecommendationsRecommendername.java | 7 +- ...tRecommendationsRecommendernameString.java | 7 +- .../SyncListRecommendationsString.java | 7 +- .../SyncListRecommendationsStringString.java | 7 +- .../AsyncMarkInsightAccepted.java | 7 +- .../SyncMarkInsightAccepted.java | 7 +- ...eptedInsightnameMapstringstringString.java | 13 +- ...htAcceptedStringMapstringstringString.java | 13 +- .../AsyncMarkRecommendationClaimed.java | 7 +- .../SyncMarkRecommendationClaimed.java | 7 +- ...commendationnameMapstringstringString.java | 13 +- ...ionClaimedStringMapstringstringString.java | 13 +- .../AsyncMarkRecommendationFailed.java | 7 +- .../SyncMarkRecommendationFailed.java | 7 +- ...commendationnameMapstringstringString.java | 13 +- ...tionFailedStringMapstringstringString.java | 13 +- .../AsyncMarkRecommendationSucceeded.java | 7 +- .../SyncMarkRecommendationSucceeded.java | 7 +- ...commendationnameMapstringstringString.java | 13 +- ...nSucceededStringMapstringstringString.java | 13 +- .../AsyncUpdateInsightTypeConfig.java | 7 +- .../SyncUpdateInsightTypeConfig.java | 7 +- ...tTypeConfigInsighttypeconfigFieldmask.java | 13 +- .../AsyncUpdateRecommenderConfig.java | 7 +- .../SyncUpdateRecommenderConfig.java | 7 +- ...enderConfigRecommenderconfigFieldmask.java | 13 +- .../getinsight/SyncGetInsight.java | 12 +- .../getinsight/SyncGetInsight.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../getinsight/AsyncGetInsight.java | 7 +- .../getinsight/SyncGetInsight.java | 7 +- .../getinsight/SyncGetInsightInsightname.java | 7 +- .../getinsight/SyncGetInsightString.java | 7 +- .../AsyncGetInsightTypeConfig.java | 7 +- .../SyncGetInsightTypeConfig.java | 7 +- ...nsightTypeConfigInsighttypeconfigname.java | 13 +- .../SyncGetInsightTypeConfigString.java | 7 +- .../AsyncGetRecommendation.java | 7 +- .../SyncGetRecommendation.java | 7 +- ...ncGetRecommendationRecommendationname.java | 7 +- .../SyncGetRecommendationString.java | 7 +- .../AsyncGetRecommenderConfig.java | 7 +- .../SyncGetRecommenderConfig.java | 7 +- ...ecommenderConfigRecommenderconfigname.java | 13 +- .../SyncGetRecommenderConfigString.java | 7 +- .../listinsights/AsyncListInsights.java | 7 +- .../listinsights/AsyncListInsightsPaged.java | 7 +- .../listinsights/SyncListInsights.java | 7 +- .../SyncListInsightsInsighttypename.java | 7 +- .../listinsights/SyncListInsightsString.java | 7 +- .../AsyncListRecommendations.java | 7 +- .../AsyncListRecommendationsPaged.java | 7 +- .../SyncListRecommendations.java | 7 +- ...tRecommendationsRecommendernameString.java | 13 +- .../SyncListRecommendationsStringString.java | 7 +- .../AsyncMarkInsightAccepted.java | 7 +- .../SyncMarkInsightAccepted.java | 7 +- ...eptedInsightnameMapstringstringString.java | 13 +- ...htAcceptedStringMapstringstringString.java | 13 +- .../AsyncMarkRecommendationClaimed.java | 7 +- .../SyncMarkRecommendationClaimed.java | 7 +- ...commendationnameMapstringstringString.java | 13 +- ...ionClaimedStringMapstringstringString.java | 13 +- .../AsyncMarkRecommendationFailed.java | 7 +- .../SyncMarkRecommendationFailed.java | 7 +- ...commendationnameMapstringstringString.java | 13 +- ...tionFailedStringMapstringstringString.java | 13 +- .../AsyncMarkRecommendationSucceeded.java | 7 +- .../SyncMarkRecommendationSucceeded.java | 7 +- ...commendationnameMapstringstringString.java | 13 +- ...nSucceededStringMapstringstringString.java | 13 +- .../AsyncUpdateInsightTypeConfig.java | 7 +- .../SyncUpdateInsightTypeConfig.java | 7 +- ...tTypeConfigInsighttypeconfigFieldmask.java | 13 +- .../AsyncUpdateRecommenderConfig.java | 7 +- .../SyncUpdateRecommenderConfig.java | 7 +- ...enderConfigRecommenderconfigFieldmask.java | 13 +- .../getinsight/SyncGetInsight.java | 12 +- .../getinsight/SyncGetInsight.java | 12 +- 118 files changed, 1172 insertions(+), 580 deletions(-) diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderClient.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderClient.java index c5bf03c05e10..ad71cdcb2a35 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderClient.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderClient.java @@ -45,8 +45,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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightName name = * InsightName.ofProjectLocationInsightTypeInsightName( @@ -84,8 +87,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 * RecommenderSettings recommenderSettings = * RecommenderSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -96,8 +102,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 * RecommenderSettings recommenderSettings = * RecommenderSettings.newBuilder().setEndpoint(myEndpoint).build(); * RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings); @@ -107,8 +116,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 * RecommenderSettings recommenderSettings = * RecommenderSettings.newBuilder() * .setTransportChannelProvider( @@ -176,8 +188,11 @@ public RecommenderStub 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightTypeName parent = * InsightTypeName.ofProjectLocationInsightTypeName( @@ -226,8 +241,11 @@ public final ListInsightsPagedResponse listInsights(InsightTypeName parent) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String parent = * InsightTypeName.ofProjectLocationInsightTypeName( @@ -274,8 +292,11 @@ public final ListInsightsPagedResponse listInsights(String parent) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListInsightsRequest request = * ListInsightsRequest.newBuilder() @@ -308,8 +329,11 @@ public final ListInsightsPagedResponse listInsights(ListInsightsRequest 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListInsightsRequest request = * ListInsightsRequest.newBuilder() @@ -342,8 +366,11 @@ public final ListInsightsPagedResponse listInsights(ListInsightsRequest 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListInsightsRequest request = * ListInsightsRequest.newBuilder() @@ -382,8 +409,11 @@ public final UnaryCallablelistInsigh * 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightName name = * InsightName.ofProjectLocationInsightTypeInsightName( @@ -409,8 +439,11 @@ public final Insight getInsight(InsightName name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * InsightName.ofProjectLocationInsightTypeInsightName( @@ -436,8 +469,11 @@ public final Insight getInsight(String name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetInsightRequest request = * GetInsightRequest.newBuilder() @@ -465,8 +501,11 @@ public final Insight getInsight(GetInsightRequest 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetInsightRequest request = * GetInsightRequest.newBuilder() @@ -497,8 +536,11 @@ public final UnaryCallablegetInsightCallable() { * 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightName name = * InsightName.ofProjectLocationInsightTypeInsightName( @@ -538,8 +580,11 @@ public final Insight markInsightAccepted( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * InsightName.ofProjectLocationInsightTypeInsightName( @@ -580,8 +625,11 @@ public final Insight markInsightAccepted( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkInsightAcceptedRequest request = * MarkInsightAcceptedRequest.newBuilder() @@ -615,8 +663,11 @@ public final Insight markInsightAccepted(MarkInsightAcceptedRequest 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkInsightAcceptedRequest request = * MarkInsightAcceptedRequest.newBuilder() @@ -646,8 +697,11 @@ public final UnaryCallablemarkInsightAccep * 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommenderName parent = * RecommenderName.ofProjectLocationRecommenderName( @@ -696,8 +750,11 @@ public final ListRecommendationsPagedResponse listRecommendations(RecommenderNam *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String parent = * RecommenderName.ofProjectLocationRecommenderName( @@ -745,8 +802,11 @@ public final ListRecommendationsPagedResponse listRecommendations(String parent) *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommenderName parent = * RecommenderName.ofProjectLocationRecommenderName( @@ -825,8 +885,11 @@ public final ListRecommendationsPagedResponse listRecommendations( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String parent = * RecommenderName.ofProjectLocationRecommenderName( @@ -902,8 +965,11 @@ public final ListRecommendationsPagedResponse listRecommendations(String parent, *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListRecommendationsRequest request = * ListRecommendationsRequest.newBuilder() @@ -937,8 +1003,11 @@ public final ListRecommendationsPagedResponse listRecommendations( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListRecommendationsRequest request = * ListRecommendationsRequest.newBuilder() @@ -972,8 +1041,11 @@ public final ListRecommendationsPagedResponse listRecommendations( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListRecommendationsRequest request = * ListRecommendationsRequest.newBuilder() @@ -1014,8 +1086,11 @@ public final ListRecommendationsPagedResponse listRecommendations( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommendationName name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1043,8 +1118,11 @@ public final Recommendation getRecommendation(RecommendationName name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1070,8 +1148,11 @@ public final Recommendation getRecommendation(String name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetRecommendationRequest request = * GetRecommendationRequest.newBuilder() @@ -1099,8 +1180,11 @@ public final Recommendation getRecommendation(GetRecommendationRequest 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetRecommendationRequest request = * GetRecommendationRequest.newBuilder() @@ -1135,8 +1219,11 @@ public final UnaryCallablegetRecommen * 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommendationName name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1181,8 +1268,11 @@ public final Recommendation markRecommendationClaimed( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1228,8 +1318,11 @@ public final Recommendation markRecommendationClaimed( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationClaimedRequest request = * MarkRecommendationClaimedRequest.newBuilder() @@ -1266,8 +1359,11 @@ public final Recommendation markRecommendationClaimed(MarkRecommendationClaimedR *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationClaimedRequest request = * MarkRecommendationClaimedRequest.newBuilder() @@ -1305,8 +1401,11 @@ public final Recommendation markRecommendationClaimed(MarkRecommendationClaimedR *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommendationName name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1351,8 +1450,11 @@ public final Recommendation markRecommendationSucceeded( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1398,8 +1500,11 @@ public final Recommendation markRecommendationSucceeded( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationSucceededRequest request = * MarkRecommendationSucceededRequest.newBuilder() @@ -1437,8 +1542,11 @@ public final Recommendation markRecommendationSucceeded( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationSucceededRequest request = * MarkRecommendationSucceededRequest.newBuilder() @@ -1476,8 +1584,11 @@ public final Recommendation markRecommendationSucceeded( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommendationName name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1522,8 +1633,11 @@ public final Recommendation markRecommendationFailed( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1569,8 +1683,11 @@ public final Recommendation markRecommendationFailed( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationFailedRequest request = * MarkRecommendationFailedRequest.newBuilder() @@ -1607,8 +1724,11 @@ public final Recommendation markRecommendationFailed(MarkRecommendationFailedReq *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationFailedRequest request = * MarkRecommendationFailedRequest.newBuilder() @@ -1639,8 +1759,11 @@ public final Recommendation markRecommendationFailed(MarkRecommendationFailedReq *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommenderConfigName name = * RecommenderConfigName.ofProjectLocationRecommenderName( @@ -1679,8 +1802,11 @@ public final RecommenderConfig getRecommenderConfig(RecommenderConfigName name) *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * RecommenderConfigName.ofProjectLocationRecommenderName( @@ -1718,8 +1844,11 @@ public final RecommenderConfig getRecommenderConfig(String name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetRecommenderConfigRequest request = * GetRecommenderConfigRequest.newBuilder() @@ -1747,8 +1876,11 @@ public final RecommenderConfig getRecommenderConfig(GetRecommenderConfigRequest *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetRecommenderConfigRequest request = * GetRecommenderConfigRequest.newBuilder() @@ -1776,8 +1908,11 @@ public final RecommenderConfig getRecommenderConfig(GetRecommenderConfigRequest *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommenderConfig recommenderConfig = RecommenderConfig.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1807,8 +1942,11 @@ public final RecommenderConfig updateRecommenderConfig( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * UpdateRecommenderConfigRequest request = * UpdateRecommenderConfigRequest.newBuilder() @@ -1834,8 +1972,11 @@ public final RecommenderConfig updateRecommenderConfig(UpdateRecommenderConfigRe *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * UpdateRecommenderConfigRequest request = * UpdateRecommenderConfigRequest.newBuilder() @@ -1863,8 +2004,11 @@ public final RecommenderConfig updateRecommenderConfig(UpdateRecommenderConfigRe *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightTypeConfigName name = * InsightTypeConfigName.ofProjectLocationInsightTypeName( @@ -1903,8 +2047,11 @@ public final InsightTypeConfig getInsightTypeConfig(InsightTypeConfigName name) *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * InsightTypeConfigName.ofProjectLocationInsightTypeName( @@ -1942,8 +2089,11 @@ public final InsightTypeConfig getInsightTypeConfig(String name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetInsightTypeConfigRequest request = * GetInsightTypeConfigRequest.newBuilder() @@ -1971,8 +2121,11 @@ public final InsightTypeConfig getInsightTypeConfig(GetInsightTypeConfigRequest *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetInsightTypeConfigRequest request = * GetInsightTypeConfigRequest.newBuilder() @@ -2000,8 +2153,11 @@ public final InsightTypeConfig getInsightTypeConfig(GetInsightTypeConfigRequest *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightTypeConfig insightTypeConfig = InsightTypeConfig.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2031,8 +2187,11 @@ public final InsightTypeConfig updateInsightTypeConfig( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * UpdateInsightTypeConfigRequest request = * UpdateInsightTypeConfigRequest.newBuilder() @@ -2058,8 +2217,11 @@ public final InsightTypeConfig updateInsightTypeConfig(UpdateInsightTypeConfigRe *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * UpdateInsightTypeConfigRequest request = * UpdateInsightTypeConfigRequest.newBuilder() diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderSettings.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderSettings.java index 232ae780a45c..0e744bdf5870 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderSettings.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderSettings.java @@ -54,16 +54,16 @@ *For example, to set the total timeout of getInsight 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 * RecommenderSettings.Builder recommenderSettingsBuilder = RecommenderSettings.newBuilder(); * recommenderSettingsBuilder * .getInsightSettings() * .setRetrySettings( - * recommenderSettingsBuilder - * .getInsightSettings() - * .getRetrySettings() - * .toBuilder() + * recommenderSettingsBuilder.getInsightSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * RecommenderSettings recommenderSettings = recommenderSettingsBuilder.build(); diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/package-info.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/package-info.java index 50e13ef7115b..a1c5ea265204 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/package-info.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/package-info.java @@ -29,8 +29,11 @@ *Sample for RecommenderClient: * *
{@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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightName name = * InsightName.ofProjectLocationInsightTypeInsightName( diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/HttpJsonRecommenderStub.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/HttpJsonRecommenderStub.java index 2f1dcd7d1813..94d98e59d09c 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/HttpJsonRecommenderStub.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/HttpJsonRecommenderStub.java @@ -176,7 +176,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -294,7 +294,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -335,7 +335,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -375,7 +375,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -454,7 +454,8 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("recommenderConfig", request.getRecommenderConfig())) + .toBody( + "recommenderConfig", request.getRecommenderConfig(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -533,7 +534,8 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("insightTypeConfig", request.getInsightTypeConfig())) + .toBody( + "insightTypeConfig", request.getInsightTypeConfig(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java index 996d22335bfb..21a399281f43 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java @@ -89,17 +89,17 @@ * For example, to set the total timeout of getInsight 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 * RecommenderStubSettings.Builder recommenderSettingsBuilder = * RecommenderStubSettings.newBuilder(); * recommenderSettingsBuilder * .getInsightSettings() * .setRetrySettings( - * recommenderSettingsBuilder - * .getInsightSettings() - * .getRetrySettings() - * .toBuilder() + * recommenderSettingsBuilder.getInsightSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * RecommenderStubSettings recommenderSettings = recommenderSettingsBuilder.build(); diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderClient.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderClient.java index a751d6f7e0c1..7c7e74b8f60e 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderClient.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderClient.java @@ -46,8 +46,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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightName name = * InsightName.ofProjectLocationInsightTypeInsightName( @@ -85,8 +88,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 * RecommenderSettings recommenderSettings = * RecommenderSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -97,8 +103,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 * RecommenderSettings recommenderSettings = * RecommenderSettings.newBuilder().setEndpoint(myEndpoint).build(); * RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings); @@ -108,8 +117,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 * RecommenderSettings recommenderSettings = * RecommenderSettings.newBuilder() * .setTransportChannelProvider( @@ -178,8 +190,11 @@ public RecommenderStub 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightTypeName parent = * InsightTypeName.ofProjectLocationInsightTypeName( @@ -228,8 +243,11 @@ public final ListInsightsPagedResponse listInsights(InsightTypeName parent) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String parent = * InsightTypeName.ofProjectLocationInsightTypeName( @@ -276,8 +294,11 @@ public final ListInsightsPagedResponse listInsights(String parent) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListInsightsRequest request = * ListInsightsRequest.newBuilder() @@ -310,8 +331,11 @@ public final ListInsightsPagedResponse listInsights(ListInsightsRequest 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListInsightsRequest request = * ListInsightsRequest.newBuilder() @@ -344,8 +368,11 @@ public final ListInsightsPagedResponse listInsights(ListInsightsRequest 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListInsightsRequest request = * ListInsightsRequest.newBuilder() @@ -384,8 +411,11 @@ public final UnaryCallablelistInsigh * 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightName name = * InsightName.ofProjectLocationInsightTypeInsightName( @@ -411,8 +441,11 @@ public final Insight getInsight(InsightName name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * InsightName.ofProjectLocationInsightTypeInsightName( @@ -438,8 +471,11 @@ public final Insight getInsight(String name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetInsightRequest request = * GetInsightRequest.newBuilder() @@ -467,8 +503,11 @@ public final Insight getInsight(GetInsightRequest 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetInsightRequest request = * GetInsightRequest.newBuilder() @@ -499,8 +538,11 @@ public final UnaryCallablegetInsightCallable() { * 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightName name = * InsightName.ofProjectLocationInsightTypeInsightName( @@ -540,8 +582,11 @@ public final Insight markInsightAccepted( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * InsightName.ofProjectLocationInsightTypeInsightName( @@ -582,8 +627,11 @@ public final Insight markInsightAccepted( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkInsightAcceptedRequest request = * MarkInsightAcceptedRequest.newBuilder() @@ -617,8 +665,11 @@ public final Insight markInsightAccepted(MarkInsightAcceptedRequest 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkInsightAcceptedRequest request = * MarkInsightAcceptedRequest.newBuilder() @@ -648,8 +699,11 @@ public final UnaryCallablemarkInsightAccep * 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommenderName parent = * RecommenderName.ofProjectLocationRecommenderName( @@ -728,8 +782,11 @@ public final ListRecommendationsPagedResponse listRecommendations( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String parent = * RecommenderName.ofProjectLocationRecommenderName( @@ -805,8 +862,11 @@ public final ListRecommendationsPagedResponse listRecommendations(String parent, *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListRecommendationsRequest request = * ListRecommendationsRequest.newBuilder() @@ -840,8 +900,11 @@ public final ListRecommendationsPagedResponse listRecommendations( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListRecommendationsRequest request = * ListRecommendationsRequest.newBuilder() @@ -875,8 +938,11 @@ public final ListRecommendationsPagedResponse listRecommendations( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * ListRecommendationsRequest request = * ListRecommendationsRequest.newBuilder() @@ -917,8 +983,11 @@ public final ListRecommendationsPagedResponse listRecommendations( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommendationName name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -946,8 +1015,11 @@ public final Recommendation getRecommendation(RecommendationName name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -973,8 +1045,11 @@ public final Recommendation getRecommendation(String name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetRecommendationRequest request = * GetRecommendationRequest.newBuilder() @@ -1002,8 +1077,11 @@ public final Recommendation getRecommendation(GetRecommendationRequest 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetRecommendationRequest request = * GetRecommendationRequest.newBuilder() @@ -1037,8 +1115,11 @@ public final UnaryCallablegetRecommen * 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommendationName name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1082,8 +1163,11 @@ public final Recommendation markRecommendationClaimed( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1128,8 +1212,11 @@ public final Recommendation markRecommendationClaimed( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationClaimedRequest request = * MarkRecommendationClaimedRequest.newBuilder() @@ -1165,8 +1252,11 @@ public final Recommendation markRecommendationClaimed(MarkRecommendationClaimedR *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationClaimedRequest request = * MarkRecommendationClaimedRequest.newBuilder() @@ -1204,8 +1294,11 @@ public final Recommendation markRecommendationClaimed(MarkRecommendationClaimedR *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommendationName name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1250,8 +1343,11 @@ public final Recommendation markRecommendationSucceeded( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1297,8 +1393,11 @@ public final Recommendation markRecommendationSucceeded( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationSucceededRequest request = * MarkRecommendationSucceededRequest.newBuilder() @@ -1336,8 +1435,11 @@ public final Recommendation markRecommendationSucceeded( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationSucceededRequest request = * MarkRecommendationSucceededRequest.newBuilder() @@ -1375,8 +1477,11 @@ public final Recommendation markRecommendationSucceeded( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommendationName name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1421,8 +1526,11 @@ public final Recommendation markRecommendationFailed( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -1468,8 +1576,11 @@ public final Recommendation markRecommendationFailed( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationFailedRequest request = * MarkRecommendationFailedRequest.newBuilder() @@ -1506,8 +1617,11 @@ public final Recommendation markRecommendationFailed(MarkRecommendationFailedReq *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * MarkRecommendationFailedRequest request = * MarkRecommendationFailedRequest.newBuilder() @@ -1538,8 +1652,11 @@ public final Recommendation markRecommendationFailed(MarkRecommendationFailedReq *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommenderConfigName name = * RecommenderConfigName.ofProjectLocationRecommenderName( @@ -1578,8 +1695,11 @@ public final RecommenderConfig getRecommenderConfig(RecommenderConfigName name) *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * RecommenderConfigName.ofProjectLocationRecommenderName( @@ -1617,8 +1737,11 @@ public final RecommenderConfig getRecommenderConfig(String name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetRecommenderConfigRequest request = * GetRecommenderConfigRequest.newBuilder() @@ -1646,8 +1769,11 @@ public final RecommenderConfig getRecommenderConfig(GetRecommenderConfigRequest *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetRecommenderConfigRequest request = * GetRecommenderConfigRequest.newBuilder() @@ -1675,8 +1801,11 @@ public final RecommenderConfig getRecommenderConfig(GetRecommenderConfigRequest *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * RecommenderConfig recommenderConfig = RecommenderConfig.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1706,8 +1835,11 @@ public final RecommenderConfig updateRecommenderConfig( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * UpdateRecommenderConfigRequest request = * UpdateRecommenderConfigRequest.newBuilder() @@ -1733,8 +1865,11 @@ public final RecommenderConfig updateRecommenderConfig(UpdateRecommenderConfigRe *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * UpdateRecommenderConfigRequest request = * UpdateRecommenderConfigRequest.newBuilder() @@ -1762,8 +1897,11 @@ public final RecommenderConfig updateRecommenderConfig(UpdateRecommenderConfigRe *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightTypeConfigName name = * InsightTypeConfigName.ofProjectLocationInsightTypeName( @@ -1802,8 +1940,11 @@ public final InsightTypeConfig getInsightTypeConfig(InsightTypeConfigName name) *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * String name = * InsightTypeConfigName.ofProjectLocationInsightTypeName( @@ -1841,8 +1982,11 @@ public final InsightTypeConfig getInsightTypeConfig(String name) { *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetInsightTypeConfigRequest request = * GetInsightTypeConfigRequest.newBuilder() @@ -1870,8 +2014,11 @@ public final InsightTypeConfig getInsightTypeConfig(GetInsightTypeConfigRequest *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * GetInsightTypeConfigRequest request = * GetInsightTypeConfigRequest.newBuilder() @@ -1899,8 +2046,11 @@ public final InsightTypeConfig getInsightTypeConfig(GetInsightTypeConfigRequest *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightTypeConfig insightTypeConfig = InsightTypeConfig.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1930,8 +2080,11 @@ public final InsightTypeConfig updateInsightTypeConfig( *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * UpdateInsightTypeConfigRequest request = * UpdateInsightTypeConfigRequest.newBuilder() @@ -1957,8 +2110,11 @@ public final InsightTypeConfig updateInsightTypeConfig(UpdateInsightTypeConfigRe *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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * UpdateInsightTypeConfigRequest request = * UpdateInsightTypeConfigRequest.newBuilder() diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderSettings.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderSettings.java index e36c5e346231..580ea8849038 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderSettings.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderSettings.java @@ -54,16 +54,16 @@ *For example, to set the total timeout of getInsight 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 * RecommenderSettings.Builder recommenderSettingsBuilder = RecommenderSettings.newBuilder(); * recommenderSettingsBuilder * .getInsightSettings() * .setRetrySettings( - * recommenderSettingsBuilder - * .getInsightSettings() - * .getRetrySettings() - * .toBuilder() + * recommenderSettingsBuilder.getInsightSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * RecommenderSettings recommenderSettings = recommenderSettingsBuilder.build(); diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/package-info.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/package-info.java index b27dd63d83e3..6bf3ee78bef7 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/package-info.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/package-info.java @@ -29,8 +29,11 @@ *Sample for RecommenderClient: * *
{@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 (RecommenderClient recommenderClient = RecommenderClient.create()) { * InsightName name = * InsightName.ofProjectLocationInsightTypeInsightName( diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/HttpJsonRecommenderStub.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/HttpJsonRecommenderStub.java index c85cc4f72d8e..57928d7a1e63 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/HttpJsonRecommenderStub.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/HttpJsonRecommenderStub.java @@ -176,7 +176,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -294,7 +294,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -335,7 +335,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -376,7 +376,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -457,7 +457,8 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("recommenderConfig", request.getRecommenderConfig())) + .toBody( + "recommenderConfig", request.getRecommenderConfig(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -538,7 +539,8 @@ public class HttpJsonRecommenderStub extends RecommenderStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("insightTypeConfig", request.getInsightTypeConfig())) + .toBody( + "insightTypeConfig", request.getInsightTypeConfig(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java index 2199023dc74a..9df91bc296ca 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java @@ -89,17 +89,17 @@ * For example, to set the total timeout of getInsight 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 * RecommenderStubSettings.Builder recommenderSettingsBuilder = * RecommenderStubSettings.newBuilder(); * recommenderSettingsBuilder * .getInsightSettings() * .setRetrySettings( - * recommenderSettingsBuilder - * .getInsightSettings() - * .getRetrySettings() - * .toBuilder() + * recommenderSettingsBuilder.getInsightSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * RecommenderStubSettings recommenderSettings = recommenderSettingsBuilder.build(); diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetCredentialsProvider.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetCredentialsProvider.java index d080776f898e..5951a2b73827 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // 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 RecommenderSettings recommenderSettings = RecommenderSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetCredentialsProvider1.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetCredentialsProvider1.java index dedbd6687b1d..89260e73e393 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // 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 RecommenderSettings recommenderSettings = RecommenderSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetEndpoint.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetEndpoint.java index 7df4f9209ee3..343ee9993712 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetEndpoint.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // 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 RecommenderSettings recommenderSettings = RecommenderSettings.newBuilder().setEndpoint(myEndpoint).build(); RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings); diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/AsyncGetInsight.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/AsyncGetInsight.java index c3886080bc8d..a7afcf22291c 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/AsyncGetInsight.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/AsyncGetInsight.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInsight() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetInsightRequest request = GetInsightRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsight.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsight.java index 706768615a34..cd304c2861fb 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsight.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsight.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsight() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetInsightRequest request = GetInsightRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsightInsightname.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsightInsightname.java index 69c4921e4437..ecb1e144bb9c 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsightInsightname.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsightInsightname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsightInsightname() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { InsightName name = InsightName.ofProjectLocationInsightTypeInsightName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsightString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsightString.java index af559b52058f..d763e4b72f68 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsightString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsight/SyncGetInsightString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsightString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = InsightName.ofProjectLocationInsightTypeInsightName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/AsyncGetInsightTypeConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/AsyncGetInsightTypeConfig.java index adf10db47429..475bfd4375c3 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/AsyncGetInsightTypeConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/AsyncGetInsightTypeConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInsightTypeConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetInsightTypeConfigRequest request = GetInsightTypeConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfig.java index ad9bae99b2a0..977dd94cac07 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsightTypeConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetInsightTypeConfigRequest request = GetInsightTypeConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigInsighttypeconfigname.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigInsighttypeconfigname.java index c6472ab08460..e34c1bc38c43 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigInsighttypeconfigname.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigInsighttypeconfigname.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_getinsighttypeconfig_insighttypeconfigname_sync] +// [START recommender_v1_generated_recommenderclient_getinsighttypeconfig_insighttypeconfigname_sync] import com.google.cloud.recommender.v1.InsightTypeConfig; import com.google.cloud.recommender.v1.InsightTypeConfigName; import com.google.cloud.recommender.v1.RecommenderClient; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsightTypeConfigInsighttypeconfigname() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { InsightTypeConfigName name = InsightTypeConfigName.ofProjectLocationInsightTypeName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigString.java index 41a59de7c0cf..14e4198389c4 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsightTypeConfigString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = InsightTypeConfigName.ofProjectLocationInsightTypeName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/AsyncGetRecommendation.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/AsyncGetRecommendation.java index abed6e1523bf..f81f1981ab64 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/AsyncGetRecommendation.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/AsyncGetRecommendation.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetRecommendation() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetRecommendationRequest request = GetRecommendationRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendation.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendation.java index e0f9ae71656b..10451705a13a 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendation.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendation.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommendation() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetRecommendationRequest request = GetRecommendationRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendationRecommendationname.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendationRecommendationname.java index 753d58cc105b..b75cd67b19e9 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendationRecommendationname.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendationRecommendationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommendationRecommendationname() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommendationName name = RecommendationName.ofProjectLocationRecommenderRecommendationName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendationString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendationString.java index de04ce88d76b..d84a75eb6844 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendationString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommendation/SyncGetRecommendationString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommendationString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = RecommendationName.ofProjectLocationRecommenderRecommendationName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/AsyncGetRecommenderConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/AsyncGetRecommenderConfig.java index b3d2d4023db0..dfd9575064d5 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/AsyncGetRecommenderConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/AsyncGetRecommenderConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetRecommenderConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetRecommenderConfigRequest request = GetRecommenderConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfig.java index 81b709fe66e5..01b4437ac603 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommenderConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetRecommenderConfigRequest request = GetRecommenderConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigRecommenderconfigname.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigRecommenderconfigname.java index f31cdaf33cd3..0b96e1ffd010 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigRecommenderconfigname.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigRecommenderconfigname.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_getrecommenderconfig_recommenderconfigname_sync] +// [START recommender_v1_generated_recommenderclient_getrecommenderconfig_recommenderconfigname_sync] import com.google.cloud.recommender.v1.RecommenderClient; import com.google.cloud.recommender.v1.RecommenderConfig; import com.google.cloud.recommender.v1.RecommenderConfigName; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommenderConfigRecommenderconfigname() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommenderConfigName name = RecommenderConfigName.ofProjectLocationRecommenderName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigString.java index 77eaf731d4ec..4f90c902807f 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommenderConfigString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = RecommenderConfigName.ofProjectLocationRecommenderName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/AsyncListInsights.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/AsyncListInsights.java index b039e65b0455..64ce4b54849d 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/AsyncListInsights.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/AsyncListInsights.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInsights() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListInsightsRequest request = ListInsightsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/AsyncListInsightsPaged.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/AsyncListInsightsPaged.java index c839dd09daf6..fa50a1dcd467 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/AsyncListInsightsPaged.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/AsyncListInsightsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInsightsPaged() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListInsightsRequest request = ListInsightsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsights.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsights.java index 762761b5b2c5..717fb2fb1fb8 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsights.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsights.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInsights() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListInsightsRequest request = ListInsightsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsightsInsighttypename.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsightsInsighttypename.java index 782cd22bf147..8a82904a042e 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsightsInsighttypename.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsightsInsighttypename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInsightsInsighttypename() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { InsightTypeName parent = InsightTypeName.ofProjectLocationInsightTypeName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsightsString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsightsString.java index 863c396f0769..67dbf3a7d6c9 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsightsString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listinsights/SyncListInsightsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInsightsString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String parent = InsightTypeName.ofProjectLocationInsightTypeName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/AsyncListRecommendations.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/AsyncListRecommendations.java index ec0142e4a846..bc548aaebc0f 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/AsyncListRecommendations.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/AsyncListRecommendations.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRecommendations() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListRecommendationsRequest request = ListRecommendationsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/AsyncListRecommendationsPaged.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/AsyncListRecommendationsPaged.java index 68ab03877b0a..1248a8466f0b 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/AsyncListRecommendationsPaged.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/AsyncListRecommendationsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRecommendationsPaged() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListRecommendationsRequest request = ListRecommendationsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendations.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendations.java index 434c7580c22b..9cb63f8e9a28 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendations.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendations.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRecommendations() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListRecommendationsRequest request = ListRecommendationsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendername.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendername.java index daa61fe50048..4e359e837634 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendername.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendername.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRecommendationsRecommendername() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommenderName parent = RecommenderName.ofProjectLocationRecommenderName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendernameString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendernameString.java index 187dc9b464f8..73e9c72a26b3 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendernameString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendernameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRecommendationsRecommendernameString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommenderName parent = RecommenderName.ofProjectLocationRecommenderName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsString.java index 1667f8d3d69a..3b234533f5d0 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRecommendationsString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String parent = RecommenderName.ofProjectLocationRecommenderName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsStringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsStringString.java index 78f20d1fadab..129c50fd8c57 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsStringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/listrecommendations/SyncListRecommendationsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRecommendationsStringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String parent = RecommenderName.ofProjectLocationRecommenderName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/AsyncMarkInsightAccepted.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/AsyncMarkInsightAccepted.java index d827362f7c17..32b2c7264613 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/AsyncMarkInsightAccepted.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/AsyncMarkInsightAccepted.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncMarkInsightAccepted() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkInsightAcceptedRequest request = MarkInsightAcceptedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAccepted.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAccepted.java index bd3d4486851f..7dbe2f5a92cd 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAccepted.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAccepted.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkInsightAccepted() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkInsightAcceptedRequest request = MarkInsightAcceptedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedInsightnameMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedInsightnameMapstringstringString.java index 3123b74afa47..daa1fad45fc9 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedInsightnameMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedInsightnameMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_markinsightaccepted_insightnamemapstringstringstring_sync] +// [START recommender_v1_generated_recommenderclient_markinsightaccepted_insightnamemapstringstringstring_sync] import com.google.cloud.recommender.v1.Insight; import com.google.cloud.recommender.v1.InsightName; import com.google.cloud.recommender.v1.RecommenderClient; @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkInsightAcceptedInsightnameMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { InsightName name = InsightName.ofProjectLocationInsightTypeInsightName( @@ -43,5 +45,4 @@ public static void syncMarkInsightAcceptedInsightnameMapstringstringString() thr } } } -// [END -// recommender_v1_generated_recommenderclient_markinsightaccepted_insightnamemapstringstringstring_sync] +// [END recommender_v1_generated_recommenderclient_markinsightaccepted_insightnamemapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedStringMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedStringMapstringstringString.java index 86b989efc6c0..135bb02d690b 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedStringMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedStringMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_markinsightaccepted_stringmapstringstringstring_sync] +// [START recommender_v1_generated_recommenderclient_markinsightaccepted_stringmapstringstringstring_sync] import com.google.cloud.recommender.v1.Insight; import com.google.cloud.recommender.v1.InsightName; import com.google.cloud.recommender.v1.RecommenderClient; @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkInsightAcceptedStringMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = InsightName.ofProjectLocationInsightTypeInsightName( @@ -44,5 +46,4 @@ public static void syncMarkInsightAcceptedStringMapstringstringString() throws E } } } -// [END -// recommender_v1_generated_recommenderclient_markinsightaccepted_stringmapstringstringstring_sync] +// [END recommender_v1_generated_recommenderclient_markinsightaccepted_stringmapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/AsyncMarkRecommendationClaimed.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/AsyncMarkRecommendationClaimed.java index 73ed88e3c5fe..fed1394a9f85 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/AsyncMarkRecommendationClaimed.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/AsyncMarkRecommendationClaimed.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncMarkRecommendationClaimed() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationClaimedRequest request = MarkRecommendationClaimedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimed.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimed.java index a46d34790a61..72433dcb61db 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimed.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimed.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationClaimed() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationClaimedRequest request = MarkRecommendationClaimedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedRecommendationnameMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedRecommendationnameMapstringstringString.java index 2535dd1be9d8..d8102242a031 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedRecommendationnameMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedRecommendationnameMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_markrecommendationclaimed_recommendationnamemapstringstringstring_sync] +// [START recommender_v1_generated_recommenderclient_markrecommendationclaimed_recommendationnamemapstringstringstring_sync] import com.google.cloud.recommender.v1.Recommendation; import com.google.cloud.recommender.v1.RecommendationName; import com.google.cloud.recommender.v1.RecommenderClient; @@ -32,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncMarkRecommendationClaimedRecommendationnameMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommendationName name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationClaimedRecommendationnameMapstringstrin } } } -// [END -// recommender_v1_generated_recommenderclient_markrecommendationclaimed_recommendationnamemapstringstringstring_sync] +// [END recommender_v1_generated_recommenderclient_markrecommendationclaimed_recommendationnamemapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedStringMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedStringMapstringstringString.java index e101284664aa..46913c2e047d 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedStringMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedStringMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_markrecommendationclaimed_stringmapstringstringstring_sync] +// [START recommender_v1_generated_recommenderclient_markrecommendationclaimed_stringmapstringstringstring_sync] import com.google.cloud.recommender.v1.Recommendation; import com.google.cloud.recommender.v1.RecommendationName; import com.google.cloud.recommender.v1.RecommenderClient; @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationClaimedStringMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationClaimedStringMapstringstringString() th } } } -// [END -// recommender_v1_generated_recommenderclient_markrecommendationclaimed_stringmapstringstringstring_sync] +// [END recommender_v1_generated_recommenderclient_markrecommendationclaimed_stringmapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/AsyncMarkRecommendationFailed.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/AsyncMarkRecommendationFailed.java index a75a16bdc79f..edceb5c61b75 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/AsyncMarkRecommendationFailed.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/AsyncMarkRecommendationFailed.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncMarkRecommendationFailed() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationFailedRequest request = MarkRecommendationFailedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailed.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailed.java index 4b8775900822..b03ae0c79195 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailed.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailed.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationFailed() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationFailedRequest request = MarkRecommendationFailedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedRecommendationnameMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedRecommendationnameMapstringstringString.java index 5ba32fc0b7fc..1f1b689ac6a6 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedRecommendationnameMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedRecommendationnameMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_markrecommendationfailed_recommendationnamemapstringstringstring_sync] +// [START recommender_v1_generated_recommenderclient_markrecommendationfailed_recommendationnamemapstringstringstring_sync] import com.google.cloud.recommender.v1.Recommendation; import com.google.cloud.recommender.v1.RecommendationName; import com.google.cloud.recommender.v1.RecommenderClient; @@ -32,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncMarkRecommendationFailedRecommendationnameMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommendationName name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationFailedRecommendationnameMapstringstring } } } -// [END -// recommender_v1_generated_recommenderclient_markrecommendationfailed_recommendationnamemapstringstringstring_sync] +// [END recommender_v1_generated_recommenderclient_markrecommendationfailed_recommendationnamemapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedStringMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedStringMapstringstringString.java index dd844f2f8903..3c748ed981b3 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedStringMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedStringMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_markrecommendationfailed_stringmapstringstringstring_sync] +// [START recommender_v1_generated_recommenderclient_markrecommendationfailed_stringmapstringstringstring_sync] import com.google.cloud.recommender.v1.Recommendation; import com.google.cloud.recommender.v1.RecommendationName; import com.google.cloud.recommender.v1.RecommenderClient; @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationFailedStringMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationFailedStringMapstringstringString() thr } } } -// [END -// recommender_v1_generated_recommenderclient_markrecommendationfailed_stringmapstringstringstring_sync] +// [END recommender_v1_generated_recommenderclient_markrecommendationfailed_stringmapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/AsyncMarkRecommendationSucceeded.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/AsyncMarkRecommendationSucceeded.java index 1ab49b14a54b..7260af9ca68e 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/AsyncMarkRecommendationSucceeded.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/AsyncMarkRecommendationSucceeded.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncMarkRecommendationSucceeded() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationSucceededRequest request = MarkRecommendationSucceededRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceeded.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceeded.java index 5b721f2268df..683d1b42de70 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceeded.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceeded.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationSucceeded() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationSucceededRequest request = MarkRecommendationSucceededRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededRecommendationnameMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededRecommendationnameMapstringstringString.java index f3ec0fb1fff2..2e1356ff9138 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededRecommendationnameMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededRecommendationnameMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_markrecommendationsucceeded_recommendationnamemapstringstringstring_sync] +// [START recommender_v1_generated_recommenderclient_markrecommendationsucceeded_recommendationnamemapstringstringstring_sync] import com.google.cloud.recommender.v1.Recommendation; import com.google.cloud.recommender.v1.RecommendationName; import com.google.cloud.recommender.v1.RecommenderClient; @@ -32,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncMarkRecommendationSucceededRecommendationnameMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommendationName name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationSucceededRecommendationnameMapstringstr } } } -// [END -// recommender_v1_generated_recommenderclient_markrecommendationsucceeded_recommendationnamemapstringstringstring_sync] +// [END recommender_v1_generated_recommenderclient_markrecommendationsucceeded_recommendationnamemapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededStringMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededStringMapstringstringString.java index 8dd3a0251388..8e07b63c47fe 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededStringMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededStringMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_markrecommendationsucceeded_stringmapstringstringstring_sync] +// [START recommender_v1_generated_recommenderclient_markrecommendationsucceeded_stringmapstringstringstring_sync] import com.google.cloud.recommender.v1.Recommendation; import com.google.cloud.recommender.v1.RecommendationName; import com.google.cloud.recommender.v1.RecommenderClient; @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationSucceededStringMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationSucceededStringMapstringstringString() } } } -// [END -// recommender_v1_generated_recommenderclient_markrecommendationsucceeded_stringmapstringstringstring_sync] +// [END recommender_v1_generated_recommenderclient_markrecommendationsucceeded_stringmapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/AsyncUpdateInsightTypeConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/AsyncUpdateInsightTypeConfig.java index 852856bf1ec3..8be9bb6f5d56 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/AsyncUpdateInsightTypeConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/AsyncUpdateInsightTypeConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateInsightTypeConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { UpdateInsightTypeConfigRequest request = UpdateInsightTypeConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfig.java index 122b908c62a0..2f4345722f70 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateInsightTypeConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { UpdateInsightTypeConfigRequest request = UpdateInsightTypeConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfigInsighttypeconfigFieldmask.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfigInsighttypeconfigFieldmask.java index 4658bbbcd39f..5d1393586e88 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfigInsighttypeconfigFieldmask.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfigInsighttypeconfigFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_updateinsighttypeconfig_insighttypeconfigfieldmask_sync] +// [START recommender_v1_generated_recommenderclient_updateinsighttypeconfig_insighttypeconfigfieldmask_sync] import com.google.cloud.recommender.v1.InsightTypeConfig; import com.google.cloud.recommender.v1.RecommenderClient; import com.google.protobuf.FieldMask; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateInsightTypeConfigInsighttypeconfigFieldmask() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { InsightTypeConfig insightTypeConfig = InsightTypeConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -39,5 +41,4 @@ public static void syncUpdateInsightTypeConfigInsighttypeconfigFieldmask() throw } } } -// [END -// recommender_v1_generated_recommenderclient_updateinsighttypeconfig_insighttypeconfigfieldmask_sync] +// [END recommender_v1_generated_recommenderclient_updateinsighttypeconfig_insighttypeconfigfieldmask_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/AsyncUpdateRecommenderConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/AsyncUpdateRecommenderConfig.java index 46fa47cf1588..bd64c52b02bc 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/AsyncUpdateRecommenderConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/AsyncUpdateRecommenderConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateRecommenderConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { UpdateRecommenderConfigRequest request = UpdateRecommenderConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfig.java index e7118be69a28..13ff49b09e55 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateRecommenderConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { UpdateRecommenderConfigRequest request = UpdateRecommenderConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfigRecommenderconfigFieldmask.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfigRecommenderconfigFieldmask.java index 76315731817b..a743e7783be2 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfigRecommenderconfigFieldmask.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfigRecommenderconfigFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1.samples; -// [START -// recommender_v1_generated_recommenderclient_updaterecommenderconfig_recommenderconfigfieldmask_sync] +// [START recommender_v1_generated_recommenderclient_updaterecommenderconfig_recommenderconfigfieldmask_sync] import com.google.cloud.recommender.v1.RecommenderClient; import com.google.cloud.recommender.v1.RecommenderConfig; import com.google.protobuf.FieldMask; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateRecommenderConfigRecommenderconfigFieldmask() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommenderConfig recommenderConfig = RecommenderConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -39,5 +41,4 @@ public static void syncUpdateRecommenderConfigRecommenderconfigFieldmask() throw } } } -// [END -// recommender_v1_generated_recommenderclient_updaterecommenderconfig_recommenderconfigfieldmask_sync] +// [END recommender_v1_generated_recommenderclient_updaterecommenderconfig_recommenderconfigfieldmask_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommendersettings/getinsight/SyncGetInsight.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommendersettings/getinsight/SyncGetInsight.java index 00bce876bc19..87f7f9d26acf 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommendersettings/getinsight/SyncGetInsight.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/recommendersettings/getinsight/SyncGetInsight.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsight() throws Exception { - // 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 RecommenderSettings.Builder recommenderSettingsBuilder = RecommenderSettings.newBuilder(); recommenderSettingsBuilder .getInsightSettings() .setRetrySettings( - recommenderSettingsBuilder - .getInsightSettings() - .getRetrySettings() - .toBuilder() + recommenderSettingsBuilder.getInsightSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); RecommenderSettings recommenderSettings = recommenderSettingsBuilder.build(); diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/stub/recommenderstubsettings/getinsight/SyncGetInsight.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/stub/recommenderstubsettings/getinsight/SyncGetInsight.java index 3156c617efbd..61a3738bab08 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/stub/recommenderstubsettings/getinsight/SyncGetInsight.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1/stub/recommenderstubsettings/getinsight/SyncGetInsight.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsight() throws Exception { - // 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 RecommenderStubSettings.Builder recommenderSettingsBuilder = RecommenderStubSettings.newBuilder(); recommenderSettingsBuilder .getInsightSettings() .setRetrySettings( - recommenderSettingsBuilder - .getInsightSettings() - .getRetrySettings() - .toBuilder() + recommenderSettingsBuilder.getInsightSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); RecommenderStubSettings recommenderSettings = recommenderSettingsBuilder.build(); diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetCredentialsProvider.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetCredentialsProvider.java index ef4471c7f456..6512b0ef816a 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // 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 RecommenderSettings recommenderSettings = RecommenderSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetCredentialsProvider1.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetCredentialsProvider1.java index fabfc1243a80..0c81e46de17f 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // 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 RecommenderSettings recommenderSettings = RecommenderSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetEndpoint.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetEndpoint.java index 238eb9fffef9..0650967a8178 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetEndpoint.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // 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 RecommenderSettings recommenderSettings = RecommenderSettings.newBuilder().setEndpoint(myEndpoint).build(); RecommenderClient recommenderClient = RecommenderClient.create(recommenderSettings); diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/AsyncGetInsight.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/AsyncGetInsight.java index 0a9113d246a5..d34a8f2d7a1d 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/AsyncGetInsight.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/AsyncGetInsight.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInsight() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetInsightRequest request = GetInsightRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsight.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsight.java index e00236c3209d..348005598a0c 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsight.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsight.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsight() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetInsightRequest request = GetInsightRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsightInsightname.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsightInsightname.java index 0e3d54193b08..22d8bf9da44a 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsightInsightname.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsightInsightname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsightInsightname() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { InsightName name = InsightName.ofProjectLocationInsightTypeInsightName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsightString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsightString.java index 164bac05301b..c843667b9a5e 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsightString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsight/SyncGetInsightString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsightString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = InsightName.ofProjectLocationInsightTypeInsightName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/AsyncGetInsightTypeConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/AsyncGetInsightTypeConfig.java index 0145fb1643dd..ea75e426d8d5 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/AsyncGetInsightTypeConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/AsyncGetInsightTypeConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInsightTypeConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetInsightTypeConfigRequest request = GetInsightTypeConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfig.java index 9e45a8279601..c56bbebd9380 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsightTypeConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetInsightTypeConfigRequest request = GetInsightTypeConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigInsighttypeconfigname.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigInsighttypeconfigname.java index 59bd98b7efd5..43899752245c 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigInsighttypeconfigname.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigInsighttypeconfigname.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_getinsighttypeconfig_insighttypeconfigname_sync] +// [START recommender_v1beta1_generated_recommenderclient_getinsighttypeconfig_insighttypeconfigname_sync] import com.google.cloud.recommender.v1beta1.InsightTypeConfig; import com.google.cloud.recommender.v1beta1.InsightTypeConfigName; import com.google.cloud.recommender.v1beta1.RecommenderClient; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsightTypeConfigInsighttypeconfigname() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { InsightTypeConfigName name = InsightTypeConfigName.ofProjectLocationInsightTypeName( @@ -39,5 +41,4 @@ public static void syncGetInsightTypeConfigInsighttypeconfigname() throws Except } } } -// [END -// recommender_v1beta1_generated_recommenderclient_getinsighttypeconfig_insighttypeconfigname_sync] +// [END recommender_v1beta1_generated_recommenderclient_getinsighttypeconfig_insighttypeconfigname_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigString.java index d296184c7421..fa36de42fcd8 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getinsighttypeconfig/SyncGetInsightTypeConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsightTypeConfigString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = InsightTypeConfigName.ofProjectLocationInsightTypeName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/AsyncGetRecommendation.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/AsyncGetRecommendation.java index 92d96d65d5c7..1ef98919dc10 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/AsyncGetRecommendation.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/AsyncGetRecommendation.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetRecommendation() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetRecommendationRequest request = GetRecommendationRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendation.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendation.java index cd9ccf15220e..4d4dc2063dd9 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendation.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendation.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommendation() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetRecommendationRequest request = GetRecommendationRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendationRecommendationname.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendationRecommendationname.java index e1ae6aa970bf..588770f5426b 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendationRecommendationname.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendationRecommendationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommendationRecommendationname() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommendationName name = RecommendationName.ofProjectLocationRecommenderRecommendationName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendationString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendationString.java index e93cd4a59330..4c912bb351ff 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendationString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommendation/SyncGetRecommendationString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommendationString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = RecommendationName.ofProjectLocationRecommenderRecommendationName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/AsyncGetRecommenderConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/AsyncGetRecommenderConfig.java index 3efdc42a88f9..9cb3aafd542b 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/AsyncGetRecommenderConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/AsyncGetRecommenderConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetRecommenderConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetRecommenderConfigRequest request = GetRecommenderConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfig.java index c503dfc5ed2e..0f840f6119a0 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommenderConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { GetRecommenderConfigRequest request = GetRecommenderConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigRecommenderconfigname.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigRecommenderconfigname.java index eb0268aded55..77402ec19688 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigRecommenderconfigname.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigRecommenderconfigname.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_getrecommenderconfig_recommenderconfigname_sync] +// [START recommender_v1beta1_generated_recommenderclient_getrecommenderconfig_recommenderconfigname_sync] import com.google.cloud.recommender.v1beta1.RecommenderClient; import com.google.cloud.recommender.v1beta1.RecommenderConfig; import com.google.cloud.recommender.v1beta1.RecommenderConfigName; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommenderConfigRecommenderconfigname() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommenderConfigName name = RecommenderConfigName.ofProjectLocationRecommenderName( @@ -39,5 +41,4 @@ public static void syncGetRecommenderConfigRecommenderconfigname() throws Except } } } -// [END -// recommender_v1beta1_generated_recommenderclient_getrecommenderconfig_recommenderconfigname_sync] +// [END recommender_v1beta1_generated_recommenderclient_getrecommenderconfig_recommenderconfigname_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigString.java index 73441451c1c5..603340e8bf14 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/getrecommenderconfig/SyncGetRecommenderConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRecommenderConfigString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = RecommenderConfigName.ofProjectLocationRecommenderName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/AsyncListInsights.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/AsyncListInsights.java index 870ddb173d45..d22b7faf4ccc 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/AsyncListInsights.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/AsyncListInsights.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInsights() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListInsightsRequest request = ListInsightsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/AsyncListInsightsPaged.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/AsyncListInsightsPaged.java index a18a537d30d6..d7baa31bf2cf 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/AsyncListInsightsPaged.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/AsyncListInsightsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInsightsPaged() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListInsightsRequest request = ListInsightsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsights.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsights.java index 5f4ded8661b0..618de1047377 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsights.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsights.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInsights() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListInsightsRequest request = ListInsightsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsightsInsighttypename.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsightsInsighttypename.java index 019b48c6715b..ca9b7ebdc7ec 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsightsInsighttypename.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsightsInsighttypename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInsightsInsighttypename() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { InsightTypeName parent = InsightTypeName.ofProjectLocationInsightTypeName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsightsString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsightsString.java index b090bdcb5dfc..a32c93e4f541 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsightsString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listinsights/SyncListInsightsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInsightsString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String parent = InsightTypeName.ofProjectLocationInsightTypeName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/AsyncListRecommendations.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/AsyncListRecommendations.java index c3feb91265d7..c8d8137a0dc7 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/AsyncListRecommendations.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/AsyncListRecommendations.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRecommendations() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListRecommendationsRequest request = ListRecommendationsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/AsyncListRecommendationsPaged.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/AsyncListRecommendationsPaged.java index 2598b5efc70b..1f334f3151f7 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/AsyncListRecommendationsPaged.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/AsyncListRecommendationsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRecommendationsPaged() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListRecommendationsRequest request = ListRecommendationsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendations.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendations.java index 2ceeadc57d54..dc4ff44574ed 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendations.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendations.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRecommendations() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { ListRecommendationsRequest request = ListRecommendationsRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendernameString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendernameString.java index 0a3b905c63cf..46c5a71e1172 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendernameString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendationsRecommendernameString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_listrecommendations_recommendernamestring_sync] +// [START recommender_v1beta1_generated_recommenderclient_listrecommendations_recommendernamestring_sync] import com.google.cloud.recommender.v1beta1.Recommendation; import com.google.cloud.recommender.v1beta1.RecommenderClient; import com.google.cloud.recommender.v1beta1.RecommenderName; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRecommendationsRecommendernameString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommenderName parent = RecommenderName.ofProjectLocationRecommenderName( @@ -43,5 +45,4 @@ public static void syncListRecommendationsRecommendernameString() throws Excepti } } } -// [END -// recommender_v1beta1_generated_recommenderclient_listrecommendations_recommendernamestring_sync] +// [END recommender_v1beta1_generated_recommenderclient_listrecommendations_recommendernamestring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendationsStringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendationsStringString.java index 2c8779374a88..4d049fd04b0f 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendationsStringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/listrecommendations/SyncListRecommendationsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRecommendationsStringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String parent = RecommenderName.ofProjectLocationRecommenderName( diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/AsyncMarkInsightAccepted.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/AsyncMarkInsightAccepted.java index 212e98952da8..d4854cb65ba3 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/AsyncMarkInsightAccepted.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/AsyncMarkInsightAccepted.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncMarkInsightAccepted() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkInsightAcceptedRequest request = MarkInsightAcceptedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAccepted.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAccepted.java index 41dbabe38099..91274c949f3b 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAccepted.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAccepted.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkInsightAccepted() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkInsightAcceptedRequest request = MarkInsightAcceptedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedInsightnameMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedInsightnameMapstringstringString.java index 5901c0c32d48..bc5b386a7437 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedInsightnameMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedInsightnameMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_markinsightaccepted_insightnamemapstringstringstring_sync] +// [START recommender_v1beta1_generated_recommenderclient_markinsightaccepted_insightnamemapstringstringstring_sync] import com.google.cloud.recommender.v1beta1.Insight; import com.google.cloud.recommender.v1beta1.InsightName; import com.google.cloud.recommender.v1beta1.RecommenderClient; @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkInsightAcceptedInsightnameMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { InsightName name = InsightName.ofProjectLocationInsightTypeInsightName( @@ -43,5 +45,4 @@ public static void syncMarkInsightAcceptedInsightnameMapstringstringString() thr } } } -// [END -// recommender_v1beta1_generated_recommenderclient_markinsightaccepted_insightnamemapstringstringstring_sync] +// [END recommender_v1beta1_generated_recommenderclient_markinsightaccepted_insightnamemapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedStringMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedStringMapstringstringString.java index 5d50f59351f6..64b4a07c0703 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedStringMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markinsightaccepted/SyncMarkInsightAcceptedStringMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_markinsightaccepted_stringmapstringstringstring_sync] +// [START recommender_v1beta1_generated_recommenderclient_markinsightaccepted_stringmapstringstringstring_sync] import com.google.cloud.recommender.v1beta1.Insight; import com.google.cloud.recommender.v1beta1.InsightName; import com.google.cloud.recommender.v1beta1.RecommenderClient; @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkInsightAcceptedStringMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = InsightName.ofProjectLocationInsightTypeInsightName( @@ -44,5 +46,4 @@ public static void syncMarkInsightAcceptedStringMapstringstringString() throws E } } } -// [END -// recommender_v1beta1_generated_recommenderclient_markinsightaccepted_stringmapstringstringstring_sync] +// [END recommender_v1beta1_generated_recommenderclient_markinsightaccepted_stringmapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/AsyncMarkRecommendationClaimed.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/AsyncMarkRecommendationClaimed.java index 445a3a9c2919..ad7707c9546c 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/AsyncMarkRecommendationClaimed.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/AsyncMarkRecommendationClaimed.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncMarkRecommendationClaimed() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationClaimedRequest request = MarkRecommendationClaimedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimed.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimed.java index 996ba9405cb8..96fbc2ea3c26 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimed.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimed.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationClaimed() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationClaimedRequest request = MarkRecommendationClaimedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedRecommendationnameMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedRecommendationnameMapstringstringString.java index b77b17f1b176..0a309c065f90 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedRecommendationnameMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedRecommendationnameMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_markrecommendationclaimed_recommendationnamemapstringstringstring_sync] +// [START recommender_v1beta1_generated_recommenderclient_markrecommendationclaimed_recommendationnamemapstringstringstring_sync] import com.google.cloud.recommender.v1beta1.Recommendation; import com.google.cloud.recommender.v1beta1.RecommendationName; import com.google.cloud.recommender.v1beta1.RecommenderClient; @@ -32,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncMarkRecommendationClaimedRecommendationnameMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommendationName name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationClaimedRecommendationnameMapstringstrin } } } -// [END -// recommender_v1beta1_generated_recommenderclient_markrecommendationclaimed_recommendationnamemapstringstringstring_sync] +// [END recommender_v1beta1_generated_recommenderclient_markrecommendationclaimed_recommendationnamemapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedStringMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedStringMapstringstringString.java index b685889168f8..5793e1af0df4 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedStringMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationclaimed/SyncMarkRecommendationClaimedStringMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_markrecommendationclaimed_stringmapstringstringstring_sync] +// [START recommender_v1beta1_generated_recommenderclient_markrecommendationclaimed_stringmapstringstringstring_sync] import com.google.cloud.recommender.v1beta1.Recommendation; import com.google.cloud.recommender.v1beta1.RecommendationName; import com.google.cloud.recommender.v1beta1.RecommenderClient; @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationClaimedStringMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationClaimedStringMapstringstringString() th } } } -// [END -// recommender_v1beta1_generated_recommenderclient_markrecommendationclaimed_stringmapstringstringstring_sync] +// [END recommender_v1beta1_generated_recommenderclient_markrecommendationclaimed_stringmapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/AsyncMarkRecommendationFailed.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/AsyncMarkRecommendationFailed.java index d1e19880554c..1f25ecf8b55f 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/AsyncMarkRecommendationFailed.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/AsyncMarkRecommendationFailed.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncMarkRecommendationFailed() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationFailedRequest request = MarkRecommendationFailedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailed.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailed.java index 047365382f72..16f5cbc3807b 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailed.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailed.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationFailed() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationFailedRequest request = MarkRecommendationFailedRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedRecommendationnameMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedRecommendationnameMapstringstringString.java index 6893dc0c57b0..2bb10e559a2d 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedRecommendationnameMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedRecommendationnameMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_markrecommendationfailed_recommendationnamemapstringstringstring_sync] +// [START recommender_v1beta1_generated_recommenderclient_markrecommendationfailed_recommendationnamemapstringstringstring_sync] import com.google.cloud.recommender.v1beta1.Recommendation; import com.google.cloud.recommender.v1beta1.RecommendationName; import com.google.cloud.recommender.v1beta1.RecommenderClient; @@ -32,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncMarkRecommendationFailedRecommendationnameMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommendationName name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationFailedRecommendationnameMapstringstring } } } -// [END -// recommender_v1beta1_generated_recommenderclient_markrecommendationfailed_recommendationnamemapstringstringstring_sync] +// [END recommender_v1beta1_generated_recommenderclient_markrecommendationfailed_recommendationnamemapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedStringMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedStringMapstringstringString.java index 6d2f95337031..94503691d5a8 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedStringMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationfailed/SyncMarkRecommendationFailedStringMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_markrecommendationfailed_stringmapstringstringstring_sync] +// [START recommender_v1beta1_generated_recommenderclient_markrecommendationfailed_stringmapstringstringstring_sync] import com.google.cloud.recommender.v1beta1.Recommendation; import com.google.cloud.recommender.v1beta1.RecommendationName; import com.google.cloud.recommender.v1beta1.RecommenderClient; @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationFailedStringMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationFailedStringMapstringstringString() thr } } } -// [END -// recommender_v1beta1_generated_recommenderclient_markrecommendationfailed_stringmapstringstringstring_sync] +// [END recommender_v1beta1_generated_recommenderclient_markrecommendationfailed_stringmapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/AsyncMarkRecommendationSucceeded.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/AsyncMarkRecommendationSucceeded.java index 7868664e78a5..d4e713f3c768 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/AsyncMarkRecommendationSucceeded.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/AsyncMarkRecommendationSucceeded.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncMarkRecommendationSucceeded() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationSucceededRequest request = MarkRecommendationSucceededRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceeded.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceeded.java index 2d814f005042..8b992da1796f 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceeded.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceeded.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationSucceeded() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { MarkRecommendationSucceededRequest request = MarkRecommendationSucceededRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededRecommendationnameMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededRecommendationnameMapstringstringString.java index d20ad46fda2d..26774e02a25a 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededRecommendationnameMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededRecommendationnameMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_markrecommendationsucceeded_recommendationnamemapstringstringstring_sync] +// [START recommender_v1beta1_generated_recommenderclient_markrecommendationsucceeded_recommendationnamemapstringstringstring_sync] import com.google.cloud.recommender.v1beta1.Recommendation; import com.google.cloud.recommender.v1beta1.RecommendationName; import com.google.cloud.recommender.v1beta1.RecommenderClient; @@ -32,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncMarkRecommendationSucceededRecommendationnameMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommendationName name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationSucceededRecommendationnameMapstringstr } } } -// [END -// recommender_v1beta1_generated_recommenderclient_markrecommendationsucceeded_recommendationnamemapstringstringstring_sync] +// [END recommender_v1beta1_generated_recommenderclient_markrecommendationsucceeded_recommendationnamemapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededStringMapstringstringString.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededStringMapstringstringString.java index 192ead2c5cfd..2b090f93af37 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededStringMapstringstringString.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/markrecommendationsucceeded/SyncMarkRecommendationSucceededStringMapstringstringString.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_markrecommendationsucceeded_stringmapstringstringstring_sync] +// [START recommender_v1beta1_generated_recommenderclient_markrecommendationsucceeded_stringmapstringstringstring_sync] import com.google.cloud.recommender.v1beta1.Recommendation; import com.google.cloud.recommender.v1beta1.RecommendationName; import com.google.cloud.recommender.v1beta1.RecommenderClient; @@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncMarkRecommendationSucceededStringMapstringstringString() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { String name = RecommendationName.ofProjectLocationRecommenderRecommendationName( @@ -45,5 +47,4 @@ public static void syncMarkRecommendationSucceededStringMapstringstringString() } } } -// [END -// recommender_v1beta1_generated_recommenderclient_markrecommendationsucceeded_stringmapstringstringstring_sync] +// [END recommender_v1beta1_generated_recommenderclient_markrecommendationsucceeded_stringmapstringstringstring_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/AsyncUpdateInsightTypeConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/AsyncUpdateInsightTypeConfig.java index 23b543c5eeb1..69a4ac1d4f1f 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/AsyncUpdateInsightTypeConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/AsyncUpdateInsightTypeConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateInsightTypeConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { UpdateInsightTypeConfigRequest request = UpdateInsightTypeConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfig.java index b29166c2152c..66d65b2c79aa 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateInsightTypeConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { UpdateInsightTypeConfigRequest request = UpdateInsightTypeConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfigInsighttypeconfigFieldmask.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfigInsighttypeconfigFieldmask.java index ea24f784a86e..ed5fc914481b 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfigInsighttypeconfigFieldmask.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updateinsighttypeconfig/SyncUpdateInsightTypeConfigInsighttypeconfigFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_updateinsighttypeconfig_insighttypeconfigfieldmask_sync] +// [START recommender_v1beta1_generated_recommenderclient_updateinsighttypeconfig_insighttypeconfigfieldmask_sync] import com.google.cloud.recommender.v1beta1.InsightTypeConfig; import com.google.cloud.recommender.v1beta1.RecommenderClient; import com.google.protobuf.FieldMask; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateInsightTypeConfigInsighttypeconfigFieldmask() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { InsightTypeConfig insightTypeConfig = InsightTypeConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -39,5 +41,4 @@ public static void syncUpdateInsightTypeConfigInsighttypeconfigFieldmask() throw } } } -// [END -// recommender_v1beta1_generated_recommenderclient_updateinsighttypeconfig_insighttypeconfigfieldmask_sync] +// [END recommender_v1beta1_generated_recommenderclient_updateinsighttypeconfig_insighttypeconfigfieldmask_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/AsyncUpdateRecommenderConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/AsyncUpdateRecommenderConfig.java index d9d17a3efaa8..b56c8a04c973 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/AsyncUpdateRecommenderConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/AsyncUpdateRecommenderConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateRecommenderConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { UpdateRecommenderConfigRequest request = UpdateRecommenderConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfig.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfig.java index c51e034f2cb6..a4d7788bcc56 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfig.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateRecommenderConfig() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { UpdateRecommenderConfigRequest request = UpdateRecommenderConfigRequest.newBuilder() diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfigRecommenderconfigFieldmask.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfigRecommenderconfigFieldmask.java index 72c51e104d68..db05c34e0747 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfigRecommenderconfigFieldmask.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommenderclient/updaterecommenderconfig/SyncUpdateRecommenderConfigRecommenderconfigFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.recommender.v1beta1.samples; -// [START -// recommender_v1beta1_generated_recommenderclient_updaterecommenderconfig_recommenderconfigfieldmask_sync] +// [START recommender_v1beta1_generated_recommenderclient_updaterecommenderconfig_recommenderconfigfieldmask_sync] import com.google.cloud.recommender.v1beta1.RecommenderClient; import com.google.cloud.recommender.v1beta1.RecommenderConfig; import com.google.protobuf.FieldMask; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateRecommenderConfigRecommenderconfigFieldmask() throws Exception { - // 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 (RecommenderClient recommenderClient = RecommenderClient.create()) { RecommenderConfig recommenderConfig = RecommenderConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -39,5 +41,4 @@ public static void syncUpdateRecommenderConfigRecommenderconfigFieldmask() throw } } } -// [END -// recommender_v1beta1_generated_recommenderclient_updaterecommenderconfig_recommenderconfigfieldmask_sync] +// [END recommender_v1beta1_generated_recommenderclient_updaterecommenderconfig_recommenderconfigfieldmask_sync] diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommendersettings/getinsight/SyncGetInsight.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommendersettings/getinsight/SyncGetInsight.java index 8d3d13fd39a2..e4af94cae76c 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommendersettings/getinsight/SyncGetInsight.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/recommendersettings/getinsight/SyncGetInsight.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsight() throws Exception { - // 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 RecommenderSettings.Builder recommenderSettingsBuilder = RecommenderSettings.newBuilder(); recommenderSettingsBuilder .getInsightSettings() .setRetrySettings( - recommenderSettingsBuilder - .getInsightSettings() - .getRetrySettings() - .toBuilder() + recommenderSettingsBuilder.getInsightSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); RecommenderSettings recommenderSettings = recommenderSettingsBuilder.build(); diff --git a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/stub/recommenderstubsettings/getinsight/SyncGetInsight.java b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/stub/recommenderstubsettings/getinsight/SyncGetInsight.java index 9194e90466dd..2f90bd366388 100644 --- a/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/stub/recommenderstubsettings/getinsight/SyncGetInsight.java +++ b/java-recommender/samples/snippets/generated/com/google/cloud/recommender/v1beta1/stub/recommenderstubsettings/getinsight/SyncGetInsight.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncGetInsight() throws Exception { - // 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 RecommenderStubSettings.Builder recommenderSettingsBuilder = RecommenderStubSettings.newBuilder(); recommenderSettingsBuilder .getInsightSettings() .setRetrySettings( - recommenderSettingsBuilder - .getInsightSettings() - .getRetrySettings() - .toBuilder() + recommenderSettingsBuilder.getInsightSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); RecommenderStubSettings recommenderSettings = recommenderSettingsBuilder.build();