Package com.google.cloud.channel.v1
Enum DiscountType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DiscountType>
@Generated
public enum DiscountType
extends Enum<DiscountType>
implements com.google.protobuf.ProtocolMessageEnum
Discount Type.Protobuf enum
google.cloud.channel.v1.DiscountType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeal code discount.Not used.Promotional discount.Regional discount.Reseller margin.Sales-provided discount. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeal code discount.static final intNot used.static final intPromotional discount.static final intRegional discount.static final intReseller margin.static final intSales-provided discount. -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscountTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DiscountType>static DiscountTypevalueOf(int value) Deprecated.static DiscountTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DiscountTypeReturns the enum constant of this type with the specified name.static DiscountType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DISCOUNT_TYPE_UNSPECIFIED
Not used.
DISCOUNT_TYPE_UNSPECIFIED = 0; -
REGIONAL_DISCOUNT
Regional discount.
REGIONAL_DISCOUNT = 1; -
PROMOTIONAL_DISCOUNT
Promotional discount.
PROMOTIONAL_DISCOUNT = 2; -
SALES_DISCOUNT
Sales-provided discount.
SALES_DISCOUNT = 3; -
RESELLER_MARGIN
Reseller margin.
RESELLER_MARGIN = 4; -
DEAL_CODE
Deal code discount.
DEAL_CODE = 5; -
UNRECOGNIZED
-
-
Field Details
-
DISCOUNT_TYPE_UNSPECIFIED_VALUE
public static final int DISCOUNT_TYPE_UNSPECIFIED_VALUENot used.
DISCOUNT_TYPE_UNSPECIFIED = 0;- See Also:
-
REGIONAL_DISCOUNT_VALUE
public static final int REGIONAL_DISCOUNT_VALUERegional discount.
REGIONAL_DISCOUNT = 1;- See Also:
-
PROMOTIONAL_DISCOUNT_VALUE
public static final int PROMOTIONAL_DISCOUNT_VALUEPromotional discount.
PROMOTIONAL_DISCOUNT = 2;- See Also:
-
SALES_DISCOUNT_VALUE
public static final int SALES_DISCOUNT_VALUESales-provided discount.
SALES_DISCOUNT = 3;- See Also:
-
RESELLER_MARGIN_VALUE
public static final int RESELLER_MARGIN_VALUEReseller margin.
RESELLER_MARGIN = 4;- See Also:
-
DEAL_CODE_VALUE
public static final int DEAL_CODE_VALUEDeal code discount.
DEAL_CODE = 5;- 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
-
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
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
-