{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* EnvironmentName name = EnvironmentName.of("[USER]", "[ENVIRONMENT]");
* Environment response = cloudShellServiceClient.getEnvironment(name);
@@ -79,8 +82,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
* CloudShellServiceSettings cloudShellServiceSettings =
* CloudShellServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,8 +98,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
* CloudShellServiceSettings cloudShellServiceSettings =
* CloudShellServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* CloudShellServiceClient cloudShellServiceClient =
@@ -104,8 +113,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
* CloudShellServiceSettings cloudShellServiceSettings =
* CloudShellServiceSettings.newBuilder()
* .setTransportChannelProvider(
@@ -199,8 +211,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* EnvironmentName name = EnvironmentName.of("[USER]", "[ENVIRONMENT]");
* Environment response = cloudShellServiceClient.getEnvironment(name);
@@ -225,8 +240,11 @@ public final Environment getEnvironment(EnvironmentName 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* String name = EnvironmentName.of("[USER]", "[ENVIRONMENT]").toString();
* Environment response = cloudShellServiceClient.getEnvironment(name);
@@ -250,8 +268,11 @@ public final Environment getEnvironment(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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* GetEnvironmentRequest request =
* GetEnvironmentRequest.newBuilder()
@@ -275,8 +296,11 @@ public final Environment getEnvironment(GetEnvironmentRequest 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* GetEnvironmentRequest request =
* GetEnvironmentRequest.newBuilder()
@@ -304,8 +328,11 @@ public final UnaryCallable getEnvironmentCal
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* StartEnvironmentRequest request =
* StartEnvironmentRequest.newBuilder()
@@ -337,8 +364,11 @@ public final UnaryCallable getEnvironmentCal
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* StartEnvironmentRequest request =
* StartEnvironmentRequest.newBuilder()
@@ -370,8 +400,11 @@ public final UnaryCallable getEnvironmentCal
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* StartEnvironmentRequest request =
* StartEnvironmentRequest.newBuilder()
@@ -399,8 +432,11 @@ public final UnaryCallable startEnvironmentC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* AuthorizeEnvironmentRequest request =
* AuthorizeEnvironmentRequest.newBuilder()
@@ -431,8 +467,11 @@ public final UnaryCallable startEnvironmentC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* AuthorizeEnvironmentRequest request =
* AuthorizeEnvironmentRequest.newBuilder()
@@ -463,8 +502,11 @@ public final UnaryCallable startEnvironmentC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* AuthorizeEnvironmentRequest request =
* AuthorizeEnvironmentRequest.newBuilder()
@@ -494,8 +536,11 @@ public final UnaryCallable startEnvironmentC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* AddPublicKeyRequest request =
* AddPublicKeyRequest.newBuilder()
@@ -523,8 +568,11 @@ public final OperationFuture addPubl
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* AddPublicKeyRequest request =
* AddPublicKeyRequest.newBuilder()
@@ -552,8 +600,11 @@ public final OperationFuture addPubl
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* AddPublicKeyRequest request =
* AddPublicKeyRequest.newBuilder()
@@ -580,8 +631,11 @@ public final UnaryCallable addPublicKeyCallable(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* RemovePublicKeyRequest request =
* RemovePublicKeyRequest.newBuilder()
@@ -610,8 +664,11 @@ public final UnaryCallable addPublicKeyCallable(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* RemovePublicKeyRequest request =
* RemovePublicKeyRequest.newBuilder()
@@ -640,8 +697,11 @@ public final UnaryCallable addPublicKeyCallable(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* RemovePublicKeyRequest request =
* RemovePublicKeyRequest.newBuilder()
diff --git a/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceSettings.java b/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceSettings.java
index 48cb7c57..6a0b7b40 100644
--- a/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceSettings.java
+++ b/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceSettings.java
@@ -52,17 +52,17 @@
* For example, to set the total timeout of getEnvironment 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
* CloudShellServiceSettings.Builder cloudShellServiceSettingsBuilder =
* CloudShellServiceSettings.newBuilder();
* cloudShellServiceSettingsBuilder
* .getEnvironmentSettings()
* .setRetrySettings(
- * cloudShellServiceSettingsBuilder
- * .getEnvironmentSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * cloudShellServiceSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* CloudShellServiceSettings cloudShellServiceSettings = cloudShellServiceSettingsBuilder.build();
diff --git a/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/package-info.java b/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/package-info.java
index 350bdd67..df7be5da 100644
--- a/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/package-info.java
+++ b/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/package-info.java
@@ -28,8 +28,11 @@
* Sample for CloudShellServiceClient:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
* EnvironmentName name = EnvironmentName.of("[USER]", "[ENVIRONMENT]");
* Environment response = cloudShellServiceClient.getEnvironment(name);
diff --git a/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java b/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java
index 57f7677a..58c840d5 100644
--- a/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java
+++ b/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java
@@ -80,17 +80,17 @@
* For example, to set the total timeout of getEnvironment 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
* CloudShellServiceStubSettings.Builder cloudShellServiceSettingsBuilder =
* CloudShellServiceStubSettings.newBuilder();
* cloudShellServiceSettingsBuilder
* .getEnvironmentSettings()
* .setRetrySettings(
- * cloudShellServiceSettingsBuilder
- * .getEnvironmentSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * cloudShellServiceSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* CloudShellServiceStubSettings cloudShellServiceSettings =
diff --git a/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/HttpJsonCloudShellServiceStub.java b/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/HttpJsonCloudShellServiceStub.java
index 6fa309f5..cc942c30 100644
--- a/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/HttpJsonCloudShellServiceStub.java
+++ b/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/HttpJsonCloudShellServiceStub.java
@@ -136,7 +136,7 @@ public class HttpJsonCloudShellServiceStub extends CloudShellServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearName().build()))
+ .toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -175,7 +175,7 @@ public class HttpJsonCloudShellServiceStub extends CloudShellServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearName().build()))
+ .toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -215,7 +215,8 @@ public class HttpJsonCloudShellServiceStub extends CloudShellServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearEnvironment().build()))
+ .toBody(
+ "*", request.toBuilder().clearEnvironment().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -255,7 +256,8 @@ public class HttpJsonCloudShellServiceStub extends CloudShellServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearEnvironment().build()))
+ .toBody(
+ "*", request.toBuilder().clearEnvironment().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
diff --git a/grpc-google-cloud-shell-v1/pom.xml b/grpc-google-cloud-shell-v1/pom.xml
index db18759b..60c6e050 100644
--- a/grpc-google-cloud-shell-v1/pom.xml
+++ b/grpc-google-cloud-shell-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-shell-v1
- 2.2.5
+ 2.2.6
grpc-google-cloud-shell-v1
GRPC library for google-cloud-shell
com.google.cloud
google-cloud-shell-parent
- 2.2.5
+ 2.2.6
diff --git a/pom.xml b/pom.xml
index e473e313..a527630f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-shell-parent
pom
- 2.2.5
+ 2.2.6
Google Cloud Shell Parent
https://github.com/googleapis/java-shell
@@ -60,23 +60,23 @@
com.google.cloud
google-cloud-shell
- 2.2.5
+ 2.2.6
com.google.api.grpc
grpc-google-cloud-shell-v1
- 2.2.5
+ 2.2.6
com.google.api.grpc
proto-google-cloud-shell-v1
- 2.2.5
+ 2.2.6
com.google.cloud
google-cloud-shared-dependencies
- 3.0.2
+ 3.0.3
pom
import
diff --git a/proto-google-cloud-shell-v1/pom.xml b/proto-google-cloud-shell-v1/pom.xml
index fb5bee00..6bc65578 100644
--- a/proto-google-cloud-shell-v1/pom.xml
+++ b/proto-google-cloud-shell-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-shell-v1
- 2.2.5
+ 2.2.6
proto-google-cloud-shell-v1
Proto library for google-cloud-shell
com.google.cloud
google-cloud-shell-parent
- 2.2.5
+ 2.2.6
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 0252e867..2d9f97ab 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-shell
- 2.2.4
+ 2.2.5
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 6b851dac..83c9ccf2 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-shell
- 2.2.4
+ 2.2.5
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/AsyncAddPublicKey.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/AsyncAddPublicKey.java
index 4ef2b6ed..3d6faef9 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/AsyncAddPublicKey.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/AsyncAddPublicKey.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncAddPublicKey() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
AddPublicKeyRequest request =
AddPublicKeyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/AsyncAddPublicKeyLRO.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/AsyncAddPublicKeyLRO.java
index 64354f8b..759fe451 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/AsyncAddPublicKeyLRO.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/AsyncAddPublicKeyLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncAddPublicKeyLRO() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
AddPublicKeyRequest request =
AddPublicKeyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/SyncAddPublicKey.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/SyncAddPublicKey.java
index fe40f82f..c1e50aa9 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/SyncAddPublicKey.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/SyncAddPublicKey.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncAddPublicKey() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
AddPublicKeyRequest request =
AddPublicKeyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/AsyncAuthorizeEnvironment.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/AsyncAuthorizeEnvironment.java
index c2f8c336..8bdb006e 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/AsyncAuthorizeEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/AsyncAuthorizeEnvironment.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncAuthorizeEnvironment() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
AuthorizeEnvironmentRequest request =
AuthorizeEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/AsyncAuthorizeEnvironmentLRO.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/AsyncAuthorizeEnvironmentLRO.java
index 898adf64..553ab21f 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/AsyncAuthorizeEnvironmentLRO.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/AsyncAuthorizeEnvironmentLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncAuthorizeEnvironmentLRO() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
AuthorizeEnvironmentRequest request =
AuthorizeEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/SyncAuthorizeEnvironment.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/SyncAuthorizeEnvironment.java
index 1955955e..12388a6a 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/SyncAuthorizeEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/SyncAuthorizeEnvironment.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncAuthorizeEnvironment() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
AuthorizeEnvironmentRequest request =
AuthorizeEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/create/SyncCreateSetCredentialsProvider.java
index 35ca7c3e..5adbd838 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/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
CloudShellServiceSettings cloudShellServiceSettings =
CloudShellServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/create/SyncCreateSetCredentialsProvider1.java
index 35b5b445..319118b1 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/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
CloudShellServiceSettings cloudShellServiceSettings =
CloudShellServiceSettings.newBuilder()
.setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/create/SyncCreateSetEndpoint.java
index b4d7c359..f16b6435 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/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
CloudShellServiceSettings cloudShellServiceSettings =
CloudShellServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
CloudShellServiceClient cloudShellServiceClient =
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/AsyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/AsyncGetEnvironment.java
index 784e0dff..1a561b34 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/AsyncGetEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/AsyncGetEnvironment.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncGetEnvironment() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
GetEnvironmentRequest request =
GetEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironment.java
index 49db6eac..3fb3248f 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironment.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetEnvironment() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
GetEnvironmentRequest request =
GetEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironmentEnvironmentname.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironmentEnvironmentname.java
index 2901e660..079a4914 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironmentEnvironmentname.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironmentEnvironmentname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetEnvironmentEnvironmentname() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
EnvironmentName name = EnvironmentName.of("[USER]", "[ENVIRONMENT]");
Environment response = cloudShellServiceClient.getEnvironment(name);
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironmentString.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironmentString.java
index 9ccce874..6391c424 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironmentString.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/getenvironment/SyncGetEnvironmentString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetEnvironmentString() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
String name = EnvironmentName.of("[USER]", "[ENVIRONMENT]").toString();
Environment response = cloudShellServiceClient.getEnvironment(name);
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/AsyncRemovePublicKey.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/AsyncRemovePublicKey.java
index a212a824..b9ae82ab 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/AsyncRemovePublicKey.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/AsyncRemovePublicKey.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncRemovePublicKey() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
RemovePublicKeyRequest request =
RemovePublicKeyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/AsyncRemovePublicKeyLRO.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/AsyncRemovePublicKeyLRO.java
index 86228fb5..d10c2704 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/AsyncRemovePublicKeyLRO.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/AsyncRemovePublicKeyLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncRemovePublicKeyLRO() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
RemovePublicKeyRequest request =
RemovePublicKeyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/SyncRemovePublicKey.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/SyncRemovePublicKey.java
index b96d8f93..0fb969be 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/SyncRemovePublicKey.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/removepublickey/SyncRemovePublicKey.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncRemovePublicKey() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
RemovePublicKeyRequest request =
RemovePublicKeyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/AsyncStartEnvironment.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/AsyncStartEnvironment.java
index b5186c1a..2f394614 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/AsyncStartEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/AsyncStartEnvironment.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncStartEnvironment() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
StartEnvironmentRequest request =
StartEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/AsyncStartEnvironmentLRO.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/AsyncStartEnvironmentLRO.java
index 1fd0a429..db72b72f 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/AsyncStartEnvironmentLRO.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/AsyncStartEnvironmentLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncStartEnvironmentLRO() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
StartEnvironmentRequest request =
StartEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/SyncStartEnvironment.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/SyncStartEnvironment.java
index be5f03f8..57108334 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/SyncStartEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/startenvironment/SyncStartEnvironment.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncStartEnvironment() 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 (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
StartEnvironmentRequest request =
StartEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellservicesettings/getenvironment/SyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellservicesettings/getenvironment/SyncGetEnvironment.java
index 91e4d8f2..4b21f291 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellservicesettings/getenvironment/SyncGetEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellservicesettings/getenvironment/SyncGetEnvironment.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetEnvironment() 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
CloudShellServiceSettings.Builder cloudShellServiceSettingsBuilder =
CloudShellServiceSettings.newBuilder();
cloudShellServiceSettingsBuilder
.getEnvironmentSettings()
.setRetrySettings(
- cloudShellServiceSettingsBuilder
- .getEnvironmentSettings()
- .getRetrySettings()
- .toBuilder()
+ cloudShellServiceSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
CloudShellServiceSettings cloudShellServiceSettings = cloudShellServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/shell/v1/stub/cloudshellservicestubsettings/getenvironment/SyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/shell/v1/stub/cloudshellservicestubsettings/getenvironment/SyncGetEnvironment.java
index ba963045..b4edae4e 100644
--- a/samples/snippets/generated/com/google/cloud/shell/v1/stub/cloudshellservicestubsettings/getenvironment/SyncGetEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/shell/v1/stub/cloudshellservicestubsettings/getenvironment/SyncGetEnvironment.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetEnvironment() 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
CloudShellServiceStubSettings.Builder cloudShellServiceSettingsBuilder =
CloudShellServiceStubSettings.newBuilder();
cloudShellServiceSettingsBuilder
.getEnvironmentSettings()
.setRetrySettings(
- cloudShellServiceSettingsBuilder
- .getEnvironmentSettings()
- .getRetrySettings()
- .toBuilder()
+ cloudShellServiceSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
CloudShellServiceStubSettings cloudShellServiceSettings =
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index b74d26e9..c7ddd14a 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-shell
- 2.2.4
+ 2.2.5
diff --git a/versions.txt b/versions.txt
index 170a1b9f..e672a9e4 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
# Format:
# module:released-version:current-version
-google-cloud-shell:2.2.5:2.2.5
-grpc-google-cloud-shell-v1:2.2.5:2.2.5
-proto-google-cloud-shell-v1:2.2.5:2.2.5
+google-cloud-shell:2.2.6:2.2.6
+grpc-google-cloud-shell-v1:2.2.6:2.2.6
+proto-google-cloud-shell-v1:2.2.6:2.2.6