Skip to content

Commit 0c3b677

Browse files
feat: [billingbudgets] Add resource_ancestors field to support filtering by folders & organizations (#9501)
* feat: Add resource_ancestors field to support filtering by folders & organizations PiperOrigin-RevId: 537931957 Source-Link: googleapis/googleapis@521a7a6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/afb9a0c029dd8047950189db30b2743af177e276 Copy-Tag: eyJwIjoiamF2YS1iaWxsaW5nYnVkZ2V0cy8uT3dsQm90LnlhbWwiLCJoIjoiYWZiOWEwYzAyOWRkODA0Nzk1MDE4OWRiMzBiMjc0M2FmMTc3ZTI3NiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add resource_ancestors field to support filtering by folders & organizations PiperOrigin-RevId: 537933008 Source-Link: googleapis/googleapis@0429412 Source-Link: https://github.com/googleapis/googleapis-gen/commit/82dfed01a0f18b25ac061c56555a5a066c9d3db3 Copy-Tag: eyJwIjoiamF2YS1iaWxsaW5nYnVkZ2V0cy8uT3dsQm90LnlhbWwiLCJoIjoiODJkZmVkMDFhMGYxOGIyNWFjMDYxYzU2NTU1YTVhMDY2YzlkM2RiMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 739763f commit 0c3b677

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3189
-1587
lines changed

java-billingbudgets/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.11.0</version>
23+
<version>26.16.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.14.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.18.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

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

Lines changed: 99 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
5454
return new Budget();
5555
}
5656

57-
@java.lang.Override
58-
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
59-
return this.unknownFields;
60-
}
61-
6257
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
6358
return com.google.cloud.billing.budgets.v1.BudgetModelProto
6459
.internal_static_google_cloud_billing_budgets_v1_Budget_descriptor;
@@ -310,6 +305,10 @@ public com.google.cloud.billing.budgets.v1.BudgetAmountOrBuilder getAmountOrBuil
310305
* <pre>
311306
* Optional. Rules that trigger alerts (notifications of thresholds
312307
* being crossed) when spend exceeds the specified percentages of the budget.
308+
*
309+
* Optional for `pubsubTopic` notifications.
310+
*
311+
* Required if using email notifications.
313312
* </pre>
314313
*
315314
* <code>
@@ -326,6 +325,10 @@ public java.util.List<com.google.cloud.billing.budgets.v1.ThresholdRule> getThre
326325
* <pre>
327326
* Optional. Rules that trigger alerts (notifications of thresholds
328327
* being crossed) when spend exceeds the specified percentages of the budget.
328+
*
329+
* Optional for `pubsubTopic` notifications.
330+
*
331+
* Required if using email notifications.
329332
* </pre>
330333
*
331334
* <code>
@@ -343,6 +346,10 @@ public java.util.List<com.google.cloud.billing.budgets.v1.ThresholdRule> getThre
343346
* <pre>
344347
* Optional. Rules that trigger alerts (notifications of thresholds
345348
* being crossed) when spend exceeds the specified percentages of the budget.
349+
*
350+
* Optional for `pubsubTopic` notifications.
351+
*
352+
* Required if using email notifications.
346353
* </pre>
347354
*
348355
* <code>
@@ -359,6 +366,10 @@ public int getThresholdRulesCount() {
359366
* <pre>
360367
* Optional. Rules that trigger alerts (notifications of thresholds
361368
* being crossed) when spend exceeds the specified percentages of the budget.
369+
*
370+
* Optional for `pubsubTopic` notifications.
371+
*
372+
* Required if using email notifications.
362373
* </pre>
363374
*
364375
* <code>
@@ -375,6 +386,10 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i
375386
* <pre>
376387
* Optional. Rules that trigger alerts (notifications of thresholds
377388
* being crossed) when spend exceeds the specified percentages of the budget.
389+
*
390+
* Optional for `pubsubTopic` notifications.
391+
*
392+
* Required if using email notifications.
378393
* </pre>
379394
*
380395
* <code>
@@ -457,7 +472,7 @@ public com.google.cloud.billing.budgets.v1.NotificationsRule getNotificationsRul
457472
* <pre>
458473
* Optional. Etag to validate that the object is unchanged for a
459474
* read-modify-write operation.
460-
* An empty etag will cause an update to overwrite other changes.
475+
* An empty etag causes an update to overwrite other changes.
461476
* </pre>
462477
*
463478
* <code>string etag = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -482,7 +497,7 @@ public java.lang.String getEtag() {
482497
* <pre>
483498
* Optional. Etag to validate that the object is unchanged for a
484499
* read-modify-write operation.
485-
* An empty etag will cause an update to overwrite other changes.
500+
* An empty etag causes an update to overwrite other changes.
486501
* </pre>
487502
*
488503
* <code>string etag = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -1738,6 +1753,10 @@ private void ensureThresholdRulesIsMutable() {
17381753
* <pre>
17391754
* Optional. Rules that trigger alerts (notifications of thresholds
17401755
* being crossed) when spend exceeds the specified percentages of the budget.
1756+
*
1757+
* Optional for `pubsubTopic` notifications.
1758+
*
1759+
* Required if using email notifications.
17411760
* </pre>
17421761
*
17431762
* <code>
@@ -1758,6 +1777,10 @@ private void ensureThresholdRulesIsMutable() {
17581777
* <pre>
17591778
* Optional. Rules that trigger alerts (notifications of thresholds
17601779
* being crossed) when spend exceeds the specified percentages of the budget.
1780+
*
1781+
* Optional for `pubsubTopic` notifications.
1782+
*
1783+
* Required if using email notifications.
17611784
* </pre>
17621785
*
17631786
* <code>
@@ -1777,6 +1800,10 @@ public int getThresholdRulesCount() {
17771800
* <pre>
17781801
* Optional. Rules that trigger alerts (notifications of thresholds
17791802
* being crossed) when spend exceeds the specified percentages of the budget.
1803+
*
1804+
* Optional for `pubsubTopic` notifications.
1805+
*
1806+
* Required if using email notifications.
17801807
* </pre>
17811808
*
17821809
* <code>
@@ -1796,6 +1823,10 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule getThresholdRules(int i
17961823
* <pre>
17971824
* Optional. Rules that trigger alerts (notifications of thresholds
17981825
* being crossed) when spend exceeds the specified percentages of the budget.
1826+
*
1827+
* Optional for `pubsubTopic` notifications.
1828+
*
1829+
* Required if using email notifications.
17991830
* </pre>
18001831
*
18011832
* <code>
@@ -1822,6 +1853,10 @@ public Builder setThresholdRules(
18221853
* <pre>
18231854
* Optional. Rules that trigger alerts (notifications of thresholds
18241855
* being crossed) when spend exceeds the specified percentages of the budget.
1856+
*
1857+
* Optional for `pubsubTopic` notifications.
1858+
*
1859+
* Required if using email notifications.
18251860
* </pre>
18261861
*
18271862
* <code>
@@ -1845,6 +1880,10 @@ public Builder setThresholdRules(
18451880
* <pre>
18461881
* Optional. Rules that trigger alerts (notifications of thresholds
18471882
* being crossed) when spend exceeds the specified percentages of the budget.
1883+
*
1884+
* Optional for `pubsubTopic` notifications.
1885+
*
1886+
* Required if using email notifications.
18481887
* </pre>
18491888
*
18501889
* <code>
@@ -1870,6 +1909,10 @@ public Builder addThresholdRules(com.google.cloud.billing.budgets.v1.ThresholdRu
18701909
* <pre>
18711910
* Optional. Rules that trigger alerts (notifications of thresholds
18721911
* being crossed) when spend exceeds the specified percentages of the budget.
1912+
*
1913+
* Optional for `pubsubTopic` notifications.
1914+
*
1915+
* Required if using email notifications.
18731916
* </pre>
18741917
*
18751918
* <code>
@@ -1896,6 +1939,10 @@ public Builder addThresholdRules(
18961939
* <pre>
18971940
* Optional. Rules that trigger alerts (notifications of thresholds
18981941
* being crossed) when spend exceeds the specified percentages of the budget.
1942+
*
1943+
* Optional for `pubsubTopic` notifications.
1944+
*
1945+
* Required if using email notifications.
18991946
* </pre>
19001947
*
19011948
* <code>
@@ -1919,6 +1966,10 @@ public Builder addThresholdRules(
19191966
* <pre>
19201967
* Optional. Rules that trigger alerts (notifications of thresholds
19211968
* being crossed) when spend exceeds the specified percentages of the budget.
1969+
*
1970+
* Optional for `pubsubTopic` notifications.
1971+
*
1972+
* Required if using email notifications.
19221973
* </pre>
19231974
*
19241975
* <code>
@@ -1942,6 +1993,10 @@ public Builder addThresholdRules(
19421993
* <pre>
19431994
* Optional. Rules that trigger alerts (notifications of thresholds
19441995
* being crossed) when spend exceeds the specified percentages of the budget.
1996+
*
1997+
* Optional for `pubsubTopic` notifications.
1998+
*
1999+
* Required if using email notifications.
19452000
* </pre>
19462001
*
19472002
* <code>
@@ -1965,6 +2020,10 @@ public Builder addAllThresholdRules(
19652020
* <pre>
19662021
* Optional. Rules that trigger alerts (notifications of thresholds
19672022
* being crossed) when spend exceeds the specified percentages of the budget.
2023+
*
2024+
* Optional for `pubsubTopic` notifications.
2025+
*
2026+
* Required if using email notifications.
19682027
* </pre>
19692028
*
19702029
* <code>
@@ -1987,6 +2046,10 @@ public Builder clearThresholdRules() {
19872046
* <pre>
19882047
* Optional. Rules that trigger alerts (notifications of thresholds
19892048
* being crossed) when spend exceeds the specified percentages of the budget.
2049+
*
2050+
* Optional for `pubsubTopic` notifications.
2051+
*
2052+
* Required if using email notifications.
19902053
* </pre>
19912054
*
19922055
* <code>
@@ -2009,6 +2072,10 @@ public Builder removeThresholdRules(int index) {
20092072
* <pre>
20102073
* Optional. Rules that trigger alerts (notifications of thresholds
20112074
* being crossed) when spend exceeds the specified percentages of the budget.
2075+
*
2076+
* Optional for `pubsubTopic` notifications.
2077+
*
2078+
* Required if using email notifications.
20122079
* </pre>
20132080
*
20142081
* <code>
@@ -2025,6 +2092,10 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder getThresholdRul
20252092
* <pre>
20262093
* Optional. Rules that trigger alerts (notifications of thresholds
20272094
* being crossed) when spend exceeds the specified percentages of the budget.
2095+
*
2096+
* Optional for `pubsubTopic` notifications.
2097+
*
2098+
* Required if using email notifications.
20282099
* </pre>
20292100
*
20302101
* <code>
@@ -2045,6 +2116,10 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu
20452116
* <pre>
20462117
* Optional. Rules that trigger alerts (notifications of thresholds
20472118
* being crossed) when spend exceeds the specified percentages of the budget.
2119+
*
2120+
* Optional for `pubsubTopic` notifications.
2121+
*
2122+
* Required if using email notifications.
20482123
* </pre>
20492124
*
20502125
* <code>
@@ -2065,6 +2140,10 @@ public com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder getThresholdRu
20652140
* <pre>
20662141
* Optional. Rules that trigger alerts (notifications of thresholds
20672142
* being crossed) when spend exceeds the specified percentages of the budget.
2143+
*
2144+
* Optional for `pubsubTopic` notifications.
2145+
*
2146+
* Required if using email notifications.
20682147
* </pre>
20692148
*
20702149
* <code>
@@ -2081,6 +2160,10 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul
20812160
* <pre>
20822161
* Optional. Rules that trigger alerts (notifications of thresholds
20832162
* being crossed) when spend exceeds the specified percentages of the budget.
2163+
*
2164+
* Optional for `pubsubTopic` notifications.
2165+
*
2166+
* Required if using email notifications.
20842167
* </pre>
20852168
*
20862169
* <code>
@@ -2099,6 +2182,10 @@ public com.google.cloud.billing.budgets.v1.ThresholdRule.Builder addThresholdRul
20992182
* <pre>
21002183
* Optional. Rules that trigger alerts (notifications of thresholds
21012184
* being crossed) when spend exceeds the specified percentages of the budget.
2185+
*
2186+
* Optional for `pubsubTopic` notifications.
2187+
*
2188+
* Required if using email notifications.
21022189
* </pre>
21032190
*
21042191
* <code>
@@ -2353,7 +2440,7 @@ public Builder clearNotificationsRule() {
23532440
* <pre>
23542441
* Optional. Etag to validate that the object is unchanged for a
23552442
* read-modify-write operation.
2356-
* An empty etag will cause an update to overwrite other changes.
2443+
* An empty etag causes an update to overwrite other changes.
23572444
* </pre>
23582445
*
23592446
* <code>string etag = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2377,7 +2464,7 @@ public java.lang.String getEtag() {
23772464
* <pre>
23782465
* Optional. Etag to validate that the object is unchanged for a
23792466
* read-modify-write operation.
2380-
* An empty etag will cause an update to overwrite other changes.
2467+
* An empty etag causes an update to overwrite other changes.
23812468
* </pre>
23822469
*
23832470
* <code>string etag = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2401,7 +2488,7 @@ public com.google.protobuf.ByteString getEtagBytes() {
24012488
* <pre>
24022489
* Optional. Etag to validate that the object is unchanged for a
24032490
* read-modify-write operation.
2404-
* An empty etag will cause an update to overwrite other changes.
2491+
* An empty etag causes an update to overwrite other changes.
24052492
* </pre>
24062493
*
24072494
* <code>string etag = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2424,7 +2511,7 @@ public Builder setEtag(java.lang.String value) {
24242511
* <pre>
24252512
* Optional. Etag to validate that the object is unchanged for a
24262513
* read-modify-write operation.
2427-
* An empty etag will cause an update to overwrite other changes.
2514+
* An empty etag causes an update to overwrite other changes.
24282515
* </pre>
24292516
*
24302517
* <code>string etag = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2443,7 +2530,7 @@ public Builder clearEtag() {
24432530
* <pre>
24442531
* Optional. Etag to validate that the object is unchanged for a
24452532
* read-modify-write operation.
2446-
* An empty etag will cause an update to overwrite other changes.
2533+
* An empty etag causes an update to overwrite other changes.
24472534
* </pre>
24482535
*
24492536
* <code>string etag = 7 [(.google.api.field_behavior) = OPTIONAL];</code>

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
4545
return new BudgetAmount();
4646
}
4747

48-
@java.lang.Override
49-
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
50-
return this.unknownFields;
51-
}
52-
5348
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
5449
return com.google.cloud.billing.budgets.v1.BudgetModelProto
5550
.internal_static_google_cloud_billing_budgets_v1_BudgetAmount_descriptor;
@@ -66,6 +61,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
6661
}
6762

6863
private int budgetAmountCase_ = 0;
64+
65+
@SuppressWarnings("serial")
6966
private java.lang.Object budgetAmount_;
7067

7168
public enum BudgetAmountCase

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,5 @@ public interface BudgetAmountOrBuilder
117117
*/
118118
com.google.cloud.billing.budgets.v1.LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder();
119119

120-
public com.google.cloud.billing.budgets.v1.BudgetAmount.BudgetAmountCase getBudgetAmountCase();
120+
com.google.cloud.billing.budgets.v1.BudgetAmount.BudgetAmountCase getBudgetAmountCase();
121121
}

0 commit comments

Comments
 (0)