Skip to content

Commit 4d56fea

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_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
1 parent f04bfc6 commit 4d56fea

File tree

84 files changed

+818
-349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+818
-349
lines changed

java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcClient.java

+390-156
Large diffs are not rendered by default.

java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcSettings.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@
5858
* <p>For example, to set the total timeout of getTrigger to 30 seconds:
5959
*
6060
* <pre>{@code
61-
* // This snippet has been automatically generated for illustrative purposes only.
62-
* // It may require modifications to work in your environment.
61+
* // This snippet has been automatically generated and should be regarded as a code template only.
62+
* // It will require modifications to work:
63+
* // - It may require correct/in-range values for request initialization.
64+
* // - It may require specifying regional endpoints when creating the service client as shown in
65+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6366
* EventarcSettings.Builder eventarcSettingsBuilder = EventarcSettings.newBuilder();
6467
* eventarcSettingsBuilder
6568
* .getTriggerSettings()
6669
* .setRetrySettings(
67-
* eventarcSettingsBuilder
68-
* .getTriggerSettings()
69-
* .getRetrySettings()
70-
* .toBuilder()
70+
* eventarcSettingsBuilder.getTriggerSettings().getRetrySettings().toBuilder()
7171
* .setTotalTimeout(Duration.ofSeconds(30))
7272
* .build());
7373
* EventarcSettings eventarcSettings = eventarcSettingsBuilder.build();

java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/package-info.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
* <p>Sample for EventarcClient:
2828
*
2929
* <pre>{@code
30-
* // This snippet has been automatically generated for illustrative purposes only.
31-
* // It may require modifications to work in your environment.
30+
* // This snippet has been automatically generated and should be regarded as a code template only.
31+
* // It will require modifications to work:
32+
* // - It may require correct/in-range values for request initialization.
33+
* // - It may require specifying regional endpoints when creating the service client as shown in
34+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3235
* try (EventarcClient eventarcClient = EventarcClient.create()) {
3336
* TriggerName name = TriggerName.of("[PROJECT]", "[LOCATION]", "[TRIGGER]");
3437
* Trigger response = eventarcClient.getTrigger(name);

java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@
103103
* <p>For example, to set the total timeout of getTrigger to 30 seconds:
104104
*
105105
* <pre>{@code
106-
* // This snippet has been automatically generated for illustrative purposes only.
107-
* // It may require modifications to work in your environment.
106+
* // This snippet has been automatically generated and should be regarded as a code template only.
107+
* // It will require modifications to work:
108+
* // - It may require correct/in-range values for request initialization.
109+
* // - It may require specifying regional endpoints when creating the service client as shown in
110+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
108111
* EventarcStubSettings.Builder eventarcSettingsBuilder = EventarcStubSettings.newBuilder();
109112
* eventarcSettingsBuilder
110113
* .getTriggerSettings()
111114
* .setRetrySettings(
112-
* eventarcSettingsBuilder
113-
* .getTriggerSettings()
114-
* .getRetrySettings()
115-
* .toBuilder()
115+
* eventarcSettingsBuilder.getTriggerSettings().getRetrySettings().toBuilder()
116116
* .setTotalTimeout(Duration.ofSeconds(30))
117117
* .build());
118118
* EventarcStubSettings eventarcSettings = eventarcSettingsBuilder.build();

java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/HttpJsonEventarcStub.java

+10-5
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ public class HttpJsonEventarcStub extends EventarcStub {
185185
})
186186
.setRequestBodyExtractor(
187187
request ->
188-
ProtoRestSerializer.create().toBody("trigger", request.getTrigger()))
188+
ProtoRestSerializer.create()
189+
.toBody("trigger", request.getTrigger(), false))
189190
.build())
190191
.setResponseParser(
191192
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -229,7 +230,8 @@ public class HttpJsonEventarcStub extends EventarcStub {
229230
})
230231
.setRequestBodyExtractor(
231232
request ->
232-
ProtoRestSerializer.create().toBody("trigger", request.getTrigger()))
233+
ProtoRestSerializer.create()
234+
.toBody("trigger", request.getTrigger(), false))
233235
.build())
234236
.setResponseParser(
235237
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -379,7 +381,8 @@ public class HttpJsonEventarcStub extends EventarcStub {
379381
})
380382
.setRequestBodyExtractor(
381383
request ->
382-
ProtoRestSerializer.create().toBody("channel", request.getChannel()))
384+
ProtoRestSerializer.create()
385+
.toBody("channel", request.getChannel(), false))
383386
.build())
384387
.setResponseParser(
385388
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -421,7 +424,8 @@ public class HttpJsonEventarcStub extends EventarcStub {
421424
})
422425
.setRequestBodyExtractor(
423426
request ->
424-
ProtoRestSerializer.create().toBody("channel", request.getChannel()))
427+
ProtoRestSerializer.create()
428+
.toBody("channel", request.getChannel(), false))
425429
.build())
426430
.setResponseParser(
427431
ProtoMessageResponseParser.<Operation>newBuilder()
@@ -640,7 +644,8 @@ public class HttpJsonEventarcStub extends EventarcStub {
640644
.setRequestBodyExtractor(
641645
request ->
642646
ProtoRestSerializer.create()
643-
.toBody("channelConnection", request.getChannelConnection()))
647+
.toBody(
648+
"channelConnection", request.getChannelConnection(), false))
644649
.build())
645650
.setResponseParser(
646651
ProtoMessageResponseParser.<Operation>newBuilder()

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/create/SyncCreateSetCredentialsProvider.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void syncCreateSetCredentialsProvider() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
EventarcSettings eventarcSettings =
3538
EventarcSettings.newBuilder()
3639
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/create/SyncCreateSetCredentialsProvider1.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
2727
}
2828

2929
public static void syncCreateSetCredentialsProvider1() throws Exception {
30-
// This snippet has been automatically generated for illustrative purposes only.
31-
// It may require modifications to work in your environment.
30+
// This snippet has been automatically generated and should be regarded as a code template only.
31+
// It will require modifications to work:
32+
// - It may require correct/in-range values for request initialization.
33+
// - It may require specifying regional endpoints when creating the service client as shown in
34+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3235
EventarcSettings eventarcSettings =
3336
EventarcSettings.newBuilder()
3437
.setTransportChannelProvider(

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/create/SyncCreateSetEndpoint.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncCreateSetEndpoint() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
EventarcSettings eventarcSettings =
3437
EventarcSettings.newBuilder().setEndpoint(myEndpoint).build();
3538
EventarcClient eventarcClient = EventarcClient.create(eventarcSettings);

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/createchannel/AsyncCreateChannel.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
3131
}
3232

3333
public static void asyncCreateChannel() throws Exception {
34-
// This snippet has been automatically generated for illustrative purposes only.
35-
// It may require modifications to work in your environment.
34+
// This snippet has been automatically generated and should be regarded as a code template only.
35+
// It will require modifications to work:
36+
// - It may require correct/in-range values for request initialization.
37+
// - It may require specifying regional endpoints when creating the service client as shown in
38+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3639
try (EventarcClient eventarcClient = EventarcClient.create()) {
3740
CreateChannelRequest request =
3841
CreateChannelRequest.newBuilder()

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/createchannel/AsyncCreateChannelLRO.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
3131
}
3232

3333
public static void asyncCreateChannelLRO() throws Exception {
34-
// This snippet has been automatically generated for illustrative purposes only.
35-
// It may require modifications to work in your environment.
34+
// This snippet has been automatically generated and should be regarded as a code template only.
35+
// It will require modifications to work:
36+
// - It may require correct/in-range values for request initialization.
37+
// - It may require specifying regional endpoints when creating the service client as shown in
38+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3639
try (EventarcClient eventarcClient = EventarcClient.create()) {
3740
CreateChannelRequest request =
3841
CreateChannelRequest.newBuilder()

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/createchannel/SyncCreateChannel.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void syncCreateChannel() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
try (EventarcClient eventarcClient = EventarcClient.create()) {
3538
CreateChannelRequest request =
3639
CreateChannelRequest.newBuilder()

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/createchannel/SyncCreateChannelLocationnameChannelString.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncCreateChannelLocationnameChannelString() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
try (EventarcClient eventarcClient = EventarcClient.create()) {
3437
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
3538
Channel channel = Channel.newBuilder().build();

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/createchannel/SyncCreateChannelStringChannelString.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncCreateChannelStringChannelString() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
try (EventarcClient eventarcClient = EventarcClient.create()) {
3437
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
3538
Channel channel = Channel.newBuilder().build();

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/createchannelconnection/AsyncCreateChannelConnection.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
3131
}
3232

3333
public static void asyncCreateChannelConnection() throws Exception {
34-
// This snippet has been automatically generated for illustrative purposes only.
35-
// It may require modifications to work in your environment.
34+
// This snippet has been automatically generated and should be regarded as a code template only.
35+
// It will require modifications to work:
36+
// - It may require correct/in-range values for request initialization.
37+
// - It may require specifying regional endpoints when creating the service client as shown in
38+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3639
try (EventarcClient eventarcClient = EventarcClient.create()) {
3740
CreateChannelConnectionRequest request =
3841
CreateChannelConnectionRequest.newBuilder()

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/createchannelconnection/AsyncCreateChannelConnectionLRO.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
3131
}
3232

3333
public static void asyncCreateChannelConnectionLRO() throws Exception {
34-
// This snippet has been automatically generated for illustrative purposes only.
35-
// It may require modifications to work in your environment.
34+
// This snippet has been automatically generated and should be regarded as a code template only.
35+
// It will require modifications to work:
36+
// - It may require correct/in-range values for request initialization.
37+
// - It may require specifying regional endpoints when creating the service client as shown in
38+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3639
try (EventarcClient eventarcClient = EventarcClient.create()) {
3740
CreateChannelConnectionRequest request =
3841
CreateChannelConnectionRequest.newBuilder()

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/createchannelconnection/SyncCreateChannelConnection.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void syncCreateChannelConnection() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
try (EventarcClient eventarcClient = EventarcClient.create()) {
3538
CreateChannelConnectionRequest request =
3639
CreateChannelConnectionRequest.newBuilder()

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/createchannelconnection/SyncCreateChannelConnectionLocationnameChannelconnectionString.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

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

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

3130
public static void syncCreateChannelConnectionLocationnameChannelconnectionString()
3231
throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3537
try (EventarcClient eventarcClient = EventarcClient.create()) {
3638
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
3739
ChannelConnection channelConnection = ChannelConnection.newBuilder().build();
@@ -43,5 +45,4 @@ public static void syncCreateChannelConnectionLocationnameChannelconnectionStrin
4345
}
4446
}
4547
}
46-
// [END
47-
// eventarc_v1_generated_eventarcclient_createchannelconnection_locationnamechannelconnectionstring_sync]
48+
// [END eventarc_v1_generated_eventarcclient_createchannelconnection_locationnamechannelconnectionstring_sync]

java-eventarc/samples/snippets/generated/com/google/cloud/eventarc/v1/eventarcclient/createchannelconnection/SyncCreateChannelConnectionStringChannelconnectionString.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

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

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

3130
public static void syncCreateChannelConnectionStringChannelconnectionString() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3436
try (EventarcClient eventarcClient = EventarcClient.create()) {
3537
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
3638
ChannelConnection channelConnection = ChannelConnection.newBuilder().build();
@@ -42,5 +44,4 @@ public static void syncCreateChannelConnectionStringChannelconnectionString() th
4244
}
4345
}
4446
}
45-
// [END
46-
// eventarc_v1_generated_eventarcclient_createchannelconnection_stringchannelconnectionstring_sync]
47+
// [END eventarc_v1_generated_eventarcclient_createchannelconnection_stringchannelconnectionstring_sync]

0 commit comments

Comments
 (0)