AssistantDevicesPlatformProtoTriggerCondition

GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition


Table of Contents ▼

Jump to a specific part of the page:

Description

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 List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. requiredStateValues (type: %{optional(String.t) => GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoArgSpec}, 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"}.
  2. simpleTts (type: String.t, default: nil)
    - A simple TTS to play.
  3. 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.

Type

@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
}

Function

@spec decode(struct(), keyword()) :: struct()

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.AssistantDevicesPlatformProtoTriggerCondition