diff --git a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java index a14e11fe..251fe6b0 100644 --- a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java +++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmount.java @@ -189,9 +189,10 @@ public BudgetAmountCase getBudgetAmountCase() { * *
* A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -207,9 +208,10 @@ public boolean hasSpecifiedAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -228,9 +230,10 @@ public com.google.type.Money getSpecifiedAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -690,9 +693,10 @@ public Builder clearBudgetAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -708,9 +712,10 @@ public boolean hasSpecifiedAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -736,9 +741,10 @@ public com.google.type.Money getSpecifiedAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -761,9 +767,10 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -783,9 +790,10 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -815,9 +823,10 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -843,9 +852,10 @@ public Builder clearSpecifiedAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -858,9 +868,10 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -881,9 +892,10 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
diff --git a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
index 270569cc..59955311 100644
--- a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetAmountOrBuilder.java
@@ -28,9 +28,10 @@ public interface BudgetAmountOrBuilder
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -43,9 +44,10 @@ public interface BudgetAmountOrBuilder
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -58,9 +60,10 @@ public interface BudgetAmountOrBuilder
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the currency_code of the existing budget. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
diff --git a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java
index d919fe57..811748ce 100644
--- a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java
+++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRule.java
@@ -215,9 +215,12 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -240,9 +243,12 @@ public java.lang.String getSchemaVersion() {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -931,9 +937,12 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -955,9 +964,12 @@ public java.lang.String getSchemaVersion() {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -979,9 +991,12 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1002,9 +1017,12 @@ public Builder setSchemaVersion(java.lang.String value) {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1021,9 +1039,12 @@ public Builder clearSchemaVersion() {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java
index 859463e5..5d9b210d 100644
--- a/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/NotificationsRuleOrBuilder.java
@@ -72,9 +72,12 @@ public interface NotificationsRuleOrBuilder
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -86,9 +89,12 @@ public interface NotificationsRuleOrBuilder
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto b/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto
index a23e0801..eefe3db4 100644
--- a/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto
+++ b/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_model.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -74,9 +74,10 @@ message BudgetAmount {
// Specification for what amount to use as the budget.
oneof budget_amount {
// A specified amount to use as the budget.
- // `currency_code` is optional. If specified, it must match the
- // currency of the billing account. The `currency_code` is provided on
- // output.
+ // `currency_code` is optional. If specified when creating a budget, it must
+ // match the currency of the billing account. If specified when updating a
+ // budget, it must match the currency_code of the existing budget.
+ // The `currency_code` is provided on output.
google.type.Money specified_amount = 1;
// Use the last period's actual spend as the budget for the present period.
@@ -138,9 +139,12 @@ message NotificationsRule {
// for more details on Pub/Sub roles and permissions.
string pubsub_topic = 1 [(google.api.field_behavior) = OPTIONAL];
- // Optional. The schema version of the notification sent to `pubsub_topic`.
+ // Optional. Required when
+ // [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic]
+ // is set. The schema version of the notification sent to
+ // [NotificationsRule.pubsub_topic][google.cloud.billing.budgets.v1.NotificationsRule.pubsub_topic].
// Only "1.0" is accepted. It represents the JSON schema as defined in
- // https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
+ // https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
string schema_version = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. Targets to send notifications to when a threshold is exceeded.
diff --git a/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto b/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto
index bb2be219..a4b512b8 100644
--- a/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto
+++ b/proto-google-cloud-billingbudgets-v1/src/main/proto/google/cloud/billing/budgets/v1/budget_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -123,7 +123,8 @@ message UpdateBudgetRequest {
// updated. See
// https://developers.google.com/protocol-buffers/docs/proto3#default for more
// details about default values.
- google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL];
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = OPTIONAL];
}
// Request for GetBudget
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java
index 5ab58c9d..416af37b 100644
--- a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRule.java
@@ -215,9 +215,12 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -240,9 +243,12 @@ public java.lang.String getSchemaVersion() {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -931,9 +937,12 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -955,9 +964,12 @@ public java.lang.String getSchemaVersion() {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -979,9 +991,12 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1002,9 +1017,12 @@ public Builder setSchemaVersion(java.lang.String value) {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1021,9 +1039,12 @@ public Builder clearSchemaVersion() {
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java
index f6e63013..ce3aee32 100644
--- a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/AllUpdatesRuleOrBuilder.java
@@ -72,9 +72,12 @@ public interface AllUpdatesRuleOrBuilder
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -86,9 +89,12 @@ public interface AllUpdatesRuleOrBuilder
*
*
* - * Optional. The schema version of the notification sent to `pubsub_topic`. + * Optional. Required when + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic] + * is set. The schema version of the notification sent to + * [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]. * Only "1.0" is accepted. It represents the JSON schema as defined in - * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format + * https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format. ** *
string schema_version = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java
index 4c9a96ca..8c412b23 100644
--- a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmount.java
@@ -189,9 +189,10 @@ public BudgetAmountCase getBudgetAmountCase() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -207,9 +208,10 @@ public boolean hasSpecifiedAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -228,9 +230,10 @@ public com.google.type.Money getSpecifiedAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -693,9 +696,10 @@ public Builder clearBudgetAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -711,9 +715,10 @@ public boolean hasSpecifiedAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -739,9 +744,10 @@ public com.google.type.Money getSpecifiedAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -764,9 +770,10 @@ public Builder setSpecifiedAmount(com.google.type.Money value) {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -786,9 +793,10 @@ public Builder setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -818,9 +826,10 @@ public Builder mergeSpecifiedAmount(com.google.type.Money value) {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -846,9 +855,10 @@ public Builder clearSpecifiedAmount() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -861,9 +871,10 @@ public com.google.type.Money.Builder getSpecifiedAmountBuilder() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -884,9 +895,10 @@ public com.google.type.MoneyOrBuilder getSpecifiedAmountOrBuilder() {
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
index 01c4ec24..0a58c1ec 100644
--- a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetAmountOrBuilder.java
@@ -28,9 +28,10 @@ public interface BudgetAmountOrBuilder
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -43,9 +44,10 @@ public interface BudgetAmountOrBuilder
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
@@ -58,9 +60,10 @@ public interface BudgetAmountOrBuilder
*
* * A specified amount to use as the budget. - * `currency_code` is optional. If specified, it must match the - * currency of the billing account. The `currency_code` is provided on - * output. + * `currency_code` is optional. If specified when creating a budget, it must + * match the currency of the billing account. If specified when updating a + * budget, it must match the existing budget currency_code. + * The `currency_code` is provided on output. ** *
.google.type.Money specified_amount = 1;
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto b/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto
index 050737b8..636f3290 100644
--- a/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_model.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -72,9 +72,10 @@ message BudgetAmount {
// Specification for what amount to use as the budget.
oneof budget_amount {
// A specified amount to use as the budget.
- // `currency_code` is optional. If specified, it must match the
- // currency of the billing account. The `currency_code` is provided on
- // output.
+ // `currency_code` is optional. If specified when creating a budget, it must
+ // match the currency of the billing account. If specified when updating a
+ // budget, it must match the existing budget currency_code.
+ // The `currency_code` is provided on output.
google.type.Money specified_amount = 1;
// Use the last period's actual spend as the budget for the present period.
@@ -136,9 +137,12 @@ message AllUpdatesRule {
// for more details on Pub/Sub roles and permissions.
string pubsub_topic = 1 [(google.api.field_behavior) = OPTIONAL];
- // Optional. The schema version of the notification sent to `pubsub_topic`.
+ // Optional. Required when
+ // [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic]
+ // is set. The schema version of the notification sent to
+ // [AllUpdatesRule.pubsub_topic][google.cloud.billing.budgets.v1beta1.AllUpdatesRule.pubsub_topic].
// Only "1.0" is accepted. It represents the JSON schema as defined in
- // https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format
+ // https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
string schema_version = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. Targets to send notifications to when a threshold is exceeded.
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto b/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto
index fa523959..d9793470 100644
--- a/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/proto/google/cloud/billing/budgets/v1beta1/budget_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/synth.metadata b/synth.metadata
index 7522d605..e9c81130 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,23 +4,23 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-billingbudgets.git",
- "sha": "682a5ffe2604e14fa808a5da01d88de9407a36c7"
+ "sha": "d93465dd034dc3e3769b72d1ee51ee1b551952e4"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb",
- "internalRef": "356341083"
+ "sha": "f3a60f63c13fb434745ea59b990a82d6ffc803b5",
+ "internalRef": "357051517"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb",
- "internalRef": "356341083"
+ "sha": "f3a60f63c13fb434745ea59b990a82d6ffc803b5",
+ "internalRef": "357051517"
}
},
{