Skip to content

Commit 9a5b5cb

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#748)
- [ ] 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 cff138d commit 9a5b5cb

9 files changed

Lines changed: 228 additions & 106 deletions

File tree

java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java

Lines changed: 120 additions & 48 deletions
Large diffs are not rendered by default.

java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java

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

java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@
2525
* <p>Sample for BudgetServiceClient:
2626
*
2727
* <pre>{@code
28-
* // This snippet has been automatically generated for illustrative purposes only.
29-
* // It may require modifications to work in your environment.
28+
* // This snippet has been automatically generated and should be regarded as a code template only.
29+
* // It will require modifications to work:
30+
* // - It may require correct/in-range values for request initialization.
31+
* // - It may require specifying regional endpoints when creating the service client as shown in
32+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3033
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
3134
* BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
3235
* Budget budget = Budget.newBuilder().build();

java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@
7979
* <p>For example, to set the total timeout of createBudget to 30 seconds:
8080
*
8181
* <pre>{@code
82-
* // This snippet has been automatically generated for illustrative purposes only.
83-
* // It may require modifications to work in your environment.
82+
* // This snippet has been automatically generated and should be regarded as a code template only.
83+
* // It will require modifications to work:
84+
* // - It may require correct/in-range values for request initialization.
85+
* // - It may require specifying regional endpoints when creating the service client as shown in
86+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8487
* BudgetServiceStubSettings.Builder budgetServiceSettingsBuilder =
8588
* BudgetServiceStubSettings.newBuilder();
8689
* budgetServiceSettingsBuilder
8790
* .createBudgetSettings()
8891
* .setRetrySettings(
89-
* budgetServiceSettingsBuilder
90-
* .createBudgetSettings()
91-
* .getRetrySettings()
92-
* .toBuilder()
92+
* budgetServiceSettingsBuilder.createBudgetSettings().getRetrySettings().toBuilder()
9393
* .setTotalTimeout(Duration.ofSeconds(30))
9494
* .build());
9595
* BudgetServiceStubSettings budgetServiceSettings = budgetServiceSettingsBuilder.build();

java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public class HttpJsonBudgetServiceStub extends BudgetServiceStub {
8484
})
8585
.setRequestBodyExtractor(
8686
request ->
87-
ProtoRestSerializer.create().toBody("budget", request.getBudget()))
87+
ProtoRestSerializer.create()
88+
.toBody("budget", request.getBudget(), false))
8889
.build())
8990
.setResponseParser(
9091
ProtoMessageResponseParser.<Budget>newBuilder()
@@ -121,7 +122,8 @@ public class HttpJsonBudgetServiceStub extends BudgetServiceStub {
121122
})
122123
.setRequestBodyExtractor(
123124
request ->
124-
ProtoRestSerializer.create().toBody("budget", request.getBudget()))
125+
ProtoRestSerializer.create()
126+
.toBody("budget", request.getBudget(), false))
125127
.build())
126128
.setResponseParser(
127129
ProtoMessageResponseParser.<Budget>newBuilder()

java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java

Lines changed: 70 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@
4343
* calls that map to API methods. Sample code to get started:
4444
*
4545
* <pre>{@code
46-
* // This snippet has been automatically generated for illustrative purposes only.
47-
* // It may require modifications to work in your environment.
46+
* // This snippet has been automatically generated and should be regarded as a code template only.
47+
* // It will require modifications to work:
48+
* // - It may require correct/in-range values for request initialization.
49+
* // - It may require specifying regional endpoints when creating the service client as shown in
50+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4851
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
4952
* CreateBudgetRequest request =
5053
* CreateBudgetRequest.newBuilder()
@@ -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
* BudgetServiceSettings budgetServiceSettings =
9096
* BudgetServiceSettings.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
* BudgetServiceSettings budgetServiceSettings =
102111
* BudgetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
103112
* BudgetServiceClient budgetServiceClient = BudgetServiceClient.create(budgetServiceSettings);
@@ -164,8 +173,11 @@ public BudgetServiceStub getStub() {
164173
* <p>Sample code:
165174
*
166175
* <pre>{@code
167-
* // This snippet has been automatically generated for illustrative purposes only.
168-
* // It may require modifications to work in your environment.
176+
* // This snippet has been automatically generated and should be regarded as a code template only.
177+
* // It will require modifications to work:
178+
* // - It may require correct/in-range values for request initialization.
179+
* // - It may require specifying regional endpoints when creating the service client as shown in
180+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
169181
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
170182
* CreateBudgetRequest request =
171183
* CreateBudgetRequest.newBuilder()
@@ -191,8 +203,11 @@ public final Budget createBudget(CreateBudgetRequest request) {
191203
* <p>Sample code:
192204
*
193205
* <pre>{@code
194-
* // This snippet has been automatically generated for illustrative purposes only.
195-
* // It may require modifications to work in your environment.
206+
* // This snippet has been automatically generated and should be regarded as a code template only.
207+
* // It will require modifications to work:
208+
* // - It may require correct/in-range values for request initialization.
209+
* // - It may require specifying regional endpoints when creating the service client as shown in
210+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
196211
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
197212
* CreateBudgetRequest request =
198213
* CreateBudgetRequest.newBuilder()
@@ -219,8 +234,11 @@ public final UnaryCallable<CreateBudgetRequest, Budget> createBudgetCallable() {
219234
* <p>Sample code:
220235
*
221236
* <pre>{@code
222-
* // This snippet has been automatically generated for illustrative purposes only.
223-
* // It may require modifications to work in your environment.
237+
* // This snippet has been automatically generated and should be regarded as a code template only.
238+
* // It will require modifications to work:
239+
* // - It may require correct/in-range values for request initialization.
240+
* // - It may require specifying regional endpoints when creating the service client as shown in
241+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
224242
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
225243
* UpdateBudgetRequest request =
226244
* UpdateBudgetRequest.newBuilder()
@@ -248,8 +266,11 @@ public final Budget updateBudget(UpdateBudgetRequest request) {
248266
* <p>Sample code:
249267
*
250268
* <pre>{@code
251-
* // This snippet has been automatically generated for illustrative purposes only.
252-
* // It may require modifications to work in your environment.
269+
* // This snippet has been automatically generated and should be regarded as a code template only.
270+
* // It will require modifications to work:
271+
* // - It may require correct/in-range values for request initialization.
272+
* // - It may require specifying regional endpoints when creating the service client as shown in
273+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
253274
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
254275
* UpdateBudgetRequest request =
255276
* UpdateBudgetRequest.newBuilder()
@@ -277,8 +298,11 @@ public final UnaryCallable<UpdateBudgetRequest, Budget> updateBudgetCallable() {
277298
* <p>Sample code:
278299
*
279300
* <pre>{@code
280-
* // This snippet has been automatically generated for illustrative purposes only.
281-
* // It may require modifications to work in your environment.
301+
* // This snippet has been automatically generated and should be regarded as a code template only.
302+
* // It will require modifications to work:
303+
* // - It may require correct/in-range values for request initialization.
304+
* // - It may require specifying regional endpoints when creating the service client as shown in
305+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
282306
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
283307
* GetBudgetRequest request =
284308
* GetBudgetRequest.newBuilder()
@@ -306,8 +330,11 @@ public final Budget getBudget(GetBudgetRequest request) {
306330
* <p>Sample code:
307331
*
308332
* <pre>{@code
309-
* // This snippet has been automatically generated for illustrative purposes only.
310-
* // It may require modifications to work in your environment.
333+
* // This snippet has been automatically generated and should be regarded as a code template only.
334+
* // It will require modifications to work:
335+
* // - It may require correct/in-range values for request initialization.
336+
* // - It may require specifying regional endpoints when creating the service client as shown in
337+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
311338
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
312339
* GetBudgetRequest request =
313340
* GetBudgetRequest.newBuilder()
@@ -334,8 +361,11 @@ public final UnaryCallable<GetBudgetRequest, Budget> getBudgetCallable() {
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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
340370
* ListBudgetsRequest request =
341371
* ListBudgetsRequest.newBuilder()
@@ -367,8 +397,11 @@ public final ListBudgetsPagedResponse listBudgets(ListBudgetsRequest request) {
367397
* <p>Sample code:
368398
*
369399
* <pre>{@code
370-
* // This snippet has been automatically generated for illustrative purposes only.
371-
* // It may require modifications to work in your environment.
400+
* // This snippet has been automatically generated and should be regarded as a code template only.
401+
* // It will require modifications to work:
402+
* // - It may require correct/in-range values for request initialization.
403+
* // - It may require specifying regional endpoints when creating the service client as shown in
404+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
372405
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
373406
* ListBudgetsRequest request =
374407
* ListBudgetsRequest.newBuilder()
@@ -400,8 +433,11 @@ public final ListBudgetsPagedResponse listBudgets(ListBudgetsRequest request) {
400433
* <p>Sample code:
401434
*
402435
* <pre>{@code
403-
* // This snippet has been automatically generated for illustrative purposes only.
404-
* // It may require modifications to work in your environment.
436+
* // This snippet has been automatically generated and should be regarded as a code template only.
437+
* // It will require modifications to work:
438+
* // - It may require correct/in-range values for request initialization.
439+
* // - It may require specifying regional endpoints when creating the service client as shown in
440+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
405441
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
406442
* ListBudgetsRequest request =
407443
* ListBudgetsRequest.newBuilder()
@@ -435,8 +471,11 @@ public final UnaryCallable<ListBudgetsRequest, ListBudgetsResponse> listBudgetsC
435471
* <p>Sample code:
436472
*
437473
* <pre>{@code
438-
* // This snippet has been automatically generated for illustrative purposes only.
439-
* // It may require modifications to work in your environment.
474+
* // This snippet has been automatically generated and should be regarded as a code template only.
475+
* // It will require modifications to work:
476+
* // - It may require correct/in-range values for request initialization.
477+
* // - It may require specifying regional endpoints when creating the service client as shown in
478+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
440479
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
441480
* DeleteBudgetRequest request =
442481
* DeleteBudgetRequest.newBuilder()
@@ -460,8 +499,11 @@ public final void deleteBudget(DeleteBudgetRequest request) {
460499
* <p>Sample code:
461500
*
462501
* <pre>{@code
463-
* // This snippet has been automatically generated for illustrative purposes only.
464-
* // It may require modifications to work in your environment.
502+
* // This snippet has been automatically generated and should be regarded as a code template only.
503+
* // It will require modifications to work:
504+
* // - It may require correct/in-range values for request initialization.
505+
* // - It may require specifying regional endpoints when creating the service client as shown in
506+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
465507
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
466508
* DeleteBudgetRequest request =
467509
* DeleteBudgetRequest.newBuilder()

java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@
5454
* <p>For example, to set the total timeout of createBudget to 30 seconds:
5555
*
5656
* <pre>{@code
57-
* // This snippet has been automatically generated for illustrative purposes only.
58-
* // It may require modifications to work in your environment.
57+
* // This snippet has been automatically generated and should be regarded as a code template only.
58+
* // It will require modifications to work:
59+
* // - It may require correct/in-range values for request initialization.
60+
* // - It may require specifying regional endpoints when creating the service client as shown in
61+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5962
* BudgetServiceSettings.Builder budgetServiceSettingsBuilder = BudgetServiceSettings.newBuilder();
6063
* budgetServiceSettingsBuilder
6164
* .createBudgetSettings()
6265
* .setRetrySettings(
63-
* budgetServiceSettingsBuilder
64-
* .createBudgetSettings()
65-
* .getRetrySettings()
66-
* .toBuilder()
66+
* budgetServiceSettingsBuilder.createBudgetSettings().getRetrySettings().toBuilder()
6767
* .setTotalTimeout(Duration.ofSeconds(30))
6868
* .build());
6969
* BudgetServiceSettings budgetServiceSettings = budgetServiceSettingsBuilder.build();

java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@
2525
* <p>Sample for BudgetServiceClient:
2626
*
2727
* <pre>{@code
28-
* // This snippet has been automatically generated for illustrative purposes only.
29-
* // It may require modifications to work in your environment.
28+
* // This snippet has been automatically generated and should be regarded as a code template only.
29+
* // It will require modifications to work:
30+
* // - It may require correct/in-range values for request initialization.
31+
* // - It may require specifying regional endpoints when creating the service client as shown in
32+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3033
* try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
3134
* CreateBudgetRequest request =
3235
* CreateBudgetRequest.newBuilder()

java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@
7676
* <p>For example, to set the total timeout of createBudget 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
* BudgetServiceStubSettings.Builder budgetServiceSettingsBuilder =
8285
* BudgetServiceStubSettings.newBuilder();
8386
* budgetServiceSettingsBuilder
8487
* .createBudgetSettings()
8588
* .setRetrySettings(
86-
* budgetServiceSettingsBuilder
87-
* .createBudgetSettings()
88-
* .getRetrySettings()
89-
* .toBuilder()
89+
* budgetServiceSettingsBuilder.createBudgetSettings().getRetrySettings().toBuilder()
9090
* .setTotalTimeout(Duration.ofSeconds(30))
9191
* .build());
9292
* BudgetServiceStubSettings budgetServiceSettings = budgetServiceSettingsBuilder.build();

0 commit comments

Comments
 (0)