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

- [ ] 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] committed Sep 9, 2022
1 parent ffefad0 commit 8f8ef93
Show file tree
Hide file tree
Showing 88 changed files with 853 additions and 347 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@
* <p>For example, to set the total timeout of createDeviceRegistry 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
* DeviceManagerSettings.Builder deviceManagerSettingsBuilder = DeviceManagerSettings.newBuilder();
* deviceManagerSettingsBuilder
* .createDeviceRegistrySettings()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
* <p>Sample for DeviceManagerClient:
*
* <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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@
* <p>For example, to set the total timeout of createDeviceRegistry 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
* DeviceManagerStubSettings.Builder deviceManagerSettingsBuilder =
* DeviceManagerStubSettings.newBuilder();
* deviceManagerSettingsBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("deviceRegistry", request.getDeviceRegistry()))
.toBody("deviceRegistry", request.getDeviceRegistry(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<DeviceRegistry>newBuilder()
Expand Down Expand Up @@ -183,7 +183,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("deviceRegistry", request.getDeviceRegistry()))
.toBody("deviceRegistry", request.getDeviceRegistry(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<DeviceRegistry>newBuilder()
Expand Down Expand Up @@ -288,7 +288,8 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("device", request.getDevice()))
ProtoRestSerializer.create()
.toBody("device", request.getDevice(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Device>newBuilder()
Expand Down Expand Up @@ -362,7 +363,8 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("device", request.getDevice()))
ProtoRestSerializer.create()
.toBody("device", request.getDevice(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Device>newBuilder()
Expand Down Expand Up @@ -477,7 +479,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<DeviceConfig>newBuilder()
Expand Down Expand Up @@ -590,7 +592,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -628,7 +630,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -666,7 +668,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down Expand Up @@ -704,7 +706,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<SendCommandToDeviceResponse>newBuilder()
Expand Down Expand Up @@ -742,7 +744,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<BindDeviceToGatewayResponse>newBuilder()
Expand Down Expand Up @@ -782,7 +784,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<UnbindDeviceFromGatewayResponse>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 asyncBindDeviceToGateway() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
BindDeviceToGatewayRequest request =
BindDeviceToGatewayRequest.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 syncBindDeviceToGateway() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
BindDeviceToGatewayRequest request =
BindDeviceToGatewayRequest.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 syncBindDeviceToGatewayRegistrynameStringString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
String gatewayId = "gatewayId-1354641793";
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 syncBindDeviceToGatewayStringStringString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
String gatewayId = "gatewayId-1354641793";
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
DeviceManagerSettings deviceManagerSettings =
DeviceManagerSettings.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
DeviceManagerSettings deviceManagerSettings =
DeviceManagerSettings.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
DeviceManagerSettings deviceManagerSettings =
DeviceManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
DeviceManagerClient deviceManagerClient = DeviceManagerClient.create(deviceManagerSettings);
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 asyncCreateDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
CreateDeviceRequest request =
CreateDeviceRequest.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 syncCreateDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
CreateDeviceRequest request =
CreateDeviceRequest.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 syncCreateDeviceRegistrynameDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
Device device = Device.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 syncCreateDeviceStringDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
Device device = Device.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 asyncCreateDeviceRegistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
CreateDeviceRegistryRequest request =
CreateDeviceRegistryRequest.newBuilder()
Expand Down
Loading

0 comments on commit 8f8ef93

Please sign in to comment.