Thing.Builder Stay organized with collections Save and categorize content based on your preferences.
public static classThing.Builder extendsObject
Known Direct Subclasses
| ||||
This class is deprecated.
PleaseMigrate to the Firebase App Indexing API
Public Constructor Summary
Builder() |
Public Method Summary
| Thing | |
| Thing.Builder | |
| Thing.Builder | |
| Thing.Builder | |
| Thing.Builder | |
| Thing.Builder | |
| Thing.Builder | |
| Thing.Builder | |
| Thing.Builder | |
| Thing.Builder | |
| Thing.Builder |
Inherited Method Summary
Public Constructors
publicBuilder()
Public Methods
publicThing.Builderput(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 aThing. If null, the value will be ignored. |
publicThing.Builderput(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 aThing. If null, the values will be ignored. |
publicThing.Builderput(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. |
publicThing.Builderput(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. |
publicThing.Builderput(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. |
publicThing.BuildersetDescription(String description)
Sets the optional description of the content.
Parameters
| description | The description of the content. |
|---|
publicThing.BuildersetId(String id)
Sets the optional web URL of the content.
Parameters
| id | The 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
| type | The 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.