public static class

Thing.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gms.appindexing.Thing.Builder
Known Direct Subclasses

Class Overview

Create a builder for a Thing.

Summary

Public Constructors
Thing.Builder()
Public Methods
Thing build()
Build the Thing object.
Thing.Builder put(String key, Thing value)
Specify optional properties of the content.
Thing.Builder put(String key, String value)
Specify optional properties of the content.
Thing.Builder setDescription(String description)
Specify the optional description of the content.
Thing.Builder setId(String id)
Specify the optional web URL of the content.
Thing.Builder setName(String name)
Specify the name of the content.
Thing.Builder setType(String type)
Specify optional schema.org type of the content.
Thing.Builder setUrl(Uri url)
Specify the native app URL of the content.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Thing.Builder ()

Public Methods

public Thing build ()

Build the Thing object.

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

Specify optional properties 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, String value)

Specify optional properties 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 setDescription (String description)

Specify the optional description of the content.

Parameters
description Description of the content.

public Thing.Builder setId (String id)

Specify the optional web URL of the content.

Parameters
id Set the equivalent web url for the content. See App Indexing.

public Thing.Builder setName (String name)

Specify the name of the content.

Parameters
name Name of the content.

public Thing.Builder setType (String type)

Specify optional schema.org type of the content.

Parameters
type The schema.org type.

public Thing.Builder setUrl (Uri url)

Specify the native app URL of the content.

Parameters
url Set the deep-link in the App Indexing format.