Enum Filter.CreditTypesTreatment
java.lang.Object
java.lang.Enum<Filter.CreditTypesTreatment>
com.google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Filter.CreditTypesTreatment>
- Enclosing class:
- Filter
public static enum Filter.CreditTypesTreatment
extends Enum<Filter.CreditTypesTreatment>
implements com.google.protobuf.ProtocolMessageEnum
Specifies how credits are applied when determining the spend for threshold calculations. Budgets track the total cost minus any applicable selected credits. [See the documentation for a list of credit types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).Protobuf enum
google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;All types of credit are added to the net cost to determine the spend for threshold calculations.All types of credit are subtracted from the gross cost to determine the spend for threshold calculations.[Credit types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type) specified in the credit_types field are subtracted from the gross cost to determine the spend for threshold calculations. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;static final intAll types of credit are added to the net cost to determine the spend for threshold calculations.static final intAll types of credit are subtracted from the gross cost to determine the spend for threshold calculations.static final int[Credit types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type) specified in the credit_types field are subtracted from the gross cost to determine the spend for threshold calculations. -
Method Summary
Modifier and TypeMethodDescriptionstatic Filter.CreditTypesTreatmentforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Filter.CreditTypesTreatment>static Filter.CreditTypesTreatmentvalueOf(int value) Deprecated.static Filter.CreditTypesTreatmentvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Filter.CreditTypesTreatmentReturns the enum constant of this type with the specified name.static Filter.CreditTypesTreatment[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREDIT_TYPES_TREATMENT_UNSPECIFIED
CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0; -
INCLUDE_ALL_CREDITS
All types of credit are subtracted from the gross cost to determine the spend for threshold calculations.
INCLUDE_ALL_CREDITS = 1; -
EXCLUDE_ALL_CREDITS
All types of credit are added to the net cost to determine the spend for threshold calculations.
EXCLUDE_ALL_CREDITS = 2; -
INCLUDE_SPECIFIED_CREDITS
[Credit types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type) specified in the credit_types field are subtracted from the gross cost to determine the spend for threshold calculations.
INCLUDE_SPECIFIED_CREDITS = 3; -
UNRECOGNIZED
-
-
Field Details
-
CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE
public static final int CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUECREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;- See Also:
-
INCLUDE_ALL_CREDITS_VALUE
public static final int INCLUDE_ALL_CREDITS_VALUEAll types of credit are subtracted from the gross cost to determine the spend for threshold calculations.
INCLUDE_ALL_CREDITS = 1;- See Also:
-
EXCLUDE_ALL_CREDITS_VALUE
public static final int EXCLUDE_ALL_CREDITS_VALUEAll types of credit are added to the net cost to determine the spend for threshold calculations.
EXCLUDE_ALL_CREDITS = 2;- See Also:
-
INCLUDE_SPECIFIED_CREDITS_VALUE
public static final int INCLUDE_SPECIFIED_CREDITS_VALUE[Credit types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type) specified in the credit_types field are subtracted from the gross cost to determine the spend for threshold calculations.
INCLUDE_SPECIFIED_CREDITS = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Filter.CreditTypesTreatment> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Filter.CreditTypesTreatment valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-