Skip to content

Commit 190b006

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#227)
- [ ] 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 b6fb62a commit 190b006

File tree

88 files changed

+783
-374
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+783
-374
lines changed

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsClient.java

Lines changed: 115 additions & 46 deletions
Large diffs are not rendered by default.

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@
5656
* <p>For example, to set the total timeout of getEnvironment to 30 seconds:
5757
*
5858
* <pre>{@code
59-
* // This snippet has been automatically generated for illustrative purposes only.
60-
* // It may require modifications to work in your environment.
59+
* // This snippet has been automatically generated and should be regarded as a code template only.
60+
* // It will require modifications to work:
61+
* // - It may require correct/in-range values for request initialization.
62+
* // - It may require specifying regional endpoints when creating the service client as shown in
63+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6164
* EnvironmentsSettings.Builder environmentsSettingsBuilder = EnvironmentsSettings.newBuilder();
6265
* environmentsSettingsBuilder
6366
* .getEnvironmentSettings()
6467
* .setRetrySettings(
65-
* environmentsSettingsBuilder
66-
* .getEnvironmentSettings()
67-
* .getRetrySettings()
68-
* .toBuilder()
68+
* environmentsSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder()
6969
* .setTotalTimeout(Duration.ofSeconds(30))
7070
* .build());
7171
* EnvironmentsSettings environmentsSettings = environmentsSettingsBuilder.build();

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsClient.java

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@
4040
* calls that map to API methods. Sample code to get started:
4141
*
4242
* <pre>{@code
43-
* // This snippet has been automatically generated for illustrative purposes only.
44-
* // It may require modifications to work in your environment.
43+
* // This snippet has been automatically generated and should be regarded as a code template only.
44+
* // It will require modifications to work:
45+
* // - It may require correct/in-range values for request initialization.
46+
* // - It may require specifying regional endpoints when creating the service client as shown in
47+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4548
* try (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
4649
* String parent = "parent-995424086";
4750
* for (ImageVersion element : imageVersionsClient.listImageVersions(parent).iterateAll()) {
@@ -79,8 +82,11 @@
7982
* <p>To customize credentials:
8083
*
8184
* <pre>{@code
82-
* // This snippet has been automatically generated for illustrative purposes only.
83-
* // It may require modifications to work in your environment.
85+
* // This snippet has been automatically generated and should be regarded as a code template only.
86+
* // It will require modifications to work:
87+
* // - It may require correct/in-range values for request initialization.
88+
* // - It may require specifying regional endpoints when creating the service client as shown in
89+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8490
* ImageVersionsSettings imageVersionsSettings =
8591
* ImageVersionsSettings.newBuilder()
8692
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -91,8 +97,11 @@
9197
* <p>To customize the endpoint:
9298
*
9399
* <pre>{@code
94-
* // This snippet has been automatically generated for illustrative purposes only.
95-
* // It may require modifications to work in your environment.
100+
* // This snippet has been automatically generated and should be regarded as a code template only.
101+
* // It will require modifications to work:
102+
* // - It may require correct/in-range values for request initialization.
103+
* // - It may require specifying regional endpoints when creating the service client as shown in
104+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
96105
* ImageVersionsSettings imageVersionsSettings =
97106
* ImageVersionsSettings.newBuilder().setEndpoint(myEndpoint).build();
98107
* ImageVersionsClient imageVersionsClient = ImageVersionsClient.create(imageVersionsSettings);
@@ -102,8 +111,11 @@
102111
* the wire:
103112
*
104113
* <pre>{@code
105-
* // This snippet has been automatically generated for illustrative purposes only.
106-
* // It may require modifications to work in your environment.
114+
* // This snippet has been automatically generated and should be regarded as a code template only.
115+
* // It will require modifications to work:
116+
* // - It may require correct/in-range values for request initialization.
117+
* // - It may require specifying regional endpoints when creating the service client as shown in
118+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
107119
* ImageVersionsSettings imageVersionsSettings =
108120
* ImageVersionsSettings.newBuilder()
109121
* .setTransportChannelProvider(
@@ -171,8 +183,11 @@ public ImageVersionsStub getStub() {
171183
* <p>Sample code:
172184
*
173185
* <pre>{@code
174-
* // This snippet has been automatically generated for illustrative purposes only.
175-
* // It may require modifications to work in your environment.
186+
* // This snippet has been automatically generated and should be regarded as a code template only.
187+
* // It will require modifications to work:
188+
* // - It may require correct/in-range values for request initialization.
189+
* // - It may require specifying regional endpoints when creating the service client as shown in
190+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
176191
* try (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
177192
* String parent = "parent-995424086";
178193
* for (ImageVersion element : imageVersionsClient.listImageVersions(parent).iterateAll()) {
@@ -198,8 +213,11 @@ public final ListImageVersionsPagedResponse listImageVersions(String parent) {
198213
* <p>Sample code:
199214
*
200215
* <pre>{@code
201-
* // This snippet has been automatically generated for illustrative purposes only.
202-
* // It may require modifications to work in your environment.
216+
* // This snippet has been automatically generated and should be regarded as a code template only.
217+
* // It will require modifications to work:
218+
* // - It may require correct/in-range values for request initialization.
219+
* // - It may require specifying regional endpoints when creating the service client as shown in
220+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
203221
* try (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
204222
* ListImageVersionsRequest request =
205223
* ListImageVersionsRequest.newBuilder()
@@ -228,8 +246,11 @@ public final ListImageVersionsPagedResponse listImageVersions(ListImageVersionsR
228246
* <p>Sample code:
229247
*
230248
* <pre>{@code
231-
* // This snippet has been automatically generated for illustrative purposes only.
232-
* // It may require modifications to work in your environment.
249+
* // This snippet has been automatically generated and should be regarded as a code template only.
250+
* // It will require modifications to work:
251+
* // - It may require correct/in-range values for request initialization.
252+
* // - It may require specifying regional endpoints when creating the service client as shown in
253+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
233254
* try (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
234255
* ListImageVersionsRequest request =
235256
* ListImageVersionsRequest.newBuilder()
@@ -259,8 +280,11 @@ public final ListImageVersionsPagedResponse listImageVersions(ListImageVersionsR
259280
* <p>Sample code:
260281
*
261282
* <pre>{@code
262-
* // This snippet has been automatically generated for illustrative purposes only.
263-
* // It may require modifications to work in your environment.
283+
* // This snippet has been automatically generated and should be regarded as a code template only.
284+
* // It will require modifications to work:
285+
* // - It may require correct/in-range values for request initialization.
286+
* // - It may require specifying regional endpoints when creating the service client as shown in
287+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
264288
* try (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
265289
* ListImageVersionsRequest request =
266290
* ListImageVersionsRequest.newBuilder()

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsSettings.java

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

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/package-info.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
* <p>Sample for EnvironmentsClient:
2525
*
2626
* <pre>{@code
27-
* // This snippet has been automatically generated for illustrative purposes only.
28-
* // It may require modifications to work in your environment.
27+
* // This snippet has been automatically generated and should be regarded as a code template only.
28+
* // It will require modifications to work:
29+
* // - It may require correct/in-range values for request initialization.
30+
* // - It may require specifying regional endpoints when creating the service client as shown in
31+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2932
* try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
3033
* String name = "name3373707";
3134
* Environment response = environmentsClient.getEnvironment(name);
@@ -39,8 +42,11 @@
3942
* <p>Sample for ImageVersionsClient:
4043
*
4144
* <pre>{@code
42-
* // This snippet has been automatically generated for illustrative purposes only.
43-
* // It may require modifications to work in your environment.
45+
* // This snippet has been automatically generated and should be regarded as a code template only.
46+
* // It will require modifications to work:
47+
* // - It may require correct/in-range values for request initialization.
48+
* // - It may require specifying regional endpoints when creating the service client as shown in
49+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4450
* try (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
4551
* String parent = "parent-995424086";
4652
* for (ImageVersion element : imageVersionsClient.listImageVersions(parent).iterateAll()) {

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,17 @@
8484
* <p>For example, to set the total timeout of getEnvironment to 30 seconds:
8585
*
8686
* <pre>{@code
87-
* // This snippet has been automatically generated for illustrative purposes only.
88-
* // It may require modifications to work in your environment.
87+
* // This snippet has been automatically generated and should be regarded as a code template only.
88+
* // It will require modifications to work:
89+
* // - It may require correct/in-range values for request initialization.
90+
* // - It may require specifying regional endpoints when creating the service client as shown in
91+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8992
* EnvironmentsStubSettings.Builder environmentsSettingsBuilder =
9093
* EnvironmentsStubSettings.newBuilder();
9194
* environmentsSettingsBuilder
9295
* .getEnvironmentSettings()
9396
* .setRetrySettings(
94-
* environmentsSettingsBuilder
95-
* .getEnvironmentSettings()
96-
* .getRetrySettings()
97-
* .toBuilder()
97+
* environmentsSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder()
9898
* .setTotalTimeout(Duration.ofSeconds(30))
9999
* .build());
100100
* EnvironmentsStubSettings environmentsSettings = environmentsSettingsBuilder.build();

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/HttpJsonEnvironmentsStub.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public class HttpJsonEnvironmentsStub extends EnvironmentsStub {
9696
.setRequestBodyExtractor(
9797
request ->
9898
ProtoRestSerializer.create()
99-
.toBody("environment", request.getEnvironment()))
99+
.toBody("environment", request.getEnvironment(), false))
100100
.build())
101101
.setResponseParser(
102102
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -207,7 +207,7 @@ public class HttpJsonEnvironmentsStub extends EnvironmentsStub {
207207
.setRequestBodyExtractor(
208208
request ->
209209
ProtoRestSerializer.create()
210-
.toBody("environment", request.getEnvironment()))
210+
.toBody("environment", request.getEnvironment(), false))
211211
.build())
212212
.setResponseParser(
213213
ProtoMessageResponseParser.<Operation>newBuilder()

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/ImageVersionsStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@
7272
* <p>For example, to set the total timeout of listImageVersions to 30 seconds:
7373
*
7474
* <pre>{@code
75-
* // This snippet has been automatically generated for illustrative purposes only.
76-
* // It may require modifications to work in your environment.
75+
* // This snippet has been automatically generated and should be regarded as a code template only.
76+
* // It will require modifications to work:
77+
* // - It may require correct/in-range values for request initialization.
78+
* // - It may require specifying regional endpoints when creating the service client as shown in
79+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7780
* ImageVersionsStubSettings.Builder imageVersionsSettingsBuilder =
7881
* ImageVersionsStubSettings.newBuilder();
7982
* imageVersionsSettingsBuilder
8083
* .listImageVersionsSettings()
8184
* .setRetrySettings(
82-
* imageVersionsSettingsBuilder
83-
* .listImageVersionsSettings()
84-
* .getRetrySettings()
85-
* .toBuilder()
85+
* imageVersionsSettingsBuilder.listImageVersionsSettings().getRetrySettings().toBuilder()
8686
* .setTotalTimeout(Duration.ofSeconds(30))
8787
* .build());
8888
* ImageVersionsStubSettings imageVersionsSettings = imageVersionsSettingsBuilder.build();

0 commit comments

Comments
 (0)