From f951c4d7066a360001f91d55b63595a5b7703ec9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:16:36 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#801) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../v1/AccessApprovalAdminClient.java | 245 +++++++++++++----- .../v1/AccessApprovalAdminSettings.java | 7 +- .../cloud/accessapproval/v1/package-info.java | 7 +- .../v1/stub/AccessApprovalStubSettings.java | 7 +- .../v1/stub/HttpJsonAccessApprovalStub.java | 8 +- .../AsyncApproveApprovalRequest.java | 7 +- .../SyncApproveApprovalRequest.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncDeleteAccessApprovalSettings.java | 7 +- .../SyncDeleteAccessApprovalSettings.java | 7 +- ...valSettingsAccessapprovalsettingsname.java | 7 +- ...yncDeleteAccessApprovalSettingsString.java | 7 +- .../AsyncDismissApprovalRequest.java | 7 +- .../SyncDismissApprovalRequest.java | 7 +- .../AsyncGetAccessApprovalServiceAccount.java | 7 +- .../SyncGetAccessApprovalServiceAccount.java | 7 +- ...GetAccessApprovalServiceAccountString.java | 7 +- .../AsyncGetAccessApprovalSettings.java | 7 +- .../SyncGetAccessApprovalSettings.java | 7 +- ...valSettingsAccessapprovalsettingsname.java | 7 +- .../SyncGetAccessApprovalSettingsString.java | 7 +- .../AsyncGetApprovalRequest.java | 7 +- .../SyncGetApprovalRequest.java | 7 +- ...GetApprovalRequestApprovalrequestname.java | 7 +- .../SyncGetApprovalRequestString.java | 7 +- .../AsyncInvalidateApprovalRequest.java | 7 +- .../SyncInvalidateApprovalRequest.java | 7 +- .../AsyncListApprovalRequests.java | 7 +- .../AsyncListApprovalRequestsPaged.java | 7 +- .../SyncListApprovalRequests.java | 7 +- .../SyncListApprovalRequestsFoldername.java | 7 +- ...cListApprovalRequestsOrganizationname.java | 7 +- .../SyncListApprovalRequestsProjectname.java | 7 +- .../SyncListApprovalRequestsString.java | 7 +- .../AsyncUpdateAccessApprovalSettings.java | 7 +- .../SyncUpdateAccessApprovalSettings.java | 7 +- ...ttingsAccessapprovalsettingsFieldmask.java | 7 +- .../SyncGetApprovalRequest.java | 7 +- .../SyncGetApprovalRequest.java | 7 +- 41 files changed, 374 insertions(+), 152 deletions(-) diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java index 88dbfd23e7bb..6a70720da2e6 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java +++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java @@ -70,8 +70,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 (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * ApprovalRequestName name = * ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]"); @@ -109,8 +112,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 * AccessApprovalAdminSettings accessApprovalAdminSettings = * AccessApprovalAdminSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -122,8 +128,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 * AccessApprovalAdminSettings accessApprovalAdminSettings = * AccessApprovalAdminSettings.newBuilder().setEndpoint(myEndpoint).build(); * AccessApprovalAdminClient accessApprovalAdminClient = @@ -134,8 +143,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 * AccessApprovalAdminSettings accessApprovalAdminSettings = * AccessApprovalAdminSettings.newBuilder() * .setTransportChannelProvider( @@ -205,8 +217,11 @@ public AccessApprovalStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * FolderName parent = FolderName.of("[FOLDER]"); * for (ApprovalRequest element : @@ -236,8 +251,11 @@ public final ListApprovalRequestsPagedResponse listApprovalRequests(FolderName p *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * for (ApprovalRequest element : @@ -267,8 +285,11 @@ public final ListApprovalRequestsPagedResponse listApprovalRequests(Organization *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (ApprovalRequest element : @@ -298,8 +319,11 @@ public final ListApprovalRequestsPagedResponse listApprovalRequests(ProjectName *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * for (ApprovalRequest element : @@ -327,8 +351,11 @@ public final ListApprovalRequestsPagedResponse listApprovalRequests(String paren *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * ListApprovalRequestsMessage request = * ListApprovalRequestsMessage.newBuilder() @@ -360,8 +387,11 @@ public final ListApprovalRequestsPagedResponse listApprovalRequests( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * ListApprovalRequestsMessage request = * ListApprovalRequestsMessage.newBuilder() @@ -392,8 +422,11 @@ public final ListApprovalRequestsPagedResponse listApprovalRequests( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * ListApprovalRequestsMessage request = * ListApprovalRequestsMessage.newBuilder() @@ -430,8 +463,11 @@ public final ListApprovalRequestsPagedResponse listApprovalRequests( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * ApprovalRequestName name = * ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]"); @@ -458,8 +494,11 @@ public final ApprovalRequest getApprovalRequest(ApprovalRequestName 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 (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * String name = * ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]") @@ -485,8 +524,11 @@ public final ApprovalRequest getApprovalRequest(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 (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * GetApprovalRequestMessage request = * GetApprovalRequestMessage.newBuilder() @@ -513,8 +555,11 @@ public final ApprovalRequest getApprovalRequest(GetApprovalRequestMessage reques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * GetApprovalRequestMessage request = * GetApprovalRequestMessage.newBuilder() @@ -545,8 +590,11 @@ public final ApprovalRequest getApprovalRequest(GetApprovalRequestMessage reques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * ApproveApprovalRequestMessage request = * ApproveApprovalRequestMessage.newBuilder() @@ -577,8 +625,11 @@ public final ApprovalRequest approveApprovalRequest(ApproveApprovalRequestMessag *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * ApproveApprovalRequestMessage request = * ApproveApprovalRequestMessage.newBuilder() @@ -614,8 +665,11 @@ public final ApprovalRequest approveApprovalRequest(ApproveApprovalRequestMessag *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * DismissApprovalRequestMessage request = * DismissApprovalRequestMessage.newBuilder() @@ -649,8 +703,11 @@ public final ApprovalRequest dismissApprovalRequest(DismissApprovalRequestMessag *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * DismissApprovalRequestMessage request = * DismissApprovalRequestMessage.newBuilder() @@ -683,8 +740,11 @@ public final ApprovalRequest dismissApprovalRequest(DismissApprovalRequestMessag *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * InvalidateApprovalRequestMessage request = * InvalidateApprovalRequestMessage.newBuilder() @@ -716,8 +776,11 @@ public final ApprovalRequest invalidateApprovalRequest(InvalidateApprovalRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * InvalidateApprovalRequestMessage request = * InvalidateApprovalRequestMessage.newBuilder() @@ -745,8 +808,11 @@ public final ApprovalRequest invalidateApprovalRequest(InvalidateApprovalRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * AccessApprovalSettingsName name = AccessApprovalSettingsName.ofProjectName("[PROJECT]"); * AccessApprovalSettings response = accessApprovalAdminClient.getAccessApprovalSettings(name); @@ -772,8 +838,11 @@ public final AccessApprovalSettings getAccessApprovalSettings(AccessApprovalSett *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * String name = AccessApprovalSettingsName.ofProjectName("[PROJECT]").toString(); * AccessApprovalSettings response = accessApprovalAdminClient.getAccessApprovalSettings(name); @@ -797,8 +866,11 @@ public final AccessApprovalSettings getAccessApprovalSettings(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 (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * GetAccessApprovalSettingsMessage request = * GetAccessApprovalSettingsMessage.newBuilder() @@ -824,8 +896,11 @@ public final AccessApprovalSettings getAccessApprovalSettings( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * GetAccessApprovalSettingsMessage request = * GetAccessApprovalSettingsMessage.newBuilder() @@ -851,8 +926,11 @@ public final AccessApprovalSettings getAccessApprovalSettings( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * AccessApprovalSettings settings = AccessApprovalSettings.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -889,8 +967,11 @@ public final AccessApprovalSettings updateAccessApprovalSettings( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * UpdateAccessApprovalSettingsMessage request = * UpdateAccessApprovalSettingsMessage.newBuilder() @@ -918,8 +999,11 @@ public final AccessApprovalSettings updateAccessApprovalSettings( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * UpdateAccessApprovalSettingsMessage request = * UpdateAccessApprovalSettingsMessage.newBuilder() @@ -949,8 +1033,11 @@ public final AccessApprovalSettings updateAccessApprovalSettings( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * AccessApprovalSettingsName name = AccessApprovalSettingsName.ofProjectName("[PROJECT]"); * accessApprovalAdminClient.deleteAccessApprovalSettings(name); @@ -979,8 +1066,11 @@ public final void deleteAccessApprovalSettings(AccessApprovalSettingsName 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 (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * String name = AccessApprovalSettingsName.ofProjectName("[PROJECT]").toString(); * accessApprovalAdminClient.deleteAccessApprovalSettings(name); @@ -1007,8 +1097,11 @@ public final void deleteAccessApprovalSettings(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 (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * DeleteAccessApprovalSettingsMessage request = * DeleteAccessApprovalSettingsMessage.newBuilder() @@ -1036,8 +1129,11 @@ public final void deleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessa *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * DeleteAccessApprovalSettingsMessage request = * DeleteAccessApprovalSettingsMessage.newBuilder() @@ -1063,8 +1159,11 @@ public final void deleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessa *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * String name = "name3373707"; * AccessApprovalServiceAccount response = @@ -1089,8 +1188,11 @@ public final AccessApprovalServiceAccount getAccessApprovalServiceAccount(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 (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * GetAccessApprovalServiceAccountMessage request = * GetAccessApprovalServiceAccountMessage.newBuilder().setName("name3373707").build(); @@ -1115,8 +1217,11 @@ public final AccessApprovalServiceAccount getAccessApprovalServiceAccount( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * GetAccessApprovalServiceAccountMessage request = * GetAccessApprovalServiceAccountMessage.newBuilder().setName("name3373707").build(); diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java index 8bd2bb08bfb7..b55f3b5c5673 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java +++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java @@ -55,8 +55,11 @@ *For example, to set the total timeout of getApprovalRequest 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 * AccessApprovalAdminSettings.Builder accessApprovalAdminSettingsBuilder = * AccessApprovalAdminSettings.newBuilder(); * accessApprovalAdminSettingsBuilder diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java index 905c1b85ce52..8765e02054b2 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java +++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java @@ -52,8 +52,11 @@ *Sample for AccessApprovalAdminClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { * ApprovalRequestName name = * ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]"); diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java index c88f92a815c1..322b4c3bbdad 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java +++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java @@ -85,8 +85,11 @@ *For example, to set the total timeout of getApprovalRequest 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 * AccessApprovalStubSettings.Builder accessApprovalAdminSettingsBuilder = * AccessApprovalStubSettings.newBuilder(); * accessApprovalAdminSettingsBuilder diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java index c1e963a0a36c..1b2c7fc02720 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java +++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java @@ -173,7 +173,7 @@ public class HttpJsonAccessApprovalStub extends AccessApprovalStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -213,7 +213,7 @@ public class HttpJsonAccessApprovalStub extends AccessApprovalStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -253,7 +253,7 @@ public class HttpJsonAccessApprovalStub extends AccessApprovalStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -334,7 +334,7 @@ public class HttpJsonAccessApprovalStub extends AccessApprovalStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("settings", request.getSettings())) + .toBody("settings", request.getSettings(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java index d791a8bf165f..8216212d6298 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncApproveApprovalRequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { ApproveApprovalRequestMessage request = ApproveApprovalRequestMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java index e599798816fc..211e62c68409 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncApproveApprovalRequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { ApproveApprovalRequestMessage request = ApproveApprovalRequestMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java index 45cb87502e91..df366f7f433d 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library AccessApprovalAdminSettings accessApprovalAdminSettings = AccessApprovalAdminSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java index 2d37e0f6512c..2c8e59bd6c11 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library AccessApprovalAdminSettings accessApprovalAdminSettings = AccessApprovalAdminSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java index f44511b22d55..4f66d6c2951a 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library AccessApprovalAdminSettings accessApprovalAdminSettings = AccessApprovalAdminSettings.newBuilder().setEndpoint(myEndpoint).build(); AccessApprovalAdminClient accessApprovalAdminClient = diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java index 5640eb8dd250..187c02313129 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteAccessApprovalSettings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { DeleteAccessApprovalSettingsMessage request = DeleteAccessApprovalSettingsMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java index ff3f2a243025..081eb256b290 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAccessApprovalSettings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { DeleteAccessApprovalSettingsMessage request = DeleteAccessApprovalSettingsMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java index 0b0356e771a3..2abd8f4c6797 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAccessApprovalSettingsAccessapprovalsettingsname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { AccessApprovalSettingsName name = AccessApprovalSettingsName.ofProjectName("[PROJECT]"); accessApprovalAdminClient.deleteAccessApprovalSettings(name); diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java index 5c01bcfbc25c..89bf76f724ba 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAccessApprovalSettingsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { String name = AccessApprovalSettingsName.ofProjectName("[PROJECT]").toString(); accessApprovalAdminClient.deleteAccessApprovalSettings(name); diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java index 1612c15a8879..507bc1c74ac1 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDismissApprovalRequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { DismissApprovalRequestMessage request = DismissApprovalRequestMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java index 272652014bb1..c34631e17bd5 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDismissApprovalRequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { DismissApprovalRequestMessage request = DismissApprovalRequestMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java index 9fe5acbf42ca..c5d271df0aa9 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetAccessApprovalServiceAccount() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { GetAccessApprovalServiceAccountMessage request = GetAccessApprovalServiceAccountMessage.newBuilder().setName("name3373707").build(); diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java index b4306d4c9077..e0d1780b4765 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAccessApprovalServiceAccount() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { GetAccessApprovalServiceAccountMessage request = GetAccessApprovalServiceAccountMessage.newBuilder().setName("name3373707").build(); diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java index 176c9d874038..4d2bcdabdff2 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAccessApprovalServiceAccountString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { String name = "name3373707"; AccessApprovalServiceAccount response = diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java index 3f0c990b1f04..41a69b4065bb 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetAccessApprovalSettings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { GetAccessApprovalSettingsMessage request = GetAccessApprovalSettingsMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java index 03feb47ead70..88b02e1b6c94 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAccessApprovalSettings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { GetAccessApprovalSettingsMessage request = GetAccessApprovalSettingsMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java index 684a6cd75296..977eea54a0f5 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsAccessapprovalsettingsname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAccessApprovalSettingsAccessapprovalsettingsname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { AccessApprovalSettingsName name = AccessApprovalSettingsName.ofProjectName("[PROJECT]"); AccessApprovalSettings response = accessApprovalAdminClient.getAccessApprovalSettings(name); diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java index 2266189f9797..d9939f73dbae 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettingsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAccessApprovalSettingsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { String name = AccessApprovalSettingsName.ofProjectName("[PROJECT]").toString(); AccessApprovalSettings response = accessApprovalAdminClient.getAccessApprovalSettings(name); diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java index 44e0d414b136..784a32f372b7 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/AsyncGetApprovalRequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetApprovalRequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { GetApprovalRequestMessage request = GetApprovalRequestMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java index 851704a98ef7..acf78fccb2bf 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequest.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetApprovalRequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { GetApprovalRequestMessage request = GetApprovalRequestMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java index 233ea7df693f..3ee5b6027d7f 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestApprovalrequestname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetApprovalRequestApprovalrequestname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { ApprovalRequestName name = ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]"); diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java index a832afe7f601..0727e9f861c3 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getapprovalrequest/SyncGetApprovalRequestString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetApprovalRequestString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { String name = ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]") diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java index 1136c7693f41..d0e9a20df9a8 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/AsyncInvalidateApprovalRequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncInvalidateApprovalRequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { InvalidateApprovalRequestMessage request = InvalidateApprovalRequestMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java index ac415b73f366..1cb63be5b61b 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/invalidateapprovalrequest/SyncInvalidateApprovalRequest.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncInvalidateApprovalRequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { InvalidateApprovalRequestMessage request = InvalidateApprovalRequestMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java index 0f9905329974..fca38e70f884 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequests.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListApprovalRequests() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { ListApprovalRequestsMessage request = ListApprovalRequestsMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java index ab09e16344d0..e566ef38c570 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/AsyncListApprovalRequestsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListApprovalRequestsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { ListApprovalRequestsMessage request = ListApprovalRequestsMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java index 71ff760d6c66..6b1b967f5c73 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequests.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListApprovalRequests() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { ListApprovalRequestsMessage request = ListApprovalRequestsMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java index fd94c4ca17ce..85f0d60ad75b 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsFoldername.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListApprovalRequestsFoldername() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { FolderName parent = FolderName.of("[FOLDER]"); for (ApprovalRequest element : diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java index fd73aa1e30d9..783f273467eb 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsOrganizationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListApprovalRequestsOrganizationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); for (ApprovalRequest element : diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java index 1130ee713fb3..ff8b8282dca5 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListApprovalRequestsProjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); for (ApprovalRequest element : diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java index fd2a13fce6d4..27520dff9e94 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/listapprovalrequests/SyncListApprovalRequestsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListApprovalRequestsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); for (ApprovalRequest element : diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java index 642a55824e63..f934ea36dd1c 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/AsyncUpdateAccessApprovalSettings.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateAccessApprovalSettings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { UpdateAccessApprovalSettingsMessage request = UpdateAccessApprovalSettingsMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java index 6ce748e1f093..61c1ea43c87d 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateAccessApprovalSettings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { UpdateAccessApprovalSettingsMessage request = UpdateAccessApprovalSettingsMessage.newBuilder() diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java index 500f80a76f30..0b6c4e019ec6 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/updateaccessapprovalsettings/SyncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { public static void syncUpdateAccessApprovalSettingsAccessapprovalsettingsFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) { AccessApprovalSettings settings = AccessApprovalSettings.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java index f80fae5108ab..123779f13072 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetApprovalRequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library AccessApprovalAdminSettings.Builder accessApprovalAdminSettingsBuilder = AccessApprovalAdminSettings.newBuilder(); accessApprovalAdminSettingsBuilder diff --git a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java index e58897a92345..f5496c78b809 100644 --- a/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java +++ b/java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetApprovalRequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library AccessApprovalStubSettings.Builder accessApprovalAdminSettingsBuilder = AccessApprovalStubSettings.newBuilder(); accessApprovalAdminSettingsBuilder