Skip to content

Commit

Permalink
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…
Browse files Browse the repository at this point in the history
…ator_java versions (#41)

- [ ] 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
  • Loading branch information
gcf-owl-bot[bot] authored Sep 9, 2022
1 parent 38cb4f9 commit abf9ac7
Show file tree
Hide file tree
Showing 193 changed files with 1,891 additions and 795 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@
* <p>For example, to set the total timeout of getInstance to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ProvisioningSettings.Builder provisioningSettingsBuilder = ProvisioningSettings.newBuilder();
* provisioningSettingsBuilder
* .getInstanceSettings()
* .setRetrySettings(
* provisioningSettingsBuilder
* .getInstanceSettings()
* .getRetrySettings()
* .toBuilder()
* provisioningSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ProvisioningSettings provisioningSettings = provisioningSettingsBuilder.build();
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@
* <p>For example, to set the total timeout of getApi to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* RegistrySettings.Builder registrySettingsBuilder = RegistrySettings.newBuilder();
* registrySettingsBuilder
* .getApiSettings()
* .setRetrySettings(
* registrySettingsBuilder
* .getApiSettings()
* .getRetrySettings()
* .toBuilder()
* registrySettingsBuilder.getApiSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* RegistrySettings registrySettings = registrySettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
* <p>Sample for ProvisioningClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ProvisioningClient provisioningClient = ProvisioningClient.create()) {
* InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
* Instance response = provisioningClient.getInstance(name);
Expand All @@ -42,8 +45,11 @@
* <p>Sample for RegistryClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (RegistryClient registryClient = RegistryClient.create()) {
* ApiName name = ApiName.of("[PROJECT]", "[LOCATION]", "[API]");
* Api response = registryClient.getApi(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public class HttpJsonProvisioningStub extends ProvisioningStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("instance", request.getInstance()))
.toBody("instance", request.getInstance(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -286,7 +286,7 @@ public class HttpJsonProvisioningStub extends ProvisioningStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -375,7 +375,7 @@ public class HttpJsonProvisioningStub extends ProvisioningStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ public class HttpJsonRegistryStub extends RegistryStub {
return fields;
})
.setRequestBodyExtractor(
request -> ProtoRestSerializer.create().toBody("api", request.getApi()))
request ->
ProtoRestSerializer.create().toBody("api", request.getApi(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Api>newBuilder()
Expand Down Expand Up @@ -243,7 +244,8 @@ public class HttpJsonRegistryStub extends RegistryStub {
return fields;
})
.setRequestBodyExtractor(
request -> ProtoRestSerializer.create().toBody("api", request.getApi()))
request ->
ProtoRestSerializer.create().toBody("api", request.getApi(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Api>newBuilder()
Expand Down Expand Up @@ -383,7 +385,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("apiVersion", request.getApiVersion()))
.toBody("apiVersion", request.getApiVersion(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ApiVersion>newBuilder()
Expand Down Expand Up @@ -423,7 +425,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("apiVersion", request.getApiVersion()))
.toBody("apiVersion", request.getApiVersion(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ApiVersion>newBuilder()
Expand Down Expand Up @@ -594,7 +596,8 @@ public class HttpJsonRegistryStub extends RegistryStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("apiSpec", request.getApiSpec()))
ProtoRestSerializer.create()
.toBody("apiSpec", request.getApiSpec(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ApiSpec>newBuilder()
Expand Down Expand Up @@ -633,7 +636,8 @@ public class HttpJsonRegistryStub extends RegistryStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("apiSpec", request.getApiSpec()))
ProtoRestSerializer.create()
.toBody("apiSpec", request.getApiSpec(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ApiSpec>newBuilder()
Expand Down Expand Up @@ -703,7 +707,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ApiSpec>newBuilder()
Expand Down Expand Up @@ -776,7 +780,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ApiSpec>newBuilder()
Expand Down Expand Up @@ -916,7 +920,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("apiDeployment", request.getApiDeployment()))
.toBody("apiDeployment", request.getApiDeployment(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ApiDeployment>newBuilder()
Expand Down Expand Up @@ -956,7 +960,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("apiDeployment", request.getApiDeployment()))
.toBody("apiDeployment", request.getApiDeployment(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ApiDeployment>newBuilder()
Expand Down Expand Up @@ -1026,7 +1030,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ApiDeployment>newBuilder()
Expand Down Expand Up @@ -1100,7 +1104,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ApiDeployment>newBuilder()
Expand Down Expand Up @@ -1293,7 +1297,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("artifact", request.getArtifact()))
.toBody("artifact", request.getArtifact(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Artifact>newBuilder()
Expand Down Expand Up @@ -1335,7 +1339,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("artifact", request.getArtifact()))
.toBody("artifact", request.getArtifact(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Artifact>newBuilder()
Expand Down Expand Up @@ -1485,7 +1489,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -1574,7 +1578,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@
* <p>For example, to set the total timeout of getInstance to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ProvisioningStubSettings.Builder provisioningSettingsBuilder =
* ProvisioningStubSettings.newBuilder();
* provisioningSettingsBuilder
* .getInstanceSettings()
* .setRetrySettings(
* provisioningSettingsBuilder
* .getInstanceSettings()
* .getRetrySettings()
* .toBuilder()
* provisioningSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ProvisioningStubSettings provisioningSettings = provisioningSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,16 @@
* <p>For example, to set the total timeout of getApi to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* RegistryStubSettings.Builder registrySettingsBuilder = RegistryStubSettings.newBuilder();
* registrySettingsBuilder
* .getApiSettings()
* .setRetrySettings(
* registrySettingsBuilder
* .getApiSettings()
* .getRetrySettings()
* .toBuilder()
* registrySettingsBuilder.getApiSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* RegistryStubSettings registrySettings = registrySettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetCredentialsProvider() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
ProvisioningSettings provisioningSettings =
ProvisioningSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetCredentialsProvider1() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
ProvisioningSettings provisioningSettings =
ProvisioningSettings.newBuilder()
.setTransportChannelProvider(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetEndpoint() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
ProvisioningSettings provisioningSettings =
ProvisioningSettings.newBuilder().setEndpoint(myEndpoint).build();
ProvisioningClient provisioningClient = ProvisioningClient.create(provisioningSettings);
Expand Down
Loading

0 comments on commit abf9ac7

Please sign in to comment.