public static final class Filter.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder> implements FilterOrBuilder
A filter for a budget, limiting the scope of the cost to calculate.Protobuf type
google.cloud.billing.budgets.v1beta1.Filter| Modifier and Type | Method and Description |
|---|---|
Filter.Builder |
addAllCreditTypes(Iterable<String> values)
Optional.
|
Filter.Builder |
addAllProjects(Iterable<String> values)
Optional.
|
Filter.Builder |
addAllResourceAncestors(Iterable<String> values)
Optional.
|
Filter.Builder |
addAllServices(Iterable<String> values)
Optional.
|
Filter.Builder |
addAllSubaccounts(Iterable<String> values)
Optional.
|
Filter.Builder |
addCreditTypes(String value)
Optional.
|
Filter.Builder |
addCreditTypesBytes(com.google.protobuf.ByteString value)
Optional.
|
Filter.Builder |
addProjects(String value)
Optional.
|
Filter.Builder |
addProjectsBytes(com.google.protobuf.ByteString value)
Optional.
|
Filter.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Filter.Builder |
addResourceAncestors(String value)
Optional.
|
Filter.Builder |
addResourceAncestorsBytes(com.google.protobuf.ByteString value)
Optional.
|
Filter.Builder |
addServices(String value)
Optional.
|
Filter.Builder |
addServicesBytes(com.google.protobuf.ByteString value)
Optional.
|
Filter.Builder |
addSubaccounts(String value)
Optional.
|
Filter.Builder |
addSubaccountsBytes(com.google.protobuf.ByteString value)
Optional.
|
Filter |
build() |
Filter |
buildPartial() |
Filter.Builder |
clear() |
Filter.Builder |
clearCalendarPeriod()
Optional.
|
Filter.Builder |
clearCreditTypes()
Optional.
|
Filter.Builder |
clearCreditTypesTreatment()
Optional.
|
Filter.Builder |
clearCustomPeriod()
Optional.
|
Filter.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Filter.Builder |
clearLabels() |
Filter.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Filter.Builder |
clearProjects()
Optional.
|
Filter.Builder |
clearResourceAncestors()
Optional.
|
Filter.Builder |
clearServices()
Optional.
|
Filter.Builder |
clearSubaccounts()
Optional.
|
Filter.Builder |
clearUsagePeriod() |
Filter.Builder |
clone() |
boolean |
containsLabels(String key)
Optional.
|
CalendarPeriod |
getCalendarPeriod()
Optional.
|
int |
getCalendarPeriodValue()
Optional.
|
String |
getCreditTypes(int index)
Optional.
|
com.google.protobuf.ByteString |
getCreditTypesBytes(int index)
Optional.
|
int |
getCreditTypesCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getCreditTypesList()
Optional.
|
Filter.CreditTypesTreatment |
getCreditTypesTreatment()
Optional.
|
int |
getCreditTypesTreatmentValue()
Optional.
|
CustomPeriod |
getCustomPeriod()
Optional.
|
CustomPeriod.Builder |
getCustomPeriodBuilder()
Optional.
|
CustomPeriodOrBuilder |
getCustomPeriodOrBuilder()
Optional.
|
Filter |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,com.google.protobuf.ListValue> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Optional.
|
Map<String,com.google.protobuf.ListValue> |
getLabelsMap()
Optional.
|
com.google.protobuf.ListValue |
getLabelsOrDefault(String key,
com.google.protobuf.ListValue defaultValue)
Optional.
|
com.google.protobuf.ListValue |
getLabelsOrThrow(String key)
Optional.
|
Map<String,com.google.protobuf.ListValue> |
getMutableLabels()
Deprecated.
|
String |
getProjects(int index)
Optional.
|
com.google.protobuf.ByteString |
getProjectsBytes(int index)
Optional.
|
int |
getProjectsCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getProjectsList()
Optional.
|
String |
getResourceAncestors(int index)
Optional.
|
com.google.protobuf.ByteString |
getResourceAncestorsBytes(int index)
Optional.
|
int |
getResourceAncestorsCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getResourceAncestorsList()
Optional.
|
String |
getServices(int index)
Optional.
|
com.google.protobuf.ByteString |
getServicesBytes(int index)
Optional.
|
int |
getServicesCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getServicesList()
Optional.
|
String |
getSubaccounts(int index)
Optional.
|
com.google.protobuf.ByteString |
getSubaccountsBytes(int index)
Optional.
|
int |
getSubaccountsCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getSubaccountsList()
Optional.
|
Filter.UsagePeriodCase |
getUsagePeriodCase() |
boolean |
hasCalendarPeriod()
Optional.
|
boolean |
hasCustomPeriod()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Filter.Builder |
mergeCustomPeriod(CustomPeriod value)
Optional.
|
Filter.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Filter.Builder |
mergeFrom(Filter other) |
Filter.Builder |
mergeFrom(com.google.protobuf.Message other) |
Filter.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Filter.Builder |
putAllLabels(Map<String,com.google.protobuf.ListValue> values)
Optional.
|
Filter.Builder |
putLabels(String key,
com.google.protobuf.ListValue value)
Optional.
|
Filter.Builder |
removeLabels(String key)
Optional.
|
Filter.Builder |
setCalendarPeriod(CalendarPeriod value)
Optional.
|
Filter.Builder |
setCalendarPeriodValue(int value)
Optional.
|
Filter.Builder |
setCreditTypes(int index,
String value)
Optional.
|
Filter.Builder |
setCreditTypesTreatment(Filter.CreditTypesTreatment value)
Optional.
|
Filter.Builder |
setCreditTypesTreatmentValue(int value)
Optional.
|
Filter.Builder |
setCustomPeriod(CustomPeriod.Builder builderForValue)
Optional.
|
Filter.Builder |
setCustomPeriod(CustomPeriod value)
Optional.
|
Filter.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Filter.Builder |
setProjects(int index,
String value)
Optional.
|
Filter.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Filter.Builder |
setResourceAncestors(int index,
String value)
Optional.
|
Filter.Builder |
setServices(int index,
String value)
Optional.
|
Filter.Builder |
setSubaccounts(int index,
String value)
Optional.
|
Filter.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public Filter.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public Filter getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Filter build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Filter buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Filter.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public Filter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public Filter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public Filter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public Filter.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public Filter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public Filter.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Filter.Builder>public Filter.Builder mergeFrom(Filter other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public Filter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Filter.Builder>IOExceptionpublic Filter.UsagePeriodCase getUsagePeriodCase()
getUsagePeriodCase in interface FilterOrBuilderpublic Filter.Builder clearUsagePeriod()
public com.google.protobuf.ProtocolStringList getProjectsList()
Optional. A set of projects of the form `projects/{project}`,
specifying that usage from only this set of projects should be
included in the budget. If omitted, the report will include all usage for
the billing account, regardless of which project the usage occurred on.
repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];getProjectsList in interface FilterOrBuilderpublic int getProjectsCount()
Optional. A set of projects of the form `projects/{project}`,
specifying that usage from only this set of projects should be
included in the budget. If omitted, the report will include all usage for
the billing account, regardless of which project the usage occurred on.
repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];getProjectsCount in interface FilterOrBuilderpublic String getProjects(int index)
Optional. A set of projects of the form `projects/{project}`,
specifying that usage from only this set of projects should be
included in the budget. If omitted, the report will include all usage for
the billing account, regardless of which project the usage occurred on.
repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];getProjects in interface FilterOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getProjectsBytes(int index)
Optional. A set of projects of the form `projects/{project}`,
specifying that usage from only this set of projects should be
included in the budget. If omitted, the report will include all usage for
the billing account, regardless of which project the usage occurred on.
repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];getProjectsBytes in interface FilterOrBuilderindex - The index of the value to return.public Filter.Builder setProjects(int index, String value)
Optional. A set of projects of the form `projects/{project}`,
specifying that usage from only this set of projects should be
included in the budget. If omitted, the report will include all usage for
the billing account, regardless of which project the usage occurred on.
repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The projects to set.public Filter.Builder addProjects(String value)
Optional. A set of projects of the form `projects/{project}`,
specifying that usage from only this set of projects should be
included in the budget. If omitted, the report will include all usage for
the billing account, regardless of which project the usage occurred on.
repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];value - The projects to add.public Filter.Builder addAllProjects(Iterable<String> values)
Optional. A set of projects of the form `projects/{project}`,
specifying that usage from only this set of projects should be
included in the budget. If omitted, the report will include all usage for
the billing account, regardless of which project the usage occurred on.
repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];values - The projects to add.public Filter.Builder clearProjects()
Optional. A set of projects of the form `projects/{project}`,
specifying that usage from only this set of projects should be
included in the budget. If omitted, the report will include all usage for
the billing account, regardless of which project the usage occurred on.
repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];public Filter.Builder addProjectsBytes(com.google.protobuf.ByteString value)
Optional. A set of projects of the form `projects/{project}`,
specifying that usage from only this set of projects should be
included in the budget. If omitted, the report will include all usage for
the billing account, regardless of which project the usage occurred on.
repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the projects to add.public com.google.protobuf.ProtocolStringList getResourceAncestorsList()
Optional. A set of folder and organization names of the form
`folders/{folderId}` or `organizations/{organizationId}`, specifying that
usage from only this set of folders and organizations should be included in
the budget. If omitted, the budget includes all usage that the billing
account pays for. If the folder or organization contains projects that are
paid for by a different Cloud Billing account, the budget *doesn't* apply
to those projects.
repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
getResourceAncestorsList in interface FilterOrBuilderpublic int getResourceAncestorsCount()
Optional. A set of folder and organization names of the form
`folders/{folderId}` or `organizations/{organizationId}`, specifying that
usage from only this set of folders and organizations should be included in
the budget. If omitted, the budget includes all usage that the billing
account pays for. If the folder or organization contains projects that are
paid for by a different Cloud Billing account, the budget *doesn't* apply
to those projects.
repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
getResourceAncestorsCount in interface FilterOrBuilderpublic String getResourceAncestors(int index)
Optional. A set of folder and organization names of the form
`folders/{folderId}` or `organizations/{organizationId}`, specifying that
usage from only this set of folders and organizations should be included in
the budget. If omitted, the budget includes all usage that the billing
account pays for. If the folder or organization contains projects that are
paid for by a different Cloud Billing account, the budget *doesn't* apply
to those projects.
repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
getResourceAncestors in interface FilterOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getResourceAncestorsBytes(int index)
Optional. A set of folder and organization names of the form
`folders/{folderId}` or `organizations/{organizationId}`, specifying that
usage from only this set of folders and organizations should be included in
the budget. If omitted, the budget includes all usage that the billing
account pays for. If the folder or organization contains projects that are
paid for by a different Cloud Billing account, the budget *doesn't* apply
to those projects.
repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
getResourceAncestorsBytes in interface FilterOrBuilderindex - The index of the value to return.public Filter.Builder setResourceAncestors(int index, String value)
Optional. A set of folder and organization names of the form
`folders/{folderId}` or `organizations/{organizationId}`, specifying that
usage from only this set of folders and organizations should be included in
the budget. If omitted, the budget includes all usage that the billing
account pays for. If the folder or organization contains projects that are
paid for by a different Cloud Billing account, the budget *doesn't* apply
to those projects.
repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
index - The index to set the value at.value - The resourceAncestors to set.public Filter.Builder addResourceAncestors(String value)
Optional. A set of folder and organization names of the form
`folders/{folderId}` or `organizations/{organizationId}`, specifying that
usage from only this set of folders and organizations should be included in
the budget. If omitted, the budget includes all usage that the billing
account pays for. If the folder or organization contains projects that are
paid for by a different Cloud Billing account, the budget *doesn't* apply
to those projects.
repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The resourceAncestors to add.public Filter.Builder addAllResourceAncestors(Iterable<String> values)
Optional. A set of folder and organization names of the form
`folders/{folderId}` or `organizations/{organizationId}`, specifying that
usage from only this set of folders and organizations should be included in
the budget. If omitted, the budget includes all usage that the billing
account pays for. If the folder or organization contains projects that are
paid for by a different Cloud Billing account, the budget *doesn't* apply
to those projects.
repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
values - The resourceAncestors to add.public Filter.Builder clearResourceAncestors()
Optional. A set of folder and organization names of the form
`folders/{folderId}` or `organizations/{organizationId}`, specifying that
usage from only this set of folders and organizations should be included in
the budget. If omitted, the budget includes all usage that the billing
account pays for. If the folder or organization contains projects that are
paid for by a different Cloud Billing account, the budget *doesn't* apply
to those projects.
repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
public Filter.Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value)
Optional. A set of folder and organization names of the form
`folders/{folderId}` or `organizations/{organizationId}`, specifying that
usage from only this set of folders and organizations should be included in
the budget. If omitted, the budget includes all usage that the billing
account pays for. If the folder or organization contains projects that are
paid for by a different Cloud Billing account, the budget *doesn't* apply
to those projects.
repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes of the resourceAncestors to add.public com.google.protobuf.ProtocolStringList getCreditTypesList()
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];getCreditTypesList in interface FilterOrBuilderpublic int getCreditTypesCount()
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];getCreditTypesCount in interface FilterOrBuilderpublic String getCreditTypes(int index)
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];getCreditTypes in interface FilterOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getCreditTypesBytes(int index)
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];getCreditTypesBytes in interface FilterOrBuilderindex - The index of the value to return.public Filter.Builder setCreditTypes(int index, String value)
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The creditTypes to set.public Filter.Builder addCreditTypes(String value)
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];value - The creditTypes to add.public Filter.Builder addAllCreditTypes(Iterable<String> values)
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];values - The creditTypes to add.public Filter.Builder clearCreditTypes()
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];public Filter.Builder addCreditTypesBytes(com.google.protobuf.ByteString value)
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See [a list of acceptable credit type values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type). If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1beta1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the creditTypes to add.public int getCreditTypesTreatmentValue()
Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];
getCreditTypesTreatmentValue in interface FilterOrBuilderpublic Filter.Builder setCreditTypesTreatmentValue(int value)
Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for creditTypesTreatment to set.public Filter.CreditTypesTreatment getCreditTypesTreatment()
Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];
getCreditTypesTreatment in interface FilterOrBuilderpublic Filter.Builder setCreditTypesTreatment(Filter.CreditTypesTreatment value)
Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];
value - The creditTypesTreatment to set.public Filter.Builder clearCreditTypesTreatment()
Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
.google.cloud.billing.budgets.v1beta1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.ProtocolStringList getServicesList()
Optional. A set of services of the form `services/{service_id}`,
specifying that usage from only this set of services should be
included in the budget. If omitted, the report will include usage for
all the services.
The service names are available through the Catalog API:
https://cloud.google.com/billing/v1/how-tos/catalog-api.
repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];getServicesList in interface FilterOrBuilderpublic int getServicesCount()
Optional. A set of services of the form `services/{service_id}`,
specifying that usage from only this set of services should be
included in the budget. If omitted, the report will include usage for
all the services.
The service names are available through the Catalog API:
https://cloud.google.com/billing/v1/how-tos/catalog-api.
repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];getServicesCount in interface FilterOrBuilderpublic String getServices(int index)
Optional. A set of services of the form `services/{service_id}`,
specifying that usage from only this set of services should be
included in the budget. If omitted, the report will include usage for
all the services.
The service names are available through the Catalog API:
https://cloud.google.com/billing/v1/how-tos/catalog-api.
repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];getServices in interface FilterOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getServicesBytes(int index)
Optional. A set of services of the form `services/{service_id}`,
specifying that usage from only this set of services should be
included in the budget. If omitted, the report will include usage for
all the services.
The service names are available through the Catalog API:
https://cloud.google.com/billing/v1/how-tos/catalog-api.
repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];getServicesBytes in interface FilterOrBuilderindex - The index of the value to return.public Filter.Builder setServices(int index, String value)
Optional. A set of services of the form `services/{service_id}`,
specifying that usage from only this set of services should be
included in the budget. If omitted, the report will include usage for
all the services.
The service names are available through the Catalog API:
https://cloud.google.com/billing/v1/how-tos/catalog-api.
repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The services to set.public Filter.Builder addServices(String value)
Optional. A set of services of the form `services/{service_id}`,
specifying that usage from only this set of services should be
included in the budget. If omitted, the report will include usage for
all the services.
The service names are available through the Catalog API:
https://cloud.google.com/billing/v1/how-tos/catalog-api.
repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];value - The services to add.public Filter.Builder addAllServices(Iterable<String> values)
Optional. A set of services of the form `services/{service_id}`,
specifying that usage from only this set of services should be
included in the budget. If omitted, the report will include usage for
all the services.
The service names are available through the Catalog API:
https://cloud.google.com/billing/v1/how-tos/catalog-api.
repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];values - The services to add.public Filter.Builder clearServices()
Optional. A set of services of the form `services/{service_id}`,
specifying that usage from only this set of services should be
included in the budget. If omitted, the report will include usage for
all the services.
The service names are available through the Catalog API:
https://cloud.google.com/billing/v1/how-tos/catalog-api.
repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];public Filter.Builder addServicesBytes(com.google.protobuf.ByteString value)
Optional. A set of services of the form `services/{service_id}`,
specifying that usage from only this set of services should be
included in the budget. If omitted, the report will include usage for
all the services.
The service names are available through the Catalog API:
https://cloud.google.com/billing/v1/how-tos/catalog-api.
repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the services to add.public com.google.protobuf.ProtocolStringList getSubaccountsList()
Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
specifying that usage from only this set of subaccounts should be included
in the budget. If a subaccount is set to the name of the parent account,
usage from the parent account will be included. If omitted, the
report will include usage from the parent account and all
subaccounts, if they exist.
repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];getSubaccountsList in interface FilterOrBuilderpublic int getSubaccountsCount()
Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
specifying that usage from only this set of subaccounts should be included
in the budget. If a subaccount is set to the name of the parent account,
usage from the parent account will be included. If omitted, the
report will include usage from the parent account and all
subaccounts, if they exist.
repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];getSubaccountsCount in interface FilterOrBuilderpublic String getSubaccounts(int index)
Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
specifying that usage from only this set of subaccounts should be included
in the budget. If a subaccount is set to the name of the parent account,
usage from the parent account will be included. If omitted, the
report will include usage from the parent account and all
subaccounts, if they exist.
repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];getSubaccounts in interface FilterOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getSubaccountsBytes(int index)
Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
specifying that usage from only this set of subaccounts should be included
in the budget. If a subaccount is set to the name of the parent account,
usage from the parent account will be included. If omitted, the
report will include usage from the parent account and all
subaccounts, if they exist.
repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];getSubaccountsBytes in interface FilterOrBuilderindex - The index of the value to return.public Filter.Builder setSubaccounts(int index, String value)
Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
specifying that usage from only this set of subaccounts should be included
in the budget. If a subaccount is set to the name of the parent account,
usage from the parent account will be included. If omitted, the
report will include usage from the parent account and all
subaccounts, if they exist.
repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The subaccounts to set.public Filter.Builder addSubaccounts(String value)
Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
specifying that usage from only this set of subaccounts should be included
in the budget. If a subaccount is set to the name of the parent account,
usage from the parent account will be included. If omitted, the
report will include usage from the parent account and all
subaccounts, if they exist.
repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];value - The subaccounts to add.public Filter.Builder addAllSubaccounts(Iterable<String> values)
Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
specifying that usage from only this set of subaccounts should be included
in the budget. If a subaccount is set to the name of the parent account,
usage from the parent account will be included. If omitted, the
report will include usage from the parent account and all
subaccounts, if they exist.
repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];values - The subaccounts to add.public Filter.Builder clearSubaccounts()
Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
specifying that usage from only this set of subaccounts should be included
in the budget. If a subaccount is set to the name of the parent account,
usage from the parent account will be included. If omitted, the
report will include usage from the parent account and all
subaccounts, if they exist.
repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];public Filter.Builder addSubaccountsBytes(com.google.protobuf.ByteString value)
Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
specifying that usage from only this set of subaccounts should be included
in the budget. If a subaccount is set to the name of the parent account,
usage from the parent account will be included. If omitted, the
report will include usage from the parent account and all
subaccounts, if they exist.
repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the subaccounts to add.public int getLabelsCount()
FilterOrBuilder
Optional. A single label and value pair specifying that usage from only
this set of labeled resources should be included in the budget. If omitted,
the report will include all labeled and unlabeled usage.
An object containing a single `"key": value` pair. Example: `{ "name":
"wrench" }`.
_Currently, multiple entries or multiple values per entry are not
allowed._
map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
getLabelsCount in interface FilterOrBuilderpublic boolean containsLabels(String key)
Optional. A single label and value pair specifying that usage from only
this set of labeled resources should be included in the budget. If omitted,
the report will include all labeled and unlabeled usage.
An object containing a single `"key": value` pair. Example: `{ "name":
"wrench" }`.
_Currently, multiple entries or multiple values per entry are not
allowed._
map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
containsLabels in interface FilterOrBuilder@Deprecated public Map<String,com.google.protobuf.ListValue> getLabels()
getLabelsMap() instead.getLabels in interface FilterOrBuilderpublic Map<String,com.google.protobuf.ListValue> getLabelsMap()
Optional. A single label and value pair specifying that usage from only
this set of labeled resources should be included in the budget. If omitted,
the report will include all labeled and unlabeled usage.
An object containing a single `"key": value` pair. Example: `{ "name":
"wrench" }`.
_Currently, multiple entries or multiple values per entry are not
allowed._
map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
getLabelsMap in interface FilterOrBuilderpublic com.google.protobuf.ListValue getLabelsOrDefault(String key, com.google.protobuf.ListValue defaultValue)
Optional. A single label and value pair specifying that usage from only
this set of labeled resources should be included in the budget. If omitted,
the report will include all labeled and unlabeled usage.
An object containing a single `"key": value` pair. Example: `{ "name":
"wrench" }`.
_Currently, multiple entries or multiple values per entry are not
allowed._
map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrDefault in interface FilterOrBuilderpublic com.google.protobuf.ListValue getLabelsOrThrow(String key)
Optional. A single label and value pair specifying that usage from only
this set of labeled resources should be included in the budget. If omitted,
the report will include all labeled and unlabeled usage.
An object containing a single `"key": value` pair. Example: `{ "name":
"wrench" }`.
_Currently, multiple entries or multiple values per entry are not
allowed._
map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrThrow in interface FilterOrBuilderpublic Filter.Builder clearLabels()
public Filter.Builder removeLabels(String key)
Optional. A single label and value pair specifying that usage from only
this set of labeled resources should be included in the budget. If omitted,
the report will include all labeled and unlabeled usage.
An object containing a single `"key": value` pair. Example: `{ "name":
"wrench" }`.
_Currently, multiple entries or multiple values per entry are not
allowed._
map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated public Map<String,com.google.protobuf.ListValue> getMutableLabels()
public Filter.Builder putLabels(String key, com.google.protobuf.ListValue value)
Optional. A single label and value pair specifying that usage from only
this set of labeled resources should be included in the budget. If omitted,
the report will include all labeled and unlabeled usage.
An object containing a single `"key": value` pair. Example: `{ "name":
"wrench" }`.
_Currently, multiple entries or multiple values per entry are not
allowed._
map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
public Filter.Builder putAllLabels(Map<String,com.google.protobuf.ListValue> values)
Optional. A single label and value pair specifying that usage from only
this set of labeled resources should be included in the budget. If omitted,
the report will include all labeled and unlabeled usage.
An object containing a single `"key": value` pair. Example: `{ "name":
"wrench" }`.
_Currently, multiple entries or multiple values per entry are not
allowed._
map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
public boolean hasCalendarPeriod()
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
hasCalendarPeriod in interface FilterOrBuilderpublic int getCalendarPeriodValue()
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
getCalendarPeriodValue in interface FilterOrBuilderpublic Filter.Builder setCalendarPeriodValue(int value)
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for calendarPeriod to set.public CalendarPeriod getCalendarPeriod()
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
getCalendarPeriod in interface FilterOrBuilderpublic Filter.Builder setCalendarPeriod(CalendarPeriod value)
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
value - The calendarPeriod to set.public Filter.Builder clearCalendarPeriod()
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1beta1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
public boolean hasCustomPeriod()
Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur.
.google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
hasCustomPeriod in interface FilterOrBuilderpublic CustomPeriod getCustomPeriod()
Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur.
.google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
getCustomPeriod in interface FilterOrBuilderpublic Filter.Builder setCustomPeriod(CustomPeriod value)
Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur.
.google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
public Filter.Builder setCustomPeriod(CustomPeriod.Builder builderForValue)
Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur.
.google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
public Filter.Builder mergeCustomPeriod(CustomPeriod value)
Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur.
.google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
public Filter.Builder clearCustomPeriod()
Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur.
.google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
public CustomPeriod.Builder getCustomPeriodBuilder()
Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur.
.google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
public CustomPeriodOrBuilder getCustomPeriodOrBuilder()
Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur.
.google.cloud.billing.budgets.v1beta1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
getCustomPeriodOrBuilder in interface FilterOrBuilderpublic final Filter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>public final Filter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Filter.Builder>Copyright © 2024 Google LLC. All rights reserved.