AppSearchSchema.LongPropertyConfig.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()
|
Public Constructors
public Builder (String
propertyName)
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.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eAppSearchSchema.LongPropertyConfig.Builder\u003c/code\u003e helps create configurations for long integer properties in AppSearch.\u003c/p\u003e\n"],["\u003cp\u003eIt allows setting cardinality, description, and indexing type for the property.\u003c/p\u003e\n"],["\u003cp\u003eBy default, properties are optional, have no description, and are not indexed.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ebuild()\u003c/code\u003e method is used to construct the final \u003ccode\u003eAppSearchSchema.LongPropertyConfig\u003c/code\u003e object.\u003c/p\u003e\n"]]],["The `AppSearchSchema.LongPropertyConfig.Builder` class facilitates the creation of `LongPropertyConfig` objects. Key actions include: constructing a new builder with `Builder(String propertyName)`, setting property cardinality via `setCardinality(int)`, defining a property description with `setDescription(String)`, and configuring indexing with `setIndexingType(int)`. Finally, `build()` assembles the configured `LongPropertyConfig` object. Default cardinality is optional, and default indexing type is none.\n"],null,["# AppSearchSchema.LongPropertyConfig.Builder\n\npublic static final class **AppSearchSchema.LongPropertyConfig.Builder** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nBuilder for [AppSearchSchema.LongPropertyConfig](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig). \n\n### Public Constructor Summary\n\n|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder#Builder(java.lang.String))([String](//developer.android.com/reference/java/lang/String.html) propertyName) Creates a new [AppSearchSchema.LongPropertyConfig.Builder](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder). |\n\n### Public Method Summary\n\n|----------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AppSearchSchema.LongPropertyConfig](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig) | [build](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder#build())() Constructs a new [AppSearchSchema.LongPropertyConfig](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig) from the contents of this builder. |\n| [AppSearchSchema.LongPropertyConfig.Builder](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder) | [setCardinality](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder#setCardinality(int))(int cardinality) Sets the cardinality of the property (whether it is optional, required or repeated). |\n| [AppSearchSchema.LongPropertyConfig.Builder](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder) | [setDescription](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder#setDescription(java.lang.String))([String](//developer.android.com/reference/java/lang/String.html) description) Sets a natural language description of this property. |\n| [AppSearchSchema.LongPropertyConfig.Builder](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder) | [setIndexingType](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder#setIndexingType(int))(int indexingType) Configures how a property should be indexed so that it can be retrieved by queries. |\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** ([String](//developer.android.com/reference/java/lang/String.html) propertyName)\n\nCreates a new [AppSearchSchema.LongPropertyConfig.Builder](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder).\n\nPublic Methods\n--------------\n\n#### public [AppSearchSchema.LongPropertyConfig](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig) **build** ()\n\nConstructs a new [AppSearchSchema.LongPropertyConfig](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig) from the contents of this builder. \n\n#### public [AppSearchSchema.LongPropertyConfig.Builder](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder) **setCardinality** (int cardinality)\n\nSets the cardinality of the property (whether it is optional, required or\nrepeated).\n\nIf this method is not called, the default cardinality is [AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_OPTIONAL). \n\n#### public [AppSearchSchema.LongPropertyConfig.Builder](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder) **setDescription** ([String](//developer.android.com/reference/java/lang/String.html) description)\n\nSets a natural language description of this property.\n\nFor more details about the description field, see [AppSearchSchema.PropertyConfig.getDescription()](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.PropertyConfig#getDescription()). \n\n#### public [AppSearchSchema.LongPropertyConfig.Builder](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig.Builder) **setIndexingType** (int indexingType)\n\nConfigures how a property should be indexed so that it can be retrieved by\nqueries.\n\nIf this method is not called, the default indexing type is [AppSearchSchema.LongPropertyConfig.INDEXING_TYPE_NONE](/android/reference/com/google/android/gms/appsearch/AppSearchSchema.LongPropertyConfig#INDEXING_TYPE_NONE), so that it will not\nbe indexed and cannot be matched by queries."]]