@Document.BuilderProducer
class Person.Builder : Person.BuilderBase


Builder class for Person.

Summary

Public constructors

Builder(person: Person)

Constructor for Builder with all the existing values of an Person.

Builder(namespace: String, id: String, name: String)

Constructor for Person.Builder.

Inherited functions

From androidx.appsearch.builtintypes.Person.BuilderBase
Person

Builds the Person.

T

Sets a list of AdditionalName for that Person.

T
setAffiliations(affiliations: (Mutable)List<String!>)

Sets a list of affiliations for this Person.

T
setBot(isBot: Boolean)

Sets whether this Person is a bot.

T

Sets a list of ContactPoint for the Person.

T

Sets the external Uri from a String representation for this Person.

T
setExternalUri(externalUri: Uri)

Sets an external Uri for this Person.

T
setFamilyName(familyName: String)

Sets the family name of this Person.

T
setGivenName(givenName: String)

Sets the given name of this Person.

T

Sets the Uri of the profile image from a String representation for the Person.

T
setImageUri(imageUri: Uri)

Sets the Uri of the profile image for the Person.

T
setImportant(isImportant: Boolean)

Sets whether this Person is important.

T

Sets whether this Person is a bot.

T

Sets whether this Person is important.

T
setMiddleName(middleName: String)

Sets the middle name of this Person.

T

Sets the notes about this Person.

T

Sets a list of relations for this Person, like "Father" or "Mother".

From androidx.appsearch.builtintypes.Thing.BuilderBase
T
addAlternateName(alternateName: String)

Adds an alias for the item.

T

Add a new action to the list of potential actions for this document.

Thing

Builds a Thing object.

T

Clears the aliases, if any, for the item.

T

Clear all the potential actions for this document.

Unit

If built, make a copy of previous data for every field so that the builder can be reused.

T
setAlternateNames(alternateNames: (Mutable)List<String!>?)

Sets a list of aliases for the item.

T
setCreationTimestampMillis(creationTimestampMillis: Long)

Sets the creation timestamp for the current AppSearch entity, in milliseconds using the currentTimeMillis time base.

T
setDescription(description: String?)

Sets the description for the item.

T
setDocumentScore(documentScore: Int)

Sets the user-provided opaque document score of the current AppSearch document, which can be used for ranking using RANKING_STRATEGY_DOCUMENT_SCORE.

T
setDocumentTtlMillis(documentTtlMillis: Long)

Sets the time-to-live (TTL) for the current AppSearch document as a duration in milliseconds.

T

Sets the URL for an image of the item.

T
setName(name: String?)

Sets the name of the item.

T

Sets a list of potential actions for this document.

T
setUrl(url: String?)

Sets the deeplink URL of the item.

Public constructors

Builder

Added in 1.1.0
Builder(person: Person)

Constructor for Builder with all the existing values of an Person.

Builder

Added in 1.1.0
Builder(namespace: String, id: String, name: String)

Constructor for Person.Builder.

Parameters
namespace: String

Namespace for the Person Document. See Document.Namespace.

id: String

Unique identifier for the Person Document. See Document.Id.

name: String

The searchable full name of this Person. E.g. "Larry Page", or "Page, Larry".