View Source GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition (google_api_content_warehouse v0.3.0)
A TriggerCondition is described as a set of states which must be met by the device. It also includes instructions to the Assistant on what kind of response to execute when the condition is not met.
Attributes
-
requiredStateValues
(type:%{optional(String.t) => GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec.t}
, default:nil
) - The map of state keys along with their values which must be returned by the device, for example to start the dishwasher you may require states: {"door": "CLOSED", "detergent_status": "READY"}. -
simpleTts
(type:String.t
, default:nil
) - A simple TTS to play. -
status
(type:String.t
, default:nil
) - Refers to a defined ConditionalResult keyed by its status. It could be a built-in or custom ConditionalResult for this Intent. Note: the states provided by the device MUST contain all of the states required by the ConditionalResult.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition{ requiredStateValues: %{ optional(String.t()) => GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec.t() } | nil, simpleTts: String.t() | nil, status: String.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.