Package com.google.cloud.retail.v2beta
Class CompleteQueryResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
- com.google.cloud.retail.v2beta.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.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder> implements CompleteQueryResponseOrBuilder
Response of the autocomplete query.
Protobuf typegoogle.cloud.retail.v2beta.CompleteQueryResponse
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
clear
public CompleteQueryResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
getDefaultInstanceForType
public CompleteQueryResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CompleteQueryResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CompleteQueryResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CompleteQueryResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
setField
public CompleteQueryResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
clearField
public CompleteQueryResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
clearOneof
public CompleteQueryResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
setRepeatedField
public CompleteQueryResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
addRepeatedField
public CompleteQueryResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
mergeFrom
public CompleteQueryResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CompleteQueryResponse.Builder>
-
mergeFrom
public CompleteQueryResponse.Builder mergeFrom(CompleteQueryResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
mergeFrom
public CompleteQueryResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CompleteQueryResponse.Builder>
- Throws:
IOException
-
getCompletionResultsList
public 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;
- Specified by:
getCompletionResultsList
in 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.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
- Specified by:
getCompletionResultsCount
in interfaceCompleteQueryResponseOrBuilder
-
getCompletionResults
public 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;
- Specified by:
getCompletionResults
in 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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.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.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
-
clearCompletionResults
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;
-
removeCompletionResults
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;
-
getCompletionResultsBuilder
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;
-
getCompletionResultsOrBuilder
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;
- Specified by:
getCompletionResultsOrBuilder
in 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.v2beta.CompleteQueryResponse.CompletionResult completion_results = 1;
- Specified by:
getCompletionResultsOrBuilderList
in interfaceCompleteQueryResponseOrBuilder
-
addCompletionResultsBuilder
public 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;
-
addCompletionResultsBuilder
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;
-
getCompletionResultsBuilderList
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;
-
getAttributionToken
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;
- Specified by:
getAttributionToken
in 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.v2beta.UserEvent.completion_detail] for search events resulting from this completion, which enables accurate attribution of complete model performance.
string attribution_token = 2;
- Specified by:
getAttributionTokenBytes
in interfaceCompleteQueryResponseOrBuilder
- Returns:
- The bytes for attributionToken.
-
setAttributionToken
public 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;
- Parameters:
value
- The attributionToken to set.- Returns:
- This builder for chaining.
-
clearAttributionToken
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;
- Returns:
- This builder for chaining.
-
setAttributionTokenBytes
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;
- Parameters:
value
- The bytes for attributionToken to set.- Returns:
- This builder for chaining.
-
getRecentSearchResultsList
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;
- Specified by:
getRecentSearchResultsList
in interfaceCompleteQueryResponseOrBuilder
-
getRecentSearchResultsCount
public 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;
- Specified by:
getRecentSearchResultsCount
in interfaceCompleteQueryResponseOrBuilder
-
getRecentSearchResults
public 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;
- Specified by:
getRecentSearchResults
in interfaceCompleteQueryResponseOrBuilder
-
setRecentSearchResults
public 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;
-
setRecentSearchResults
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;
-
addRecentSearchResults
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;
-
addRecentSearchResults
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;
-
addRecentSearchResults
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;
-
addRecentSearchResults
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;
-
addAllRecentSearchResults
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;
-
clearRecentSearchResults
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;
-
removeRecentSearchResults
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;
-
getRecentSearchResultsBuilder
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;
-
getRecentSearchResultsOrBuilder
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;
- Specified by:
getRecentSearchResultsOrBuilder
in interfaceCompleteQueryResponseOrBuilder
-
getRecentSearchResultsOrBuilderList
public 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;
- Specified by:
getRecentSearchResultsOrBuilderList
in interfaceCompleteQueryResponseOrBuilder
-
addRecentSearchResultsBuilder
public 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;
-
addRecentSearchResultsBuilder
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;
-
getRecentSearchResultsBuilderList
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;
-
setUnknownFields
public final CompleteQueryResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
mergeUnknownFields
public final CompleteQueryResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.Builder>
-
-