AppSearchSchema.PropertyConfig

abstract class AppSearchSchema.PropertyConfig

Known direct subclasses
AppSearchSchema.BooleanPropertyConfig

Configuration for a property containing a boolean.

AppSearchSchema.BytesPropertyConfig

Configuration for a property containing a byte array.

AppSearchSchema.DocumentPropertyConfig

Configuration for a property containing another Document.

AppSearchSchema.DoublePropertyConfig

Configuration for a property containing a double-precision decimal number.

AppSearchSchema.LongPropertyConfig

Configuration for a property containing a 64-bit integer.

AppSearchSchema.StringPropertyConfig

Configuration for a property of type String in a Document.


Common configuration for a single property (field) in a Document.

For example, an EmailMessage would be a type and the subject would be a property.

Summary

Constants

const Int

Zero or one value [0,1].

const Int

Any number of items (including zero) [0...*].

const Int

Exactly one value [1].

Public functions

Boolean
equals(other: Any?)
Int

Returns the cardinality of the property (whether it is optional, required or repeated).

String

Returns the name of this property.

Int
String

Constants

CARDINALITY_OPTIONAL

Added in 1.1.0-alpha04
const val CARDINALITY_OPTIONAL = 2: Int

Zero or one value [0,1].

CARDINALITY_REPEATED

Added in 1.1.0-alpha04
const val CARDINALITY_REPEATED = 1: Int

Any number of items (including zero) [0...*].

CARDINALITY_REQUIRED

Added in 1.1.0-alpha04
const val CARDINALITY_REQUIRED = 3: Int

Exactly one value [1].

Public functions

equals

fun equals(other: Any?): Boolean

getCardinality

Added in 1.1.0-alpha04
fun getCardinality(): Int

Returns the cardinality of the property (whether it is optional, required or repeated).

getName

Added in 1.1.0-alpha04
fun getName(): String

Returns the name of this property.

hashCode

fun hashCode(): Int

toString

fun toString(): String