public class UpdatePermission
extends Permission
Helper intent response to request user for permissions. Usage:
ResponseBuilder responseBuilder = getResponseBuilder();
responseBuilder
.add("Placeholder text for update permission")
.add(new UpdatePermission().setIntent("intent_name"));
To get the user's response:
boolean permissionGranted = request.isPermissionGranted() != null &&
request.isPermissionGranted().booleanValue();
Constructor and Description |
---|
UpdatePermission()
Helper intent response to request user for permissions.
Usage:
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
void |
prepareMap() |
UpdatePermission |
setArguments(java.util.List<com.google.api.services.actions_fulfillment.v2.model.Argument> arguments) |
UpdatePermission |
setIntent(java.lang.String intent) |
getName, getParameters, prepareMap, setContext, setPermissions, setUpdatePermissionValueSpec
getName, getParameters
public UpdatePermission()
Helper intent response to request user for permissions. Usage:
ResponseBuilder responseBuilder = getResponseBuilder();
responseBuilder
.add("Placeholder text for update permission")
.add(new UpdatePermission().setIntent("intent_name"));
To get the user's response:
boolean permissionGranted = request.isPermissionGranted() != null &&
request.isPermissionGranted().booleanValue();
public UpdatePermission setIntent(java.lang.String intent)
public UpdatePermission setArguments(java.util.List<com.google.api.services.actions_fulfillment.v2.model.Argument> arguments)
public java.lang.String getName()
public void prepareMap()