Skip to content

Commit 42c4e62

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#207)
- [ ] 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 6c9b881 commit 42c4e62

File tree

23 files changed

+184
-88
lines changed

23 files changed

+184
-88
lines changed

java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java

Lines changed: 45 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@
4040
* calls that map to API methods. Sample code to get started:
4141
*
4242
* <pre>{@code
43-
* // This snippet has been automatically generated for illustrative purposes only.
44-
* // It may require modifications to work in your environment.
43+
* // This snippet has been automatically generated and should be regarded as a code template only.
44+
* // It will require modifications to work:
45+
* // - It may require correct/in-range values for request initialization.
46+
* // - It may require specifying regional endpoints when creating the service client as shown in
47+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4548
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
4649
* EndpointName parent = EndpointName.of("[PROJECT]", "[ENDPOINT]");
4750
* for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
@@ -80,8 +83,11 @@
8083
* <p>To customize credentials:
8184
*
8285
* <pre>{@code
83-
* // This snippet has been automatically generated for illustrative purposes only.
84-
* // It may require modifications to work in your environment.
86+
* // This snippet has been automatically generated and should be regarded as a code template only.
87+
* // It will require modifications to work:
88+
* // - It may require correct/in-range values for request initialization.
89+
* // - It may require specifying regional endpoints when creating the service client as shown in
90+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8591
* ConnectionServiceSettings connectionServiceSettings =
8692
* ConnectionServiceSettings.newBuilder()
8793
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,8 +99,11 @@
9399
* <p>To customize the endpoint:
94100
*
95101
* <pre>{@code
96-
* // This snippet has been automatically generated for illustrative purposes only.
97-
* // It may require modifications to work in your environment.
102+
* // This snippet has been automatically generated and should be regarded as a code template only.
103+
* // It will require modifications to work:
104+
* // - It may require correct/in-range values for request initialization.
105+
* // - It may require specifying regional endpoints when creating the service client as shown in
106+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
98107
* ConnectionServiceSettings connectionServiceSettings =
99108
* ConnectionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
100109
* ConnectionServiceClient connectionServiceClient =
@@ -105,8 +114,11 @@
105114
* the wire:
106115
*
107116
* <pre>{@code
108-
* // This snippet has been automatically generated for illustrative purposes only.
109-
* // It may require modifications to work in your environment.
117+
* // This snippet has been automatically generated and should be regarded as a code template only.
118+
* // It will require modifications to work:
119+
* // - It may require correct/in-range values for request initialization.
120+
* // - It may require specifying regional endpoints when creating the service client as shown in
121+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
110122
* ConnectionServiceSettings connectionServiceSettings =
111123
* ConnectionServiceSettings.newBuilder()
112124
* .setTransportChannelProvider(
@@ -175,8 +187,11 @@ public ConnectionServiceStub getStub() {
175187
* <p>Sample code:
176188
*
177189
* <pre>{@code
178-
* // This snippet has been automatically generated for illustrative purposes only.
179-
* // It may require modifications to work in your environment.
190+
* // This snippet has been automatically generated and should be regarded as a code template only.
191+
* // It will require modifications to work:
192+
* // - It may require correct/in-range values for request initialization.
193+
* // - It may require specifying regional endpoints when creating the service client as shown in
194+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
180195
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
181196
* EndpointName parent = EndpointName.of("[PROJECT]", "[ENDPOINT]");
182197
* for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
@@ -204,8 +219,11 @@ public final ListConnectionsPagedResponse listConnections(EndpointName parent) {
204219
* <p>Sample code:
205220
*
206221
* <pre>{@code
207-
* // This snippet has been automatically generated for illustrative purposes only.
208-
* // It may require modifications to work in your environment.
222+
* // This snippet has been automatically generated and should be regarded as a code template only.
223+
* // It will require modifications to work:
224+
* // - It may require correct/in-range values for request initialization.
225+
* // - It may require specifying regional endpoints when creating the service client as shown in
226+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
209227
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
210228
* String parent = EndpointName.of("[PROJECT]", "[ENDPOINT]").toString();
211229
* for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
@@ -230,8 +248,11 @@ public final ListConnectionsPagedResponse listConnections(String parent) {
230248
* <p>Sample code:
231249
*
232250
* <pre>{@code
233-
* // This snippet has been automatically generated for illustrative purposes only.
234-
* // It may require modifications to work in your environment.
251+
* // This snippet has been automatically generated and should be regarded as a code template only.
252+
* // It will require modifications to work:
253+
* // - It may require correct/in-range values for request initialization.
254+
* // - It may require specifying regional endpoints when creating the service client as shown in
255+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
235256
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
236257
* ListConnectionsRequest request =
237258
* ListConnectionsRequest.newBuilder()
@@ -259,8 +280,11 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest
259280
* <p>Sample code:
260281
*
261282
* <pre>{@code
262-
* // This snippet has been automatically generated for illustrative purposes only.
263-
* // It may require modifications to work in your environment.
283+
* // This snippet has been automatically generated and should be regarded as a code template only.
284+
* // It will require modifications to work:
285+
* // - It may require correct/in-range values for request initialization.
286+
* // - It may require specifying regional endpoints when creating the service client as shown in
287+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
264288
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
265289
* ListConnectionsRequest request =
266290
* ListConnectionsRequest.newBuilder()
@@ -289,8 +313,11 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest
289313
* <p>Sample code:
290314
*
291315
* <pre>{@code
292-
* // This snippet has been automatically generated for illustrative purposes only.
293-
* // It may require modifications to work in your environment.
316+
* // This snippet has been automatically generated and should be regarded as a code template only.
317+
* // It will require modifications to work:
318+
* // - It may require correct/in-range values for request initialization.
319+
* // - It may require specifying regional endpoints when creating the service client as shown in
320+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
294321
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
295322
* ListConnectionsRequest request =
296323
* ListConnectionsRequest.newBuilder()

java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@
5353
* <p>For example, to set the total timeout of listConnections to 30 seconds:
5454
*
5555
* <pre>{@code
56-
* // This snippet has been automatically generated for illustrative purposes only.
57-
* // It may require modifications to work in your environment.
56+
* // This snippet has been automatically generated and should be regarded as a code template only.
57+
* // It will require modifications to work:
58+
* // - It may require correct/in-range values for request initialization.
59+
* // - It may require specifying regional endpoints when creating the service client as shown in
60+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5861
* ConnectionServiceSettings.Builder connectionServiceSettingsBuilder =
5962
* ConnectionServiceSettings.newBuilder();
6063
* connectionServiceSettingsBuilder

java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@
3434
* calls that map to API methods. Sample code to get started:
3535
*
3636
* <pre>{@code
37-
* // This snippet has been automatically generated for illustrative purposes only.
38-
* // It may require modifications to work in your environment.
37+
* // This snippet has been automatically generated and should be regarded as a code template only.
38+
* // It will require modifications to work:
39+
* // - It may require correct/in-range values for request initialization.
40+
* // - It may require specifying regional endpoints when creating the service client as shown in
41+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3942
* try (TetherClient tetherClient = TetherClient.create()) {
4043
* BidiStream<EgressResponse, EgressRequest> bidiStream = tetherClient.egressCallable().call();
4144
* EgressResponse request =
@@ -84,8 +87,11 @@
8487
* <p>To customize credentials:
8588
*
8689
* <pre>{@code
87-
* // This snippet has been automatically generated for illustrative purposes only.
88-
* // It may require modifications to work in your environment.
90+
* // This snippet has been automatically generated and should be regarded as a code template only.
91+
* // It will require modifications to work:
92+
* // - It may require correct/in-range values for request initialization.
93+
* // - It may require specifying regional endpoints when creating the service client as shown in
94+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8995
* TetherSettings tetherSettings =
9096
* TetherSettings.newBuilder()
9197
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,8 +102,11 @@
96102
* <p>To customize the endpoint:
97103
*
98104
* <pre>{@code
99-
* // This snippet has been automatically generated for illustrative purposes only.
100-
* // It may require modifications to work in your environment.
105+
* // This snippet has been automatically generated and should be regarded as a code template only.
106+
* // It will require modifications to work:
107+
* // - It may require correct/in-range values for request initialization.
108+
* // - It may require specifying regional endpoints when creating the service client as shown in
109+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
101110
* TetherSettings tetherSettings = TetherSettings.newBuilder().setEndpoint(myEndpoint).build();
102111
* TetherClient tetherClient = TetherClient.create(tetherSettings);
103112
* }</pre>
@@ -106,8 +115,11 @@
106115
* the wire:
107116
*
108117
* <pre>{@code
109-
* // This snippet has been automatically generated for illustrative purposes only.
110-
* // It may require modifications to work in your environment.
118+
* // This snippet has been automatically generated and should be regarded as a code template only.
119+
* // It will require modifications to work:
120+
* // - It may require correct/in-range values for request initialization.
121+
* // - It may require specifying regional endpoints when creating the service client as shown in
122+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
111123
* TetherSettings tetherSettings =
112124
* TetherSettings.newBuilder()
113125
* .setTransportChannelProvider(
@@ -177,8 +189,11 @@ public TetherStub getStub() {
177189
* <p>Sample code:
178190
*
179191
* <pre>{@code
180-
* // This snippet has been automatically generated for illustrative purposes only.
181-
* // It may require modifications to work in your environment.
192+
* // This snippet has been automatically generated and should be regarded as a code template only.
193+
* // It will require modifications to work:
194+
* // - It may require correct/in-range values for request initialization.
195+
* // - It may require specifying regional endpoints when creating the service client as shown in
196+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
182197
* try (TetherClient tetherClient = TetherClient.create()) {
183198
* BidiStream<EgressResponse, EgressRequest> bidiStream = tetherClient.egressCallable().call();
184199
* EgressResponse request =

java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@
5151
* <p>For example, to set the total timeout of egress to 30 seconds:
5252
*
5353
* <pre>{@code
54-
* // This snippet has been automatically generated for illustrative purposes only.
55-
* // It may require modifications to work in your environment.
54+
* // This snippet has been automatically generated and should be regarded as a code template only.
55+
* // It will require modifications to work:
56+
* // - It may require correct/in-range values for request initialization.
57+
* // - It may require specifying regional endpoints when creating the service client as shown in
58+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5659
* TetherSettings.Builder tetherSettingsBuilder = TetherSettings.newBuilder();
5760
* tetherSettingsBuilder
5861
* .egressSettings()
5962
* .setRetrySettings(
60-
* tetherSettingsBuilder
61-
* .egressSettings()
62-
* .getRetrySettings()
63-
* .toBuilder()
63+
* tetherSettingsBuilder.egressSettings().getRetrySettings().toBuilder()
6464
* .setTotalTimeout(Duration.ofSeconds(30))
6565
* .build());
6666
* TetherSettings tetherSettings = tetherSettingsBuilder.build();

java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
* <p>Sample for ConnectionServiceClient:
2525
*
2626
* <pre>{@code
27-
* // This snippet has been automatically generated for illustrative purposes only.
28-
* // It may require modifications to work in your environment.
27+
* // This snippet has been automatically generated and should be regarded as a code template only.
28+
* // It will require modifications to work:
29+
* // - It may require correct/in-range values for request initialization.
30+
* // - It may require specifying regional endpoints when creating the service client as shown in
31+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2932
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
3033
* EndpointName parent = EndpointName.of("[PROJECT]", "[ENDPOINT]");
3134
* for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
@@ -43,8 +46,11 @@
4346
* <p>Sample for TetherClient:
4447
*
4548
* <pre>{@code
46-
* // This snippet has been automatically generated for illustrative purposes only.
47-
* // It may require modifications to work in your environment.
49+
* // This snippet has been automatically generated and should be regarded as a code template only.
50+
* // It will require modifications to work:
51+
* // - It may require correct/in-range values for request initialization.
52+
* // - It may require specifying regional endpoints when creating the service client as shown in
53+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4854
* try (TetherClient tetherClient = TetherClient.create()) {
4955
* BidiStream<EgressResponse, EgressRequest> bidiStream = tetherClient.egressCallable().call();
5056
* EgressResponse request =

java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@
7373
* <p>For example, to set the total timeout of listConnections to 30 seconds:
7474
*
7575
* <pre>{@code
76-
* // This snippet has been automatically generated for illustrative purposes only.
77-
* // It may require modifications to work in your environment.
76+
* // This snippet has been automatically generated and should be regarded as a code template only.
77+
* // It will require modifications to work:
78+
* // - It may require correct/in-range values for request initialization.
79+
* // - It may require specifying regional endpoints when creating the service client as shown in
80+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7881
* ConnectionServiceStubSettings.Builder connectionServiceSettingsBuilder =
7982
* ConnectionServiceStubSettings.newBuilder();
8083
* connectionServiceSettingsBuilder

java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@
6363
* <p>For example, to set the total timeout of egress to 30 seconds:
6464
*
6565
* <pre>{@code
66-
* // This snippet has been automatically generated for illustrative purposes only.
67-
* // It may require modifications to work in your environment.
66+
* // This snippet has been automatically generated and should be regarded as a code template only.
67+
* // It will require modifications to work:
68+
* // - It may require correct/in-range values for request initialization.
69+
* // - It may require specifying regional endpoints when creating the service client as shown in
70+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6871
* TetherStubSettings.Builder tetherSettingsBuilder = TetherStubSettings.newBuilder();
6972
* tetherSettingsBuilder
7073
* .egressSettings()
7174
* .setRetrySettings(
72-
* tetherSettingsBuilder
73-
* .egressSettings()
74-
* .getRetrySettings()
75-
* .toBuilder()
75+
* tetherSettingsBuilder.egressSettings().getRetrySettings().toBuilder()
7676
* .setTotalTimeout(Duration.ofSeconds(30))
7777
* .build());
7878
* TetherStubSettings tetherSettings = tetherSettingsBuilder.build();

java-apigee-connect/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider.java

Lines changed: 5 additions & 2 deletions
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
ConnectionServiceSettings connectionServiceSettings =
3538
ConnectionServiceSettings.newBuilder()
3639
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))

java-apigee-connect/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider1.java

Lines changed: 5 additions & 2 deletions
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
ConnectionServiceSettings connectionServiceSettings =
3336
ConnectionServiceSettings.newBuilder()
3437
.setTransportChannelProvider(

0 commit comments

Comments
 (0)