Thing.Builder | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# Thing.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.appindexing.Thing.Builder

Known Direct Subclasses Action.Builder
Action.Builder | Create a builder for an `Action`.

## 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) Sets a property of the content.
Thing.Builder | put(String key, String 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 app URI of the content.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Public Constructors

#### public Thing.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, 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 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 | Set 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.

#### public Thing.Builder setType (String type)

Sets the schema.org type of the content.

##### Parameters

type | The schema.org type.

#### public Thing.Builder setUrl (Uri url)

Sets the app URI of the content.

##### Parameters

url | The app URI of the content in the App Indexing format.