Skip to content

Commit 8988178

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#290)
- [ ] 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 eca0d24 commit 8988178

File tree

79 files changed

+764
-322
lines changed

Some content is hidden

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

79 files changed

+764
-322
lines changed

java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java

+365-146
Large diffs are not rendered by default.

java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java

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

java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/package-info.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
* <p>Sample for ApiGatewayServiceClient:
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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3033
* GatewayName name = GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]");
3134
* Gateway response = apiGatewayServiceClient.getGateway(name);

java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,17 @@
100100
* <p>For example, to set the total timeout of getGateway to 30 seconds:
101101
*
102102
* <pre>{@code
103-
* // This snippet has been automatically generated for illustrative purposes only.
104-
* // It may require modifications to work in your environment.
103+
* // This snippet has been automatically generated and should be regarded as a code template only.
104+
* // It will require modifications to work:
105+
* // - It may require correct/in-range values for request initialization.
106+
* // - It may require specifying regional endpoints when creating the service client as shown in
107+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
105108
* ApiGatewayServiceStubSettings.Builder apiGatewayServiceSettingsBuilder =
106109
* ApiGatewayServiceStubSettings.newBuilder();
107110
* apiGatewayServiceSettingsBuilder
108111
* .getGatewaySettings()
109112
* .setRetrySettings(
110-
* apiGatewayServiceSettingsBuilder
111-
* .getGatewaySettings()
112-
* .getRetrySettings()
113-
* .toBuilder()
113+
* apiGatewayServiceSettingsBuilder.getGatewaySettings().getRetrySettings().toBuilder()
114114
* .setTotalTimeout(Duration.ofSeconds(30))
115115
* .build());
116116
* ApiGatewayServiceStubSettings apiGatewayServiceSettings =

java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java

+10-6
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ public class HttpJsonApiGatewayServiceStub extends ApiGatewayServiceStub {
182182
})
183183
.setRequestBodyExtractor(
184184
request ->
185-
ProtoRestSerializer.create().toBody("gateway", request.getGateway()))
185+
ProtoRestSerializer.create()
186+
.toBody("gateway", request.getGateway(), false))
186187
.build())
187188
.setResponseParser(
188189
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -222,7 +223,8 @@ public class HttpJsonApiGatewayServiceStub extends ApiGatewayServiceStub {
222223
})
223224
.setRequestBodyExtractor(
224225
request ->
225-
ProtoRestSerializer.create().toBody("gateway", request.getGateway()))
226+
ProtoRestSerializer.create()
227+
.toBody("gateway", request.getGateway(), false))
226228
.build())
227229
.setResponseParser(
228230
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -364,7 +366,8 @@ public class HttpJsonApiGatewayServiceStub extends ApiGatewayServiceStub {
364366
return fields;
365367
})
366368
.setRequestBodyExtractor(
367-
request -> ProtoRestSerializer.create().toBody("api", request.getApi()))
369+
request ->
370+
ProtoRestSerializer.create().toBody("api", request.getApi(), false))
368371
.build())
369372
.setResponseParser(
370373
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -401,7 +404,8 @@ public class HttpJsonApiGatewayServiceStub extends ApiGatewayServiceStub {
401404
return fields;
402405
})
403406
.setRequestBodyExtractor(
404-
request -> ProtoRestSerializer.create().toBody("api", request.getApi()))
407+
request ->
408+
ProtoRestSerializer.create().toBody("api", request.getApi(), false))
405409
.build())
406410
.setResponseParser(
407411
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -548,7 +552,7 @@ public class HttpJsonApiGatewayServiceStub extends ApiGatewayServiceStub {
548552
.setRequestBodyExtractor(
549553
request ->
550554
ProtoRestSerializer.create()
551-
.toBody("apiConfig", request.getApiConfig()))
555+
.toBody("apiConfig", request.getApiConfig(), false))
552556
.build())
553557
.setResponseParser(
554558
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -589,7 +593,7 @@ public class HttpJsonApiGatewayServiceStub extends ApiGatewayServiceStub {
589593
.setRequestBodyExtractor(
590594
request ->
591595
ProtoRestSerializer.create()
592-
.toBody("apiConfig", request.getApiConfig()))
596+
.toBody("apiConfig", request.getApiConfig(), false))
593597
.build())
594598
.setResponseParser(
595599
ProtoMessageResponseParser.<Operation>newBuilder()

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/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
ApiGatewayServiceSettings apiGatewayServiceSettings =
3538
ApiGatewayServiceSettings.newBuilder()
3639
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/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
ApiGatewayServiceSettings apiGatewayServiceSettings =
3336
ApiGatewayServiceSettings.newBuilder()
3437
.setTransportChannelProvider(

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/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
ApiGatewayServiceSettings apiGatewayServiceSettings =
3437
ApiGatewayServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
3538
ApiGatewayServiceClient apiGatewayServiceClient =

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApi.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 asyncCreateApi() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3740
CreateApiRequest request =
3841
CreateApiRequest.newBuilder()

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApiLRO.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 asyncCreateApiLRO() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3740
CreateApiRequest request =
3841
CreateApiRequest.newBuilder()

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApi.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 syncCreateApi() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3538
CreateApiRequest request =
3639
CreateApiRequest.newBuilder()

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiLocationnameApiString.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 syncCreateApiLocationnameApiString() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3437
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
3538
Api api = Api.newBuilder().build();

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiStringApiString.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 syncCreateApiStringApiString() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3437
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
3538
Api api = Api.newBuilder().build();

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfig.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 asyncCreateApiConfig() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3740
CreateApiConfigRequest request =
3841
CreateApiConfigRequest.newBuilder()

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfigLRO.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 asyncCreateApiConfigLRO() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3740
CreateApiConfigRequest request =
3841
CreateApiConfigRequest.newBuilder()

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfig.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 syncCreateApiConfig() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3538
CreateApiConfigRequest request =
3639
CreateApiConfigRequest.newBuilder()

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.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 syncCreateApiConfigApinameApiconfigString() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3437
ApiName parent = ApiName.of("[PROJECT]", "[API]");
3538
ApiConfig apiConfig = ApiConfig.newBuilder().build();

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.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 syncCreateApiConfigStringApiconfigString() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3437
String parent = ApiName.of("[PROJECT]", "[API]").toString();
3538
ApiConfig apiConfig = ApiConfig.newBuilder().build();

java-api-gateway/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGateway.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 asyncCreateGateway() 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 (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) {
3740
CreateGatewayRequest request =
3841
CreateGatewayRequest.newBuilder()

0 commit comments

Comments
 (0)