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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
    • getDefaultInstanceForType

      public CompleteQueryResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CompleteQueryResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CompleteQueryResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CompleteQueryResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompleteQueryResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1;
      Specified by:
      getCompletionResultsList in interface CompleteQueryResponseOrBuilder
    • 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:
      getCompletionResultsCount in interface CompleteQueryResponseOrBuilder
    • 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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1;
      Specified by:
      getCompletionResults in interface CompleteQueryResponseOrBuilder
    • 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

       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

       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

      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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.CompleteQueryResponse.CompletionResult completion_results = 1;
      Specified by:
      getCompletionResultsOrBuilder in interface CompleteQueryResponseOrBuilder
    • 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:
      getCompletionResultsOrBuilderList in interface CompleteQueryResponseOrBuilder
    • 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.v2alpha.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.v2alpha.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.v2alpha.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.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:
      getAttributionToken in interface CompleteQueryResponseOrBuilder
      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:
      getAttributionTokenBytes in interface CompleteQueryResponseOrBuilder
      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.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

      public CompleteQueryResponse.Builder 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

      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.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 public List<CompleteQueryResponse.RecentSearchResult> 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:
      getRecentSearchResultsList in interface CompleteQueryResponseOrBuilder
    • getRecentSearchResultsCount

      @Deprecated public int 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:
      getRecentSearchResultsCount in interface CompleteQueryResponseOrBuilder
    • getRecentSearchResults

      @Deprecated public CompleteQueryResponse.RecentSearchResult getRecentSearchResults(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:
      getRecentSearchResults in interface CompleteQueryResponseOrBuilder
    • 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.
       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.
       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.
       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 public CompleteQueryResponse.Builder 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 public CompleteQueryResponse.Builder removeRecentSearchResults(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];
    • 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:
      getRecentSearchResultsOrBuilder in interface CompleteQueryResponseOrBuilder
    • 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:
      getRecentSearchResultsOrBuilderList in interface CompleteQueryResponseOrBuilder
    • addRecentSearchResultsBuilder

      @Deprecated public CompleteQueryResponse.RecentSearchResult.Builder 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: CompleteQueryResponseOrBuilder
       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:
      getAttributeResultsCount in interface CompleteQueryResponseOrBuilder
    • containsAttributeResults

      public boolean containsAttributeResults(String key)
       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:
      containsAttributeResults in interface CompleteQueryResponseOrBuilder
    • getAttributeResults

      Deprecated.
      Specified by:
      getAttributeResults in interface CompleteQueryResponseOrBuilder
    • getAttributeResultsMap

      public Map<String,CompleteQueryResponse.AttributeResult> 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:
      getAttributeResultsMap in interface CompleteQueryResponseOrBuilder
    • 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:
      getAttributeResultsOrDefault in interface CompleteQueryResponseOrBuilder
    • getAttributeResultsOrThrow

      public CompleteQueryResponse.AttributeResult getAttributeResultsOrThrow(String key)
       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:
      getAttributeResultsOrThrow in interface CompleteQueryResponseOrBuilder
    • clearAttributeResults

      public CompleteQueryResponse.Builder clearAttributeResults()
    • removeAttributeResults

      public CompleteQueryResponse.Builder removeAttributeResults(String key)
       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 public Map<String,CompleteQueryResponse.AttributeResult> getMutableAttributeResults()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAttributeResults

       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

       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

      public CompleteQueryResponse.AttributeResult.Builder putAttributeResultsBuilderIfAbsent(String key)
       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;