public static final class SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder> implements SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilder
Information describing what natural language understanding was done on the input query.Protobuf type
google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfoaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder>public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder>public SearchResponse.NaturalLanguageQueryUnderstandingInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SearchResponse.NaturalLanguageQueryUnderstandingInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SearchResponse.NaturalLanguageQueryUnderstandingInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder>public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder mergeFrom(SearchResponse.NaturalLanguageQueryUnderstandingInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder>public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder>IOExceptionpublic String getExtractedFilters()
The filters that were extracted from the input query.
string extracted_filters = 1;getExtractedFilters in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderpublic com.google.protobuf.ByteString getExtractedFiltersBytes()
The filters that were extracted from the input query.
string extracted_filters = 1;getExtractedFiltersBytes in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderpublic SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setExtractedFilters(String value)
The filters that were extracted from the input query.
string extracted_filters = 1;value - The extractedFilters to set.public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clearExtractedFilters()
The filters that were extracted from the input query.
string extracted_filters = 1;public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setExtractedFiltersBytes(com.google.protobuf.ByteString value)
The filters that were extracted from the input query.
string extracted_filters = 1;value - The bytes for extractedFilters to set.public String getRewrittenQuery()
Rewritten input query minus the extracted filters.
string rewritten_query = 2;getRewrittenQuery in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderpublic com.google.protobuf.ByteString getRewrittenQueryBytes()
Rewritten input query minus the extracted filters.
string rewritten_query = 2;getRewrittenQueryBytes in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderpublic SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setRewrittenQuery(String value)
Rewritten input query minus the extracted filters.
string rewritten_query = 2;value - The rewrittenQuery to set.public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clearRewrittenQuery()
Rewritten input query minus the extracted filters.
string rewritten_query = 2;public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setRewrittenQueryBytes(com.google.protobuf.ByteString value)
Rewritten input query minus the extracted filters.
string rewritten_query = 2;value - The bytes for rewrittenQuery to set.public com.google.protobuf.ProtocolStringList getClassifiedIntentsList()
The classified intents from the input query.
repeated string classified_intents = 5;getClassifiedIntentsList in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderpublic int getClassifiedIntentsCount()
The classified intents from the input query.
repeated string classified_intents = 5;getClassifiedIntentsCount in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderpublic String getClassifiedIntents(int index)
The classified intents from the input query.
repeated string classified_intents = 5;getClassifiedIntents in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getClassifiedIntentsBytes(int index)
The classified intents from the input query.
repeated string classified_intents = 5;getClassifiedIntentsBytes in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderindex - The index of the value to return.public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setClassifiedIntents(int index, String value)
The classified intents from the input query.
repeated string classified_intents = 5;index - The index to set the value at.value - The classifiedIntents to set.public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder addClassifiedIntents(String value)
The classified intents from the input query.
repeated string classified_intents = 5;value - The classifiedIntents to add.public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder addAllClassifiedIntents(Iterable<String> values)
The classified intents from the input query.
repeated string classified_intents = 5;values - The classifiedIntents to add.public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clearClassifiedIntents()
The classified intents from the input query.
repeated string classified_intents = 5;public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder addClassifiedIntentsBytes(com.google.protobuf.ByteString value)
The classified intents from the input query.
repeated string classified_intents = 5;value - The bytes of the classifiedIntents to add.public boolean hasStructuredExtractedFilter()
The filters that were extracted from the input query represented in a structured form.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;
hasStructuredExtractedFilter in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderpublic SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter getStructuredExtractedFilter()
The filters that were extracted from the input query represented in a structured form.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;
getStructuredExtractedFilter in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderpublic SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setStructuredExtractedFilter(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter value)
The filters that were extracted from the input query represented in a structured form.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setStructuredExtractedFilter(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder builderForValue)
The filters that were extracted from the input query represented in a structured form.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder mergeStructuredExtractedFilter(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter value)
The filters that were extracted from the input query represented in a structured form.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clearStructuredExtractedFilter()
The filters that were extracted from the input query represented in a structured form.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder getStructuredExtractedFilterBuilder()
The filters that were extracted from the input query represented in a structured form.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder getStructuredExtractedFilterOrBuilder()
The filters that were extracted from the input query represented in a structured form.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;
getStructuredExtractedFilterOrBuilder in interface SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilderCopyright © 2026 Google LLC. All rights reserved.