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 Details

    • CREDIT_TYPES_TREATMENT_UNSPECIFIED

      public static final Filter.CreditTypesTreatment CREDIT_TYPES_TREATMENT_UNSPECIFIED
      CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
    • INCLUDE_ALL_CREDITS

      public static final Filter.CreditTypesTreatment 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

      public static final Filter.CreditTypesTreatment 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

      public static final Filter.CreditTypesTreatment 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

      public static final Filter.CreditTypesTreatment UNRECOGNIZED
  • Field Details

    • CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE

      public static final int CREDIT_TYPES_TREATMENT_UNSPECIFIED_VALUE
      CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
      See Also:
    • INCLUDE_ALL_CREDITS_VALUE

      public static final int INCLUDE_ALL_CREDITS_VALUE
       All 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_VALUE
       All 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

      public static Filter.CreditTypesTreatment[] 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

      public static Filter.CreditTypesTreatment valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Filter.CreditTypesTreatment valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Filter.CreditTypesTreatment forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null