diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java index d7b0251e8516..ad03c2cec3cb 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java +++ b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java @@ -38,8 +38,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 (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
  *   ProjectName name = ProjectName.of("[USER]", "[PROJECT]");
  *   osLoginServiceClient.deletePosixAccount(name);
@@ -75,8 +78,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
  * OsLoginServiceSettings osLoginServiceSettings =
  *     OsLoginServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -87,8 +93,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
  * OsLoginServiceSettings osLoginServiceSettings =
  *     OsLoginServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create(osLoginServiceSettings);
@@ -98,8 +107,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * OsLoginServiceSettings osLoginServiceSettings =
  *     OsLoginServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -167,8 +179,11 @@ public OsLoginServiceStub 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 (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   ProjectName name = ProjectName.of("[USER]", "[PROJECT]");
    *   osLoginServiceClient.deletePosixAccount(name);
@@ -195,8 +210,11 @@ public final void deletePosixAccount(ProjectName 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 (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   String name = ProjectName.of("[USER]", "[PROJECT]").toString();
    *   osLoginServiceClient.deletePosixAccount(name);
@@ -221,8 +239,11 @@ public final void deletePosixAccount(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 (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   DeletePosixAccountRequest request =
    *       DeletePosixAccountRequest.newBuilder()
@@ -246,8 +267,11 @@ public final void deletePosixAccount(DeletePosixAccountRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   DeletePosixAccountRequest request =
    *       DeletePosixAccountRequest.newBuilder()
@@ -271,8 +295,11 @@ public final UnaryCallable deletePosixAccountC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
    *   osLoginServiceClient.deleteSshPublicKey(name);
@@ -299,8 +326,11 @@ public final void deleteSshPublicKey(FingerprintName 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 (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   String name = FingerprintName.of("[USER]", "[FINGERPRINT]").toString();
    *   osLoginServiceClient.deleteSshPublicKey(name);
@@ -325,8 +355,11 @@ public final void deleteSshPublicKey(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 (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   DeleteSshPublicKeyRequest request =
    *       DeleteSshPublicKeyRequest.newBuilder()
@@ -350,8 +383,11 @@ public final void deleteSshPublicKey(DeleteSshPublicKeyRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   DeleteSshPublicKeyRequest request =
    *       DeleteSshPublicKeyRequest.newBuilder()
@@ -376,8 +412,11 @@ public final UnaryCallable deleteSshPublicKeyC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   UserName name = UserName.of("[USER]");
    *   LoginProfile response = osLoginServiceClient.getLoginProfile(name);
@@ -401,8 +440,11 @@ public final LoginProfile getLoginProfile(UserName 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 (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   String name = UserName.of("[USER]").toString();
    *   LoginProfile response = osLoginServiceClient.getLoginProfile(name);
@@ -425,8 +467,11 @@ public final LoginProfile getLoginProfile(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 (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   GetLoginProfileRequest request =
    *       GetLoginProfileRequest.newBuilder()
@@ -453,8 +498,11 @@ public final LoginProfile getLoginProfile(GetLoginProfileRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   GetLoginProfileRequest request =
    *       GetLoginProfileRequest.newBuilder()
@@ -480,8 +528,11 @@ public final UnaryCallable getLoginProfile
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
    *   OsLoginProto.SshPublicKey response = osLoginServiceClient.getSshPublicKey(name);
@@ -506,8 +557,11 @@ public final OsLoginProto.SshPublicKey getSshPublicKey(FingerprintName 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 (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   String name = FingerprintName.of("[USER]", "[FINGERPRINT]").toString();
    *   OsLoginProto.SshPublicKey response = osLoginServiceClient.getSshPublicKey(name);
@@ -531,8 +585,11 @@ public final OsLoginProto.SshPublicKey getSshPublicKey(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 (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   GetSshPublicKeyRequest request =
    *       GetSshPublicKeyRequest.newBuilder()
@@ -556,8 +613,11 @@ public final OsLoginProto.SshPublicKey getSshPublicKey(GetSshPublicKeyRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   GetSshPublicKeyRequest request =
    *       GetSshPublicKeyRequest.newBuilder()
@@ -583,8 +643,11 @@ public final OsLoginProto.SshPublicKey getSshPublicKey(GetSshPublicKeyRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   UserName parent = UserName.of("[USER]");
    *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
@@ -615,8 +678,11 @@ public final ImportSshPublicKeyResponse importSshPublicKey(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   String parent = UserName.of("[USER]").toString();
    *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
@@ -647,8 +713,11 @@ public final ImportSshPublicKeyResponse importSshPublicKey(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   UserName parent = UserName.of("[USER]");
    *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
@@ -682,8 +751,11 @@ public final ImportSshPublicKeyResponse importSshPublicKey(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   String parent = UserName.of("[USER]").toString();
    *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
@@ -717,8 +789,11 @@ public final ImportSshPublicKeyResponse importSshPublicKey(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   ImportSshPublicKeyRequest request =
    *       ImportSshPublicKeyRequest.newBuilder()
@@ -745,8 +820,11 @@ public final ImportSshPublicKeyResponse importSshPublicKey(ImportSshPublicKeyReq
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   ImportSshPublicKeyRequest request =
    *       ImportSshPublicKeyRequest.newBuilder()
@@ -774,8 +852,11 @@ public final ImportSshPublicKeyResponse importSshPublicKey(ImportSshPublicKeyReq
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
    *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
@@ -808,8 +889,11 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   String name = FingerprintName.of("[USER]", "[FINGERPRINT]").toString();
    *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
@@ -839,8 +923,11 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
    *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
@@ -876,8 +963,11 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   String name = FingerprintName.of("[USER]", "[FINGERPRINT]").toString();
    *   OsLoginProto.SshPublicKey sshPublicKey = OsLoginProto.SshPublicKey.newBuilder().build();
@@ -913,8 +1003,11 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   UpdateSshPublicKeyRequest request =
    *       UpdateSshPublicKeyRequest.newBuilder()
@@ -941,8 +1034,11 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey(UpdateSshPublicKeyRequ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
    *   UpdateSshPublicKeyRequest request =
    *       UpdateSshPublicKeyRequest.newBuilder()
diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java
index 9b86fee6038f..de6a3f523b77 100644
--- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java
+++ b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java
@@ -52,8 +52,11 @@
  * 

For example, to set the total timeout of deletePosixAccount 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
  * OsLoginServiceSettings.Builder osLoginServiceSettingsBuilder =
  *     OsLoginServiceSettings.newBuilder();
  * osLoginServiceSettingsBuilder
diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java
index 94539c438a28..14bcc2d400e7 100644
--- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java
+++ b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/package-info.java
@@ -27,8 +27,11 @@
  * 

Sample for OsLoginServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
  *   PosixAccountName name = PosixAccountName.of("[USER]", "[PROJECT]");
  *   osLoginServiceClient.deletePosixAccount(name);
diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java
index 5b198703d854..bd19e2a97574 100644
--- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java
+++ b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/HttpJsonOsLoginServiceStub.java
@@ -220,7 +220,7 @@ public class HttpJsonOsLoginServiceStub extends OsLoginServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("sshPublicKey", request.getSshPublicKey()))
+                                  .toBody("sshPublicKey", request.getSshPublicKey(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -257,7 +257,7 @@ public class HttpJsonOsLoginServiceStub extends OsLoginServiceStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("sshPublicKey", request.getSshPublicKey()))
+                                  .toBody("sshPublicKey", request.getSshPublicKey(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java
index ccaf232202e2..a04923759b3e 100644
--- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java
+++ b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java
@@ -71,8 +71,11 @@
  * 

For example, to set the total timeout of deletePosixAccount 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
  * OsLoginServiceStubSettings.Builder osLoginServiceSettingsBuilder =
  *     OsLoginServiceStubSettings.newBuilder();
  * osLoginServiceSettingsBuilder