diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java index fe14794255d1..eaf780f7442f 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java @@ -61,8 +61,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); * Membership response = gkeHubClient.getMembership(name); @@ -98,8 +101,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 * GkeHubSettings gkeHubSettings = * GkeHubSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -110,8 +116,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 * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build(); * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings); * }@@ -120,8 +129,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 * GkeHubSettings gkeHubSettings = * GkeHubSettings.newBuilder() * .setTransportChannelProvider( @@ -212,8 +224,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) { @@ -241,8 +256,11 @@ public final ListMembershipsPagedResponse listMemberships(LocationName 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) { @@ -267,8 +285,11 @@ public final ListMembershipsPagedResponse listMemberships(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListMembershipsRequest request = * ListMembershipsRequest.newBuilder() @@ -298,8 +319,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListMembershipsRequest request = * ListMembershipsRequest.newBuilder() @@ -330,8 +354,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListMembershipsRequest request = * ListMembershipsRequest.newBuilder() @@ -368,8 +395,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { @@ -397,8 +427,11 @@ public final ListFeaturesPagedResponse listFeatures(LocationName 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { @@ -423,8 +456,11 @@ public final ListFeaturesPagedResponse listFeatures(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() @@ -454,8 +490,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() @@ -485,8 +524,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() @@ -522,8 +564,11 @@ public final UnaryCallablelistFeatur * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); * Membership response = gkeHubClient.getMembership(name); @@ -547,8 +592,11 @@ public final Membership getMembership(MembershipName 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); * Membership response = gkeHubClient.getMembership(name); @@ -571,8 +619,11 @@ public final Membership getMembership(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GetMembershipRequest request = * GetMembershipRequest.newBuilder() @@ -596,8 +647,11 @@ public final Membership getMembership(GetMembershipRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GetMembershipRequest request = * GetMembershipRequest.newBuilder() @@ -620,8 +674,11 @@ public final UnaryCallablegetMembershipCallab * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); * Feature response = gkeHubClient.getFeature(name); @@ -645,8 +702,11 @@ public final Feature getFeature(FeatureName 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); * Feature response = gkeHubClient.getFeature(name); @@ -669,8 +729,11 @@ public final Feature getFeature(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GetFeatureRequest request = * GetFeatureRequest.newBuilder() @@ -694,8 +757,11 @@ public final Feature getFeature(GetFeatureRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GetFeatureRequest request = * GetFeatureRequest.newBuilder() @@ -722,8 +788,11 @@ public final UnaryCallablegetFeatureCallable() { * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Membership resource = Membership.newBuilder().build(); @@ -766,8 +835,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Membership resource = Membership.newBuilder().build(); @@ -810,8 +882,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateMembershipRequest request = * CreateMembershipRequest.newBuilder() @@ -843,8 +918,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateMembershipRequest request = * CreateMembershipRequest.newBuilder() @@ -876,8 +954,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateMembershipRequest request = * CreateMembershipRequest.newBuilder() @@ -903,8 +984,11 @@ public final UnaryCallablecreateMembershipC * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Feature resource = Feature.newBuilder().build(); @@ -937,8 +1021,11 @@ public final OperationFuturecreateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Feature resource = Feature.newBuilder().build(); @@ -971,8 +1058,11 @@ public final OperationFuturecreateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() @@ -1000,8 +1090,11 @@ public final OperationFuturecreateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() @@ -1029,8 +1122,11 @@ public final OperationFuturecreateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() @@ -1060,8 +1156,11 @@ public final UnaryCallablecreateFeatureCallabl * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); * gkeHubClient.deleteMembershipAsync(name).get(); @@ -1090,8 +1189,11 @@ public final OperationFuturedeleteMembershipAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); * gkeHubClient.deleteMembershipAsync(name).get(); @@ -1118,8 +1220,11 @@ public final OperationFuturedeleteMembershipAsync(Str * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteMembershipRequest request = * DeleteMembershipRequest.newBuilder() @@ -1149,8 +1254,11 @@ public final OperationFuturedeleteMembershipAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteMembershipRequest request = * DeleteMembershipRequest.newBuilder() @@ -1180,8 +1288,11 @@ public final OperationFuturedeleteMembershipAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteMembershipRequest request = * DeleteMembershipRequest.newBuilder() @@ -1205,8 +1316,11 @@ public final UnaryCallabledeleteMembershipC * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); * gkeHubClient.deleteFeatureAsync(name).get(); @@ -1230,8 +1344,11 @@ public final OperationFuturedeleteFeatureAsync(Featur * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); * gkeHubClient.deleteFeatureAsync(name).get(); @@ -1254,8 +1371,11 @@ public final OperationFuturedeleteFeatureAsync(String * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() @@ -1282,8 +1402,11 @@ public final OperationFuturedeleteFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() @@ -1310,8 +1433,11 @@ public final OperationFuturedeleteFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() @@ -1336,8 +1462,11 @@ public final UnaryCallabledeleteFeatureCallabl * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); * Membership resource = Membership.newBuilder().build(); @@ -1375,8 +1504,11 @@ public final OperationFutureupdateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); * Membership resource = Membership.newBuilder().build(); @@ -1414,8 +1546,11 @@ public final OperationFutureupdateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateMembershipRequest request = * UpdateMembershipRequest.newBuilder() @@ -1443,8 +1578,11 @@ public final OperationFutureupdateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateMembershipRequest request = * UpdateMembershipRequest.newBuilder() @@ -1472,8 +1610,11 @@ public final OperationFutureupdateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateMembershipRequest request = * UpdateMembershipRequest.newBuilder() @@ -1499,8 +1640,11 @@ public final UnaryCallableupdateMembershipC * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); * Feature resource = Feature.newBuilder().build(); @@ -1538,8 +1682,11 @@ public final OperationFutureupdateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); * Feature resource = Feature.newBuilder().build(); @@ -1577,8 +1724,11 @@ public final OperationFutureupdateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() @@ -1606,8 +1756,11 @@ public final OperationFutureupdateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() @@ -1635,8 +1788,11 @@ public final OperationFutureupdateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() @@ -1665,8 +1821,11 @@ public final UnaryCallableupdateFeatureCallabl * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GenerateConnectManifestRequest request = * GenerateConnectManifestRequest.newBuilder() @@ -1700,8 +1859,11 @@ public final GenerateConnectManifestResponse generateConnectManifest( *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GenerateConnectManifestRequest request = * GenerateConnectManifestRequest.newBuilder() diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java index 910a50a20de5..b31289d2e742 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java @@ -57,16 +57,16 @@ *For example, to set the total timeout of getMembership 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 * GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder(); * gkeHubSettingsBuilder * .getMembershipSettings() * .setRetrySettings( - * gkeHubSettingsBuilder - * .getMembershipSettings() - * .getRetrySettings() - * .toBuilder() + * gkeHubSettingsBuilder.getMembershipSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java index 1f0ffbc24055..806c5871d2bb 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java @@ -40,8 +40,11 @@ *Sample for GkeHubClient: * *
{@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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); * Membership response = gkeHubClient.getMembership(name); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java index 41aee7c3991c..ee1bb5a7c59b 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java @@ -94,16 +94,16 @@ *For example, to set the total timeout of getMembership 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 * GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder(); * gkeHubSettingsBuilder * .getMembershipSettings() * .setRetrySettings( - * gkeHubSettingsBuilder - * .getMembershipSettings() - * .getRetrySettings() - * .toBuilder() + * gkeHubSettingsBuilder.getMembershipSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java index 554fb30e1af9..6a5b1fd4b624 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java @@ -248,7 +248,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -289,7 +289,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -405,7 +405,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -446,7 +446,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java index 42cf66c1dbac..f74d05231c0a 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java @@ -61,8 +61,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * Feature response = gkeHubClient.getFeature(name); @@ -98,8 +101,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 * GkeHubSettings gkeHubSettings = * GkeHubSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -110,8 +116,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 * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build(); * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings); * }@@ -120,8 +129,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 * GkeHubSettings gkeHubSettings = * GkeHubSettings.newBuilder() * .setTransportChannelProvider( @@ -213,8 +225,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String parent = "parent-995424086"; * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { @@ -239,8 +254,11 @@ public final ListFeaturesPagedResponse listFeatures(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() @@ -270,8 +288,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() @@ -301,8 +322,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() @@ -338,8 +362,11 @@ public final UnaryCallablelistFeatur * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * Feature response = gkeHubClient.getFeature(name); @@ -362,8 +389,11 @@ public final Feature getFeature(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build(); * Feature response = gkeHubClient.getFeature(request); @@ -384,8 +414,11 @@ public final Feature getFeature(GetFeatureRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = gkeHubClient.getFeatureCallable().futureCall(request); @@ -405,8 +438,11 @@ public final UnaryCallable getFeatureCallable() { * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String parent = "parent-995424086"; * Feature resource = Feature.newBuilder().build(); @@ -439,8 +475,11 @@ public final OperationFuturecreateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() @@ -468,8 +507,11 @@ public final OperationFuturecreateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() @@ -497,8 +539,11 @@ public final OperationFuturecreateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() @@ -524,8 +569,11 @@ public final UnaryCallablecreateFeatureCallabl * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * gkeHubClient.deleteFeatureAsync(name).get(); @@ -548,8 +596,11 @@ public final OperationFuturedeleteFeatureAsync(String * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() @@ -576,8 +627,11 @@ public final OperationFuturedeleteFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() @@ -604,8 +658,11 @@ public final OperationFuturedeleteFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() @@ -630,8 +687,11 @@ public final UnaryCallabledeleteFeatureCallabl * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * Feature resource = Feature.newBuilder().build(); @@ -669,8 +729,11 @@ public final OperationFutureupdateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() @@ -698,8 +761,11 @@ public final OperationFutureupdateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() @@ -727,8 +793,11 @@ public final OperationFutureupdateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java index efbea95d4ffe..bdc9faae2273 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java @@ -56,16 +56,16 @@ *For example, to set the total timeout of getFeature 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 * GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder(); * gkeHubSettingsBuilder * .getFeatureSettings() * .setRetrySettings( - * gkeHubSettingsBuilder - * .getFeatureSettings() - * .getRetrySettings() - * .toBuilder() + * gkeHubSettingsBuilder.getFeatureSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java index 2d2a77dd708b..2374a531d424 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java @@ -38,8 +38,11 @@ *Sample for GkeHubClient: * *
{@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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * Feature response = gkeHubClient.getFeature(name); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java index 5c40370b9aae..8dda855387ae 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java @@ -84,16 +84,16 @@ *For example, to set the total timeout of getFeature 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 * GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder(); * gkeHubSettingsBuilder * .getFeatureSettings() * .setRetrySettings( - * gkeHubSettingsBuilder - * .getFeatureSettings() - * .getRetrySettings() - * .toBuilder() + * gkeHubSettingsBuilder.getFeatureSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/HttpJsonGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/HttpJsonGkeHubStub.java index 649174aa2d25..45b04406a5f1 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/HttpJsonGkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/HttpJsonGkeHubStub.java @@ -166,7 +166,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -245,7 +245,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java index eda7bfb29ed3..3db2591b515f 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java @@ -55,8 +55,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); * Membership response = gkeHubClient.getMembership(name); @@ -92,8 +95,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 * GkeHubSettings gkeHubSettings = * GkeHubSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -104,8 +110,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 * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build(); * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings); * }@@ -114,8 +123,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 * GkeHubSettings gkeHubSettings = * GkeHubSettings.newBuilder() * .setTransportChannelProvider( @@ -207,8 +219,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) { @@ -236,8 +251,11 @@ public final ListMembershipsPagedResponse listMemberships(LocationName 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) { @@ -262,8 +280,11 @@ public final ListMembershipsPagedResponse listMemberships(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListMembershipsRequest request = * ListMembershipsRequest.newBuilder() @@ -293,8 +314,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListMembershipsRequest request = * ListMembershipsRequest.newBuilder() @@ -325,8 +349,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListMembershipsRequest request = * ListMembershipsRequest.newBuilder() @@ -363,8 +390,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); * Membership response = gkeHubClient.getMembership(name); @@ -388,8 +418,11 @@ public final Membership getMembership(MembershipName 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); * Membership response = gkeHubClient.getMembership(name); @@ -412,8 +445,11 @@ public final Membership getMembership(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GetMembershipRequest request = * GetMembershipRequest.newBuilder() @@ -437,8 +473,11 @@ public final Membership getMembership(GetMembershipRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GetMembershipRequest request = * GetMembershipRequest.newBuilder() @@ -465,8 +504,11 @@ public final UnaryCallablegetMembershipCallab * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Membership resource = Membership.newBuilder().build(); @@ -509,8 +551,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Membership resource = Membership.newBuilder().build(); @@ -553,8 +598,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateMembershipRequest request = * CreateMembershipRequest.newBuilder() @@ -585,8 +633,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateMembershipRequest request = * CreateMembershipRequest.newBuilder() @@ -617,8 +668,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateMembershipRequest request = * CreateMembershipRequest.newBuilder() @@ -647,8 +701,11 @@ public final UnaryCallablecreateMembershipC * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); * gkeHubClient.deleteMembershipAsync(name).get(); @@ -677,8 +734,11 @@ public final OperationFuturedeleteMembershipAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); * gkeHubClient.deleteMembershipAsync(name).get(); @@ -705,8 +765,11 @@ public final OperationFuturedeleteMembershipAsync(Str * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteMembershipRequest request = * DeleteMembershipRequest.newBuilder() @@ -735,8 +798,11 @@ public final OperationFuturedeleteMembershipAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteMembershipRequest request = * DeleteMembershipRequest.newBuilder() @@ -765,8 +831,11 @@ public final OperationFuturedeleteMembershipAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteMembershipRequest request = * DeleteMembershipRequest.newBuilder() @@ -789,8 +858,11 @@ public final UnaryCallabledeleteMembershipC * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * Membership resource = Membership.newBuilder().build(); @@ -828,8 +900,11 @@ public final OperationFutureupdateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateMembershipRequest request = * UpdateMembershipRequest.newBuilder() @@ -856,8 +931,11 @@ public final OperationFutureupdateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateMembershipRequest request = * UpdateMembershipRequest.newBuilder() @@ -884,8 +962,11 @@ public final OperationFutureupdateMembershipAsyn * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateMembershipRequest request = * UpdateMembershipRequest.newBuilder() @@ -913,8 +994,11 @@ public final UnaryCallableupdateMembershipC * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GenerateConnectManifestRequest request = * GenerateConnectManifestRequest.newBuilder() @@ -948,8 +1032,11 @@ public final GenerateConnectManifestResponse generateConnectManifest( *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GenerateConnectManifestRequest request = * GenerateConnectManifestRequest.newBuilder() @@ -986,8 +1073,11 @@ public final GenerateConnectManifestResponse generateConnectManifest( *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * InitializeHubRequest request = * InitializeHubRequest.newBuilder().setProject("project-309310695").build(); @@ -1015,8 +1105,11 @@ public final InitializeHubResponse initializeHub(InitializeHubRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * InitializeHubRequest request = * InitializeHubRequest.newBuilder().setProject("project-309310695").build(); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java index 53ab991da3fc..2208cc780ee8 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java @@ -56,16 +56,16 @@ *For example, to set the total timeout of getMembership 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 * GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder(); * gkeHubSettingsBuilder * .getMembershipSettings() * .setRetrySettings( - * gkeHubSettingsBuilder - * .getMembershipSettings() - * .getRetrySettings() - * .toBuilder() + * gkeHubSettingsBuilder.getMembershipSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java index 72ad52653bc6..e43ccfc8789e 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java @@ -34,8 +34,11 @@ *Sample for GkeHubClient: * *
{@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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); * Membership response = gkeHubClient.getMembership(name); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java index 6bec16b08952..32762c3b8860 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java @@ -88,16 +88,16 @@ *For example, to set the total timeout of getMembership 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 * GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder(); * gkeHubSettingsBuilder * .getMembershipSettings() * .setRetrySettings( - * gkeHubSettingsBuilder - * .getMembershipSettings() - * .getRetrySettings() - * .toBuilder() + * gkeHubSettingsBuilder.getMembershipSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/HttpJsonGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/HttpJsonGkeHubStub.java index 7bcbc87ffe9f..b4980f1d65c5 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/HttpJsonGkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/HttpJsonGkeHubStub.java @@ -171,7 +171,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -247,7 +247,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -330,7 +330,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProject().build())) + .toBody("*", request.toBuilder().clearProject().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java index fbad90c9a6de..84bf59a00b51 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java @@ -61,8 +61,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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * Feature response = gkeHubClient.getFeature(name); @@ -98,8 +101,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 * GkeHubSettings gkeHubSettings = * GkeHubSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -110,8 +116,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 * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build(); * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings); * }@@ -120,8 +129,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 * GkeHubSettings gkeHubSettings = * GkeHubSettings.newBuilder() * .setTransportChannelProvider( @@ -213,8 +225,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String parent = "parent-995424086"; * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { @@ -239,8 +254,11 @@ public final ListFeaturesPagedResponse listFeatures(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() @@ -270,8 +288,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() @@ -301,8 +322,11 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() @@ -338,8 +362,11 @@ public final UnaryCallablelistFeatur * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * Feature response = gkeHubClient.getFeature(name); @@ -362,8 +389,11 @@ public final Feature getFeature(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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build(); * Feature response = gkeHubClient.getFeature(request); @@ -384,8 +414,11 @@ public final Feature getFeature(GetFeatureRequest 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = gkeHubClient.getFeatureCallable().futureCall(request); @@ -405,8 +438,11 @@ public final UnaryCallable getFeatureCallable() { * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String parent = "parent-995424086"; * Feature resource = Feature.newBuilder().build(); @@ -439,8 +475,11 @@ public final OperationFuturecreateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() @@ -468,8 +507,11 @@ public final OperationFuturecreateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() @@ -497,8 +539,11 @@ public final OperationFuturecreateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() @@ -524,8 +569,11 @@ public final UnaryCallablecreateFeatureCallabl * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * gkeHubClient.deleteFeatureAsync(name).get(); @@ -548,8 +596,11 @@ public final OperationFuturedeleteFeatureAsync(String * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() @@ -576,8 +627,11 @@ public final OperationFuturedeleteFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() @@ -604,8 +658,11 @@ public final OperationFuturedeleteFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() @@ -630,8 +687,11 @@ public final UnaryCallabledeleteFeatureCallabl * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * Feature resource = Feature.newBuilder().build(); @@ -669,8 +729,11 @@ public final OperationFutureupdateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() @@ -698,8 +761,11 @@ public final OperationFutureupdateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() @@ -727,8 +793,11 @@ public final OperationFutureupdateFeatureAsync( * 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java index ec48a11594de..eae91229b310 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java @@ -56,16 +56,16 @@ *For example, to set the total timeout of getFeature 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 * GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder(); * gkeHubSettingsBuilder * .getFeatureSettings() * .setRetrySettings( - * gkeHubSettingsBuilder - * .getFeatureSettings() - * .getRetrySettings() - * .toBuilder() + * gkeHubSettingsBuilder.getFeatureSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java index 87be9a4a16f3..b714b0ed4046 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java @@ -38,8 +38,11 @@ *Sample for GkeHubClient: * *
{@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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { * String name = "name3373707"; * Feature response = gkeHubClient.getFeature(name); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java index 4da9fe007be5..df4ced642ce1 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java @@ -84,16 +84,16 @@ *For example, to set the total timeout of getFeature 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 * GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder(); * gkeHubSettingsBuilder * .getFeatureSettings() * .setRetrySettings( - * gkeHubSettingsBuilder - * .getFeatureSettings() - * .getRetrySettings() - * .toBuilder() + * gkeHubSettingsBuilder.getFeatureSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/HttpJsonGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/HttpJsonGkeHubStub.java index 07d542cdff1f..d53f7e924180 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/HttpJsonGkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/HttpJsonGkeHubStub.java @@ -166,7 +166,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -245,7 +245,7 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java index e088d3728f3e..f68dd57e8513 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java @@ -64,8 +64,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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); @@ -103,8 +106,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 * GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings = * GkeHubMembershipServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -116,8 +122,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 * GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings = * GkeHubMembershipServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * GkeHubMembershipServiceClient gkeHubMembershipServiceClient = @@ -128,8 +137,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 * GkeHubMembershipServiceSettings gkeHubMembershipServiceSettings = * GkeHubMembershipServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -225,8 +237,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -256,8 +271,11 @@ public final ListMembershipsPagedResponse listMemberships(LocationName 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -284,8 +302,11 @@ public final ListMembershipsPagedResponse listMemberships(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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * ListMembershipsRequest request = @@ -317,8 +338,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest *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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * ListMembershipsRequest request = @@ -350,8 +374,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest *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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * ListMembershipsRequest request = @@ -390,8 +417,11 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest *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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); @@ -416,8 +446,11 @@ public final Membership getMembership(MembershipName 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); @@ -441,8 +474,11 @@ public final Membership getMembership(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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * GetMembershipRequest request = @@ -467,8 +503,11 @@ public final Membership getMembership(GetMembershipRequest 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * GetMembershipRequest request = @@ -497,8 +536,11 @@ public final UnaryCallablegetMembershipCallab * 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -542,8 +584,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -587,8 +632,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * CreateMembershipRequest request = @@ -621,8 +669,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * CreateMembershipRequest request = @@ -655,8 +706,11 @@ public final OperationFuturecreateMembershipAsyn * 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * CreateMembershipRequest request = @@ -688,8 +742,11 @@ public final UnaryCallablecreateMembershipC * 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); @@ -719,8 +776,11 @@ public final OperationFuturedeleteMembershipAsync( * 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); @@ -748,8 +808,11 @@ public final OperationFuturedeleteMembershipAsync(Str * 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 (GkeHubMembershipServiceClient gkeHubMembershipServiceClient = * GkeHubMembershipServiceClient.create()) { * DeleteMembershipRequest request = @@ -780,8 +843,11 @@ public final OperationFuture