GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceState
Table of Contents ▼
Jump to a specific part of the page:
Description
Information about the state of the device. This contains any state that Assistant may need to know about in order to fulfill requests, for example which timers and alarms are set. Next ID: 13
Attributes List
This module has the following attributes (case-insensitive ascending order):
Attributes
-
alarmState
(type:GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarms
, default:nil
)
- Optional Information about on-device alarms. For devices that support alarms, all on-device alarms must be sent up with the DeviceState in order for Assistant Server to be able to perform operations on them. -
contextParams
(type:String.t
, default:nil
)
- Other context params to be sent to Assistant. This is a assistant.embedded.v1.ContextParams message in serialized binary proto format. -
deviceTime
(type:DateTime.t
, default:nil
)
- A timestamp of the current device time when the request was made. This field is required if your device supports alarms or timers. This ensures that requests are fulfilled relative to the current device time and regardless of any clock skew between the client and the server. -
deviceTimeZone
(type:GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone
, default:nil
)
- The time zone where the device is currently located. This helps the Assistant answer time-related queries relative to the device's time zone. Generally speaking, mobile devices that support alarms or timers should supply device_time_zone. This field is required if your device supports alarms or timers and the device's location cannot reliably be determined. (See the comment above google.assistant.embedded.v1.DeviceLocation for a description of how the device's location is determined.) If the time zone cannot be determined, some queries for creating or modifying timers or alarms may fail with a generic error such as, "Sorry, I don't know how to help with that." -
doNotDisturb
(type:boolean()
, default:nil
)
- Indicate whether do not disturb mode is turned on. -
fitnessActivitiesState
(type:GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivities
, default:nil
)
- Information about on-device fitness activities. For devices that support fitness activities, all on-device fitness activities must be sent up with the DeviceState in order for Assistant Server to be able to perform operations on them. -
installedApps
(type:GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceStateInstalledAppsState
, default:nil
)
- Information about apps currently installed on device. -
installedAppsZlib
(type:String.t
, default:nil
)
- This contains a zlib-compressed binary-encodedInstalledAppsState
proto message. -
timerState
(type:GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timers
, default:nil
)
- Optional Information about on-device timers. For devices that support timers, all on-device timers must be sent up with the DeviceState in order for Assistant Server to be able to perform operations on them.
Type
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceState{
alarmState: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarms.t() | nil,
contextParams: String.t() | nil,
deviceTime: DateTime.t() | nil,
deviceTimeZone: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone.t() | nil,
doNotDisturb: boolean() | nil,
fitnessActivitiesState: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivities.t() | nil,
installedApps: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceStateInstalledAppsState.t() | nil,
installedAppsZlib: String.t() | nil,
timerState: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timers.t() | nil,
unavailableSettings: [String.t()] | nil
}
alarmState: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Alarms.t() | nil,
contextParams: String.t() | nil,
deviceTime: DateTime.t() | nil,
deviceTimeZone: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeTimeZone.t() | nil,
doNotDisturb: boolean() | nil,
fitnessActivitiesState: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1FitnessActivities.t() | nil,
installedApps: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceStateInstalledAppsState.t() | nil,
installedAppsZlib: String.t() | nil,
timerState: GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timers.t() | nil,
unavailableSettings: [String.t()] | nil
}
Function
@spec decode(struct(), keyword()) :: struct()Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantAccessoryV1DeviceState