Thing.Builder

public static class Thing.Builder extends Object
Known Direct Subclasses

This class is deprecated.
Please Migrate to the Firebase App Indexing API

Public Constructor Summary

Public Method Summary

Thing
build()
Build the Thing object.
Thing.Builder
put(String key, Thing value)
Sets a property of the content.
Thing.Builder
put(String key, Thing[] values)
Sets properties of the content.
Thing.Builder
put(String key, String value)
Sets a property of the content.
Thing.Builder
put(String key, String[] values)
Sets a property of the content.
Thing.Builder
put(String key, boolean value)
Sets a property of the content.
Thing.Builder
setDescription(String description)
Sets the optional description of the content.
Thing.Builder
setId(String id)
Sets the optional web URL of the content.
Thing.Builder
setName(String name)
Sets the name of the content.
Thing.Builder
setType(String type)
Sets the schema.org type of the content.
Thing.Builder
setUrl(Uri url)
Sets the URL of the content in the app.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public Thing build ()

Build the Thing object.

public Thing.Builder put (String key, Thing value)

Sets a property of the content.

Parameters
key The schema.org property. Must not be null.
value The value of the schema.org property represented as a Thing. If null, the value will be ignored.

public Thing.Builder put (String key, Thing[] values)

Sets properties of the content.

Parameters
key The schema.org property. Must not be null.
values The array of values represented as a Thing. If null, the values will be ignored.

public Thing.Builder put (String key, String value)

Sets a property of the content.

Parameters
key The schema.org property. Must not be null.
value The value of the schema.org property. If null, the value will be ignored.

public Thing.Builder put (String key, String[] values)

Sets a property of the content.

Parameters
key The schema.org property. Must not be null.
values The array of string values. If null, the values will be ignored.

public Thing.Builder put (String key, boolean value)

Sets a property of the content.

Parameters
key The schema.org property. Must not be null.
value The value of the schema.org property.

public Thing.Builder setDescription (String description)

Sets the optional description of the content.

Parameters
description The description of the content.

public Thing.Builder setId (String id)

Sets the optional web URL of the content.

Parameters
id The equivalent web url for the content.

public Thing.Builder setName (String name)

Sets the name of the content.

Parameters
name The name of the content, must not be null. For more information, visit these guidelines for providing a descriptive name.

public Thing.Builder setType (String type)

Sets the schema.org type of the content.

Parameters
type The schema.org type of the content.

public Thing.Builder setUrl (Uri url)

Sets the URL of the content in the app.

Parameters
url The app URI of the content, must not be null. The URI must either be an HTTP(S) URL, or use the App Indexing format. In either case, the app calling this method needs to handle corresponding incoming Intents and take users to that content.