Class Filter
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.billing.budgets.v1.Filter
- All Implemented Interfaces:
FilterOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Filter
extends com.google.protobuf.GeneratedMessage
implements FilterOrBuilder
A filter for a budget, limiting the scope of the cost to calculate.Protobuf type
google.cloud.billing.budgets.v1.Filter- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA filter for a budget, limiting the scope of the cost to calculate.static enumSpecifies how credits are applied when determining the spend for threshold calculations.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Optional.booleanOptional.intOptional.getCreditTypes(int index) Optional.com.google.protobuf.ByteStringgetCreditTypesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.intOptional.Optional.Optional.static Filterstatic final com.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.com.google.protobuf.Parser<Filter>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.intgetServices(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.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Filter.Builderstatic Filter.BuildernewBuilder(Filter prototype) protected Filter.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static FilterparseDelimitedFrom(InputStream input) static FilterparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FilterparseFrom(byte[] data) static FilterparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FilterparseFrom(com.google.protobuf.ByteString data) static FilterparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FilterparseFrom(com.google.protobuf.CodedInputStream input) static FilterparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FilterparseFrom(InputStream input) static FilterparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FilterparseFrom(ByteBuffer data) static FilterparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Filter>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PROJECTS_FIELD_NUMBER
public static final int PROJECTS_FIELD_NUMBER- See Also:
-
RESOURCE_ANCESTORS_FIELD_NUMBER
public static final int RESOURCE_ANCESTORS_FIELD_NUMBER- See Also:
-
CREDIT_TYPES_FIELD_NUMBER
public static final int CREDIT_TYPES_FIELD_NUMBER- See Also:
-
CREDIT_TYPES_TREATMENT_FIELD_NUMBER
public static final int CREDIT_TYPES_TREATMENT_FIELD_NUMBER- See Also:
-
SERVICES_FIELD_NUMBER
public static final int SERVICES_FIELD_NUMBER- See Also:
-
SUBACCOUNTS_FIELD_NUMBER
public static final int SUBACCOUNTS_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
CALENDAR_PERIOD_FIELD_NUMBER
public static final int CALENDAR_PERIOD_FIELD_NUMBER- See Also:
-
CUSTOM_PERIOD_FIELD_NUMBER
public static final int CUSTOM_PERIOD_FIELD_NUMBER- See Also:
-
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getUsagePeriodCase
- Specified by:
getUsagePeriodCasein interfaceFilterOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Filter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Filter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Filter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Filter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Filter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Filter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Filter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Filter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Filter.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-