Skip to content

Commit a25294d

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#74)
- [ ] 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 80bcada commit a25294d

File tree

107 files changed

+1044
-420
lines changed

Some content is hidden

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

107 files changed

+1044
-420
lines changed

java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java

+505-202
Large diffs are not rendered by default.

java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@
6565
* <p>For example, to set the total timeout of getCertificate to 30 seconds:
6666
*
6767
* <pre>{@code
68-
* // This snippet has been automatically generated for illustrative purposes only.
69-
* // It may require modifications to work in your environment.
68+
* // This snippet has been automatically generated and should be regarded as a code template only.
69+
* // It will require modifications to work:
70+
* // - It may require correct/in-range values for request initialization.
71+
* // - It may require specifying regional endpoints when creating the service client as shown in
72+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7073
* CertificateManagerSettings.Builder certificateManagerSettingsBuilder =
7174
* CertificateManagerSettings.newBuilder();
7275
* certificateManagerSettingsBuilder

java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/package-info.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@
5050
* <p>Sample for CertificateManagerClient:
5151
*
5252
* <pre>{@code
53-
* // This snippet has been automatically generated for illustrative purposes only.
54-
* // It may require modifications to work in your environment.
53+
* // This snippet has been automatically generated and should be regarded as a code template only.
54+
* // It will require modifications to work:
55+
* // - It may require correct/in-range values for request initialization.
56+
* // - It may require specifying regional endpoints when creating the service client as shown in
57+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5558
* try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
5659
* CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]");
5760
* Certificate response = certificateManagerClient.getCertificate(name);

java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,11 @@
114114
* <p>For example, to set the total timeout of getCertificate to 30 seconds:
115115
*
116116
* <pre>{@code
117-
* // This snippet has been automatically generated for illustrative purposes only.
118-
* // It may require modifications to work in your environment.
117+
* // This snippet has been automatically generated and should be regarded as a code template only.
118+
* // It will require modifications to work:
119+
* // - It may require correct/in-range values for request initialization.
120+
* // - It may require specifying regional endpoints when creating the service client as shown in
121+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
119122
* CertificateManagerStubSettings.Builder certificateManagerSettingsBuilder =
120123
* CertificateManagerStubSettings.newBuilder();
121124
* certificateManagerSettingsBuilder

java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java

+14-8
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub {
202202
.setRequestBodyExtractor(
203203
request ->
204204
ProtoRestSerializer.create()
205-
.toBody("certificate", request.getCertificate()))
205+
.toBody("certificate", request.getCertificate(), false))
206206
.build())
207207
.setResponseParser(
208208
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -244,7 +244,7 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub {
244244
.setRequestBodyExtractor(
245245
request ->
246246
ProtoRestSerializer.create()
247-
.toBody("certificate", request.getCertificate()))
247+
.toBody("certificate", request.getCertificate(), false))
248248
.build())
249249
.setResponseParser(
250250
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -395,7 +395,7 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub {
395395
.setRequestBodyExtractor(
396396
request ->
397397
ProtoRestSerializer.create()
398-
.toBody("certificateMap", request.getCertificateMap()))
398+
.toBody("certificateMap", request.getCertificateMap(), false))
399399
.build())
400400
.setResponseParser(
401401
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -439,7 +439,7 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub {
439439
.setRequestBodyExtractor(
440440
request ->
441441
ProtoRestSerializer.create()
442-
.toBody("certificateMap", request.getCertificateMap()))
442+
.toBody("certificateMap", request.getCertificateMap(), false))
443443
.build())
444444
.setResponseParser(
445445
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -594,7 +594,10 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub {
594594
.setRequestBodyExtractor(
595595
request ->
596596
ProtoRestSerializer.create()
597-
.toBody("certificateMapEntry", request.getCertificateMapEntry()))
597+
.toBody(
598+
"certificateMapEntry",
599+
request.getCertificateMapEntry(),
600+
false))
598601
.build())
599602
.setResponseParser(
600603
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -638,7 +641,10 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub {
638641
.setRequestBodyExtractor(
639642
request ->
640643
ProtoRestSerializer.create()
641-
.toBody("certificateMapEntry", request.getCertificateMapEntry()))
644+
.toBody(
645+
"certificateMapEntry",
646+
request.getCertificateMapEntry(),
647+
false))
642648
.build())
643649
.setResponseParser(
644650
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -791,7 +797,7 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub {
791797
.setRequestBodyExtractor(
792798
request ->
793799
ProtoRestSerializer.create()
794-
.toBody("dnsAuthorization", request.getDnsAuthorization()))
800+
.toBody("dnsAuthorization", request.getDnsAuthorization(), false))
795801
.build())
796802
.setResponseParser(
797803
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -835,7 +841,7 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub {
835841
.setRequestBodyExtractor(
836842
request ->
837843
ProtoRestSerializer.create()
838-
.toBody("dnsAuthorization", request.getDnsAuthorization()))
844+
.toBody("dnsAuthorization", request.getDnsAuthorization(), false))
839845
.build())
840846
.setResponseParser(
841847
ProtoMessageResponseParser.<Operation>newBuilder()

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/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
CertificateManagerSettings certificateManagerSettings =
3538
CertificateManagerSettings.newBuilder()
3639
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/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
CertificateManagerSettings certificateManagerSettings =
3336
CertificateManagerSettings.newBuilder()
3437
.setTransportChannelProvider(

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/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
CertificateManagerSettings certificateManagerSettings =
3437
CertificateManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
3538
CertificateManagerClient certificateManagerClient =

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificate.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 asyncCreateCertificate() 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 (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
3740
CreateCertificateRequest request =
3841
CreateCertificateRequest.newBuilder()

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificateLRO.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 asyncCreateCertificateLRO() 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 (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
3740
CreateCertificateRequest request =
3841
CreateCertificateRequest.newBuilder()

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificate.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 syncCreateCertificate() 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 (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
3538
CreateCertificateRequest request =
3639
CreateCertificateRequest.newBuilder()

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateLocationnameCertificateString.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 syncCreateCertificateLocationnameCertificateString() 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 (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
3437
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
3538
Certificate certificate = Certificate.newBuilder().build();

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateStringCertificateString.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 syncCreateCertificateStringCertificateString() 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 (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
3437
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
3538
Certificate certificate = Certificate.newBuilder().build();

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMap.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 asyncCreateCertificateMap() 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 (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
3740
CreateCertificateMapRequest request =
3841
CreateCertificateMapRequest.newBuilder()

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMapLRO.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 asyncCreateCertificateMapLRO() 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 (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
3740
CreateCertificateMapRequest request =
3841
CreateCertificateMapRequest.newBuilder()

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMap.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 syncCreateCertificateMap() 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 (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
3538
CreateCertificateMapRequest request =
3639
CreateCertificateMapRequest.newBuilder()

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapLocationnameCertificatemapString.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 syncCreateCertificateMapLocationnameCertificatemapString() 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 (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
3437
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
3538
CertificateMap certificateMap = CertificateMap.newBuilder().build();

java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapStringCertificatemapString.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 syncCreateCertificateMapStringCertificatemapString() 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 (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
3437
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
3538
CertificateMap certificateMap = CertificateMap.newBuilder().build();

0 commit comments

Comments
 (0)