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

- [ ] 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 21af4eb commit f0bdcc7
Show file tree
Hide file tree
Showing 120 changed files with 1,176 additions and 488 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@
* <p>For example, to set the total timeout of getBackupPlan 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
* BackupForGKESettings.Builder backupForGKESettingsBuilder = BackupForGKESettings.newBuilder();
* backupForGKESettingsBuilder
* .getBackupPlanSettings()
* .setRetrySettings(
* backupForGKESettingsBuilder
* .getBackupPlanSettings()
* .getRetrySettings()
* .toBuilder()
* backupForGKESettingsBuilder.getBackupPlanSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* BackupForGKESettings backupForGKESettings = backupForGKESettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
* <p>Sample for BackupForGKEClient:
*
* <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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
* BackupPlanName name = BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
* BackupPlan response = backupForGKEClient.getBackupPlan(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,17 @@
* <p>For example, to set the total timeout of getBackupPlan 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
* BackupForGKEStubSettings.Builder backupForGKESettingsBuilder =
* BackupForGKEStubSettings.newBuilder();
* backupForGKESettingsBuilder
* .getBackupPlanSettings()
* .setRetrySettings(
* backupForGKESettingsBuilder
* .getBackupPlanSettings()
* .getRetrySettings()
* .toBuilder()
* backupForGKESettingsBuilder.getBackupPlanSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* BackupForGKEStubSettings backupForGKESettings = backupForGKESettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public class HttpJsonBackupForGKEStub extends BackupForGKEStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("backupPlan", request.getBackupPlan()))
.toBody("backupPlan", request.getBackupPlan(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -245,7 +245,7 @@ public class HttpJsonBackupForGKEStub extends BackupForGKEStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("backupPlan", request.getBackupPlan()))
.toBody("backupPlan", request.getBackupPlan(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -321,7 +321,8 @@ public class HttpJsonBackupForGKEStub extends BackupForGKEStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("backup", request.getBackup()))
ProtoRestSerializer.create()
.toBody("backup", request.getBackup(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -430,7 +431,8 @@ public class HttpJsonBackupForGKEStub extends BackupForGKEStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("backup", request.getBackup()))
ProtoRestSerializer.create()
.toBody("backup", request.getBackup(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -579,7 +581,7 @@ public class HttpJsonBackupForGKEStub extends BackupForGKEStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("restorePlan", request.getRestorePlan()))
.toBody("restorePlan", request.getRestorePlan(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -690,7 +692,7 @@ public class HttpJsonBackupForGKEStub extends BackupForGKEStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("restorePlan", request.getRestorePlan()))
.toBody("restorePlan", request.getRestorePlan(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -767,7 +769,8 @@ public class HttpJsonBackupForGKEStub extends BackupForGKEStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("restore", request.getRestore()))
ProtoRestSerializer.create()
.toBody("restore", request.getRestore(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -876,7 +879,8 @@ public class HttpJsonBackupForGKEStub extends BackupForGKEStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("restore", request.getRestore()))
ProtoRestSerializer.create()
.toBody("restore", request.getRestore(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>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
BackupForGKESettings backupForGKESettings =
BackupForGKESettings.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
BackupForGKESettings backupForGKESettings =
BackupForGKESettings.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
BackupForGKESettings backupForGKESettings =
BackupForGKESettings.newBuilder().setEndpoint(myEndpoint).build();
BackupForGKEClient backupForGKEClient = BackupForGKEClient.create(backupForGKESettings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateBackup() 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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
CreateBackupRequest request =
CreateBackupRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateBackupLRO() 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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
CreateBackupRequest request =
CreateBackupRequest.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 syncCreateBackup() 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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
CreateBackupRequest request =
CreateBackupRequest.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 syncCreateBackupBackupplannameBackupString() 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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
BackupPlanName parent = BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
Backup backup = Backup.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 syncCreateBackupStringBackupString() 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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
String parent = BackupPlanName.of("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]").toString();
Backup backup = Backup.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateBackupPlan() 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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
CreateBackupPlanRequest request =
CreateBackupPlanRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateBackupPlanLRO() 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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
CreateBackupPlanRequest request =
CreateBackupPlanRequest.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 syncCreateBackupPlan() 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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
CreateBackupPlanRequest request =
CreateBackupPlanRequest.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 syncCreateBackupPlanLocationnameBackupplanString() 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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
BackupPlan backupPlan = BackupPlan.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 syncCreateBackupPlanStringBackupplanString() 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 (BackupForGKEClient backupForGKEClient = BackupForGKEClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
BackupPlan backupPlan = BackupPlan.newBuilder().build();
Expand Down
Loading

0 comments on commit f0bdcc7

Please sign in to comment.