public static final class SearchRequest.NaturalLanguageQueryUnderstandingSpec extends com.google.protobuf.GeneratedMessageV3 implements SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilder
Specification to enable natural language understanding capabilities for search requests.Protobuf type
google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec| Modifier and Type | Class and Description |
|---|---|
static class |
SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder
Specification to enable natural language understanding capabilities for
search requests.
|
static class |
SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition
Enum describing under which condition filter extraction should occur.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FILTER_EXTRACTION_CONDITION_FIELD_NUMBER |
static int |
GEO_SEARCH_QUERY_DETECTION_FIELD_NAMES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
getDefaultInstance() |
SearchRequest.NaturalLanguageQueryUnderstandingSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition |
getFilterExtractionCondition()
The condition under which filter extraction should occur.
|
int |
getFilterExtractionConditionValue()
The condition under which filter extraction should occur.
|
String |
getGeoSearchQueryDetectionFieldNames(int index)
Field names used for location-based filtering, where geolocation filters
are detected in natural language search queries.
|
com.google.protobuf.ByteString |
getGeoSearchQueryDetectionFieldNamesBytes(int index)
Field names used for location-based filtering, where geolocation filters
are detected in natural language search queries.
|
int |
getGeoSearchQueryDetectionFieldNamesCount()
Field names used for location-based filtering, where geolocation filters
are detected in natural language search queries.
|
com.google.protobuf.ProtocolStringList |
getGeoSearchQueryDetectionFieldNamesList()
Field names used for location-based filtering, where geolocation filters
are detected in natural language search queries.
|
com.google.protobuf.Parser<SearchRequest.NaturalLanguageQueryUnderstandingSpec> |
getParserForType() |
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder |
newBuilder() |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder |
newBuilder(SearchRequest.NaturalLanguageQueryUnderstandingSpec prototype) |
SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder |
newBuilderForType() |
protected SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseDelimitedFrom(InputStream input) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseFrom(byte[] data) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseFrom(ByteBuffer data) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseFrom(com.google.protobuf.ByteString data) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseFrom(InputStream input) |
static SearchRequest.NaturalLanguageQueryUnderstandingSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SearchRequest.NaturalLanguageQueryUnderstandingSpec> |
parser() |
SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FILTER_EXTRACTION_CONDITION_FIELD_NUMBER
public static final int GEO_SEARCH_QUERY_DETECTION_FIELD_NAMES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getFilterExtractionConditionValue()
The condition under which filter extraction should occur. Default to [Condition.DISABLED][].
.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1;
getFilterExtractionConditionValue in interface SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilderpublic SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition getFilterExtractionCondition()
The condition under which filter extraction should occur. Default to [Condition.DISABLED][].
.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1;
getFilterExtractionCondition in interface SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilderpublic com.google.protobuf.ProtocolStringList getGeoSearchQueryDetectionFieldNamesList()
Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
repeated string geo_search_query_detection_field_names = 2;getGeoSearchQueryDetectionFieldNamesList in interface SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilderpublic int getGeoSearchQueryDetectionFieldNamesCount()
Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
repeated string geo_search_query_detection_field_names = 2;getGeoSearchQueryDetectionFieldNamesCount in interface SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilderpublic String getGeoSearchQueryDetectionFieldNames(int index)
Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
repeated string geo_search_query_detection_field_names = 2;getGeoSearchQueryDetectionFieldNames in interface SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index)
Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
repeated string geo_search_query_detection_field_names = 2;getGeoSearchQueryDetectionFieldNamesBytes in interface SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder newBuilder()
public static SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder newBuilder(SearchRequest.NaturalLanguageQueryUnderstandingSpec prototype)
public SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchRequest.NaturalLanguageQueryUnderstandingSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SearchRequest.NaturalLanguageQueryUnderstandingSpec getDefaultInstance()
public static com.google.protobuf.Parser<SearchRequest.NaturalLanguageQueryUnderstandingSpec> parser()
public com.google.protobuf.Parser<SearchRequest.NaturalLanguageQueryUnderstandingSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SearchRequest.NaturalLanguageQueryUnderstandingSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.