public static enum ServingConfig.DiversityType extends Enum<ServingConfig.DiversityType> implements com.google.protobuf.ProtocolMessageEnum
What type of diversity - data or rule based.Protobuf enum
google.cloud.retail.v2.ServingConfig.DiversityType| Enum Constant and Description |
|---|
DATA_DRIVEN_DIVERSITY
Data driven diversity.
|
DIVERSITY_TYPE_UNSPECIFIED
Default value.
|
RULE_BASED_DIVERSITY
Rule based diversity.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_DRIVEN_DIVERSITY_VALUE
Data driven diversity.
|
static int |
DIVERSITY_TYPE_UNSPECIFIED_VALUE
Default value.
|
static int |
RULE_BASED_DIVERSITY_VALUE
Rule based diversity.
|
| Modifier and Type | Method and Description |
|---|---|
static ServingConfig.DiversityType |
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<ServingConfig.DiversityType> |
internalGetValueMap() |
static ServingConfig.DiversityType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ServingConfig.DiversityType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ServingConfig.DiversityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServingConfig.DiversityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServingConfig.DiversityType DIVERSITY_TYPE_UNSPECIFIED
Default value.
DIVERSITY_TYPE_UNSPECIFIED = 0;public static final ServingConfig.DiversityType RULE_BASED_DIVERSITY
Rule based diversity.
RULE_BASED_DIVERSITY = 2;public static final ServingConfig.DiversityType DATA_DRIVEN_DIVERSITY
Data driven diversity.
DATA_DRIVEN_DIVERSITY = 3;public static final ServingConfig.DiversityType UNRECOGNIZED
public static final int DIVERSITY_TYPE_UNSPECIFIED_VALUE
Default value.
DIVERSITY_TYPE_UNSPECIFIED = 0;public static final int RULE_BASED_DIVERSITY_VALUE
Rule based diversity.
RULE_BASED_DIVERSITY = 2;public static final int DATA_DRIVEN_DIVERSITY_VALUE
Data driven diversity.
DATA_DRIVEN_DIVERSITY = 3;public static ServingConfig.DiversityType[] values()
for (ServingConfig.DiversityType c : ServingConfig.DiversityType.values()) System.out.println(c);
public static ServingConfig.DiversityType 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 ServingConfig.DiversityType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ServingConfig.DiversityType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ServingConfig.DiversityType> 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 ServingConfig.DiversityType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.