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 43308971..5ab58c9d 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 @@ -366,8 +366,9 @@ public com.google.protobuf.ByteString getMonitoringNotificationChannelsBytes(int * *
* Optional. When set to true, disables default notifications sent when a - * threshold is exceeded. Recipients are those with Billing Account - * Administrators and Billing Account Users IAM roles for the target account. + * threshold is exceeded. Default notifications are sent to those with Billing + * Account Administrator and Billing Account User IAM roles for the target + * account. ** *
bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1299,8 +1300,9 @@ public Builder addMonitoringNotificationChannelsBytes(com.google.protobuf.ByteSt
*
* * Optional. When set to true, disables default notifications sent when a - * threshold is exceeded. Recipients are those with Billing Account - * Administrators and Billing Account Users IAM roles for the target account. + * threshold is exceeded. Default notifications are sent to those with Billing + * Account Administrator and Billing Account User IAM roles for the target + * account. ** *
bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1317,8 +1319,9 @@ public boolean getDisableDefaultIamRecipients() {
*
*
* Optional. When set to true, disables default notifications sent when a
- * threshold is exceeded. Recipients are those with Billing Account
- * Administrators and Billing Account Users IAM roles for the target account.
+ * threshold is exceeded. Default notifications are sent to those with Billing
+ * Account Administrator and Billing Account User IAM roles for the target
+ * account.
*
*
* bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL];
@@ -1338,8 +1341,9 @@ public Builder setDisableDefaultIamRecipients(boolean value) {
*
*
* Optional. When set to true, disables default notifications sent when a
- * threshold is exceeded. Recipients are those with Billing Account
- * Administrators and Billing Account Users IAM roles for the target account.
+ * threshold is exceeded. Default notifications are sent to those with Billing
+ * Account Administrator and Billing Account User IAM roles for the target
+ * account.
*
*
* bool disable_default_iam_recipients = 4 [(.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 b53b23b0..f6e63013 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
@@ -189,8 +189,9 @@ public interface AllUpdatesRuleOrBuilder
*
*
* Optional. When set to true, disables default notifications sent when a
- * threshold is exceeded. Recipients are those with Billing Account
- * Administrators and Billing Account Users IAM roles for the target account.
+ * threshold is exceeded. Default notifications are sent to those with Billing
+ * Account Administrator and Billing Account User IAM roles for the target
+ * account.
*
*
* bool disable_default_iam_recipients = 4 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
index fa528a5b..c2b4cdd2 100644
--- a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetModel.java
@@ -95,21 +95,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ic\030\001 \001(\tB\003\340A\001\022\033\n\016schema_version\030\002 \001(\tB\003\340"
+ "A\001\022-\n monitoring_notification_channels\030\003"
+ " \003(\tB\003\340A\001\022+\n\036disable_default_iam_recipie"
- + "nts\030\004 \001(\010B\003\340A\001\"\304\003\n\006Filter\022\025\n\010projects\030\001 "
- + "\003(\tB\003\340A\001\022f\n\026credit_types_treatment\030\004 \001(\016"
- + "2A.google.cloud.billing.budgets.v1beta1."
- + "Filter.CreditTypesTreatmentB\003\340A\001\022\025\n\010serv"
- + "ices\030\003 \003(\tB\003\340A\001\022\030\n\013subaccounts\030\005 \003(\tB\003\340A"
- + "\001\022M\n\006labels\030\006 \003(\01328.google.cloud.billing"
- + ".budgets.v1beta1.Filter.LabelsEntryB\003\340A\001"
- + "\032I\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 "
- + "\001(\0132\032.google.protobuf.ListValue:\0028\001\"p\n\024C"
- + "reditTypesTreatment\022&\n\"CREDIT_TYPES_TREA"
- + "TMENT_UNSPECIFIED\020\000\022\027\n\023INCLUDE_ALL_CREDI"
- + "TS\020\001\022\027\n\023EXCLUDE_ALL_CREDITS\020\002By\n(com.goo"
- + "gle.cloud.billing.budgets.v1beta1P\001ZKgoo"
- + "gle.golang.org/genproto/googleapis/cloud"
- + "/billing/budgets/v1beta1;budgetsb\006proto3"
+ + "nts\030\004 \001(\010B\003\340A\001\"\377\003\n\006Filter\022\025\n\010projects\030\001 "
+ + "\003(\tB\003\340A\001\022\031\n\014credit_types\030\007 \003(\tB\003\340A\001\022f\n\026c"
+ + "redit_types_treatment\030\004 \001(\0162A.google.clo"
+ + "ud.billing.budgets.v1beta1.Filter.Credit"
+ + "TypesTreatmentB\003\340A\001\022\025\n\010services\030\003 \003(\tB\003\340"
+ + "A\001\022\030\n\013subaccounts\030\005 \003(\tB\003\340A\001\022M\n\006labels\030\006"
+ + " \003(\01328.google.cloud.billing.budgets.v1be"
+ + "ta1.Filter.LabelsEntryB\003\340A\001\032I\n\013LabelsEnt"
+ + "ry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google."
+ + "protobuf.ListValue:\0028\001\"\217\001\n\024CreditTypesTr"
+ + "eatment\022&\n\"CREDIT_TYPES_TREATMENT_UNSPEC"
+ + "IFIED\020\000\022\027\n\023INCLUDE_ALL_CREDITS\020\001\022\027\n\023EXCL"
+ + "UDE_ALL_CREDITS\020\002\022\035\n\031INCLUDE_SPECIFIED_C"
+ + "REDITS\020\003By\n(com.google.cloud.billing.bud"
+ + "gets.v1beta1P\001ZKgoogle.golang.org/genpro"
+ + "to/googleapis/cloud/billing/budgets/v1be"
+ + "ta1;budgetsb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -173,7 +175,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor,
new java.lang.String[] {
- "Projects", "CreditTypesTreatment", "Services", "Subaccounts", "Labels",
+ "Projects",
+ "CreditTypes",
+ "CreditTypesTreatment",
+ "Services",
+ "Subaccounts",
+ "Labels",
});
internal_static_google_cloud_billing_budgets_v1beta1_Filter_LabelsEntry_descriptor =
internal_static_google_cloud_billing_budgets_v1beta1_Filter_descriptor
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java
index 997f2901..271db7cc 100644
--- a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/Filter.java
@@ -39,6 +39,7 @@ private Filter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private Filter() {
projects_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ creditTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
creditTypesTreatment_ = 0;
services_ = com.google.protobuf.LazyStringArrayList.EMPTY;
subaccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -87,9 +88,9 @@ private Filter(
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
services_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000002;
+ mutable_bitField0_ |= 0x00000004;
}
services_.add(s);
break;
@@ -104,19 +105,19 @@ private Filter(
case 42:
{
java.lang.String s = input.readStringRequireUtf8();
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ if (!((mutable_bitField0_ & 0x00000008) != 0)) {
subaccounts_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000004;
+ mutable_bitField0_ |= 0x00000008;
}
subaccounts_.add(s);
break;
}
case 50:
{
- if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+ if (!((mutable_bitField0_ & 0x00000010) != 0)) {
labels_ =
com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
- mutable_bitField0_ |= 0x00000008;
+ mutable_bitField0_ |= 0x00000010;
}
com.google.protobuf.MapEntry
labels__ =
@@ -126,6 +127,16 @@ private Filter(
labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
break;
}
+ case 58:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ creditTypes_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ creditTypes_.add(s);
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -143,12 +154,15 @@ private Filter(
if (((mutable_bitField0_ & 0x00000001) != 0)) {
projects_ = projects_.getUnmodifiableView();
}
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
services_ = services_.getUnmodifiableView();
}
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
subaccounts_ = subaccounts_.getUnmodifiableView();
}
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ creditTypes_ = creditTypes_.getUnmodifiableView();
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -215,6 +229,17 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
* EXCLUDE_ALL_CREDITS = 2;
*/
EXCLUDE_ALL_CREDITS(2),
+ /**
+ *
+ *
+ *
+ * Credit types specified in the credit_types field are subtracted from the
+ * gross cost to determine the spend for threshold calculations.
+ *
+ *
+ * INCLUDE_SPECIFIED_CREDITS = 3;
+ */
+ INCLUDE_SPECIFIED_CREDITS(3),
UNRECOGNIZED(-1),
;
@@ -242,6 +267,17 @@ public enum CreditTypesTreatment implements com.google.protobuf.ProtocolMessageE
* EXCLUDE_ALL_CREDITS = 2;
*/
public static final int EXCLUDE_ALL_CREDITS_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Credit types specified in the credit_types field are subtracted from the
+ * gross cost to determine the spend for threshold calculations.
+ *
+ *
+ * INCLUDE_SPECIFIED_CREDITS = 3;
+ */
+ public static final int INCLUDE_SPECIFIED_CREDITS_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -273,6 +309,8 @@ public static CreditTypesTreatment forNumber(int value) {
return INCLUDE_ALL_CREDITS;
case 2:
return EXCLUDE_ALL_CREDITS;
+ case 3:
+ return INCLUDE_SPECIFIED_CREDITS;
default:
return null;
}
@@ -406,6 +444,91 @@ public com.google.protobuf.ByteString getProjectsBytes(int index) {
return projects_.getByteString(index);
}
+ public static final int CREDIT_TYPES_FIELD_NUMBER = 7;
+ private com.google.protobuf.LazyStringList creditTypes_;
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the creditTypes.
+ */
+ public com.google.protobuf.ProtocolStringList getCreditTypesList() {
+ return creditTypes_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of creditTypes.
+ */
+ public int getCreditTypesCount() {
+ return creditTypes_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The creditTypes at the given index.
+ */
+ public java.lang.String getCreditTypes(int index) {
+ return creditTypes_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the creditTypes at the given index.
+ */
+ public com.google.protobuf.ByteString getCreditTypesBytes(int index) {
+ return creditTypes_.getByteString(index);
+ }
+
public static final int CREDIT_TYPES_TREATMENT_FIELD_NUMBER = 4;
private int creditTypesTreatment_;
/**
@@ -767,6 +890,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6);
+ for (int i = 0; i < creditTypes_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, creditTypes_.getRaw(i));
+ }
unknownFields.writeTo(output);
}
@@ -816,6 +942,14 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < creditTypes_.size(); i++) {
+ dataSize += computeStringSizeNoTag(creditTypes_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getCreditTypesList().size();
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -833,6 +967,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.billing.budgets.v1beta1.Filter) obj;
if (!getProjectsList().equals(other.getProjectsList())) return false;
+ if (!getCreditTypesList().equals(other.getCreditTypesList())) return false;
if (creditTypesTreatment_ != other.creditTypesTreatment_) return false;
if (!getServicesList().equals(other.getServicesList())) return false;
if (!getSubaccountsList().equals(other.getSubaccountsList())) return false;
@@ -852,6 +987,10 @@ public int hashCode() {
hash = (37 * hash) + PROJECTS_FIELD_NUMBER;
hash = (53 * hash) + getProjectsList().hashCode();
}
+ if (getCreditTypesCount() > 0) {
+ hash = (37 * hash) + CREDIT_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + getCreditTypesList().hashCode();
+ }
hash = (37 * hash) + CREDIT_TYPES_TREATMENT_FIELD_NUMBER;
hash = (53 * hash) + creditTypesTreatment_;
if (getServicesCount() > 0) {
@@ -1033,12 +1172,14 @@ public Builder clear() {
super.clear();
projects_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
+ creditTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
creditTypesTreatment_ = 0;
services_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- subaccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
+ subaccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableLabels().clear();
return this;
}
@@ -1073,16 +1214,21 @@ public com.google.cloud.billing.budgets.v1beta1.Filter buildPartial() {
bitField0_ = (bitField0_ & ~0x00000001);
}
result.projects_ = projects_;
- result.creditTypesTreatment_ = creditTypesTreatment_;
if (((bitField0_ & 0x00000002) != 0)) {
- services_ = services_.getUnmodifiableView();
+ creditTypes_ = creditTypes_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
- result.services_ = services_;
+ result.creditTypes_ = creditTypes_;
+ result.creditTypesTreatment_ = creditTypesTreatment_;
if (((bitField0_ & 0x00000004) != 0)) {
- subaccounts_ = subaccounts_.getUnmodifiableView();
+ services_ = services_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
+ result.services_ = services_;
+ if (((bitField0_ & 0x00000008) != 0)) {
+ subaccounts_ = subaccounts_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
result.subaccounts_ = subaccounts_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
@@ -1146,13 +1292,23 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other)
}
onChanged();
}
+ if (!other.creditTypes_.isEmpty()) {
+ if (creditTypes_.isEmpty()) {
+ creditTypes_ = other.creditTypes_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureCreditTypesIsMutable();
+ creditTypes_.addAll(other.creditTypes_);
+ }
+ onChanged();
+ }
if (other.creditTypesTreatment_ != 0) {
setCreditTypesTreatmentValue(other.getCreditTypesTreatmentValue());
}
if (!other.services_.isEmpty()) {
if (services_.isEmpty()) {
services_ = other.services_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureServicesIsMutable();
services_.addAll(other.services_);
@@ -1162,7 +1318,7 @@ public Builder mergeFrom(com.google.cloud.billing.budgets.v1beta1.Filter other)
if (!other.subaccounts_.isEmpty()) {
if (subaccounts_.isEmpty()) {
subaccounts_ = other.subaccounts_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureSubaccountsIsMutable();
subaccounts_.addAll(other.subaccounts_);
@@ -1405,6 +1561,228 @@ public Builder addProjectsBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.LazyStringList creditTypes_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureCreditTypesIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ creditTypes_ = new com.google.protobuf.LazyStringArrayList(creditTypes_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the creditTypes.
+ */
+ public com.google.protobuf.ProtocolStringList getCreditTypesList() {
+ return creditTypes_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of creditTypes.
+ */
+ public int getCreditTypesCount() {
+ return creditTypes_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The creditTypes at the given index.
+ */
+ public java.lang.String getCreditTypes(int index) {
+ return creditTypes_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the creditTypes at the given index.
+ */
+ public com.google.protobuf.ByteString getCreditTypesBytes(int index) {
+ return creditTypes_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index to set the value at.
+ * @param value The creditTypes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCreditTypes(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCreditTypesIsMutable();
+ creditTypes_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The creditTypes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addCreditTypes(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCreditTypesIsMutable();
+ creditTypes_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param values The creditTypes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllCreditTypes(java.lang.Iterable values) {
+ ensureCreditTypesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creditTypes_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCreditTypes() {
+ creditTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes of the creditTypes to add.
+ * @return This builder for chaining.
+ */
+ public Builder addCreditTypesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureCreditTypesIsMutable();
+ creditTypes_.add(value);
+ onChanged();
+ return this;
+ }
+
private int creditTypesTreatment_ = 0;
/**
*
@@ -1515,9 +1893,9 @@ public Builder clearCreditTypesTreatment() {
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureServicesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
services_ = new com.google.protobuf.LazyStringArrayList(services_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
}
}
/**
@@ -1692,7 +2070,7 @@ public Builder addAllServices(java.lang.Iterable values) {
*/
public Builder clearServices() {
services_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1728,9 +2106,9 @@ public Builder addServicesBytes(com.google.protobuf.ByteString value) {
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSubaccountsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000008) != 0)) {
subaccounts_ = new com.google.protobuf.LazyStringArrayList(subaccounts_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
}
}
/**
@@ -1905,7 +2283,7 @@ public Builder addAllSubaccounts(java.lang.Iterable values) {
*/
public Builder clearSubaccounts() {
subaccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
diff --git a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java
index 13cb159d..9360ef87 100644
--- a/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java
+++ b/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/FilterOrBuilder.java
@@ -90,6 +90,81 @@ public interface FilterOrBuilder
*/
com.google.protobuf.ByteString getProjectsBytes(int index);
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the creditTypes.
+ */
+ java.util.List getCreditTypesList();
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of creditTypes.
+ */
+ int getCreditTypesCount();
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The creditTypes at the given index.
+ */
+ java.lang.String getCreditTypes(int index);
+ /**
+ *
+ *
+ *
+ * Optional. A list of credit types to be subtracted from gross cost to
+ * determine the spend for threshold calculations if and only if
+ * credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ * credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ * empty. See credits.type at
+ * https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ * for a list of acceptable credit type values in this field.
+ *
+ *
+ * repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the creditTypes at the given index.
+ */
+ com.google.protobuf.ByteString getCreditTypesBytes(int index);
+
/**
*
*
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 327069b6..10f149fe 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
@@ -153,8 +153,9 @@ message AllUpdatesRule {
[(google.api.field_behavior) = OPTIONAL];
// Optional. When set to true, disables default notifications sent when a
- // threshold is exceeded. Recipients are those with Billing Account
- // Administrators and Billing Account Users IAM roles for the target account.
+ // threshold is exceeded. Default notifications are sent to those with Billing
+ // Account Administrator and Billing Account User IAM roles for the target
+ // account.
bool disable_default_iam_recipients = 4
[(google.api.field_behavior) = OPTIONAL];
}
@@ -173,6 +174,10 @@ message Filter {
// All types of credit are added to the net cost to determine the spend for
// threshold calculations.
EXCLUDE_ALL_CREDITS = 2;
+
+ // Credit types specified in the credit_types field are subtracted from the
+ // gross cost to determine the spend for threshold calculations.
+ INCLUDE_SPECIFIED_CREDITS = 3;
}
// Optional. A set of projects of the form `projects/{project}`,
@@ -182,6 +187,15 @@ message Filter {
// Only zero or one project can be specified currently.
repeated string projects = 1 [(google.api.field_behavior) = OPTIONAL];
+ // Optional. A list of credit types to be subtracted from gross cost to
+ // determine the spend for threshold calculations if and only if
+ // credit_types_treatment is INCLUDE_SPECIFIED_CREDITS. If
+ // credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be
+ // empty. See credits.type at
+ // https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#data-schema
+ // for a list of acceptable credit type values in this field.
+ repeated string credit_types = 7 [(google.api.field_behavior) = OPTIONAL];
+
// Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
CreditTypesTreatment credit_types_treatment = 4
[(google.api.field_behavior) = OPTIONAL];
diff --git a/synth.metadata b/synth.metadata
index 15abaa5f..94d46dfc 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -3,24 +3,24 @@
{
"git": {
"name": ".",
- "remote": "git@github.com:googleapis/java-billingbudgets.git",
- "sha": "ad03f9f20e9d3ecd5d6d88dadb21a102dae83501"
+ "remote": "https://github.com/googleapis/java-billingbudgets.git",
+ "sha": "ffc47887db4cbc97d626cee5dd3df17f19e60864"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "f4f491879fdf694fbd0c4a2a6e7628e0e100ddd5",
- "internalRef": "339472806"
+ "sha": "a9dafb196ae8cf27ba8795efcc1944292ad92264",
+ "internalRef": "339511971"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "f4f491879fdf694fbd0c4a2a6e7628e0e100ddd5",
- "internalRef": "339472806"
+ "sha": "a9dafb196ae8cf27ba8795efcc1944292ad92264",
+ "internalRef": "339511971"
}
},
{