Action.Builder

public static final class Action.Builder extends Thing.Builder

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

Public Constructor Summary

Builder(String actionType)

Public Method Summary

Action
build()
Build the Action object.
Action.Builder
put(String key, Thing value)
Sets a property of the action.
Action.Builder
put(String key, Thing[] values)
Sets properties of the action.
Action.Builder
put(String key, String value)
Sets a property of the action.
Action.Builder
put(String key, String[] values)
Sets properties of the action.
Action.Builder
put(String key, boolean value)
Sets a property of the action.
Action.Builder
setActionStatus(String actionStatusType)
Specify the status of the action.
Action.Builder
setName(String name)
Sets the name of the action.
Action.Builder
setObject(Thing thing)
Sets the object of the action.
Action.Builder
setUrl(Uri url)
Sets the app URI of the action.

Inherited Method Summary

Public Constructors

public Builder (String actionType)

Public Methods

public Action build ()

Build the Action object.

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

Sets a property of the action.

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 Action.Builder put (String key, Thing[] values)

Sets properties of the action.

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 Action.Builder put (String key, String value)

Sets a property of the action.

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 Action.Builder put (String key, String[] values)

Sets properties of the action.

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

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

Sets a property of the action.

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

public Action.Builder setActionStatus (String actionStatusType)

Specify the status of the action.

public Action.Builder setName (String name)

Sets the name of the action.

Parameters
name The name of the action.

public Action.Builder setObject (Thing thing)

Sets the object of the action.

Parameters
thing The object of the action. Must not be null.

public Action.Builder setUrl (Uri url)

Sets the app URI of the action.

Parameters
url The app URI of the action in the App Indexing format.