public static final class CompleteQueryResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder> implements CompleteQueryResponseOrBuilder
Response of the autocomplete query.Protobuf type
google.cloud.retail.v2beta.CompleteQueryResponsegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>public CompleteQueryResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.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.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>public CompleteQueryResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CompleteQueryResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CompleteQueryResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CompleteQueryResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>public CompleteQueryResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>public CompleteQueryResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>public CompleteQueryResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>public CompleteQueryResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>public CompleteQueryResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>public CompleteQueryResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompleteQueryResponse.Builder>public CompleteQueryResponse.Builder mergeFrom(CompleteQueryResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>public CompleteQueryResponse.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<CompleteQueryResponse.Builder>IOExceptionpublic List<CompleteQueryResponse.CompletionResult> getCompletionResultsList()
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
getCompletionResultsList in interface CompleteQueryResponseOrBuilderpublic int getCompletionResultsCount()
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
getCompletionResultsCount in interface CompleteQueryResponseOrBuilderpublic CompleteQueryResponse.CompletionResult getCompletionResults(int index)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
getCompletionResults in interface CompleteQueryResponseOrBuilderpublic CompleteQueryResponse.Builder setCompletionResults(int index, CompleteQueryResponse.CompletionResult value)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.Builder setCompletionResults(int index, CompleteQueryResponse.CompletionResult.Builder builderForValue)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.Builder addCompletionResults(CompleteQueryResponse.CompletionResult value)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.Builder addCompletionResults(int index, CompleteQueryResponse.CompletionResult value)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.Builder addCompletionResults(CompleteQueryResponse.CompletionResult.Builder builderForValue)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.Builder addCompletionResults(int index, CompleteQueryResponse.CompletionResult.Builder builderForValue)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.Builder addAllCompletionResults(Iterable<? extends CompleteQueryResponse.CompletionResult> values)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.Builder clearCompletionResults()
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.Builder removeCompletionResults(int index)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.CompletionResult.Builder getCompletionResultsBuilder(int index)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.CompletionResultOrBuilder getCompletionResultsOrBuilder(int index)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
getCompletionResultsOrBuilder in interface CompleteQueryResponseOrBuilderpublic List<? extends CompleteQueryResponse.CompletionResultOrBuilder> getCompletionResultsOrBuilderList()
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
getCompletionResultsOrBuilderList in interface CompleteQueryResponseOrBuilderpublic CompleteQueryResponse.CompletionResult.Builder addCompletionResultsBuilder()
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public CompleteQueryResponse.CompletionResult.Builder addCompletionResultsBuilder(int index)
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public List<CompleteQueryResponse.CompletionResult.Builder> getCompletionResultsBuilderList()
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
public String getAttributionToken()
A unique complete token. This should be included in the [UserEvent.completion_detail][google.cloud.retail.v2beta.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;getAttributionToken in interface CompleteQueryResponseOrBuilderpublic com.google.protobuf.ByteString getAttributionTokenBytes()
A unique complete token. This should be included in the [UserEvent.completion_detail][google.cloud.retail.v2beta.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;getAttributionTokenBytes in interface CompleteQueryResponseOrBuilderpublic CompleteQueryResponse.Builder setAttributionToken(String value)
A unique complete token. This should be included in the [UserEvent.completion_detail][google.cloud.retail.v2beta.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;value - The attributionToken to set.public CompleteQueryResponse.Builder clearAttributionToken()
A unique complete token. This should be included in the [UserEvent.completion_detail][google.cloud.retail.v2beta.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;public CompleteQueryResponse.Builder setAttributionTokenBytes(com.google.protobuf.ByteString value)
A unique complete token. This should be included in the [UserEvent.completion_detail][google.cloud.retail.v2beta.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;value - The bytes for attributionToken to set.public List<CompleteQueryResponse.RecentSearchResult> getRecentSearchResultsList()
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
getRecentSearchResultsList in interface CompleteQueryResponseOrBuilderpublic int getRecentSearchResultsCount()
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
getRecentSearchResultsCount in interface CompleteQueryResponseOrBuilderpublic CompleteQueryResponse.RecentSearchResult getRecentSearchResults(int index)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
getRecentSearchResults in interface CompleteQueryResponseOrBuilderpublic CompleteQueryResponse.Builder setRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult value)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.Builder setRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult.Builder builderForValue)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.Builder addRecentSearchResults(CompleteQueryResponse.RecentSearchResult value)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.Builder addRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult value)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.Builder addRecentSearchResults(CompleteQueryResponse.RecentSearchResult.Builder builderForValue)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.Builder addRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult.Builder builderForValue)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.Builder addAllRecentSearchResults(Iterable<? extends CompleteQueryResponse.RecentSearchResult> values)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.Builder clearRecentSearchResults()
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.Builder removeRecentSearchResults(int index)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.RecentSearchResult.Builder getRecentSearchResultsBuilder(int index)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
getRecentSearchResultsOrBuilder in interface CompleteQueryResponseOrBuilderpublic List<? extends CompleteQueryResponse.RecentSearchResultOrBuilder> getRecentSearchResultsOrBuilderList()
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
getRecentSearchResultsOrBuilderList in interface CompleteQueryResponseOrBuilderpublic CompleteQueryResponse.RecentSearchResult.Builder addRecentSearchResultsBuilder()
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public CompleteQueryResponse.RecentSearchResult.Builder addRecentSearchResultsBuilder(int index)
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public List<CompleteQueryResponse.RecentSearchResult.Builder> getRecentSearchResultsBuilderList()
Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2beta.UserEvent] is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with [CompleteQueryRequest.query][google.cloud.retail.v2beta.CompleteQueryRequest.query] case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
public final CompleteQueryResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>public final CompleteQueryResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>Copyright © 2024 Google LLC. All rights reserved.