public static enum Product.Type extends Enum<Product.Type> implements com.google.protobuf.ProtocolMessageEnum
The type of this product.Protobuf enum
google.cloud.retail.v2beta.Product.Type| Enum Constant and Description |
|---|
COLLECTION
The collection type.
|
PRIMARY
The primary type.
|
TYPE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
VARIANT
The variant type.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
COLLECTION_VALUE
The collection type.
|
static int |
PRIMARY_VALUE
The primary type.
|
static int |
TYPE_UNSPECIFIED_VALUE
Default value.
|
static int |
VARIANT_VALUE
The variant type.
|
| Modifier and Type | Method and Description |
|---|---|
static Product.Type |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Product.Type> |
internalGetValueMap() |
static Product.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Product.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Product.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Product.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Product.Type TYPE_UNSPECIFIED
Default value. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2beta.ProductLevelConfig.ingestion_product_type] if unset.
TYPE_UNSPECIFIED = 0;public static final Product.Type PRIMARY
The primary type. As the primary unit for predicting, indexing and search serving, a [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] [Product][google.cloud.retail.v2beta.Product] is grouped with multiple [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] [Product][google.cloud.retail.v2beta.Product]s.
PRIMARY = 1;public static final Product.Type VARIANT
The variant type. [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] [Product][google.cloud.retail.v2beta.Product]s usually share some common attributes on the same [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] [Product][google.cloud.retail.v2beta.Product]s, but they have variant attributes like different colors, sizes and prices, etc.
VARIANT = 2;public static final Product.Type COLLECTION
The collection type. Collection products are bundled [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] [Product][google.cloud.retail.v2beta.Product]s or [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] [Product][google.cloud.retail.v2beta.Product]s that are sold together, such as a jewelry set with necklaces, earrings and rings, etc.
COLLECTION = 3;public static final Product.Type UNRECOGNIZED
public static final int TYPE_UNSPECIFIED_VALUE
Default value. Default to [Catalog.product_level_config.ingestion_product_type][google.cloud.retail.v2beta.ProductLevelConfig.ingestion_product_type] if unset.
TYPE_UNSPECIFIED = 0;public static final int PRIMARY_VALUE
The primary type. As the primary unit for predicting, indexing and search serving, a [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] [Product][google.cloud.retail.v2beta.Product] is grouped with multiple [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] [Product][google.cloud.retail.v2beta.Product]s.
PRIMARY = 1;public static final int VARIANT_VALUE
The variant type. [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] [Product][google.cloud.retail.v2beta.Product]s usually share some common attributes on the same [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] [Product][google.cloud.retail.v2beta.Product]s, but they have variant attributes like different colors, sizes and prices, etc.
VARIANT = 2;public static final int COLLECTION_VALUE
The collection type. Collection products are bundled [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] [Product][google.cloud.retail.v2beta.Product]s or [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] [Product][google.cloud.retail.v2beta.Product]s that are sold together, such as a jewelry set with necklaces, earrings and rings, etc.
COLLECTION = 3;public static Product.Type[] values()
for (Product.Type c : Product.Type.values()) System.out.println(c);
public static Product.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Product.Type valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Product.Type forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Product.Type> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Product.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.