public final class SearchResponse extends com.google.protobuf.GeneratedMessageV3 implements SearchResponseOrBuilder
Response message for [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search] method.Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse| Modifier and Type | Class and Description |
|---|---|
static class |
SearchResponse.Builder
Response message for
[SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
method.
|
static class |
SearchResponse.Facet
A facet result.
|
static interface |
SearchResponse.FacetOrBuilder |
static class |
SearchResponse.GeoSearchDebugInfo
Debug information specifically related to forward geocoding issues arising
from Geolocation Search.
|
static interface |
SearchResponse.GeoSearchDebugInfoOrBuilder |
static class |
SearchResponse.GuidedSearchResult
Guided search result.
|
static interface |
SearchResponse.GuidedSearchResultOrBuilder |
static class |
SearchResponse.NaturalLanguageQueryUnderstandingInfo
Information describing what natural language understanding was
done on the input query.
|
static interface |
SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilder |
static class |
SearchResponse.OneBoxResult
OneBoxResult is a holder for all results of specific type that we want
to display in UI differently.
|
static interface |
SearchResponse.OneBoxResultOrBuilder |
static class |
SearchResponse.QueryExpansionInfo
Information describing query expansion including whether expansion has
occurred.
|
static interface |
SearchResponse.QueryExpansionInfoOrBuilder |
static class |
SearchResponse.SearchResult
Represents the search results.
|
static interface |
SearchResponse.SearchResultOrBuilder |
static class |
SearchResponse.SessionInfo
Information about the session.
|
static interface |
SearchResponse.SessionInfoOrBuilder |
static class |
SearchResponse.Summary
Summary of the top N search results specified by the summary spec.
|
static interface |
SearchResponse.SummaryOrBuilder |
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 |
APPLIED_CONTROLS_FIELD_NUMBER |
static int |
ATTRIBUTION_TOKEN_FIELD_NUMBER |
static int |
CORRECTED_QUERY_FIELD_NUMBER |
static int |
FACETS_FIELD_NUMBER |
static int |
GEO_SEARCH_DEBUG_INFO_FIELD_NUMBER |
static int |
GUIDED_SEARCH_RESULT_FIELD_NUMBER |
static int |
NATURAL_LANGUAGE_QUERY_UNDERSTANDING_INFO_FIELD_NUMBER |
static int |
NEXT_PAGE_TOKEN_FIELD_NUMBER |
static int |
ONE_BOX_RESULTS_FIELD_NUMBER |
static int |
QUERY_EXPANSION_INFO_FIELD_NUMBER |
static int |
REDIRECT_URI_FIELD_NUMBER |
static int |
RESULTS_FIELD_NUMBER |
static int |
SESSION_INFO_FIELD_NUMBER |
static int |
SUMMARY_FIELD_NUMBER |
static int |
TOTAL_SIZE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAppliedControls(int index)
Controls applied as part of the Control service.
|
com.google.protobuf.ByteString |
getAppliedControlsBytes(int index)
Controls applied as part of the Control service.
|
int |
getAppliedControlsCount()
Controls applied as part of the Control service.
|
com.google.protobuf.ProtocolStringList |
getAppliedControlsList()
Controls applied as part of the Control service.
|
String |
getAttributionToken()
A unique search token.
|
com.google.protobuf.ByteString |
getAttributionTokenBytes()
A unique search token.
|
String |
getCorrectedQuery()
Contains the spell corrected query, if found.
|
com.google.protobuf.ByteString |
getCorrectedQueryBytes()
Contains the spell corrected query, if found.
|
static SearchResponse |
getDefaultInstance() |
SearchResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
SearchResponse.Facet |
getFacets(int index)
Results of facets requested by user.
|
int |
getFacetsCount()
Results of facets requested by user.
|
List<SearchResponse.Facet> |
getFacetsList()
Results of facets requested by user.
|
SearchResponse.FacetOrBuilder |
getFacetsOrBuilder(int index)
Results of facets requested by user.
|
List<? extends SearchResponse.FacetOrBuilder> |
getFacetsOrBuilderList()
Results of facets requested by user.
|
SearchResponse.GeoSearchDebugInfo |
getGeoSearchDebugInfo(int index)
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;
|
int |
getGeoSearchDebugInfoCount()
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;
|
List<SearchResponse.GeoSearchDebugInfo> |
getGeoSearchDebugInfoList()
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;
|
SearchResponse.GeoSearchDebugInfoOrBuilder |
getGeoSearchDebugInfoOrBuilder(int index)
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;
|
List<? extends SearchResponse.GeoSearchDebugInfoOrBuilder> |
getGeoSearchDebugInfoOrBuilderList()
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;
|
SearchResponse.GuidedSearchResult |
getGuidedSearchResult()
Guided search result.
|
SearchResponse.GuidedSearchResultOrBuilder |
getGuidedSearchResultOrBuilder()
Guided search result.
|
SearchResponse.NaturalLanguageQueryUnderstandingInfo |
getNaturalLanguageQueryUnderstandingInfo()
Natural language query understanding information for the returned results.
|
SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilder |
getNaturalLanguageQueryUnderstandingInfoOrBuilder()
Natural language query understanding information for the returned results.
|
String |
getNextPageToken()
A token that can be sent as
[SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
to retrieve the next page.
|
com.google.protobuf.ByteString |
getNextPageTokenBytes()
A token that can be sent as
[SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
to retrieve the next page.
|
SearchResponse.OneBoxResult |
getOneBoxResults(int index)
A list of One Box results.
|
int |
getOneBoxResultsCount()
A list of One Box results.
|
List<SearchResponse.OneBoxResult> |
getOneBoxResultsList()
A list of One Box results.
|
SearchResponse.OneBoxResultOrBuilder |
getOneBoxResultsOrBuilder(int index)
A list of One Box results.
|
List<? extends SearchResponse.OneBoxResultOrBuilder> |
getOneBoxResultsOrBuilderList()
A list of One Box results.
|
com.google.protobuf.Parser<SearchResponse> |
getParserForType() |
SearchResponse.QueryExpansionInfo |
getQueryExpansionInfo()
Query expansion information for the returned results.
|
SearchResponse.QueryExpansionInfoOrBuilder |
getQueryExpansionInfoOrBuilder()
Query expansion information for the returned results.
|
String |
getRedirectUri()
The URI of a customer-defined redirect page.
|
com.google.protobuf.ByteString |
getRedirectUriBytes()
The URI of a customer-defined redirect page.
|
SearchResponse.SearchResult |
getResults(int index)
A list of matched documents.
|
int |
getResultsCount()
A list of matched documents.
|
List<SearchResponse.SearchResult> |
getResultsList()
A list of matched documents.
|
SearchResponse.SearchResultOrBuilder |
getResultsOrBuilder(int index)
A list of matched documents.
|
List<? extends SearchResponse.SearchResultOrBuilder> |
getResultsOrBuilderList()
A list of matched documents.
|
int |
getSerializedSize() |
SearchResponse.SessionInfo |
getSessionInfo()
Session information.
|
SearchResponse.SessionInfoOrBuilder |
getSessionInfoOrBuilder()
Session information.
|
SearchResponse.Summary |
getSummary()
A summary as part of the search results.
|
SearchResponse.SummaryOrBuilder |
getSummaryOrBuilder()
A summary as part of the search results.
|
int |
getTotalSize()
The estimated total count of matched items irrespective of pagination.
|
boolean |
hasGuidedSearchResult()
Guided search result.
|
int |
hashCode() |
boolean |
hasNaturalLanguageQueryUnderstandingInfo()
Natural language query understanding information for the returned results.
|
boolean |
hasQueryExpansionInfo()
Query expansion information for the returned results.
|
boolean |
hasSessionInfo()
Session information.
|
boolean |
hasSummary()
A summary as part of the search results.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SearchResponse.Builder |
newBuilder() |
static SearchResponse.Builder |
newBuilder(SearchResponse prototype) |
SearchResponse.Builder |
newBuilderForType() |
protected SearchResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SearchResponse |
parseDelimitedFrom(InputStream input) |
static SearchResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse |
parseFrom(byte[] data) |
static SearchResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse |
parseFrom(ByteBuffer data) |
static SearchResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse |
parseFrom(com.google.protobuf.ByteString data) |
static SearchResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SearchResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse |
parseFrom(InputStream input) |
static SearchResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SearchResponse> |
parser() |
SearchResponse.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 RESULTS_FIELD_NUMBER
public static final int FACETS_FIELD_NUMBER
public static final int GUIDED_SEARCH_RESULT_FIELD_NUMBER
public static final int TOTAL_SIZE_FIELD_NUMBER
public static final int ATTRIBUTION_TOKEN_FIELD_NUMBER
public static final int REDIRECT_URI_FIELD_NUMBER
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
public static final int CORRECTED_QUERY_FIELD_NUMBER
public static final int SUMMARY_FIELD_NUMBER
public static final int APPLIED_CONTROLS_FIELD_NUMBER
public static final int GEO_SEARCH_DEBUG_INFO_FIELD_NUMBER
public static final int QUERY_EXPANSION_INFO_FIELD_NUMBER
public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_INFO_FIELD_NUMBER
public static final int SESSION_INFO_FIELD_NUMBER
public static final int ONE_BOX_RESULTS_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 List<SearchResponse.SearchResult> getResultsList()
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1;
getResultsList in interface SearchResponseOrBuilderpublic List<? extends SearchResponse.SearchResultOrBuilder> getResultsOrBuilderList()
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1;
getResultsOrBuilderList in interface SearchResponseOrBuilderpublic int getResultsCount()
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1;
getResultsCount in interface SearchResponseOrBuilderpublic SearchResponse.SearchResult getResults(int index)
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1;
getResults in interface SearchResponseOrBuilderpublic SearchResponse.SearchResultOrBuilder getResultsOrBuilder(int index)
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult results = 1;
getResultsOrBuilder in interface SearchResponseOrBuilderpublic List<SearchResponse.Facet> getFacetsList()
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2;getFacetsList in interface SearchResponseOrBuilderpublic List<? extends SearchResponse.FacetOrBuilder> getFacetsOrBuilderList()
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2;getFacetsOrBuilderList in interface SearchResponseOrBuilderpublic int getFacetsCount()
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2;getFacetsCount in interface SearchResponseOrBuilderpublic SearchResponse.Facet getFacets(int index)
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2;getFacets in interface SearchResponseOrBuilderpublic SearchResponse.FacetOrBuilder getFacetsOrBuilder(int index)
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Facet facets = 2;getFacetsOrBuilder in interface SearchResponseOrBuilderpublic boolean hasGuidedSearchResult()
Guided search result.
.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8;
hasGuidedSearchResult in interface SearchResponseOrBuilderpublic SearchResponse.GuidedSearchResult getGuidedSearchResult()
Guided search result.
.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8;
getGuidedSearchResult in interface SearchResponseOrBuilderpublic SearchResponse.GuidedSearchResultOrBuilder getGuidedSearchResultOrBuilder()
Guided search result.
.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult guided_search_result = 8;
getGuidedSearchResultOrBuilder in interface SearchResponseOrBuilderpublic int getTotalSize()
The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.discoveryengine.v1beta.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.discoveryengine.v1beta.SearchResponse.total_size] that matches.
int32 total_size = 3;getTotalSize in interface SearchResponseOrBuilderpublic String getAttributionToken()
A unique search token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance. This also helps to identify a request during the customer support scenarios.
string attribution_token = 4;getAttributionToken in interface SearchResponseOrBuilderpublic com.google.protobuf.ByteString getAttributionTokenBytes()
A unique search token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance. This also helps to identify a request during the customer support scenarios.
string attribution_token = 4;getAttributionTokenBytes in interface SearchResponseOrBuilderpublic String getRedirectUri()
The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri] and [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 12;getRedirectUri in interface SearchResponseOrBuilderpublic com.google.protobuf.ByteString getRedirectUriBytes()
The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri] and [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 12;getRedirectUriBytes in interface SearchResponseOrBuilderpublic String getNextPageToken()
A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 5;getNextPageToken in interface SearchResponseOrBuilderpublic com.google.protobuf.ByteString getNextPageTokenBytes()
A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 5;getNextPageTokenBytes in interface SearchResponseOrBuilderpublic String getCorrectedQuery()
Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
string corrected_query = 7;getCorrectedQuery in interface SearchResponseOrBuilderpublic com.google.protobuf.ByteString getCorrectedQueryBytes()
Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
string corrected_query = 7;getCorrectedQueryBytes in interface SearchResponseOrBuilderpublic boolean hasSummary()
A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;hasSummary in interface SearchResponseOrBuilderpublic SearchResponse.Summary getSummary()
A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;getSummary in interface SearchResponseOrBuilderpublic SearchResponse.SummaryOrBuilder getSummaryOrBuilder()
A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;getSummaryOrBuilder in interface SearchResponseOrBuilderpublic com.google.protobuf.ProtocolStringList getAppliedControlsList()
Controls applied as part of the Control service.
repeated string applied_controls = 10;getAppliedControlsList in interface SearchResponseOrBuilderpublic int getAppliedControlsCount()
Controls applied as part of the Control service.
repeated string applied_controls = 10;getAppliedControlsCount in interface SearchResponseOrBuilderpublic String getAppliedControls(int index)
Controls applied as part of the Control service.
repeated string applied_controls = 10;getAppliedControls in interface SearchResponseOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAppliedControlsBytes(int index)
Controls applied as part of the Control service.
repeated string applied_controls = 10;getAppliedControlsBytes in interface SearchResponseOrBuilderindex - The index of the value to return.public List<SearchResponse.GeoSearchDebugInfo> getGeoSearchDebugInfoList()
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;
getGeoSearchDebugInfoList in interface SearchResponseOrBuilderpublic List<? extends SearchResponse.GeoSearchDebugInfoOrBuilder> getGeoSearchDebugInfoOrBuilderList()
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;
getGeoSearchDebugInfoOrBuilderList in interface SearchResponseOrBuilderpublic int getGeoSearchDebugInfoCount()
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;
getGeoSearchDebugInfoCount in interface SearchResponseOrBuilderpublic SearchResponse.GeoSearchDebugInfo getGeoSearchDebugInfo(int index)
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;
getGeoSearchDebugInfo in interface SearchResponseOrBuilderpublic SearchResponse.GeoSearchDebugInfoOrBuilder getGeoSearchDebugInfoOrBuilder(int index)
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo geo_search_debug_info = 16;
getGeoSearchDebugInfoOrBuilder in interface SearchResponseOrBuilderpublic boolean hasQueryExpansionInfo()
Query expansion information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14;
hasQueryExpansionInfo in interface SearchResponseOrBuilderpublic SearchResponse.QueryExpansionInfo getQueryExpansionInfo()
Query expansion information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14;
getQueryExpansionInfo in interface SearchResponseOrBuilderpublic SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder()
Query expansion information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo query_expansion_info = 14;
getQueryExpansionInfoOrBuilder in interface SearchResponseOrBuilderpublic boolean hasNaturalLanguageQueryUnderstandingInfo()
Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15;
hasNaturalLanguageQueryUnderstandingInfo in interface SearchResponseOrBuilderpublic SearchResponse.NaturalLanguageQueryUnderstandingInfo getNaturalLanguageQueryUnderstandingInfo()
Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15;
getNaturalLanguageQueryUnderstandingInfo in interface SearchResponseOrBuilderpublic SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilder getNaturalLanguageQueryUnderstandingInfoOrBuilder()
Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15;
getNaturalLanguageQueryUnderstandingInfoOrBuilder in interface SearchResponseOrBuilderpublic boolean hasSessionInfo()
Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19;hasSessionInfo in interface SearchResponseOrBuilderpublic SearchResponse.SessionInfo getSessionInfo()
Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19;getSessionInfo in interface SearchResponseOrBuilderpublic SearchResponse.SessionInfoOrBuilder getSessionInfoOrBuilder()
Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo session_info = 19;getSessionInfoOrBuilder in interface SearchResponseOrBuilderpublic List<SearchResponse.OneBoxResult> getOneBoxResultsList()
A list of One Box results. There can be multiple One Box results of different types.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult one_box_results = 20;
getOneBoxResultsList in interface SearchResponseOrBuilderpublic List<? extends SearchResponse.OneBoxResultOrBuilder> getOneBoxResultsOrBuilderList()
A list of One Box results. There can be multiple One Box results of different types.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult one_box_results = 20;
getOneBoxResultsOrBuilderList in interface SearchResponseOrBuilderpublic int getOneBoxResultsCount()
A list of One Box results. There can be multiple One Box results of different types.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult one_box_results = 20;
getOneBoxResultsCount in interface SearchResponseOrBuilderpublic SearchResponse.OneBoxResult getOneBoxResults(int index)
A list of One Box results. There can be multiple One Box results of different types.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult one_box_results = 20;
getOneBoxResults in interface SearchResponseOrBuilderpublic SearchResponse.OneBoxResultOrBuilder getOneBoxResultsOrBuilder(int index)
A list of One Box results. There can be multiple One Box results of different types.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult one_box_results = 20;
getOneBoxResultsOrBuilder in interface SearchResponseOrBuilderpublic 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 SearchResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchResponse.Builder newBuilder()
public static SearchResponse.Builder newBuilder(SearchResponse prototype)
public SearchResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SearchResponse getDefaultInstance()
public static com.google.protobuf.Parser<SearchResponse> parser()
public com.google.protobuf.Parser<SearchResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SearchResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.