View Source GoogleApi.PubSubLite.V1.Model.TimeTarget (google_api_pub_sub_lite v0.9.0)

A target publish or event time. Can be used for seeking to or retrieving the corresponding cursor.

Attributes

  • eventTime (type: DateTime.t, default: nil) - Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.
  • publishTime (type: DateTime.t, default: nil) - Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.PubSubLite.V1.Model.TimeTarget{
  eventTime: DateTime.t() | nil,
  publishTime: DateTime.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.