public static enum CatalogAttribute.AttributeType extends Enum<CatalogAttribute.AttributeType> implements com.google.protobuf.ProtocolMessageEnum
The type of an attribute.Protobuf enum
google.cloud.retail.v2.CatalogAttribute.AttributeType| Enum Constant and Description |
|---|
NUMERICAL
Numerical attribute.
|
TEXTUAL
Textual attribute.
|
UNKNOWN
The type of the attribute is unknown.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
NUMERICAL_VALUE
Numerical attribute.
|
static int |
TEXTUAL_VALUE
Textual attribute.
|
static int |
UNKNOWN_VALUE
The type of the attribute is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static CatalogAttribute.AttributeType |
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<CatalogAttribute.AttributeType> |
internalGetValueMap() |
static CatalogAttribute.AttributeType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CatalogAttribute.AttributeType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CatalogAttribute.AttributeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CatalogAttribute.AttributeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CatalogAttribute.AttributeType UNKNOWN
The type of the attribute is unknown. Used when type cannot be derived from attribute that is not [in_use][google.cloud.retail.v2.CatalogAttribute.in_use].
UNKNOWN = 0;public static final CatalogAttribute.AttributeType TEXTUAL
Textual attribute.
TEXTUAL = 1;public static final CatalogAttribute.AttributeType NUMERICAL
Numerical attribute.
NUMERICAL = 2;public static final CatalogAttribute.AttributeType UNRECOGNIZED
public static final int UNKNOWN_VALUE
The type of the attribute is unknown. Used when type cannot be derived from attribute that is not [in_use][google.cloud.retail.v2.CatalogAttribute.in_use].
UNKNOWN = 0;public static final int TEXTUAL_VALUE
Textual attribute.
TEXTUAL = 1;public static final int NUMERICAL_VALUE
Numerical attribute.
NUMERICAL = 2;public static CatalogAttribute.AttributeType[] values()
for (CatalogAttribute.AttributeType c : CatalogAttribute.AttributeType.values()) System.out.println(c);
public static CatalogAttribute.AttributeType 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 CatalogAttribute.AttributeType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static CatalogAttribute.AttributeType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CatalogAttribute.AttributeType> 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 CatalogAttribute.AttributeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.