View Source GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData (google_api_content_warehouse v0.3.0)

Next ID: 8

Attributes

  • agentId (type: String.t, default: nil) - Agent ID, aka project ID. Used as the AgentDeviceId.agent_id of device when calling Home Graph Service.
  • attributes (type: map(), default: nil) - See go/ha-dev-guide and HomeGraphItem.attribute in //assistant/verticals/homeautomation/proto/home_graph.proto
  • deviceId (type: String.t, default: nil) - Device ID, used as AgentDeviceId.device_id of device when calling Home Graph Service.
  • deviceType (type: String.t, default: nil) - HGS device type. See java/com/google/home/graph/service/config/protoconf.pi for the exhaustive list of type strings.
  • shouldWriteToHomeGraph (type: boolean(), default: nil) - Whether device data should be written to Home Graph via Assistant device_settings. Assistant SDK and Google Home write their devices into Home Graph through AssistantSettingsService, while Home Automation Partner devices (e.g. SmartThings, Philips Hue, Nest, TP-Link, etc.) don't need to be written to Home Graph through AssistantSettingsService. This field decides whether AssistantSettingsService writes devices to Home Graph or not.
  • supportedTraits (type: list(String.t), default: nil) - Supported traits of the device. See java/com/google/home/graph/service/config/protoconf.pi for the exhaustive list of trait-strings.
  • supportsDirectResponse (type: boolean(), default: nil) - Whether the device supports direct response. See HomeGraphItem.supports_direct_response in //assistant/verticals/homeautomation/proto/home_graph.proto

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData{
  agentId: String.t() | nil,
  attributes: map() | nil,
  deviceId: String.t() | nil,
  deviceType: String.t() | nil,
  shouldWriteToHomeGraph: boolean() | nil,
  supportedTraits: [String.t()] | nil,
  supportsDirectResponse: boolean() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.