Skip to content

Commit 46cd62b

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#134)
- [ ] 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 35c7b50 commit 46cd62b

29 files changed

+255
-117
lines changed

java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSClient.java

Lines changed: 115 additions & 46 deletions
Large diffs are not rendered by default.

java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@
5656
* <p>For example, to set the total timeout of getEndpoint to 30 seconds:
5757
*
5858
* <pre>{@code
59-
* // This snippet has been automatically generated for illustrative purposes only.
60-
* // It may require modifications to work in your environment.
59+
* // This snippet has been automatically generated and should be regarded as a code template only.
60+
* // It will require modifications to work:
61+
* // - It may require correct/in-range values for request initialization.
62+
* // - It may require specifying regional endpoints when creating the service client as shown in
63+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6164
* IDSSettings.Builder iDSSettingsBuilder = IDSSettings.newBuilder();
6265
* iDSSettingsBuilder
6366
* .getEndpointSettings()
6467
* .setRetrySettings(
65-
* iDSSettingsBuilder
66-
* .getEndpointSettings()
67-
* .getRetrySettings()
68-
* .toBuilder()
68+
* iDSSettingsBuilder.getEndpointSettings().getRetrySettings().toBuilder()
6969
* .setTotalTimeout(Duration.ofSeconds(30))
7070
* .build());
7171
* IDSSettings iDSSettings = iDSSettingsBuilder.build();

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@
2626
* <p>Sample for IDSClient:
2727
*
2828
* <pre>{@code
29-
* // This snippet has been automatically generated for illustrative purposes only.
30-
* // It may require modifications to work in your environment.
29+
* // This snippet has been automatically generated and should be regarded as a code template only.
30+
* // It will require modifications to work:
31+
* // - It may require correct/in-range values for request initialization.
32+
* // - It may require specifying regional endpoints when creating the service client as shown in
33+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3134
* try (IDSClient iDSClient = IDSClient.create()) {
3235
* EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
3336
* Endpoint response = iDSClient.getEndpoint(name);

java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/HttpJsonIDSStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public class HttpJsonIDSStub extends IDSStub {
166166
.setRequestBodyExtractor(
167167
request ->
168168
ProtoRestSerializer.create()
169-
.toBody("endpoint", request.getEndpoint()))
169+
.toBody("endpoint", request.getEndpoint(), false))
170170
.build())
171171
.setResponseParser(
172172
ProtoMessageResponseParser.<Operation>newBuilder()

java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@
8383
* <p>For example, to set the total timeout of getEndpoint to 30 seconds:
8484
*
8585
* <pre>{@code
86-
* // This snippet has been automatically generated for illustrative purposes only.
87-
* // 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
8891
* IDSStubSettings.Builder iDSSettingsBuilder = IDSStubSettings.newBuilder();
8992
* iDSSettingsBuilder
9093
* .getEndpointSettings()
9194
* .setRetrySettings(
92-
* iDSSettingsBuilder
93-
* .getEndpointSettings()
94-
* .getRetrySettings()
95-
* .toBuilder()
95+
* iDSSettingsBuilder.getEndpointSettings().getRetrySettings().toBuilder()
9696
* .setTotalTimeout(Duration.ofSeconds(30))
9797
* .build());
9898
* IDSStubSettings iDSSettings = iDSSettingsBuilder.build();

java-ids/samples/snippets/generated/com/google/cloud/ids/v1/idsclient/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
IDSSettings iDSSettings =
3538
IDSSettings.newBuilder()
3639
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))

java-ids/samples/snippets/generated/com/google/cloud/ids/v1/idsclient/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
IDSSettings iDSSettings =
3336
IDSSettings.newBuilder()
3437
.setTransportChannelProvider(

java-ids/samples/snippets/generated/com/google/cloud/ids/v1/idsclient/create/SyncCreateSetEndpoint.java

Lines changed: 5 additions & 2 deletions
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
IDSSettings iDSSettings = IDSSettings.newBuilder().setEndpoint(myEndpoint).build();
3437
IDSClient iDSClient = IDSClient.create(iDSSettings);
3538
}

java-ids/samples/snippets/generated/com/google/cloud/ids/v1/idsclient/createendpoint/AsyncCreateEndpoint.java

Lines changed: 5 additions & 2 deletions
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 asyncCreateEndpoint() 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 (IDSClient iDSClient = IDSClient.create()) {
3740
CreateEndpointRequest request =
3841
CreateEndpointRequest.newBuilder()

java-ids/samples/snippets/generated/com/google/cloud/ids/v1/idsclient/createendpoint/AsyncCreateEndpointLRO.java

Lines changed: 5 additions & 2 deletions
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 asyncCreateEndpointLRO() 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 (IDSClient iDSClient = IDSClient.create()) {
3740
CreateEndpointRequest request =
3841
CreateEndpointRequest.newBuilder()

0 commit comments

Comments
 (0)