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 (#263)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: googleapis/googleapis-gen@230a558
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 9, 2022
1 parent da0f3b1 commit 7a98618
Show file tree
Hide file tree
Showing 46 changed files with 428 additions and 188 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@
* <p>For example, to set the total timeout of getAuthorization 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
* GSuiteAddOnsSettings.Builder gSuiteAddOnsSettingsBuilder = GSuiteAddOnsSettings.newBuilder();
* gSuiteAddOnsSettingsBuilder
* .getAuthorizationSettings()
* .setRetrySettings(
* gSuiteAddOnsSettingsBuilder
* .getAuthorizationSettings()
* .getRetrySettings()
* .toBuilder()
* gSuiteAddOnsSettingsBuilder.getAuthorizationSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* GSuiteAddOnsSettings gSuiteAddOnsSettings = gSuiteAddOnsSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@
* <p>Sample for GSuiteAddOnsClient:
*
* <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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
* AuthorizationName name = AuthorizationName.of("[PROJECT]");
* Authorization response = gSuiteAddOnsClient.getAuthorization(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@
* <p>For example, to set the total timeout of getAuthorization 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
* GSuiteAddOnsStubSettings.Builder gSuiteAddOnsSettingsBuilder =
* GSuiteAddOnsStubSettings.newBuilder();
* gSuiteAddOnsSettingsBuilder
* .getAuthorizationSettings()
* .setRetrySettings(
* gSuiteAddOnsSettingsBuilder
* .getAuthorizationSettings()
* .getRetrySettings()
* .toBuilder()
* gSuiteAddOnsSettingsBuilder.getAuthorizationSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* GSuiteAddOnsStubSettings gSuiteAddOnsSettings = gSuiteAddOnsSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public class HttpJsonGSuiteAddOnsStub extends GSuiteAddOnsStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("deployment", request.getDeployment()))
.toBody("deployment", request.getDeployment(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Deployment>newBuilder()
Expand Down Expand Up @@ -163,7 +163,7 @@ public class HttpJsonGSuiteAddOnsStub extends GSuiteAddOnsStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("deployment", request.getDeployment()))
.toBody("deployment", request.getDeployment(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Deployment>newBuilder()
Expand Down Expand Up @@ -301,7 +301,7 @@ public class HttpJsonGSuiteAddOnsStub extends GSuiteAddOnsStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Empty>newBuilder()
Expand Down Expand Up @@ -337,7 +337,7 @@ public class HttpJsonGSuiteAddOnsStub extends GSuiteAddOnsStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Empty>newBuilder()
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
GSuiteAddOnsSettings gSuiteAddOnsSettings =
GSuiteAddOnsSettings.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
GSuiteAddOnsSettings gSuiteAddOnsSettings =
GSuiteAddOnsSettings.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
GSuiteAddOnsSettings gSuiteAddOnsSettings =
GSuiteAddOnsSettings.newBuilder().setEndpoint(myEndpoint).build();
GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create(gSuiteAddOnsSettings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateDeployment() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
CreateDeploymentRequest request =
CreateDeploymentRequest.newBuilder()
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 syncCreateDeployment() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
CreateDeploymentRequest request =
CreateDeploymentRequest.newBuilder()
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 syncCreateDeploymentProjectnameDeploymentString() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
ProjectName parent = ProjectName.of("[PROJECT]");
Deployment deployment = Deployment.newBuilder().build();
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 syncCreateDeploymentStringDeploymentString() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
String parent = ProjectName.of("[PROJECT]").toString();
Deployment deployment = Deployment.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncDeleteDeployment() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
DeleteDeploymentRequest request =
DeleteDeploymentRequest.newBuilder()
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 syncDeleteDeployment() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
DeleteDeploymentRequest request =
DeleteDeploymentRequest.newBuilder()
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 syncDeleteDeploymentDeploymentname() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
DeploymentName name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]");
gSuiteAddOnsClient.deleteDeployment(name);
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 syncDeleteDeploymentString() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
String name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]").toString();
gSuiteAddOnsClient.deleteDeployment(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncGetAuthorization() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
GetAuthorizationRequest request =
GetAuthorizationRequest.newBuilder()
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 syncGetAuthorization() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
GetAuthorizationRequest request =
GetAuthorizationRequest.newBuilder()
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 syncGetAuthorizationAuthorizationname() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
AuthorizationName name = AuthorizationName.of("[PROJECT]");
Authorization response = gSuiteAddOnsClient.getAuthorization(name);
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 syncGetAuthorizationString() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
String name = AuthorizationName.of("[PROJECT]").toString();
Authorization response = gSuiteAddOnsClient.getAuthorization(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncGetDeployment() 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
try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
GetDeploymentRequest request =
GetDeploymentRequest.newBuilder()
Expand Down
Loading

0 comments on commit 7a98618

Please sign in to comment.