Class Filter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Filter.Builder>
com.google.cloud.billing.budgets.v1.Filter.Builder
- All Implemented Interfaces:
FilterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Filter
public static final class Filter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Filter.Builder>
implements FilterOrBuilder
A filter for a budget, limiting the scope of the cost to calculate.Protobuf type
google.cloud.billing.budgets.v1.Filter-
Method Summary
Modifier and TypeMethodDescriptionaddAllCreditTypes(Iterable<String> values) Optional.addAllProjects(Iterable<String> values) Optional.addAllResourceAncestors(Iterable<String> values) Optional.addAllServices(Iterable<String> values) Optional.addAllSubaccounts(Iterable<String> values) Optional.addCreditTypes(String value) Optional.addCreditTypesBytes(com.google.protobuf.ByteString value) Optional.addProjects(String value) Optional.addProjectsBytes(com.google.protobuf.ByteString value) Optional.addResourceAncestors(String value) Optional.addResourceAncestorsBytes(com.google.protobuf.ByteString value) Optional.addServices(String value) Optional.addServicesBytes(com.google.protobuf.ByteString value) Optional.addSubaccounts(String value) Optional.addSubaccountsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.booleancontainsLabels(String key) Optional.Optional.intOptional.getCreditTypes(int index) Optional.com.google.protobuf.ByteStringgetCreditTypesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.intOptional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intOptional.Optional.com.google.protobuf.ListValuegetLabelsOrDefault(String key, com.google.protobuf.ListValue defaultValue) Optional.com.google.protobuf.ListValuegetLabelsOrThrow(String key) Optional.Deprecated.getProjects(int index) Optional.com.google.protobuf.ByteStringgetProjectsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getResourceAncestors(int index) Optional.com.google.protobuf.ByteStringgetResourceAncestorsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getServices(int index) Optional.com.google.protobuf.ByteStringgetServicesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getSubaccounts(int index) Optional.com.google.protobuf.ByteStringgetSubaccountsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCustomPeriod(CustomPeriod value) Optional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllLabels(Map<String, com.google.protobuf.ListValue> values) Optional.Optional.com.google.protobuf.ListValue.BuilderOptional.removeLabels(String key) Optional.setCalendarPeriod(CalendarPeriod value) Optional.setCalendarPeriodValue(int value) Optional.setCreditTypes(int index, String value) Optional.Optional.setCreditTypesTreatmentValue(int value) Optional.setCustomPeriod(CustomPeriod value) Optional.setCustomPeriod(CustomPeriod.Builder builderForValue) Optional.setProjects(int index, String value) Optional.setResourceAncestors(int index, String value) Optional.setServices(int index, String value) Optional.setSubaccounts(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Filter.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Filter.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Filter.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Filter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Filter.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Filter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Filter.Builder>
-
mergeFrom
public Filter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Filter.Builder>- Throws:
IOException
-
getUsagePeriodCase
- Specified by:
getUsagePeriodCasein interfaceFilterOrBuilder
-
clearUsagePeriod
-
getProjectsList
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 includes all usage for the billing account, regardless of which project the usage occurred on.repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectsListin interfaceFilterOrBuilder- Returns:
- A list containing the projects.
-
getProjectsCount
public 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 includes all usage for the billing account, regardless of which project the usage occurred on.repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectsCountin interfaceFilterOrBuilder- Returns:
- The count of projects.
-
getProjects
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 includes all usage for the billing account, regardless of which project the usage occurred on.repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectsin interfaceFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The projects at the given index.
-
getProjectsBytes
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 includes all usage for the billing account, regardless of which project the usage occurred on.repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectsBytesin interfaceFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the projects at the given index.
-
setProjects
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 includes all usage for the billing account, regardless of which project the usage occurred on.repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The projects to set.- Returns:
- This builder for chaining.
-
addProjects
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 includes all usage for the billing account, regardless of which project the usage occurred on.repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The projects to add.- Returns:
- This builder for chaining.
-
addAllProjects
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 includes all usage for the billing account, regardless of which project the usage occurred on.repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The projects to add.- Returns:
- This builder for chaining.
-
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 includes all usage for the billing account, regardless of which project the usage occurred on.repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addProjectsBytes
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 includes all usage for the billing account, regardless of which project the usage occurred on.repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the projects to add.- Returns:
- This builder for chaining.
-
getResourceAncestorsList
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];- Specified by:
getResourceAncestorsListin interfaceFilterOrBuilder- Returns:
- A list containing the resourceAncestors.
-
getResourceAncestorsCount
public 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];- Specified by:
getResourceAncestorsCountin interfaceFilterOrBuilder- Returns:
- The count of resourceAncestors.
-
getResourceAncestors
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];- Specified by:
getResourceAncestorsin interfaceFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resourceAncestors at the given index.
-
getResourceAncestorsBytes
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];- Specified by:
getResourceAncestorsBytesin interfaceFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resourceAncestors at the given index.
-
setResourceAncestors
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];- Parameters:
index- The index to set the value at.value- The resourceAncestors to set.- Returns:
- This builder for chaining.
-
addResourceAncestors
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];- Parameters:
value- The resourceAncestors to add.- Returns:
- This builder for chaining.
-
addAllResourceAncestors
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];- Parameters:
values- The resourceAncestors to add.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
addResourceAncestorsBytes
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];- Parameters:
value- The bytes of the resourceAncestors to add.- Returns:
- This builder for chaining.
-
getCreditTypesList
public com.google.protobuf.ProtocolStringList getCreditTypesList()Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.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.v1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCreditTypesListin interfaceFilterOrBuilder- Returns:
- A list containing the creditTypes.
-
getCreditTypesCount
public int getCreditTypesCount()Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.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.v1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCreditTypesCountin interfaceFilterOrBuilder- Returns:
- The count of creditTypes.
-
getCreditTypes
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.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.v1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCreditTypesin interfaceFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The creditTypes at the given index.
-
getCreditTypesBytes
public com.google.protobuf.ByteString getCreditTypesBytes(int index) Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.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.v1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCreditTypesBytesin interfaceFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the creditTypes at the given index.
-
setCreditTypes
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.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.v1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The creditTypes to set.- Returns:
- This builder for chaining.
-
addCreditTypes
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.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.v1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The creditTypes to add.- Returns:
- This builder for chaining.
-
addAllCreditTypes
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.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.v1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The creditTypes to add.- Returns:
- This builder for chaining.
-
clearCreditTypes
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.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.v1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addCreditTypesBytes
Optional. If [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.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.v1.Filter.credit_types_treatment] is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the creditTypes to add.- Returns:
- This builder for chaining.
-
getCreditTypesTreatmentValue
public int getCreditTypesTreatmentValue()Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCreditTypesTreatmentValuein interfaceFilterOrBuilder- Returns:
- The enum numeric value on the wire for creditTypesTreatment.
-
setCreditTypesTreatmentValue
Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for creditTypesTreatment to set.- Returns:
- This builder for chaining.
-
getCreditTypesTreatment
Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCreditTypesTreatmentin interfaceFilterOrBuilder- Returns:
- The creditTypesTreatment.
-
setCreditTypesTreatment
Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The creditTypesTreatment to set.- Returns:
- This builder for chaining.
-
clearCreditTypesTreatment
Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getServicesList
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 includes 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];- Specified by:
getServicesListin interfaceFilterOrBuilder- Returns:
- A list containing the services.
-
getServicesCount
public 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 includes 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];- Specified by:
getServicesCountin interfaceFilterOrBuilder- Returns:
- The count of services.
-
getServices
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 includes 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];- Specified by:
getServicesin interfaceFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The services at the given index.
-
getServicesBytes
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 includes 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];- Specified by:
getServicesBytesin interfaceFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the services at the given index.
-
setServices
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 includes 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];- Parameters:
index- The index to set the value at.value- The services to set.- Returns:
- This builder for chaining.
-
addServices
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 includes 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];- Parameters:
value- The services to add.- Returns:
- This builder for chaining.
-
addAllServices
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 includes 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];- Parameters:
values- The services to add.- Returns:
- This builder for chaining.
-
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 includes 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];- Returns:
- This builder for chaining.
-
addServicesBytes
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 includes 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];- Parameters:
value- The bytes of the services to add.- Returns:
- This builder for chaining.
-
getSubaccountsList
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 is included. If the field is omitted, the report includes usage from the parent account and all subaccounts, if they exist.repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubaccountsListin interfaceFilterOrBuilder- Returns:
- A list containing the subaccounts.
-
getSubaccountsCount
public 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 is included. If the field is omitted, the report includes usage from the parent account and all subaccounts, if they exist.repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubaccountsCountin interfaceFilterOrBuilder- Returns:
- The count of subaccounts.
-
getSubaccounts
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 is included. If the field is omitted, the report includes usage from the parent account and all subaccounts, if they exist.repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubaccountsin interfaceFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The subaccounts at the given index.
-
getSubaccountsBytes
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 is included. If the field is omitted, the report includes usage from the parent account and all subaccounts, if they exist.repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubaccountsBytesin interfaceFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the subaccounts at the given index.
-
setSubaccounts
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 is included. If the field is omitted, the report includes usage from the parent account and all subaccounts, if they exist.repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The subaccounts to set.- Returns:
- This builder for chaining.
-
addSubaccounts
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 is included. If the field is omitted, the report includes usage from the parent account and all subaccounts, if they exist.repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The subaccounts to add.- Returns:
- This builder for chaining.
-
addAllSubaccounts
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 is included. If the field is omitted, the report includes usage from the parent account and all subaccounts, if they exist.repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The subaccounts to add.- Returns:
- This builder for chaining.
-
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 is included. If the field is omitted, the report includes usage from the parent account and all subaccounts, if they exist.repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addSubaccountsBytes
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 is included. If the field is omitted, the report includes usage from the parent account and all subaccounts, if they exist.repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the subaccounts to add.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:FilterOrBuilderOptional. 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 includes 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];- Specified by:
getLabelsCountin interfaceFilterOrBuilder
-
containsLabels
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 includes 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];- Specified by:
containsLabelsin interfaceFilterOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceFilterOrBuilder
-
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 includes 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];- Specified by:
getLabelsMapin interfaceFilterOrBuilder
-
getLabelsOrDefault
public 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 includes 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];- Specified by:
getLabelsOrDefaultin interfaceFilterOrBuilder
-
getLabelsOrThrow
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 includes 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];- Specified by:
getLabelsOrThrowin interfaceFilterOrBuilder
-
clearLabels
-
removeLabels
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 includes 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]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
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 includes 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]; -
putAllLabels
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 includes 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]; -
putLabelsBuilderIfAbsent
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 includes 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]; -
hasCalendarPeriod
public boolean hasCalendarPeriod()Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget tracks usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it tracks usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCalendarPeriodin interfaceFilterOrBuilder- Returns:
- Whether the calendarPeriod field is set.
-
getCalendarPeriodValue
public int getCalendarPeriodValue()Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget tracks usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it tracks usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCalendarPeriodValuein interfaceFilterOrBuilder- Returns:
- The enum numeric value on the wire for calendarPeriod.
-
setCalendarPeriodValue
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget tracks usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it tracks usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for calendarPeriod to set.- Returns:
- This builder for chaining.
-
getCalendarPeriod
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget tracks usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it tracks usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCalendarPeriodin interfaceFilterOrBuilder- Returns:
- The calendarPeriod.
-
setCalendarPeriod
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget tracks usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it tracks usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The calendarPeriod to set.- Returns:
- This builder for chaining.
-
clearCalendarPeriod
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget tracks usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it tracks usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
.google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasCustomPeriod
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.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCustomPeriodin interfaceFilterOrBuilder- Returns:
- Whether the customPeriod field is set.
-
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.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomPeriodin interfaceFilterOrBuilder- Returns:
- The customPeriod.
-
setCustomPeriod
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.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; -
setCustomPeriod
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.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCustomPeriod
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.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomPeriodOrBuilderin interfaceFilterOrBuilder
-