PermissionValue
Stay organized with collections
Save and categorize content based on your preferences.
Returned to the Action as output for actions.type.Notifications
.
Permission
Possible values for permission.
PermissionGrantedStatus
The returned status of permission slot.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003ePermissionValue\u003c/code\u003e is returned to the Action as output for \u003ccode\u003eactions.type.Notifications\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides information about granted permissions, permission status, and additional user data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egranted_permissions\u003c/code\u003e field outlines specific permissions like name, location, and updates.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003epermission_status\u003c/code\u003e indicates whether the permission was granted, denied, or if the user's status prevents granting.\u003c/p\u003e\n"]]],[],null,["# PermissionValue\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [PermissionValue](#PermissionValue)\n - [JSON representation](#PermissionValue.SCHEMA_REPRESENTATION)\n\nReturned to the Action as output for `actions.type.Notifications`.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"granted_permissions\": [ enum (/assistant/actionssdk/reference/rest/Shared.Types/PermissionValue#permission) ], \"permission_status\": enum (/assistant/actionssdk/reference/rest/Shared.Types/PermissionValue#permissiongrantedstatus), \"additional_user_data\": string (`AdditionalUserData`) } ``` |\n\n| Fields ||\n|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `granted_permissions` | `enum (`[Permission](/assistant/actionssdk/reference/rest/Shared.Types/PermissionValue#permission)`)` Possible values for permission. |\n| `permission_status` | `enum (`[PermissionGrantedStatus](/assistant/actionssdk/reference/rest/Shared.Types/PermissionValue#permissiongrantedstatus)`)` The returned status of permission slot. |\n| `additional_user_data` | `enum (``AdditionalUserData``)` Additional data generated while updating user's permission. |\n\nPermission\n----------\n\nPossible values for permission.\n\n| Enums ||\n|---------------------------|-----------------------------------------------------------------------------|\n| `UNSPECIFIED_PERMISSION` | Unspecified permission. |\n| `NAME` | Ask for user's first and last name. |\n| `DEVICE_PRECISE_LOCATION` | Ask for user's precise location, latitude/longitude, and formatted address. |\n| `DEVICE_COARSE_LOCATION` | Ask for user's coarse location, zip code, city, and country code. |\n| `UPDATE` | Ask for permissions to send updates. |\n\nPermissionGrantedStatus\n-----------------------\n\nThe returned status of permission slot.\n\n| Enums ||\n|----------------------|----------------------------------------------------------------------------------------------------------------------|\n| `TYPE_UNSPECIFIED` | Unspecified. |\n| `PERMISSION_GRANTED` | User granted permission. |\n| `PERMISSION_DENIED` | User denied permission. |\n| `ALREADY_GRANTED` | User has previously granted permission. |\n| `UNVERIFIED_USER` | Permissions cannot be requested from an unverified user. |\n| `INCOGNITO_USER` | Permissions cannot be requested from an incognito user. |\n| `SIGNED_OUT_USER` | Permissions cannot be requested from a signed-out user. Only certain permissions are available for signed-out users. |"]]