Skip to content

Commit d4197c9

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#243)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: googleapis/googleapis@88f2ea3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
1 parent 3aede67 commit d4197c9

27 files changed

+233
-111
lines changed

java-shell/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>google-cloud-shell</artifactId>
22-
<version>2.2.4</version>
22+
<version>2.2.5</version>
2323
</dependency>
2424
```
2525

2626
If you are using Gradle without BOM, add this to your dependencies:
2727

2828
```Groovy
29-
implementation 'com.google.cloud:google-cloud-shell:2.2.4'
29+
implementation 'com.google.cloud:google-cloud-shell:2.2.5'
3030
```
3131

3232
If you are using SBT, add this to your dependencies:
3333

3434
```Scala
35-
libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.2.4"
35+
libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.2.5"
3636
```
3737

3838
## Authentication

java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceClient.java

Lines changed: 100 additions & 40 deletions
Large diffs are not rendered by default.

java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@
5252
* <p>For example, to set the total timeout of getEnvironment to 30 seconds:
5353
*
5454
* <pre>{@code
55-
* // This snippet has been automatically generated for illustrative purposes only.
56-
* // It may require modifications to work in your environment.
55+
* // This snippet has been automatically generated and should be regarded as a code template only.
56+
* // It will require modifications to work:
57+
* // - It may require correct/in-range values for request initialization.
58+
* // - It may require specifying regional endpoints when creating the service client as shown in
59+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5760
* CloudShellServiceSettings.Builder cloudShellServiceSettingsBuilder =
5861
* CloudShellServiceSettings.newBuilder();
5962
* cloudShellServiceSettingsBuilder
6063
* .getEnvironmentSettings()
6164
* .setRetrySettings(
62-
* cloudShellServiceSettingsBuilder
63-
* .getEnvironmentSettings()
64-
* .getRetrySettings()
65-
* .toBuilder()
65+
* cloudShellServiceSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder()
6666
* .setTotalTimeout(Duration.ofSeconds(30))
6767
* .build());
6868
* CloudShellServiceSettings cloudShellServiceSettings = cloudShellServiceSettingsBuilder.build();

java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@
2828
* <p>Sample for CloudShellServiceClient:
2929
*
3030
* <pre>{@code
31-
* // This snippet has been automatically generated for illustrative purposes only.
32-
* // It may require modifications to work in your environment.
31+
* // This snippet has been automatically generated and should be regarded as a code template only.
32+
* // It will require modifications to work:
33+
* // - It may require correct/in-range values for request initialization.
34+
* // - It may require specifying regional endpoints when creating the service client as shown in
35+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
* try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
3437
* EnvironmentName name = EnvironmentName.of("[USER]", "[ENVIRONMENT]");
3538
* Environment response = cloudShellServiceClient.getEnvironment(name);

java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@
8080
* <p>For example, to set the total timeout of getEnvironment to 30 seconds:
8181
*
8282
* <pre>{@code
83-
* // This snippet has been automatically generated for illustrative purposes only.
84-
* // It may require modifications to work in your environment.
83+
* // This snippet has been automatically generated and should be regarded as a code template only.
84+
* // It will require modifications to work:
85+
* // - It may require correct/in-range values for request initialization.
86+
* // - It may require specifying regional endpoints when creating the service client as shown in
87+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8588
* CloudShellServiceStubSettings.Builder cloudShellServiceSettingsBuilder =
8689
* CloudShellServiceStubSettings.newBuilder();
8790
* cloudShellServiceSettingsBuilder
8891
* .getEnvironmentSettings()
8992
* .setRetrySettings(
90-
* cloudShellServiceSettingsBuilder
91-
* .getEnvironmentSettings()
92-
* .getRetrySettings()
93-
* .toBuilder()
93+
* cloudShellServiceSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder()
9494
* .setTotalTimeout(Duration.ofSeconds(30))
9595
* .build());
9696
* CloudShellServiceStubSettings cloudShellServiceSettings =

java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/HttpJsonCloudShellServiceStub.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public class HttpJsonCloudShellServiceStub extends CloudShellServiceStub {
136136
.setRequestBodyExtractor(
137137
request ->
138138
ProtoRestSerializer.create()
139-
.toBody("*", request.toBuilder().clearName().build()))
139+
.toBody("*", request.toBuilder().clearName().build(), false))
140140
.build())
141141
.setResponseParser(
142142
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -175,7 +175,7 @@ public class HttpJsonCloudShellServiceStub extends CloudShellServiceStub {
175175
.setRequestBodyExtractor(
176176
request ->
177177
ProtoRestSerializer.create()
178-
.toBody("*", request.toBuilder().clearName().build()))
178+
.toBody("*", request.toBuilder().clearName().build(), false))
179179
.build())
180180
.setResponseParser(
181181
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -215,7 +215,8 @@ public class HttpJsonCloudShellServiceStub extends CloudShellServiceStub {
215215
.setRequestBodyExtractor(
216216
request ->
217217
ProtoRestSerializer.create()
218-
.toBody("*", request.toBuilder().clearEnvironment().build()))
218+
.toBody(
219+
"*", request.toBuilder().clearEnvironment().build(), false))
219220
.build())
220221
.setResponseParser(
221222
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -255,7 +256,8 @@ public class HttpJsonCloudShellServiceStub extends CloudShellServiceStub {
255256
.setRequestBodyExtractor(
256257
request ->
257258
ProtoRestSerializer.create()
258-
.toBody("*", request.toBuilder().clearEnvironment().build()))
259+
.toBody(
260+
"*", request.toBuilder().clearEnvironment().build(), false))
259261
.build())
260262
.setResponseParser(
261263
ProtoMessageResponseParser.<Operation>newBuilder()

java-shell/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/AsyncAddPublicKey.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void asyncAddPublicKey() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
3538
AddPublicKeyRequest request =
3639
AddPublicKeyRequest.newBuilder()

java-shell/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/AsyncAddPublicKeyLRO.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
3030
}
3131

3232
public static void asyncAddPublicKeyLRO() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3538
try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
3639
AddPublicKeyRequest request =
3740
AddPublicKeyRequest.newBuilder()

java-shell/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/addpublickey/SyncAddPublicKey.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncAddPublicKey() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
3437
AddPublicKeyRequest request =
3538
AddPublicKeyRequest.newBuilder()

java-shell/samples/snippets/generated/com/google/cloud/shell/v1/cloudshellserviceclient/authorizeenvironment/AsyncAuthorizeEnvironment.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
3030
}
3131

3232
public static void asyncAuthorizeEnvironment() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3538
try (CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.create()) {
3639
AuthorizeEnvironmentRequest request =
3740
AuthorizeEnvironmentRequest.newBuilder()

0 commit comments

Comments
 (0)