Package com.google.cloud.retail.v2alpha
Class CompleteQueryResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
com.google.cloud.retail.v2alpha.CompleteQueryResponse.Builder
- All Implemented Interfaces:
CompleteQueryResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CompleteQueryResponse
public static final class CompleteQueryResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
implements CompleteQueryResponseOrBuilder
Response of the autocomplete query.Protobuf type
google.cloud.retail.v2alpha.CompleteQueryResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllCompletionResults(Iterable<? extends CompleteQueryResponse.CompletionResult> values) Results of the matching suggestions.addAllRecentSearchResults(Iterable<? extends CompleteQueryResponse.RecentSearchResult> values) Deprecated.addCompletionResults(int index, CompleteQueryResponse.CompletionResult value) Results of the matching suggestions.addCompletionResults(int index, CompleteQueryResponse.CompletionResult.Builder builderForValue) Results of the matching suggestions.Results of the matching suggestions.addCompletionResults(CompleteQueryResponse.CompletionResult.Builder builderForValue) Results of the matching suggestions.Results of the matching suggestions.addCompletionResultsBuilder(int index) Results of the matching suggestions.addRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult value) Deprecated.addRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult.Builder builderForValue) Deprecated.Deprecated.addRecentSearchResults(CompleteQueryResponse.RecentSearchResult.Builder builderForValue) Deprecated.Deprecated.addRecentSearchResultsBuilder(int index) Deprecated.build()clear()A unique complete token.Results of the matching suggestions.Deprecated.booleanA map of matched attribute suggestions.Deprecated.intA map of matched attribute suggestions.A map of matched attribute suggestions.getAttributeResultsOrDefault(String key, CompleteQueryResponse.AttributeResult defaultValue) A map of matched attribute suggestions.A map of matched attribute suggestions.A unique complete token.com.google.protobuf.ByteStringA unique complete token.getCompletionResults(int index) Results of the matching suggestions.getCompletionResultsBuilder(int index) Results of the matching suggestions.Results of the matching suggestions.intResults of the matching suggestions.Results of the matching suggestions.getCompletionResultsOrBuilder(int index) Results of the matching suggestions.Results of the matching suggestions.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.getRecentSearchResults(int index) Deprecated.getRecentSearchResultsBuilder(int index) Deprecated.Deprecated.intDeprecated.Deprecated.getRecentSearchResultsOrBuilder(int index) Deprecated.Deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(CompleteQueryResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A map of matched attribute suggestions.A map of matched attribute suggestions.A map of matched attribute suggestions.A map of matched attribute suggestions.removeCompletionResults(int index) Results of the matching suggestions.removeRecentSearchResults(int index) Deprecated.setAttributionToken(String value) A unique complete token.setAttributionTokenBytes(com.google.protobuf.ByteString value) A unique complete token.setCompletionResults(int index, CompleteQueryResponse.CompletionResult value) Results of the matching suggestions.setCompletionResults(int index, CompleteQueryResponse.CompletionResult.Builder builderForValue) Results of the matching suggestions.setRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult value) Deprecated.setRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult.Builder builderForValue) Deprecated.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.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<CompleteQueryResponse.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<CompleteQueryResponse.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<CompleteQueryResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
-
mergeFrom
public CompleteQueryResponse.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<CompleteQueryResponse.Builder>- Throws:
IOException
-
getCompletionResultsList
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1;- Specified by:
getCompletionResultsListin interfaceCompleteQueryResponseOrBuilder
-
getCompletionResultsCount
public int getCompletionResultsCount()Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1;- Specified by:
getCompletionResultsCountin interfaceCompleteQueryResponseOrBuilder
-
getCompletionResults
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1;- Specified by:
getCompletionResultsin interfaceCompleteQueryResponseOrBuilder
-
setCompletionResults
public 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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
setCompletionResults
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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
addCompletionResults
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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
addCompletionResults
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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
addCompletionResults
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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
addCompletionResults
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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
addAllCompletionResults
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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
clearCompletionResults
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
removeCompletionResults
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
getCompletionResultsBuilder
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
getCompletionResultsOrBuilder
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1;- Specified by:
getCompletionResultsOrBuilderin interfaceCompleteQueryResponseOrBuilder
-
getCompletionResultsOrBuilderList
public 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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1;- Specified by:
getCompletionResultsOrBuilderListin interfaceCompleteQueryResponseOrBuilder
-
addCompletionResultsBuilder
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
addCompletionResultsBuilder
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
getCompletionResultsBuilderList
Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1; -
getAttributionToken
A unique complete token. This should be included in the [UserEvent.completion_detail][google.cloud.retail.v2alpha.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;- Specified by:
getAttributionTokenin interfaceCompleteQueryResponseOrBuilder- Returns:
- The attributionToken.
-
getAttributionTokenBytes
public com.google.protobuf.ByteString getAttributionTokenBytes()A unique complete token. This should be included in the [UserEvent.completion_detail][google.cloud.retail.v2alpha.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;- Specified by:
getAttributionTokenBytesin interfaceCompleteQueryResponseOrBuilder- Returns:
- The bytes for attributionToken.
-
setAttributionToken
A unique complete token. This should be included in the [UserEvent.completion_detail][google.cloud.retail.v2alpha.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;- Parameters:
value- The attributionToken to set.- Returns:
- This builder for chaining.
-
clearAttributionToken
A unique complete token. This should be included in the [UserEvent.completion_detail][google.cloud.retail.v2alpha.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;- Returns:
- This builder for chaining.
-
setAttributionTokenBytes
A unique complete token. This should be included in the [UserEvent.completion_detail][google.cloud.retail.v2alpha.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;- Parameters:
value- The bytes for attributionToken to set.- Returns:
- This builder for chaining.
-
getRecentSearchResultsList
Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true];- Specified by:
getRecentSearchResultsListin interfaceCompleteQueryResponseOrBuilder
-
getRecentSearchResultsCount
Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true];- Specified by:
getRecentSearchResultsCountin interfaceCompleteQueryResponseOrBuilder
-
getRecentSearchResults
Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true];- Specified by:
getRecentSearchResultsin interfaceCompleteQueryResponseOrBuilder
-
setRecentSearchResults
@Deprecated public CompleteQueryResponse.Builder setRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult value) Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
setRecentSearchResults
@Deprecated public CompleteQueryResponse.Builder setRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult.Builder builderForValue) Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
addRecentSearchResults
@Deprecated public CompleteQueryResponse.Builder addRecentSearchResults(CompleteQueryResponse.RecentSearchResult value) Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
addRecentSearchResults
@Deprecated public CompleteQueryResponse.Builder addRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult value) Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
addRecentSearchResults
@Deprecated public CompleteQueryResponse.Builder addRecentSearchResults(CompleteQueryResponse.RecentSearchResult.Builder builderForValue) Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
addRecentSearchResults
@Deprecated public CompleteQueryResponse.Builder addRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult.Builder builderForValue) Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
addAllRecentSearchResults
@Deprecated public CompleteQueryResponse.Builder addAllRecentSearchResults(Iterable<? extends CompleteQueryResponse.RecentSearchResult> values) Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
clearRecentSearchResults
Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
removeRecentSearchResults
Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
getRecentSearchResultsBuilder
@Deprecated public CompleteQueryResponse.RecentSearchResult.Builder getRecentSearchResultsBuilder(int index) Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
getRecentSearchResultsOrBuilder
@Deprecated public CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index) Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true];- Specified by:
getRecentSearchResultsOrBuilderin interfaceCompleteQueryResponseOrBuilder
-
getRecentSearchResultsOrBuilderList
@Deprecated public List<? extends CompleteQueryResponse.RecentSearchResultOrBuilder> getRecentSearchResultsOrBuilderList()Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true];- Specified by:
getRecentSearchResultsOrBuilderListin interfaceCompleteQueryResponseOrBuilder
-
addRecentSearchResultsBuilder
Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
addRecentSearchResultsBuilder
@Deprecated public CompleteQueryResponse.RecentSearchResult.Builder addRecentSearchResultsBuilder(int index) Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
getRecentSearchResultsBuilderList
@Deprecated public List<CompleteQueryResponse.RecentSearchResult.Builder> getRecentSearchResultsBuilderList()Deprecated.Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] field is set and [UserEvent][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; -
getAttributeResultsCount
public int getAttributeResultsCount()Description copied from interface:CompleteQueryResponseOrBuilderA map of matched attribute suggestions. This field is only available for `cloud-retail` dataset. Current supported keys: * `brands` * `categories`
map<string, .google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult> attribute_results = 4;- Specified by:
getAttributeResultsCountin interfaceCompleteQueryResponseOrBuilder
-
containsAttributeResults
A map of matched attribute suggestions. This field is only available for `cloud-retail` dataset. Current supported keys: * `brands` * `categories`
map<string, .google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult> attribute_results = 4;- Specified by:
containsAttributeResultsin interfaceCompleteQueryResponseOrBuilder
-
getAttributeResults
Deprecated.UsegetAttributeResultsMap()instead.- Specified by:
getAttributeResultsin interfaceCompleteQueryResponseOrBuilder
-
getAttributeResultsMap
A map of matched attribute suggestions. This field is only available for `cloud-retail` dataset. Current supported keys: * `brands` * `categories`
map<string, .google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult> attribute_results = 4;- Specified by:
getAttributeResultsMapin interfaceCompleteQueryResponseOrBuilder
-
getAttributeResultsOrDefault
public CompleteQueryResponse.AttributeResult getAttributeResultsOrDefault(String key, CompleteQueryResponse.AttributeResult defaultValue) A map of matched attribute suggestions. This field is only available for `cloud-retail` dataset. Current supported keys: * `brands` * `categories`
map<string, .google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult> attribute_results = 4;- Specified by:
getAttributeResultsOrDefaultin interfaceCompleteQueryResponseOrBuilder
-
getAttributeResultsOrThrow
A map of matched attribute suggestions. This field is only available for `cloud-retail` dataset. Current supported keys: * `brands` * `categories`
map<string, .google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult> attribute_results = 4;- Specified by:
getAttributeResultsOrThrowin interfaceCompleteQueryResponseOrBuilder
-
clearAttributeResults
-
removeAttributeResults
A map of matched attribute suggestions. This field is only available for `cloud-retail` dataset. Current supported keys: * `brands` * `categories`
map<string, .google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult> attribute_results = 4; -
getMutableAttributeResults
Deprecated.Use alternate mutation accessors instead. -
putAttributeResults
public CompleteQueryResponse.Builder putAttributeResults(String key, CompleteQueryResponse.AttributeResult value) A map of matched attribute suggestions. This field is only available for `cloud-retail` dataset. Current supported keys: * `brands` * `categories`
map<string, .google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult> attribute_results = 4; -
putAllAttributeResults
public CompleteQueryResponse.Builder putAllAttributeResults(Map<String, CompleteQueryResponse.AttributeResult> values) A map of matched attribute suggestions. This field is only available for `cloud-retail` dataset. Current supported keys: * `brands` * `categories`
map<string, .google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult> attribute_results = 4; -
putAttributeResultsBuilderIfAbsent
A map of matched attribute suggestions. This field is only available for `cloud-retail` dataset. Current supported keys: * `brands` * `categories`
map<string, .google.cloud.retail.v2alpha.CompleteQueryResponse.AttributeResult> attribute_results = 4;
-