Class SearchResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchResponse.Builder>
com.google.cloud.discoveryengine.v1.SearchResponse.Builder
- All Implemented Interfaces:
SearchResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchResponse
public static final class SearchResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.Builder>
implements SearchResponseOrBuilder
Response message for [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] method.Protobuf type
google.cloud.discoveryengine.v1.SearchResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllFacets(Iterable<? extends SearchResponse.Facet> values) Results of facets requested by user.addAllResults(Iterable<? extends SearchResponse.SearchResult> values) A list of matched documents.addAllSearchLinkPromotions(Iterable<? extends SearchLinkPromotion> values) Promotions for site search.addFacets(int index, SearchResponse.Facet value) Results of facets requested by user.addFacets(int index, SearchResponse.Facet.Builder builderForValue) Results of facets requested by user.addFacets(SearchResponse.Facet value) Results of facets requested by user.addFacets(SearchResponse.Facet.Builder builderForValue) Results of facets requested by user.Results of facets requested by user.addFacetsBuilder(int index) Results of facets requested by user.addResults(int index, SearchResponse.SearchResult value) A list of matched documents.addResults(int index, SearchResponse.SearchResult.Builder builderForValue) A list of matched documents.A list of matched documents.addResults(SearchResponse.SearchResult.Builder builderForValue) A list of matched documents.A list of matched documents.addResultsBuilder(int index) A list of matched documents.addSearchLinkPromotions(int index, SearchLinkPromotion value) Promotions for site search.addSearchLinkPromotions(int index, SearchLinkPromotion.Builder builderForValue) Promotions for site search.Promotions for site search.addSearchLinkPromotions(SearchLinkPromotion.Builder builderForValue) Promotions for site search.Promotions for site search.addSearchLinkPromotionsBuilder(int index) Promotions for site search.build()clear()A unique search token.Contains the spell corrected query, if found.Results of facets requested by user.Output only.A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] to retrieve the next page.Query expansion information for the returned results.The URI of a customer-defined redirect page.A list of matched documents.Promotions for site search.Output only.Session information.A summary as part of the search results.The estimated total count of matched items irrespective of pagination.A unique search token.com.google.protobuf.ByteStringA unique search token.Contains the spell corrected query, if found.com.google.protobuf.ByteStringContains the spell corrected query, if found.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFacets(int index) Results of facets requested by user.getFacetsBuilder(int index) Results of facets requested by user.Results of facets requested by user.intResults of facets requested by user.Results of facets requested by user.getFacetsOrBuilder(int index) Results of facets requested by user.List<? extends SearchResponse.FacetOrBuilder>Results of facets requested by user.Output only.Output only.Output only.A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] to retrieve the next page.com.google.protobuf.ByteStringA token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] to retrieve the next page.Query expansion information for the returned results.Query expansion information for the returned results.Query expansion information for the returned results.The URI of a customer-defined redirect page.com.google.protobuf.ByteStringThe URI of a customer-defined redirect page.getResults(int index) A list of matched documents.getResultsBuilder(int index) A list of matched documents.A list of matched documents.intA list of matched documents.A list of matched documents.getResultsOrBuilder(int index) A list of matched documents.List<? extends SearchResponse.SearchResultOrBuilder>A list of matched documents.getSearchLinkPromotions(int index) Promotions for site search.getSearchLinkPromotionsBuilder(int index) Promotions for site search.Promotions for site search.intPromotions for site search.Promotions for site search.getSearchLinkPromotionsOrBuilder(int index) Promotions for site search.List<? extends SearchLinkPromotionOrBuilder>Promotions for site search.Output only.intOutput only.Session information.Session information.Session information.A summary as part of the search results.A summary as part of the search results.A summary as part of the search results.intThe estimated total count of matched items irrespective of pagination.booleanOutput only.booleanQuery expansion information for the returned results.booleanSession information.booleanA summary as part of the search results.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SearchResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeNaturalLanguageQueryUnderstandingInfo(SearchResponse.NaturalLanguageQueryUnderstandingInfo value) Output only.Query expansion information for the returned results.Session information.A summary as part of the search results.removeFacets(int index) Results of facets requested by user.removeResults(int index) A list of matched documents.removeSearchLinkPromotions(int index) Promotions for site search.setAttributionToken(String value) A unique search token.setAttributionTokenBytes(com.google.protobuf.ByteString value) A unique search token.setCorrectedQuery(String value) Contains the spell corrected query, if found.setCorrectedQueryBytes(com.google.protobuf.ByteString value) Contains the spell corrected query, if found.setFacets(int index, SearchResponse.Facet value) Results of facets requested by user.setFacets(int index, SearchResponse.Facet.Builder builderForValue) Results of facets requested by user.setNaturalLanguageQueryUnderstandingInfo(SearchResponse.NaturalLanguageQueryUnderstandingInfo value) Output only.setNaturalLanguageQueryUnderstandingInfo(SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder builderForValue) Output only.setNextPageToken(String value) A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] to retrieve the next page.setNextPageTokenBytes(com.google.protobuf.ByteString value) A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] to retrieve the next page.Query expansion information for the returned results.setQueryExpansionInfo(SearchResponse.QueryExpansionInfo.Builder builderForValue) Query expansion information for the returned results.setRedirectUri(String value) The URI of a customer-defined redirect page.setRedirectUriBytes(com.google.protobuf.ByteString value) The URI of a customer-defined redirect page.setResults(int index, SearchResponse.SearchResult value) A list of matched documents.setResults(int index, SearchResponse.SearchResult.Builder builderForValue) A list of matched documents.setSearchLinkPromotions(int index, SearchLinkPromotion value) Promotions for site search.setSearchLinkPromotions(int index, SearchLinkPromotion.Builder builderForValue) Promotions for site search.Output only.setSemanticStateValue(int value) Output only.Session information.setSessionInfo(SearchResponse.SessionInfo.Builder builderForValue) Session information.setSummary(SearchResponse.Summary value) A summary as part of the search results.setSummary(SearchResponse.Summary.Builder builderForValue) A summary as part of the search results.setTotalSize(int value) The estimated total count of matched items irrespective of pagination.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.Builder>
-
mergeFrom
public SearchResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchResponse.Builder>- Throws:
IOException
-
getResultsList
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1;- Specified by:
getResultsListin interfaceSearchResponseOrBuilder
-
getResultsCount
public int getResultsCount()A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1;- Specified by:
getResultsCountin interfaceSearchResponseOrBuilder
-
getResults
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1;- Specified by:
getResultsin interfaceSearchResponseOrBuilder
-
setResults
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
setResults
public SearchResponse.Builder setResults(int index, SearchResponse.SearchResult.Builder builderForValue) A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
addResults
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
addResults
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
addResults
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
addResults
public SearchResponse.Builder addResults(int index, SearchResponse.SearchResult.Builder builderForValue) A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
addAllResults
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
clearResults
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
removeResults
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
getResultsBuilder
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
getResultsOrBuilder
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1;- Specified by:
getResultsOrBuilderin interfaceSearchResponseOrBuilder
-
getResultsOrBuilderList
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1;- Specified by:
getResultsOrBuilderListin interfaceSearchResponseOrBuilder
-
addResultsBuilder
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
addResultsBuilder
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
getResultsBuilderList
A list of matched documents. The order represents the ranking.
repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; -
getFacetsList
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2;- Specified by:
getFacetsListin interfaceSearchResponseOrBuilder
-
getFacetsCount
public int getFacetsCount()Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2;- Specified by:
getFacetsCountin interfaceSearchResponseOrBuilder
-
getFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2;- Specified by:
getFacetsin interfaceSearchResponseOrBuilder
-
setFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
setFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
addFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
addFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
addFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
addFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
addAllFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
clearFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
removeFacets
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
getFacetsBuilder
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
getFacetsOrBuilder
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2;- Specified by:
getFacetsOrBuilderin interfaceSearchResponseOrBuilder
-
getFacetsOrBuilderList
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2;- Specified by:
getFacetsOrBuilderListin interfaceSearchResponseOrBuilder
-
addFacetsBuilder
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
addFacetsBuilder
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
getFacetsBuilderList
Results of facets requested by user.
repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; -
getTotalSize
public int getTotalSize()The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.discoveryengine.v1.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.discoveryengine.v1.SearchResponse.total_size] that matches.
int32 total_size = 3;- Specified by:
getTotalSizein interfaceSearchResponseOrBuilder- Returns:
- The totalSize.
-
setTotalSize
The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.discoveryengine.v1.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.discoveryengine.v1.SearchResponse.total_size] that matches.
int32 total_size = 3;- Parameters:
value- The totalSize to set.- Returns:
- This builder for chaining.
-
clearTotalSize
The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.discoveryengine.v1.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.discoveryengine.v1.SearchResponse.total_size] that matches.
int32 total_size = 3;- Returns:
- This builder for chaining.
-
getAttributionToken
A unique search token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1.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;- Specified by:
getAttributionTokenin interfaceSearchResponseOrBuilder- Returns:
- The attributionToken.
-
getAttributionTokenBytes
public com.google.protobuf.ByteString getAttributionTokenBytes()A unique search token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1.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;- Specified by:
getAttributionTokenBytesin interfaceSearchResponseOrBuilder- Returns:
- The bytes for attributionToken.
-
setAttributionToken
A unique search token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1.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;- Parameters:
value- The attributionToken to set.- Returns:
- This builder for chaining.
-
clearAttributionToken
A unique search token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1.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;- Returns:
- This builder for chaining.
-
setAttributionTokenBytes
A unique search token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1.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;- Parameters:
value- The bytes for attributionToken to set.- Returns:
- This builder for chaining.
-
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.v1.SearchResponse.redirect_uri] and [attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 12;- Specified by:
getRedirectUriin interfaceSearchResponseOrBuilder- Returns:
- The redirectUri.
-
getRedirectUriBytes
public 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.v1.SearchResponse.redirect_uri] and [attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 12;- Specified by:
getRedirectUriBytesin interfaceSearchResponseOrBuilder- Returns:
- The bytes for redirectUri.
-
setRedirectUri
The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.discoveryengine.v1.SearchResponse.redirect_uri] and [attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 12;- Parameters:
value- The redirectUri to set.- Returns:
- This builder for chaining.
-
clearRedirectUri
The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.discoveryengine.v1.SearchResponse.redirect_uri] and [attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 12;- Returns:
- This builder for chaining.
-
setRedirectUriBytes
The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.discoveryengine.v1.SearchResponse.redirect_uri] and [attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 12;- Parameters:
value- The bytes for redirectUri to set.- Returns:
- This builder for chaining.
-
getNextPageToken
A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 5;- Specified by:
getNextPageTokenin interfaceSearchResponseOrBuilder- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 5;- Specified by:
getNextPageTokenBytesin interfaceSearchResponseOrBuilder- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 5;- Parameters:
value- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 5;- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 5;- Parameters:
value- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getCorrectedQueryin interfaceSearchResponseOrBuilder- Returns:
- The correctedQuery.
-
getCorrectedQueryBytes
public 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;- Specified by:
getCorrectedQueryBytesin interfaceSearchResponseOrBuilder- Returns:
- The bytes for correctedQuery.
-
setCorrectedQuery
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;- Parameters:
value- The correctedQuery to set.- Returns:
- This builder for chaining.
-
clearCorrectedQuery
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;- Returns:
- This builder for chaining.
-
setCorrectedQueryBytes
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;- Parameters:
value- The bytes for correctedQuery to set.- Returns:
- This builder for chaining.
-
hasSummary
public boolean hasSummary()A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9;- Specified by:
hasSummaryin interfaceSearchResponseOrBuilder- Returns:
- Whether the summary field is set.
-
getSummary
A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9;- Specified by:
getSummaryin interfaceSearchResponseOrBuilder- Returns:
- The summary.
-
setSummary
A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; -
setSummary
A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; -
mergeSummary
A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; -
clearSummary
A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; -
getSummaryBuilder
A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; -
getSummaryOrBuilder
A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] is set.
.google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9;- Specified by:
getSummaryOrBuilderin interfaceSearchResponseOrBuilder
-
hasQueryExpansionInfo
public boolean hasQueryExpansionInfo()Query expansion information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14;- Specified by:
hasQueryExpansionInfoin interfaceSearchResponseOrBuilder- Returns:
- Whether the queryExpansionInfo field is set.
-
getQueryExpansionInfo
Query expansion information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14;- Specified by:
getQueryExpansionInfoin interfaceSearchResponseOrBuilder- Returns:
- The queryExpansionInfo.
-
setQueryExpansionInfo
Query expansion information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; -
setQueryExpansionInfo
public SearchResponse.Builder setQueryExpansionInfo(SearchResponse.QueryExpansionInfo.Builder builderForValue) Query expansion information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; -
mergeQueryExpansionInfo
Query expansion information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; -
clearQueryExpansionInfo
Query expansion information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; -
getQueryExpansionInfoBuilder
Query expansion information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; -
getQueryExpansionInfoOrBuilder
Query expansion information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14;- Specified by:
getQueryExpansionInfoOrBuilderin interfaceSearchResponseOrBuilder
-
hasNaturalLanguageQueryUnderstandingInfo
public boolean hasNaturalLanguageQueryUnderstandingInfo()Output only. Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNaturalLanguageQueryUnderstandingInfoin interfaceSearchResponseOrBuilder- Returns:
- Whether the naturalLanguageQueryUnderstandingInfo field is set.
-
getNaturalLanguageQueryUnderstandingInfo
public SearchResponse.NaturalLanguageQueryUnderstandingInfo getNaturalLanguageQueryUnderstandingInfo()Output only. Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNaturalLanguageQueryUnderstandingInfoin interfaceSearchResponseOrBuilder- Returns:
- The naturalLanguageQueryUnderstandingInfo.
-
setNaturalLanguageQueryUnderstandingInfo
public SearchResponse.Builder setNaturalLanguageQueryUnderstandingInfo(SearchResponse.NaturalLanguageQueryUnderstandingInfo value) Output only. Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setNaturalLanguageQueryUnderstandingInfo
public SearchResponse.Builder setNaturalLanguageQueryUnderstandingInfo(SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder builderForValue) Output only. Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeNaturalLanguageQueryUnderstandingInfo
public SearchResponse.Builder mergeNaturalLanguageQueryUnderstandingInfo(SearchResponse.NaturalLanguageQueryUnderstandingInfo value) Output only. Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearNaturalLanguageQueryUnderstandingInfo
Output only. Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getNaturalLanguageQueryUnderstandingInfoBuilder
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder getNaturalLanguageQueryUnderstandingInfoBuilder()Output only. Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getNaturalLanguageQueryUnderstandingInfoOrBuilder
public SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilder getNaturalLanguageQueryUnderstandingInfoOrBuilder()Output only. Natural language query understanding information for the returned results.
.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNaturalLanguageQueryUnderstandingInfoOrBuilderin interfaceSearchResponseOrBuilder
-
hasSessionInfo
public boolean hasSessionInfo()Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19;- Specified by:
hasSessionInfoin interfaceSearchResponseOrBuilder- Returns:
- Whether the sessionInfo field is set.
-
getSessionInfo
Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19;- Specified by:
getSessionInfoin interfaceSearchResponseOrBuilder- Returns:
- The sessionInfo.
-
setSessionInfo
Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19; -
setSessionInfo
Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19; -
mergeSessionInfo
Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19; -
clearSessionInfo
Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19; -
getSessionInfoBuilder
Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19; -
getSessionInfoOrBuilder
Session information. Only set if [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] is provided. See its description for more details.
.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19;- Specified by:
getSessionInfoOrBuilderin interfaceSearchResponseOrBuilder
-
getSearchLinkPromotionsList
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23;- Specified by:
getSearchLinkPromotionsListin interfaceSearchResponseOrBuilder
-
getSearchLinkPromotionsCount
public int getSearchLinkPromotionsCount()Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23;- Specified by:
getSearchLinkPromotionsCountin interfaceSearchResponseOrBuilder
-
getSearchLinkPromotions
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23;- Specified by:
getSearchLinkPromotionsin interfaceSearchResponseOrBuilder
-
setSearchLinkPromotions
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
setSearchLinkPromotions
public SearchResponse.Builder setSearchLinkPromotions(int index, SearchLinkPromotion.Builder builderForValue) Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
addSearchLinkPromotions
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
addSearchLinkPromotions
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
addSearchLinkPromotions
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
addSearchLinkPromotions
public SearchResponse.Builder addSearchLinkPromotions(int index, SearchLinkPromotion.Builder builderForValue) Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
addAllSearchLinkPromotions
public SearchResponse.Builder addAllSearchLinkPromotions(Iterable<? extends SearchLinkPromotion> values) Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
clearSearchLinkPromotions
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
removeSearchLinkPromotions
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
getSearchLinkPromotionsBuilder
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
getSearchLinkPromotionsOrBuilder
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23;- Specified by:
getSearchLinkPromotionsOrBuilderin interfaceSearchResponseOrBuilder
-
getSearchLinkPromotionsOrBuilderList
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23;- Specified by:
getSearchLinkPromotionsOrBuilderListin interfaceSearchResponseOrBuilder
-
addSearchLinkPromotionsBuilder
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
addSearchLinkPromotionsBuilder
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
getSearchLinkPromotionsBuilderList
Promotions for site search.
repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; -
getSemanticStateValue
public int getSemanticStateValue()Output only. Indicates the semantic state of the search response.
.google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSemanticStateValuein interfaceSearchResponseOrBuilder- Returns:
- The enum numeric value on the wire for semanticState.
-
setSemanticStateValue
Output only. Indicates the semantic state of the search response.
.google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for semanticState to set.- Returns:
- This builder for chaining.
-
getSemanticState
Output only. Indicates the semantic state of the search response.
.google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSemanticStatein interfaceSearchResponseOrBuilder- Returns:
- The semanticState.
-
setSemanticState
Output only. Indicates the semantic state of the search response.
.google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The semanticState to set.- Returns:
- This builder for chaining.
-
clearSemanticState
Output only. Indicates the semantic state of the search response.
.google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-