Skip to content

Commit 97102a2

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#844)
- [ ] 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 425fcc5 commit 97102a2

10 files changed

+158
-79
lines changed

java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java

+70-28
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@
5050
* calls that map to API methods. Sample code to get started:
5151
*
5252
* <pre>{@code
53-
* // This snippet has been automatically generated for illustrative purposes only.
54-
* // It may require modifications to work in your environment.
53+
* // This snippet has been automatically generated and should be regarded as a code template only.
54+
* // It will require modifications to work:
55+
* // - It may require correct/in-range values for request initialization.
56+
* // - It may require specifying regional endpoints when creating the service client as shown in
57+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5558
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
5659
* String projectId = "projectId-894832108";
5760
* String traceId = "traceId-1067401920";
@@ -88,8 +91,11 @@
8891
* <p>To customize credentials:
8992
*
9093
* <pre>{@code
91-
* // This snippet has been automatically generated for illustrative purposes only.
92-
* // It may require modifications to work in your environment.
94+
* // This snippet has been automatically generated and should be regarded as a code template only.
95+
* // It will require modifications to work:
96+
* // - It may require correct/in-range values for request initialization.
97+
* // - It may require specifying regional endpoints when creating the service client as shown in
98+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9399
* TraceServiceSettings traceServiceSettings =
94100
* TraceServiceSettings.newBuilder()
95101
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -100,8 +106,11 @@
100106
* <p>To customize the endpoint:
101107
*
102108
* <pre>{@code
103-
* // This snippet has been automatically generated for illustrative purposes only.
104-
* // It may require modifications to work in your environment.
109+
* // This snippet has been automatically generated and should be regarded as a code template only.
110+
* // It will require modifications to work:
111+
* // - It may require correct/in-range values for request initialization.
112+
* // - It may require specifying regional endpoints when creating the service client as shown in
113+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
105114
* TraceServiceSettings traceServiceSettings =
106115
* TraceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
107116
* TraceServiceClient traceServiceClient = TraceServiceClient.create(traceServiceSettings);
@@ -111,8 +120,11 @@
111120
* the wire:
112121
*
113122
* <pre>{@code
114-
* // This snippet has been automatically generated for illustrative purposes only.
115-
* // It may require modifications to work in your environment.
123+
* // This snippet has been automatically generated and should be regarded as a code template only.
124+
* // It will require modifications to work:
125+
* // - It may require correct/in-range values for request initialization.
126+
* // - It may require specifying regional endpoints when creating the service client as shown in
127+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
116128
* TraceServiceSettings traceServiceSettings =
117129
* TraceServiceSettings.newBuilder()
118130
* .setTransportChannelProvider(
@@ -179,8 +191,11 @@ public TraceServiceStub getStub() {
179191
* <p>Sample code:
180192
*
181193
* <pre>{@code
182-
* // This snippet has been automatically generated for illustrative purposes only.
183-
* // It may require modifications to work in your environment.
194+
* // This snippet has been automatically generated and should be regarded as a code template only.
195+
* // It will require modifications to work:
196+
* // - It may require correct/in-range values for request initialization.
197+
* // - It may require specifying regional endpoints when creating the service client as shown in
198+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
184199
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
185200
* String projectId = "projectId-894832108";
186201
* for (Trace element : traceServiceClient.listTraces(projectId).iterateAll()) {
@@ -204,8 +219,11 @@ public final ListTracesPagedResponse listTraces(String projectId) {
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 (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
210228
* ListTracesRequest request =
211229
* ListTracesRequest.newBuilder()
@@ -237,8 +255,11 @@ public final ListTracesPagedResponse listTraces(ListTracesRequest request) {
237255
* <p>Sample code:
238256
*
239257
* <pre>{@code
240-
* // This snippet has been automatically generated for illustrative purposes only.
241-
* // It may require modifications to work in your environment.
258+
* // This snippet has been automatically generated and should be regarded as a code template only.
259+
* // It will require modifications to work:
260+
* // - It may require correct/in-range values for request initialization.
261+
* // - It may require specifying regional endpoints when creating the service client as shown in
262+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
242263
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
243264
* ListTracesRequest request =
244265
* ListTracesRequest.newBuilder()
@@ -269,8 +290,11 @@ public final UnaryCallable<ListTracesRequest, ListTracesPagedResponse> listTrace
269290
* <p>Sample code:
270291
*
271292
* <pre>{@code
272-
* // This snippet has been automatically generated for illustrative purposes only.
273-
* // It may require modifications to work in your environment.
293+
* // This snippet has been automatically generated and should be regarded as a code template only.
294+
* // It will require modifications to work:
295+
* // - It may require correct/in-range values for request initialization.
296+
* // - It may require specifying regional endpoints when creating the service client as shown in
297+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
274298
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
275299
* ListTracesRequest request =
276300
* ListTracesRequest.newBuilder()
@@ -308,8 +332,11 @@ public final UnaryCallable<ListTracesRequest, ListTracesResponse> listTracesCall
308332
* <p>Sample code:
309333
*
310334
* <pre>{@code
311-
* // This snippet has been automatically generated for illustrative purposes only.
312-
* // It may require modifications to work in your environment.
335+
* // This snippet has been automatically generated and should be regarded as a code template only.
336+
* // It will require modifications to work:
337+
* // - It may require correct/in-range values for request initialization.
338+
* // - It may require specifying regional endpoints when creating the service client as shown in
339+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
313340
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
314341
* String projectId = "projectId-894832108";
315342
* String traceId = "traceId-1067401920";
@@ -334,8 +361,11 @@ public final Trace getTrace(String projectId, String traceId) {
334361
* <p>Sample code:
335362
*
336363
* <pre>{@code
337-
* // This snippet has been automatically generated for illustrative purposes only.
338-
* // It may require modifications to work in your environment.
364+
* // This snippet has been automatically generated and should be regarded as a code template only.
365+
* // It will require modifications to work:
366+
* // - It may require correct/in-range values for request initialization.
367+
* // - It may require specifying regional endpoints when creating the service client as shown in
368+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
339369
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
340370
* GetTraceRequest request =
341371
* GetTraceRequest.newBuilder()
@@ -360,8 +390,11 @@ public final Trace getTrace(GetTraceRequest request) {
360390
* <p>Sample code:
361391
*
362392
* <pre>{@code
363-
* // This snippet has been automatically generated for illustrative purposes only.
364-
* // It may require modifications to work in your environment.
393+
* // This snippet has been automatically generated and should be regarded as a code template only.
394+
* // It will require modifications to work:
395+
* // - It may require correct/in-range values for request initialization.
396+
* // - It may require specifying regional endpoints when creating the service client as shown in
397+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
365398
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
366399
* GetTraceRequest request =
367400
* GetTraceRequest.newBuilder()
@@ -388,8 +421,11 @@ public final UnaryCallable<GetTraceRequest, Trace> getTraceCallable() {
388421
* <p>Sample code:
389422
*
390423
* <pre>{@code
391-
* // This snippet has been automatically generated for illustrative purposes only.
392-
* // It may require modifications to work in your environment.
424+
* // This snippet has been automatically generated and should be regarded as a code template only.
425+
* // It will require modifications to work:
426+
* // - It may require correct/in-range values for request initialization.
427+
* // - It may require specifying regional endpoints when creating the service client as shown in
428+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
393429
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
394430
* String projectId = "projectId-894832108";
395431
* Traces traces = Traces.newBuilder().build();
@@ -417,8 +453,11 @@ public final void patchTraces(String projectId, Traces traces) {
417453
* <p>Sample code:
418454
*
419455
* <pre>{@code
420-
* // This snippet has been automatically generated for illustrative purposes only.
421-
* // It may require modifications to work in your environment.
456+
* // This snippet has been automatically generated and should be regarded as a code template only.
457+
* // It will require modifications to work:
458+
* // - It may require correct/in-range values for request initialization.
459+
* // - It may require specifying regional endpoints when creating the service client as shown in
460+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
422461
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
423462
* PatchTracesRequest request =
424463
* PatchTracesRequest.newBuilder()
@@ -446,8 +485,11 @@ public final void patchTraces(PatchTracesRequest request) {
446485
* <p>Sample code:
447486
*
448487
* <pre>{@code
449-
* // This snippet has been automatically generated for illustrative purposes only.
450-
* // It may require modifications to work in your environment.
488+
* // This snippet has been automatically generated and should be regarded as a code template only.
489+
* // It will require modifications to work:
490+
* // - It may require correct/in-range values for request initialization.
491+
* // - It may require specifying regional endpoints when creating the service client as shown in
492+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
451493
* try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
452494
* PatchTracesRequest request =
453495
* PatchTracesRequest.newBuilder()

java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceSettings.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@
5959
* <p>For example, to set the total timeout of getTrace 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
* TraceServiceSettings.Builder traceServiceSettingsBuilder = TraceServiceSettings.newBuilder();
6568
* traceServiceSettingsBuilder
6669
* .getTraceSettings()
6770
* .setRetrySettings(
68-
* traceServiceSettingsBuilder
69-
* .getTraceSettings()
70-
* .getRetrySettings()
71-
* .toBuilder()
71+
* traceServiceSettingsBuilder.getTraceSettings().getRetrySettings().toBuilder()
7272
* .setTotalTimeout(Duration.ofSeconds(30))
7373
* .build());
7474
* TraceServiceSettings traceServiceSettings = traceServiceSettingsBuilder.build();

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
* <p>Sample for TraceServiceClient:
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 (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
3336
* String projectId = "projectId-894832108";
3437
* String traceId = "traceId-1067401920";

java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/HttpJsonTraceServiceStub.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ public class HttpJsonTraceServiceStub extends TraceServiceStub {
153153
return fields;
154154
})
155155
.setRequestBodyExtractor(
156-
request -> ProtoRestSerializer.create().toBody("traces", request.getTraces()))
156+
request ->
157+
ProtoRestSerializer.create().toBody("traces", request.getTraces(), false))
157158
.build())
158159
.setResponseParser(
159160
ProtoMessageResponseParser.<Empty>newBuilder()

java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@
7676
* <p>For example, to set the total timeout of getTrace to 30 seconds:
7777
*
7878
* <pre>{@code
79-
* // This snippet has been automatically generated for illustrative purposes only.
80-
* // It may require modifications to work in your environment.
79+
* // This snippet has been automatically generated and should be regarded as a code template only.
80+
* // It will require modifications to work:
81+
* // - It may require correct/in-range values for request initialization.
82+
* // - It may require specifying regional endpoints when creating the service client as shown in
83+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8184
* TraceServiceStubSettings.Builder traceServiceSettingsBuilder =
8285
* TraceServiceStubSettings.newBuilder();
8386
* traceServiceSettingsBuilder
8487
* .getTraceSettings()
8588
* .setRetrySettings(
86-
* traceServiceSettingsBuilder
87-
* .getTraceSettings()
88-
* .getRetrySettings()
89-
* .toBuilder()
89+
* traceServiceSettingsBuilder.getTraceSettings().getRetrySettings().toBuilder()
9090
* .setTotalTimeout(Duration.ofSeconds(30))
9191
* .build());
9292
* TraceServiceStubSettings traceServiceSettings = traceServiceSettingsBuilder.build();

0 commit comments

Comments
 (0)