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

- [ ] 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 f04bfc6 commit 4d56fea
Show file tree
Hide file tree
Showing 84 changed files with 818 additions and 349 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@
* <p>For example, to set the total timeout of getTrigger 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
* EventarcSettings.Builder eventarcSettingsBuilder = EventarcSettings.newBuilder();
* eventarcSettingsBuilder
* .getTriggerSettings()
* .setRetrySettings(
* eventarcSettingsBuilder
* .getTriggerSettings()
* .getRetrySettings()
* .toBuilder()
* eventarcSettingsBuilder.getTriggerSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* EventarcSettings eventarcSettings = eventarcSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
* <p>Sample for EventarcClient:
*
* <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 (EventarcClient eventarcClient = EventarcClient.create()) {
* TriggerName name = TriggerName.of("[PROJECT]", "[LOCATION]", "[TRIGGER]");
* Trigger response = eventarcClient.getTrigger(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@
* <p>For example, to set the total timeout of getTrigger 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
* EventarcStubSettings.Builder eventarcSettingsBuilder = EventarcStubSettings.newBuilder();
* eventarcSettingsBuilder
* .getTriggerSettings()
* .setRetrySettings(
* eventarcSettingsBuilder
* .getTriggerSettings()
* .getRetrySettings()
* .toBuilder()
* eventarcSettingsBuilder.getTriggerSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* EventarcStubSettings eventarcSettings = eventarcSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ public class HttpJsonEventarcStub extends EventarcStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("trigger", request.getTrigger()))
ProtoRestSerializer.create()
.toBody("trigger", request.getTrigger(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -229,7 +230,8 @@ public class HttpJsonEventarcStub extends EventarcStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("trigger", request.getTrigger()))
ProtoRestSerializer.create()
.toBody("trigger", request.getTrigger(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -379,7 +381,8 @@ public class HttpJsonEventarcStub extends EventarcStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("channel", request.getChannel()))
ProtoRestSerializer.create()
.toBody("channel", request.getChannel(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -421,7 +424,8 @@ public class HttpJsonEventarcStub extends EventarcStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("channel", request.getChannel()))
ProtoRestSerializer.create()
.toBody("channel", request.getChannel(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -640,7 +644,8 @@ public class HttpJsonEventarcStub extends EventarcStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("channelConnection", request.getChannelConnection()))
.toBody(
"channelConnection", request.getChannelConnection(), 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
EventarcSettings eventarcSettings =
EventarcSettings.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
EventarcSettings eventarcSettings =
EventarcSettings.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
EventarcSettings eventarcSettings =
EventarcSettings.newBuilder().setEndpoint(myEndpoint).build();
EventarcClient eventarcClient = EventarcClient.create(eventarcSettings);
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 asyncCreateChannel() 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 (EventarcClient eventarcClient = EventarcClient.create()) {
CreateChannelRequest request =
CreateChannelRequest.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 asyncCreateChannelLRO() 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 (EventarcClient eventarcClient = EventarcClient.create()) {
CreateChannelRequest request =
CreateChannelRequest.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 syncCreateChannel() 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 (EventarcClient eventarcClient = EventarcClient.create()) {
CreateChannelRequest request =
CreateChannelRequest.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 syncCreateChannelLocationnameChannelString() 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 (EventarcClient eventarcClient = EventarcClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Channel channel = Channel.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 syncCreateChannelStringChannelString() 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 (EventarcClient eventarcClient = EventarcClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Channel channel = Channel.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 asyncCreateChannelConnection() 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 (EventarcClient eventarcClient = EventarcClient.create()) {
CreateChannelConnectionRequest request =
CreateChannelConnectionRequest.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 asyncCreateChannelConnectionLRO() 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 (EventarcClient eventarcClient = EventarcClient.create()) {
CreateChannelConnectionRequest request =
CreateChannelConnectionRequest.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 syncCreateChannelConnection() 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 (EventarcClient eventarcClient = EventarcClient.create()) {
CreateChannelConnectionRequest request =
CreateChannelConnectionRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.eventarc.v1.samples;

// [START
// eventarc_v1_generated_eventarcclient_createchannelconnection_locationnamechannelconnectionstring_sync]
// [START eventarc_v1_generated_eventarcclient_createchannelconnection_locationnamechannelconnectionstring_sync]
import com.google.cloud.eventarc.v1.ChannelConnection;
import com.google.cloud.eventarc.v1.EventarcClient;
import com.google.cloud.eventarc.v1.LocationName;
Expand All @@ -30,8 +29,11 @@ public static void main(String[] args) throws Exception {

public static void syncCreateChannelConnectionLocationnameChannelconnectionString()
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 (EventarcClient eventarcClient = EventarcClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
ChannelConnection channelConnection = ChannelConnection.newBuilder().build();
Expand All @@ -43,5 +45,4 @@ public static void syncCreateChannelConnectionLocationnameChannelconnectionStrin
}
}
}
// [END
// eventarc_v1_generated_eventarcclient_createchannelconnection_locationnamechannelconnectionstring_sync]
// [END eventarc_v1_generated_eventarcclient_createchannelconnection_locationnamechannelconnectionstring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.eventarc.v1.samples;

// [START
// eventarc_v1_generated_eventarcclient_createchannelconnection_stringchannelconnectionstring_sync]
// [START eventarc_v1_generated_eventarcclient_createchannelconnection_stringchannelconnectionstring_sync]
import com.google.cloud.eventarc.v1.ChannelConnection;
import com.google.cloud.eventarc.v1.EventarcClient;
import com.google.cloud.eventarc.v1.LocationName;
Expand All @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateChannelConnectionStringChannelconnectionString() 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 (EventarcClient eventarcClient = EventarcClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
ChannelConnection channelConnection = ChannelConnection.newBuilder().build();
Expand All @@ -42,5 +44,4 @@ public static void syncCreateChannelConnectionStringChannelconnectionString() th
}
}
}
// [END
// eventarc_v1_generated_eventarcclient_createchannelconnection_stringchannelconnectionstring_sync]
// [END eventarc_v1_generated_eventarcclient_createchannelconnection_stringchannelconnectionstring_sync]
Loading

0 comments on commit 4d56fea

Please sign in to comment.