View Source GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsDevice (google_api_content_warehouse v0.4.0)

The device to perform an action. Both device_type and device_name are optional and they can coexist: [on my phone]: device_type = PHONE [on my nexus 4]: device_name = "nexus 4" [on my nexus phone]: device_type = PHONE, device_name = "nexus"

Attributes

  • deviceName (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsDeviceName.t, default: nil) - The name of the device (Nexus 5, Nexus 10, etc).
  • deviceType (type: String.t, default: nil) - The type of the device (phone, tablet, watch, etc).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsDevice{
  deviceName:
    GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsDeviceName.t()
    | nil,
  deviceType: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.