public static final class CompleteQueryResponse.Builder extends GeneratedMessageV3.Builder<CompleteQueryResponse.Builder> implements CompleteQueryResponseOrBuilder
Response of the auto-complete query.
Protobuf type google.cloud.retail.v2.CompleteQueryResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllCompletionResults(Iterable<? extends CompleteQueryResponse.CompletionResult> values)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2.CompleteQueryResponse.CompletionResult>
|
addAllRecentSearchResults(Iterable<? extends CompleteQueryResponse.RecentSearchResult> values)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult>
|
addCompletionResults(CompleteQueryResponse.CompletionResult value)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
addCompletionResults(CompleteQueryResponse.CompletionResult.Builder builderForValue)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
addCompletionResults(int index, CompleteQueryResponse.CompletionResult value)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
addCompletionResults(int index, CompleteQueryResponse.CompletionResult.Builder builderForValue)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
addCompletionResultsBuilder(int index)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
Parameter |
---|
Name | Description |
index | int
|
addRecentSearchResults(CompleteQueryResponse.RecentSearchResult value)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
addRecentSearchResults(CompleteQueryResponse.RecentSearchResult.Builder builderForValue)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
addRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult value)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
addRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult.Builder builderForValue)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
addRecentSearchResultsBuilder(int index)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CompleteQueryResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CompleteQueryResponse build()
buildPartial()
public CompleteQueryResponse buildPartial()
clear()
public CompleteQueryResponse.Builder clear()
Overrides
clearAttributionToken()
public CompleteQueryResponse.Builder clearAttributionToken()
A unique complete token. This should be included in the
UserEvent.completion_detail
for search events resulting from this completion, which enables accurate
attribution of complete model performance.
string attribution_token = 2;
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
clearField(Descriptors.FieldDescriptor field)
public CompleteQueryResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CompleteQueryResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
clone()
public CompleteQueryResponse.Builder clone()
Overrides
getAttributionToken()
public String getAttributionToken()
A unique complete token. This should be included in the
UserEvent.completion_detail
for search events resulting from this completion, which enables accurate
attribution of complete model performance.
string attribution_token = 2;
Returns |
---|
Type | Description |
String | The attributionToken.
|
getAttributionTokenBytes()
public ByteString getAttributionTokenBytes()
A unique complete token. This should be included in the
UserEvent.completion_detail
for search events resulting from this completion, which enables accurate
attribution of complete model performance.
string attribution_token = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for attributionToken.
|
getCompletionResults(int index)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
Parameter |
---|
Name | Description |
index | int
|
getCompletionResultsBuilder(int index)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
Parameter |
---|
Name | Description |
index | int
|
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
Returns |
---|
Type | Description |
int | |
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
getCompletionResultsOrBuilder(int index)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
Parameter |
---|
Name | Description |
index | int
|
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.retail.v2.CompleteQueryResponse.CompletionResultOrBuilder> | |
getDefaultInstanceForType()
public CompleteQueryResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getRecentSearchResults(int index)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
Parameter |
---|
Name | Description |
index | int
|
getRecentSearchResultsBuilder(int index)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
Parameter |
---|
Name | Description |
index | int
|
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
Returns |
---|
Type | Description |
int | |
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
getRecentSearchResultsOrBuilder(int index)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
Parameter |
---|
Name | Description |
index | int
|
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResultOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CompleteQueryResponse other)
public CompleteQueryResponse.Builder mergeFrom(CompleteQueryResponse other)
public CompleteQueryResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CompleteQueryResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CompleteQueryResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeCompletionResults(int index)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
Parameter |
---|
Name | Description |
index | int
|
removeRecentSearchResults(int index)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
Parameter |
---|
Name | Description |
index | int
|
setAttributionToken(String value)
public CompleteQueryResponse.Builder setAttributionToken(String value)
A unique complete token. This should be included in the
UserEvent.completion_detail
for search events resulting from this completion, which enables accurate
attribution of complete model performance.
string attribution_token = 2;
Parameter |
---|
Name | Description |
value | String
The attributionToken to set.
|
setAttributionTokenBytes(ByteString value)
public CompleteQueryResponse.Builder setAttributionTokenBytes(ByteString value)
A unique complete token. This should be included in the
UserEvent.completion_detail
for search events resulting from this completion, which enables accurate
attribution of complete model performance.
string attribution_token = 2;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for attributionToken to set.
|
setCompletionResults(int index, CompleteQueryResponse.CompletionResult value)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
setCompletionResults(int index, CompleteQueryResponse.CompletionResult.Builder builderForValue)
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.v2.CompleteQueryResponse.CompletionResult completion_results = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public CompleteQueryResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult value)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
setRecentSearchResults(int index, CompleteQueryResponse.RecentSearchResult.Builder builderForValue)
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
field is set and UserEvent is imported.
The recent searches satisfy the follow rules:
- They are ordered from latest to oldest.
- They are matched with
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.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CompleteQueryResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CompleteQueryResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides