public static enum SearchResponse.OneBoxResult.OneBoxType extends Enum<SearchResponse.OneBoxResult.OneBoxType> implements com.google.protobuf.ProtocolMessageEnum
The type of One Box result.Protobuf enum
google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult.OneBoxType| Enum Constant and Description |
|---|
KNOWLEDGE_GRAPH
One Box result contains Knowledge Graph search responses.
|
ONE_BOX_TYPE_UNSPECIFIED
Default value.
|
ORGANIZATION
One Box result contains organization results.
|
PEOPLE
One Box result contains people results.
|
SLACK
One Box result contains slack results.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
KNOWLEDGE_GRAPH_VALUE
One Box result contains Knowledge Graph search responses.
|
static int |
ONE_BOX_TYPE_UNSPECIFIED_VALUE
Default value.
|
static int |
ORGANIZATION_VALUE
One Box result contains organization results.
|
static int |
PEOPLE_VALUE
One Box result contains people results.
|
static int |
SLACK_VALUE
One Box result contains slack results.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchResponse.OneBoxResult.OneBoxType |
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<SearchResponse.OneBoxResult.OneBoxType> |
internalGetValueMap() |
static SearchResponse.OneBoxResult.OneBoxType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SearchResponse.OneBoxResult.OneBoxType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SearchResponse.OneBoxResult.OneBoxType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchResponse.OneBoxResult.OneBoxType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchResponse.OneBoxResult.OneBoxType ONE_BOX_TYPE_UNSPECIFIED
Default value. Should not be used.
ONE_BOX_TYPE_UNSPECIFIED = 0;public static final SearchResponse.OneBoxResult.OneBoxType PEOPLE
One Box result contains people results.
PEOPLE = 1;public static final SearchResponse.OneBoxResult.OneBoxType ORGANIZATION
One Box result contains organization results.
ORGANIZATION = 2;public static final SearchResponse.OneBoxResult.OneBoxType SLACK
One Box result contains slack results.
SLACK = 3;public static final SearchResponse.OneBoxResult.OneBoxType KNOWLEDGE_GRAPH
One Box result contains Knowledge Graph search responses.
KNOWLEDGE_GRAPH = 4;public static final SearchResponse.OneBoxResult.OneBoxType UNRECOGNIZED
public static final int ONE_BOX_TYPE_UNSPECIFIED_VALUE
Default value. Should not be used.
ONE_BOX_TYPE_UNSPECIFIED = 0;public static final int PEOPLE_VALUE
One Box result contains people results.
PEOPLE = 1;public static final int ORGANIZATION_VALUE
One Box result contains organization results.
ORGANIZATION = 2;public static final int SLACK_VALUE
One Box result contains slack results.
SLACK = 3;public static final int KNOWLEDGE_GRAPH_VALUE
One Box result contains Knowledge Graph search responses.
KNOWLEDGE_GRAPH = 4;public static SearchResponse.OneBoxResult.OneBoxType[] values()
for (SearchResponse.OneBoxResult.OneBoxType c : SearchResponse.OneBoxResult.OneBoxType.values()) System.out.println(c);
public static SearchResponse.OneBoxResult.OneBoxType 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 SearchResponse.OneBoxResult.OneBoxType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SearchResponse.OneBoxResult.OneBoxType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SearchResponse.OneBoxResult.OneBoxType> 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 SearchResponse.OneBoxResult.OneBoxType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.