public static final class

Action.Builder

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

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

Summary

Public Constructors
Action.Builder(String actionType)
Public Methods
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.
[Expand]
Inherited Methods
From class com.google.android.gms.appindexing.Thing.Builder
From class java.lang.Object

Public Constructors

public Action.Builder (String actionType)

Parameters
actionType String

Public Methods

public Action build ()

Build the Action object.

Returns
Action

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

Sets a property of the action.

Parameters
key String: The schema.org property. Must not be null.
value Thing: The value of the schema.org property represented as a Thing. If null, the value will be ignored.
Returns
Action.Builder

public Action.Builder put (String key, Thing[] values)

Sets properties of the action.

Parameters
key String: The schema.org property. Must not be null.
values Thing: The array of values represented as a Thing. If null, the values will be ignored.
Returns
Action.Builder

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

Sets a property of the action.

Parameters
key String: The schema.org property. Must not be null.
value String: The value of the schema.org property. If null, the value will be ignored.
Returns
Action.Builder

public Action.Builder put (String key, String[] values)

Sets properties of the action.

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

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

Sets a property of the action.

Parameters
key String: The schema.org property. Must not be null.
value boolean: The value of the schema.org property.
Returns
Action.Builder

public Action.Builder setActionStatus (String actionStatusType)

Specify the status of the action.

Parameters
actionStatusType String
Returns
Action.Builder

public Action.Builder setName (String name)

Sets the name of the action.

Parameters
name String: The name of the action.
Returns
Action.Builder

public Action.Builder setObject (Thing thing)

Sets the object of the action.

Parameters
thing Thing: The object of the action. Must not be null.
Returns
Action.Builder

public Action.Builder setUrl (Uri url)

Sets the app URI of the action.

Parameters
url Uri: The app URI of the action in the App Indexing format.
Returns
Action.Builder