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

Conceptually, timers are clocks that count down from an initial duration and ring when they reach 0. In practice, as a timer is running, it holds a stable expiration time and computes the remaining duration using the current time. When a timer is paused, it holds a stable remaining duration.

Attributes

  • expireTime (type: DateTime.t, default: nil) - The time the timer is scheduled to expire. google.protobuf.Timestamp is a Unix epoch time with a granularity of 1 nanosecond.
  • label (type: String.t, default: nil) - A user-provided name for this timer.
  • originalDuration (type: String.t, default: nil) - The duration of the timer when it was started. For the ADD_TIME action, this field contains the amount of time to add to the timer with the given timer_id.
  • remainingDuration (type: String.t, default: nil) - The remaining duration for the timer.
  • status (type: String.t, default: nil) - Describes the part of the lifecycle a timer is in.
  • timerId (type: String.t, default: nil) - A string key used as an identifier to this timer. This key needs to be unique amongst all timers on the device. The client can choose a mechanism of its choice to ensure this. If the server suggests a timer_id, the client can either use the suggestion or create a new unique timer_id of its choosing.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timer{
  expireTime: DateTime.t() | nil,
  label: String.t() | nil,
  originalDuration: String.t() | nil,
  remainingDuration: String.t() | nil,
  status: String.t() | nil,
  timerId: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.