public static enum SearchRequest.PersonalizationSpec.Mode extends Enum<SearchRequest.PersonalizationSpec.Mode> implements com.google.protobuf.ProtocolMessageEnum
The personalization mode of each search request.Protobuf enum
google.cloud.retail.v2.SearchRequest.PersonalizationSpec.Mode| Enum Constant and Description |
|---|
AUTO
Let CRS decide whether to use personalization based on quality of user
event data.
|
DISABLED
Disable personalization.
|
MODE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_VALUE
Let CRS decide whether to use personalization based on quality of user
event data.
|
static int |
DISABLED_VALUE
Disable personalization.
|
static int |
MODE_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchRequest.PersonalizationSpec.Mode |
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<SearchRequest.PersonalizationSpec.Mode> |
internalGetValueMap() |
static SearchRequest.PersonalizationSpec.Mode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SearchRequest.PersonalizationSpec.Mode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SearchRequest.PersonalizationSpec.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchRequest.PersonalizationSpec.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchRequest.PersonalizationSpec.Mode MODE_UNSPECIFIED
Default value. In this case, server behavior defaults to [Mode.AUTO][google.cloud.retail.v2.SearchRequest.PersonalizationSpec.Mode.AUTO].
MODE_UNSPECIFIED = 0;public static final SearchRequest.PersonalizationSpec.Mode AUTO
Let CRS decide whether to use personalization based on quality of user event data.
AUTO = 1;public static final SearchRequest.PersonalizationSpec.Mode DISABLED
Disable personalization.
DISABLED = 2;public static final SearchRequest.PersonalizationSpec.Mode UNRECOGNIZED
public static final int MODE_UNSPECIFIED_VALUE
Default value. In this case, server behavior defaults to [Mode.AUTO][google.cloud.retail.v2.SearchRequest.PersonalizationSpec.Mode.AUTO].
MODE_UNSPECIFIED = 0;public static final int AUTO_VALUE
Let CRS decide whether to use personalization based on quality of user event data.
AUTO = 1;public static final int DISABLED_VALUE
Disable personalization.
DISABLED = 2;public static SearchRequest.PersonalizationSpec.Mode[] values()
for (SearchRequest.PersonalizationSpec.Mode c : SearchRequest.PersonalizationSpec.Mode.values()) System.out.println(c);
public static SearchRequest.PersonalizationSpec.Mode 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 SearchRequest.PersonalizationSpec.Mode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SearchRequest.PersonalizationSpec.Mode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SearchRequest.PersonalizationSpec.Mode> 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 SearchRequest.PersonalizationSpec.Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.