Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bf589af

Browse filesBrowse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#206)
- [ ] 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 7a44af2 commit bf589af
Copy full SHA for bf589af

18 files changed

+765-40Lines changed: 765 additions & 40 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayServiceClient.java‎

Copy file name to clipboardExpand all lines: java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayServiceClient.java
+65-26Lines changed: 65 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@
3737
* calls that map to API methods. Sample code to get started:
3838
*
3939
* <pre>{@code
40-
* // This snippet has been automatically generated for illustrative purposes only.
41-
* // It may require modifications to work in your environment.
40+
* // This snippet has been automatically generated and should be regarded as a code template only.
41+
* // It will require modifications to work:
42+
* // - It may require correct/in-range values for request initialization.
43+
* // - It may require specifying regional endpoints when creating the service client as shown in
44+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4245
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
4346
* HttpBody request =
4447
* HttpBody.newBuilder()
@@ -79,8 +82,11 @@
7982
* <p>To customize credentials:
8083
*
8184
* <pre>{@code
82-
* // This snippet has been automatically generated for illustrative purposes only.
83-
* // It may require modifications to work in your environment.
85+
* // This snippet has been automatically generated and should be regarded as a code template only.
86+
* // It will require modifications to work:
87+
* // - It may require correct/in-range values for request initialization.
88+
* // - It may require specifying regional endpoints when creating the service client as shown in
89+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8490
* GatewayServiceSettings gatewayServiceSettings =
8591
* GatewayServiceSettings.newBuilder()
8692
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -91,8 +97,11 @@
9197
* <p>To customize the endpoint:
9298
*
9399
* <pre>{@code
94-
* // This snippet has been automatically generated for illustrative purposes only.
95-
* // It may require modifications to work in your environment.
100+
* // This snippet has been automatically generated and should be regarded as a code template only.
101+
* // It will require modifications to work:
102+
* // - It may require correct/in-range values for request initialization.
103+
* // - It may require specifying regional endpoints when creating the service client as shown in
104+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
96105
* GatewayServiceSettings gatewayServiceSettings =
97106
* GatewayServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
98107
* GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create(gatewayServiceSettings);
@@ -158,8 +167,11 @@ public GatewayServiceStub getStub() {
158167
* <p>Sample code:
159168
*
160169
* <pre>{@code
161-
* // This snippet has been automatically generated for illustrative purposes only.
162-
* // It may require modifications to work in your environment.
170+
* // This snippet has been automatically generated and should be regarded as a code template only.
171+
* // It will require modifications to work:
172+
* // - It may require correct/in-range values for request initialization.
173+
* // - It may require specifying regional endpoints when creating the service client as shown in
174+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
163175
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
164176
* HttpBody request =
165177
* HttpBody.newBuilder()
@@ -185,8 +197,11 @@ public final HttpBody getResource(HttpBody request) {
185197
* <p>Sample code:
186198
*
187199
* <pre>{@code
188-
* // This snippet has been automatically generated for illustrative purposes only.
189-
* // It may require modifications to work in your environment.
200+
* // This snippet has been automatically generated and should be regarded as a code template only.
201+
* // It will require modifications to work:
202+
* // - It may require correct/in-range values for request initialization.
203+
* // - It may require specifying regional endpoints when creating the service client as shown in
204+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
190205
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
191206
* HttpBody request =
192207
* HttpBody.newBuilder()
@@ -211,8 +226,11 @@ public final UnaryCallable<HttpBody, HttpBody> getResourceCallable() {
211226
* <p>Sample code:
212227
*
213228
* <pre>{@code
214-
* // This snippet has been automatically generated for illustrative purposes only.
215-
* // It may require modifications to work in your environment.
229+
* // This snippet has been automatically generated and should be regarded as a code template only.
230+
* // It will require modifications to work:
231+
* // - It may require correct/in-range values for request initialization.
232+
* // - It may require specifying regional endpoints when creating the service client as shown in
233+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
216234
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
217235
* HttpBody request =
218236
* HttpBody.newBuilder()
@@ -238,8 +256,11 @@ public final HttpBody postResource(HttpBody request) {
238256
* <p>Sample code:
239257
*
240258
* <pre>{@code
241-
* // This snippet has been automatically generated for illustrative purposes only.
242-
* // It may require modifications to work in your environment.
259+
* // This snippet has been automatically generated and should be regarded as a code template only.
260+
* // It will require modifications to work:
261+
* // - It may require correct/in-range values for request initialization.
262+
* // - It may require specifying regional endpoints when creating the service client as shown in
263+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
243264
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
244265
* HttpBody request =
245266
* HttpBody.newBuilder()
@@ -264,8 +285,11 @@ public final UnaryCallable<HttpBody, HttpBody> postResourceCallable() {
264285
* <p>Sample code:
265286
*
266287
* <pre>{@code
267-
* // This snippet has been automatically generated for illustrative purposes only.
268-
* // It may require modifications to work in your environment.
288+
* // This snippet has been automatically generated and should be regarded as a code template only.
289+
* // It will require modifications to work:
290+
* // - It may require correct/in-range values for request initialization.
291+
* // - It may require specifying regional endpoints when creating the service client as shown in
292+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
269293
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
270294
* HttpBody request =
271295
* HttpBody.newBuilder()
@@ -291,8 +315,11 @@ public final HttpBody deleteResource(HttpBody request) {
291315
* <p>Sample code:
292316
*
293317
* <pre>{@code
294-
* // This snippet has been automatically generated for illustrative purposes only.
295-
* // It may require modifications to work in your environment.
318+
* // This snippet has been automatically generated and should be regarded as a code template only.
319+
* // It will require modifications to work:
320+
* // - It may require correct/in-range values for request initialization.
321+
* // - It may require specifying regional endpoints when creating the service client as shown in
322+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
296323
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
297324
* HttpBody request =
298325
* HttpBody.newBuilder()
@@ -318,8 +345,11 @@ public final UnaryCallable<HttpBody, HttpBody> deleteResourceCallable() {
318345
* <p>Sample code:
319346
*
320347
* <pre>{@code
321-
* // This snippet has been automatically generated for illustrative purposes only.
322-
* // It may require modifications to work in your environment.
348+
* // This snippet has been automatically generated and should be regarded as a code template only.
349+
* // It will require modifications to work:
350+
* // - It may require correct/in-range values for request initialization.
351+
* // - It may require specifying regional endpoints when creating the service client as shown in
352+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
323353
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
324354
* HttpBody request =
325355
* HttpBody.newBuilder()
@@ -345,8 +375,11 @@ public final HttpBody putResource(HttpBody request) {
345375
* <p>Sample code:
346376
*
347377
* <pre>{@code
348-
* // This snippet has been automatically generated for illustrative purposes only.
349-
* // It may require modifications to work in your environment.
378+
* // This snippet has been automatically generated and should be regarded as a code template only.
379+
* // It will require modifications to work:
380+
* // - It may require correct/in-range values for request initialization.
381+
* // - It may require specifying regional endpoints when creating the service client as shown in
382+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
350383
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
351384
* HttpBody request =
352385
* HttpBody.newBuilder()
@@ -371,8 +404,11 @@ public final UnaryCallable<HttpBody, HttpBody> putResourceCallable() {
371404
* <p>Sample code:
372405
*
373406
* <pre>{@code
374-
* // This snippet has been automatically generated for illustrative purposes only.
375-
* // It may require modifications to work in your environment.
407+
* // This snippet has been automatically generated and should be regarded as a code template only.
408+
* // It will require modifications to work:
409+
* // - It may require correct/in-range values for request initialization.
410+
* // - It may require specifying regional endpoints when creating the service client as shown in
411+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
376412
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
377413
* HttpBody request =
378414
* HttpBody.newBuilder()
@@ -398,8 +434,11 @@ public final HttpBody patchResource(HttpBody request) {
398434
* <p>Sample code:
399435
*
400436
* <pre>{@code
401-
* // This snippet has been automatically generated for illustrative purposes only.
402-
* // It may require modifications to work in your environment.
437+
* // This snippet has been automatically generated and should be regarded as a code template only.
438+
* // It will require modifications to work:
439+
* // - It may require correct/in-range values for request initialization.
440+
* // - It may require specifying regional endpoints when creating the service client as shown in
441+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
403442
* try (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
404443
* HttpBody request =
405444
* HttpBody.newBuilder()
Collapse file

‎java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayServiceSettings.java‎

Copy file name to clipboardExpand all lines: java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayServiceSettings.java
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@
5151
* <p>For example, to set the total timeout of getResource 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
* GatewayServiceSettings.Builder gatewayServiceSettingsBuilder =
5760
* GatewayServiceSettings.newBuilder();
5861
* gatewayServiceSettingsBuilder
5962
* .getResourceSettings()
6063
* .setRetrySettings(
61-
* gatewayServiceSettingsBuilder
62-
* .getResourceSettings()
63-
* .getRetrySettings()
64-
* .toBuilder()
64+
* gatewayServiceSettingsBuilder.getResourceSettings().getRetrySettings().toBuilder()
6565
* .setTotalTimeout(Duration.ofSeconds(30))
6666
* .build());
6767
* GatewayServiceSettings gatewayServiceSettings = gatewayServiceSettingsBuilder.build();
Collapse file

‎java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/package-info.java‎

Copy file name to clipboardExpand all lines: java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/package-info.java
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
* <p>Sample for GatewayServiceClient:
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 (GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create()) {
3336
* HttpBody request =
3437
* HttpBody.newBuilder()
Collapse file

‎java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayServiceStubSettings.java‎

Copy file name to clipboardExpand all lines: java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayServiceStubSettings.java
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@
5959
* <p>For example, to set the total timeout of getResource to 30 seconds:
6060
*
6161
* <pre>{@code
62-
* // This snippet has been automatically generated for illustrative purposes only.
63-
* // It may require modifications to work in your environment.
62+
* // This snippet has been automatically generated and should be regarded as a code template only.
63+
* // It will require modifications to work:
64+
* // - It may require correct/in-range values for request initialization.
65+
* // - It may require specifying regional endpoints when creating the service client as shown in
66+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6467
* GatewayServiceStubSettings.Builder gatewayServiceSettingsBuilder =
6568
* GatewayServiceStubSettings.newBuilder();
6669
* gatewayServiceSettingsBuilder
6770
* .getResourceSettings()
6871
* .setRetrySettings(
69-
* gatewayServiceSettingsBuilder
70-
* .getResourceSettings()
71-
* .getRetrySettings()
72-
* .toBuilder()
72+
* gatewayServiceSettingsBuilder.getResourceSettings().getRetrySettings().toBuilder()
7373
* .setTotalTimeout(Duration.ofSeconds(30))
7474
* .build());
7575
* GatewayServiceStubSettings gatewayServiceSettings = gatewayServiceSettingsBuilder.build();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.gkeconnect.gateway.v1beta1.samples;
18+
19+
// [START gateway_v1beta1_generated_gatewayserviceclient_create_setcredentialsprovider_sync]
20+
import com.google.api.gax.core.FixedCredentialsProvider;
21+
import com.google.cloud.gkeconnect.gateway.v1beta1.GatewayServiceClient;
22+
import com.google.cloud.gkeconnect.gateway.v1beta1.GatewayServiceSettings;
23+
import com.google.cloud.gkeconnect.gateway.v1beta1.myCredentials;
24+
25+
public class SyncCreateSetCredentialsProvider {
26+
27+
public static void main(String[] args) throws Exception {
28+
syncCreateSetCredentialsProvider();
29+
}
30+
31+
public static void syncCreateSetCredentialsProvider() throws Exception {
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
37+
GatewayServiceSettings gatewayServiceSettings =
38+
GatewayServiceSettings.newBuilder()
39+
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
40+
.build();
41+
GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create(gatewayServiceSettings);
42+
}
43+
}
44+
// [END gateway_v1beta1_generated_gatewayserviceclient_create_setcredentialsprovider_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.gkeconnect.gateway.v1beta1.samples;
18+
19+
// [START gateway_v1beta1_generated_gatewayserviceclient_create_setendpoint_sync]
20+
import com.google.cloud.gkeconnect.gateway.v1beta1.GatewayServiceClient;
21+
import com.google.cloud.gkeconnect.gateway.v1beta1.GatewayServiceSettings;
22+
import com.google.cloud.gkeconnect.gateway.v1beta1.myEndpoint;
23+
24+
public class SyncCreateSetEndpoint {
25+
26+
public static void main(String[] args) throws Exception {
27+
syncCreateSetEndpoint();
28+
}
29+
30+
public static void syncCreateSetEndpoint() throws Exception {
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
36+
GatewayServiceSettings gatewayServiceSettings =
37+
GatewayServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
38+
GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create(gatewayServiceSettings);
39+
}
40+
}
41+
// [END gateway_v1beta1_generated_gatewayserviceclient_create_setendpoint_sync]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.