Skip to content

Commit 3d64e1f

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#155)
- [ ] 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 2add3ff commit 3d64e1f

File tree

92 files changed

+895
-375
lines changed

Some content is hidden

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

92 files changed

+895
-375
lines changed

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java

+430-172
Large diffs are not rendered by default.

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@
5959
* <p>For example, to set the total timeout of getDeliveryPipeline to 30 seconds:
6060
*
6161
* <pre>{@code
62-
* // This snippet has been automatically generated for illustrative purposes only.
63-
* // It may require modifications to work in your environment.
62+
* // This snippet has been automatically generated and should be regarded as a code template only.
63+
* // It will require modifications to work:
64+
* // - It may require correct/in-range values for request initialization.
65+
* // - It may require specifying regional endpoints when creating the service client as shown in
66+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6467
* CloudDeploySettings.Builder cloudDeploySettingsBuilder = CloudDeploySettings.newBuilder();
6568
* cloudDeploySettingsBuilder
6669
* .getDeliveryPipelineSettings()
6770
* .setRetrySettings(
68-
* cloudDeploySettingsBuilder
69-
* .getDeliveryPipelineSettings()
70-
* .getRetrySettings()
71-
* .toBuilder()
71+
* cloudDeploySettingsBuilder.getDeliveryPipelineSettings().getRetrySettings().toBuilder()
7272
* .setTotalTimeout(Duration.ofSeconds(30))
7373
* .build());
7474
* CloudDeploySettings cloudDeploySettings = cloudDeploySettingsBuilder.build();

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
* <p>Sample for CloudDeployClient:
2828
*
2929
* <pre>{@code
30-
* // This snippet has been automatically generated for illustrative purposes only.
31-
* // It may require modifications to work in your environment.
30+
* // This snippet has been automatically generated and should be regarded as a code template only.
31+
* // It will require modifications to work:
32+
* // - It may require correct/in-range values for request initialization.
33+
* // - It may require specifying regional endpoints when creating the service client as shown in
34+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3235
* try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
3336
* DeliveryPipelineName name =
3437
* DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,17 @@
108108
* <p>For example, to set the total timeout of getDeliveryPipeline to 30 seconds:
109109
*
110110
* <pre>{@code
111-
* // This snippet has been automatically generated for illustrative purposes only.
112-
* // It may require modifications to work in your environment.
111+
* // This snippet has been automatically generated and should be regarded as a code template only.
112+
* // It will require modifications to work:
113+
* // - It may require correct/in-range values for request initialization.
114+
* // - It may require specifying regional endpoints when creating the service client as shown in
115+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
113116
* CloudDeployStubSettings.Builder cloudDeploySettingsBuilder =
114117
* CloudDeployStubSettings.newBuilder();
115118
* cloudDeploySettingsBuilder
116119
* .getDeliveryPipelineSettings()
117120
* .setRetrySettings(
118-
* cloudDeploySettingsBuilder
119-
* .getDeliveryPipelineSettings()
120-
* .getRetrySettings()
121-
* .toBuilder()
121+
* cloudDeploySettingsBuilder.getDeliveryPipelineSettings().getRetrySettings().toBuilder()
122122
* .setTotalTimeout(Duration.ofSeconds(30))
123123
* .build());
124124
* CloudDeployStubSettings cloudDeploySettings = cloudDeploySettingsBuilder.build();

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java

+11-7
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub {
199199
.setRequestBodyExtractor(
200200
request ->
201201
ProtoRestSerializer.create()
202-
.toBody("deliveryPipeline", request.getDeliveryPipeline()))
202+
.toBody("deliveryPipeline", request.getDeliveryPipeline(), false))
203203
.build())
204204
.setResponseParser(
205205
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -247,7 +247,7 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub {
247247
.setRequestBodyExtractor(
248248
request ->
249249
ProtoRestSerializer.create()
250-
.toBody("deliveryPipeline", request.getDeliveryPipeline()))
250+
.toBody("deliveryPipeline", request.getDeliveryPipeline(), false))
251251
.build())
252252
.setResponseParser(
253253
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -401,7 +401,8 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub {
401401
})
402402
.setRequestBodyExtractor(
403403
request ->
404-
ProtoRestSerializer.create().toBody("target", request.getTarget()))
404+
ProtoRestSerializer.create()
405+
.toBody("target", request.getTarget(), false))
405406
.build())
406407
.setResponseParser(
407408
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -446,7 +447,8 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub {
446447
})
447448
.setRequestBodyExtractor(
448449
request ->
449-
ProtoRestSerializer.create().toBody("target", request.getTarget()))
450+
ProtoRestSerializer.create()
451+
.toBody("target", request.getTarget(), false))
450452
.build())
451453
.setResponseParser(
452454
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -599,7 +601,8 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub {
599601
})
600602
.setRequestBodyExtractor(
601603
request ->
602-
ProtoRestSerializer.create().toBody("release", request.getRelease()))
604+
ProtoRestSerializer.create()
605+
.toBody("release", request.getRelease(), false))
603606
.build())
604607
.setResponseParser(
605608
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -638,7 +641,7 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub {
638641
.setRequestBodyExtractor(
639642
request ->
640643
ProtoRestSerializer.create()
641-
.toBody("*", request.toBuilder().clearName().build()))
644+
.toBody("*", request.toBuilder().clearName().build(), false))
642645
.build())
643646
.setResponseParser(
644647
ProtoMessageResponseParser.<ApproveRolloutResponse>newBuilder()
@@ -746,7 +749,8 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub {
746749
})
747750
.setRequestBodyExtractor(
748751
request ->
749-
ProtoRestSerializer.create().toBody("rollout", request.getRollout()))
752+
ProtoRestSerializer.create()
753+
.toBody("rollout", request.getRollout(), false))
750754
.build())
751755
.setResponseParser(
752756
ProtoMessageResponseParser.<Operation>newBuilder()

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/AsyncApproveRollout.java

+5-2
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 asyncApproveRollout() 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
3639
ApproveRolloutRequest request =
3740
ApproveRolloutRequest.newBuilder()

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRollout.java

+5-2
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 syncApproveRollout() 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
3538
ApproveRolloutRequest request =
3639
ApproveRolloutRequest.newBuilder()

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRolloutRolloutname.java

+5-2
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 syncApproveRolloutRolloutname() 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
3437
RolloutName name =
3538
RolloutName.of(

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRolloutString.java

+5-2
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 syncApproveRolloutString() 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
3437
String name =
3538
RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]")

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetCredentialsProvider.java

+5-2
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 syncCreateSetCredentialsProvider() 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
CloudDeploySettings cloudDeploySettings =
3538
CloudDeploySettings.newBuilder()
3639
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetCredentialsProvider1.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
2727
}
2828

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

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetEndpoint.java

+5-2
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 syncCreateSetEndpoint() 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
CloudDeploySettings cloudDeploySettings =
3437
CloudDeploySettings.newBuilder().setEndpoint(myEndpoint).build();
3538
CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings);

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/AsyncCreateDeliveryPipeline.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
3131
}
3232

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

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/AsyncCreateDeliveryPipelineLRO.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
3131
}
3232

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

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipeline.java

+5-2
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 syncCreateDeliveryPipeline() 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
3538
CreateDeliveryPipelineRequest request =
3639
CreateDeliveryPipelineRequest.newBuilder()

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipelineLocationnameDeliverypipelineString.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929

3030
public static void syncCreateDeliveryPipelineLocationnameDeliverypipelineString()
3131
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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
3538
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
3639
DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build();

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipelineStringDeliverypipelineString.java

+5-2
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 syncCreateDeliveryPipelineStringDeliverypipelineString() 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
3437
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
3538
DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build();

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/AsyncCreateRelease.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
3131
}
3232

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

java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/AsyncCreateReleaseLRO.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
3131
}
3232

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

0 commit comments

Comments
 (0)