SearchSuggestionResult.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Public Constructor Summary
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eSearchSuggestionResult.Builder\u003c/code\u003e is used to create \u003ccode\u003eSearchSuggestionResult\u003c/code\u003e objects, which hold search suggestions.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a method \u003ccode\u003esetSuggestedResult\u003c/code\u003e to set the suggested query string.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method creates the final \u003ccode\u003eSearchSuggestionResult\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eSuggested results should contain only lowercase letters or special characters.\u003c/p\u003e\n"]]],[],null,["# SearchSuggestionResult.Builder\n\npublic static final class **SearchSuggestionResult.Builder** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nThe Builder class of [SearchSuggestionResult](/android/reference/com/google/android/gms/appsearch/SearchSuggestionResult). \n\n### Public Constructor Summary\n\n|---|-----------------------------------------------------------------------------------------------------------|\n| | [Builder](/android/reference/com/google/android/gms/appsearch/SearchSuggestionResult.Builder#Builder())() |\n\n### Public Method Summary\n\n|----------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [SearchSuggestionResult](/android/reference/com/google/android/gms/appsearch/SearchSuggestionResult) | [build](/android/reference/com/google/android/gms/appsearch/SearchSuggestionResult.Builder#build())() Build a [SearchSuggestionResult](/android/reference/com/google/android/gms/appsearch/SearchSuggestionResult) object |\n| [SearchSuggestionResult.Builder](/android/reference/com/google/android/gms/appsearch/SearchSuggestionResult.Builder) | [setSuggestedResult](/android/reference/com/google/android/gms/appsearch/SearchSuggestionResult.Builder#setSuggestedResult(java.lang.String))([String](//developer.android.com/reference/java/lang/String.html) suggestedResult) Sets the suggested result that could be used as query expression in the [AppSearchClient.search(String, SearchSpec, String)](/android/reference/com/google/android/gms/appsearch/AppSearchClient#search(java.lang.String,%20com.google.android.gms.appsearch.SearchSpec,%20java.lang.String)). |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public **Builder** ()\n\nPublic Methods\n--------------\n\n#### public [SearchSuggestionResult](/android/reference/com/google/android/gms/appsearch/SearchSuggestionResult)\n**build** ()\n\nBuild a [SearchSuggestionResult](/android/reference/com/google/android/gms/appsearch/SearchSuggestionResult)\nobject \n\n#### public [SearchSuggestionResult.Builder](/android/reference/com/google/android/gms/appsearch/SearchSuggestionResult.Builder)\n**setSuggestedResult** ([String](//developer.android.com/reference/java/lang/String.html) suggestedResult)\n\nSets the suggested result that could be used as query expression in the\n[AppSearchClient.search(String, SearchSpec, String)](/android/reference/com/google/android/gms/appsearch/AppSearchClient#search(java.lang.String,%20com.google.android.gms.appsearch.SearchSpec,%20java.lang.String)).\n\nThe suggested result should only contain lowercase or special characters."]]