Thing.Builder

public static classThing.Builder extendsObject
Known Direct Subclasses

This class is deprecated.
PleaseMigrate to the Firebase App Indexing API

Public Constructor Summary

Public Method Summary

Thing
build()
Build theThing 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

From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Constructors

publicBuilder()

Public Methods

publicThingbuild()

Build theThing object.

publicThing.Builderput(String key,Thing value)

Sets a property of the content.

Parameters
keyThe schema.org property. Must not be null.
valueThe value of the schema.org property represented as aThing. If null, the value will be ignored.

publicThing.Builderput(String key,Thing[] values)

Sets properties of the content.

Parameters
keyThe schema.org property. Must not be null.
valuesThe array of values represented as aThing. If null, the values will be ignored.

publicThing.Builderput(String key,String value)

Sets a property of the content.

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

publicThing.Builderput(String key,String[] values)

Sets a property of the content.

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

publicThing.Builderput(String key, boolean value)

Sets a property of the content.

Parameters
keyThe schema.org property. Must not be null.
valueThe value of the schema.org property.

publicThing.BuildersetDescription(String description)

Sets the optional description of the content.

Parameters
descriptionThe description of the content.

publicThing.BuildersetId(String id)

Sets the optional web URL of the content.

Parameters
idThe equivalent web url for the content.

publicThing.BuildersetName(String name)

Sets the name of the content.

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

publicThing.BuildersetType(String type)

Sets the schema.org type of the content.

Parameters
typeThe schema.org type of the content.

publicThing.BuildersetUrl(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 theApp Indexing format. In either case, the app calling this method needs to handle corresponding incoming Intents and take users to that content.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2021-02-11 UTC.