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

- [ ] 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 ad2bec8 commit d18aaa9
Show file tree
Hide file tree
Showing 211 changed files with 2,109 additions and 865 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@
* <p>For example, to set the total timeout of getSource 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
* VmMigrationSettings.Builder vmMigrationSettingsBuilder = VmMigrationSettings.newBuilder();
* vmMigrationSettingsBuilder
* .getSourceSettings()
* .setRetrySettings(
* vmMigrationSettingsBuilder
* .getSourceSettings()
* .getRetrySettings()
* .toBuilder()
* vmMigrationSettingsBuilder.getSourceSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* VmMigrationSettings vmMigrationSettings = vmMigrationSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
* <p>Sample for VmMigrationClient:
*
* <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 (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
* SourceName name = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
* Source response = vmMigrationClient.getSource(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("source", request.getSource()))
ProtoRestSerializer.create()
.toBody("source", request.getSource(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -292,7 +293,8 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("source", request.getSource()))
ProtoRestSerializer.create()
.toBody("source", request.getSource(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -480,7 +482,8 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("utilizationReport", request.getUtilizationReport()))
.toBody(
"utilizationReport", request.getUtilizationReport(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -634,7 +637,10 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("datacenterConnector", request.getDatacenterConnector()))
.toBody(
"datacenterConnector",
request.getDatacenterConnector(),
false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -713,7 +719,9 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
request ->
ProtoRestSerializer.create()
.toBody(
"*", request.toBuilder().clearDatacenterConnector().build()))
"*",
request.toBuilder().clearDatacenterConnector().build(),
false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -755,7 +763,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("migratingVm", request.getMigratingVm()))
.toBody("migratingVm", request.getMigratingVm(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -869,7 +877,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("migratingVm", request.getMigratingVm()))
.toBody("migratingVm", request.getMigratingVm(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -945,7 +953,8 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearMigratingVm().build()))
.toBody(
"*", request.toBuilder().clearMigratingVm().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -985,7 +994,8 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearMigratingVm().build()))
.toBody(
"*", request.toBuilder().clearMigratingVm().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1025,7 +1035,8 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearMigratingVm().build()))
.toBody(
"*", request.toBuilder().clearMigratingVm().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1065,7 +1076,8 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearMigratingVm().build()))
.toBody(
"*", request.toBuilder().clearMigratingVm().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1106,7 +1118,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("cloneJob", request.getCloneJob()))
.toBody("cloneJob", request.getCloneJob(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1145,7 +1157,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1257,7 +1269,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("cutoverJob", request.getCutoverJob()))
.toBody("cutoverJob", request.getCutoverJob(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1296,7 +1308,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1475,7 +1487,8 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("group", request.getGroup()))
ProtoRestSerializer.create()
.toBody("group", request.getGroup(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1516,7 +1529,8 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("group", request.getGroup()))
ProtoRestSerializer.create()
.toBody("group", request.getGroup(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1592,7 +1606,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearGroup().build()))
.toBody("*", request.toBuilder().clearGroup().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1631,7 +1645,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearGroup().build()))
.toBody("*", request.toBuilder().clearGroup().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1743,7 +1757,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("targetProject", request.getTargetProject()))
.toBody("targetProject", request.getTargetProject(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1785,7 +1799,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("targetProject", request.getTargetProject()))
.toBody("targetProject", request.getTargetProject(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,17 @@
* <p>For example, to set the total timeout of getSource 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
* VmMigrationStubSettings.Builder vmMigrationSettingsBuilder =
* VmMigrationStubSettings.newBuilder();
* vmMigrationSettingsBuilder
* .getSourceSettings()
* .setRetrySettings(
* vmMigrationSettingsBuilder
* .getSourceSettings()
* .getRetrySettings()
* .toBuilder()
* vmMigrationSettingsBuilder.getSourceSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* VmMigrationStubSettings vmMigrationSettings = vmMigrationSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
}

public static void syncGetSource() 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
VmMigrationStubSettings.Builder vmMigrationSettingsBuilder =
VmMigrationStubSettings.newBuilder();
vmMigrationSettingsBuilder
.getSourceSettings()
.setRetrySettings(
vmMigrationSettingsBuilder
.getSourceSettings()
.getRetrySettings()
.toBuilder()
vmMigrationSettingsBuilder.getSourceSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
VmMigrationStubSettings vmMigrationSettings = vmMigrationSettingsBuilder.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 asyncAddGroupMigration() 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 (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
AddGroupMigrationRequest request =
AddGroupMigrationRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncAddGroupMigrationLRO() 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 (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
AddGroupMigrationRequest request =
AddGroupMigrationRequest.newBuilder()
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 syncAddGroupMigration() 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 (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
AddGroupMigrationRequest request =
AddGroupMigrationRequest.newBuilder()
Expand Down
Loading

0 comments on commit d18aaa9

Please sign in to comment.