GoogleAssistantEmbeddedV1Timer

GoogleApi.ContentWarehouse.V1.Model.GoogleAssistantEmbeddedV1Timer


Table of Contents ▼

Jump to a specific part of the page:

Description

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 List

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

View Attributes

Attributes

  1. 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.
  2. label (type: String.t, default: nil)
    - A user-provided name for this timer.
  3. 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.
  4. remainingDuration (type: String.t, default: nil)
    - The remaining duration for the timer.
  5. status (type: String.t, default: nil)
    - Describes the part of the lifecycle a timer is in.
  6. 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.

Type

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

Function

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

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