class Google::Apis::PubsubliteV1::TimeTarget
A target publish or event time. Can be used for seeking to or retrieving the corresponding cursor.
Attributes
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. Corresponds to the JSON property `eventTime` @return [String]
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`. Corresponds to the JSON property `publishTime` @return [String]
Public Class Methods
# File lib/google/apis/pubsublite_v1/classes.rb, line 775 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/pubsublite_v1/classes.rb, line 780 def update!(**args) @event_time = args[:event_time] if args.key?(:event_time) @publish_time = args[:publish_time] if args.key?(:publish_time) end