Enum ProductCatalogItem.StockState
java.lang.Object
java.lang.Enum<ProductCatalogItem.StockState>
com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ProductCatalogItem.StockState>
- Enclosing class:
- ProductCatalogItem
public static enum ProductCatalogItem.StockState
extends Enum<ProductCatalogItem.StockState>
implements com.google.protobuf.ProtocolMessageEnum
Item stock state. If this field is unspecified, the item is assumed to be in stock.Protobuf enum
google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionItem that is back-ordered (i.e. temporarily out of stock).Item out of stock.Item that is in pre-order state.Default item stock status. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intItem that is back-ordered (i.e. temporarily out of stock).static final ProductCatalogItem.StockStateItem in stock.static final intItem in stock.static final intItem out of stock.static final intItem that is in pre-order state.static final intDefault item stock status. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ProductCatalogItem.StockState>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static ProductCatalogItem.StockState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STOCK_STATE_UNSPECIFIED
Default item stock status. Should never be used.
STOCK_STATE_UNSPECIFIED = 0; -
OUT_OF_STOCK
Item out of stock.
OUT_OF_STOCK = 1; -
PREORDER
Item that is in pre-order state.
PREORDER = 2; -
BACKORDER
Item that is back-ordered (i.e. temporarily out of stock).
BACKORDER = 3; -
UNRECOGNIZED
-
-
Field Details
-
IN_STOCK
Item in stock.
IN_STOCK = 0; -
STOCK_STATE_UNSPECIFIED_VALUE
public static final int STOCK_STATE_UNSPECIFIED_VALUEDefault item stock status. Should never be used.
STOCK_STATE_UNSPECIFIED = 0;- See Also:
-
IN_STOCK_VALUE
public static final int IN_STOCK_VALUEItem in stock.
IN_STOCK = 0;- See Also:
-
OUT_OF_STOCK_VALUE
public static final int OUT_OF_STOCK_VALUEItem out of stock.
OUT_OF_STOCK = 1;- See Also:
-
PREORDER_VALUE
public static final int PREORDER_VALUEItem that is in pre-order state.
PREORDER = 2;- See Also:
-
BACKORDER_VALUE
public static final int BACKORDER_VALUEItem that is back-ordered (i.e. temporarily out of stock).
BACKORDER = 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<ProductCatalogItem.StockState> 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 ProductCatalogItem.StockState 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
-