class Google::Apis::PubsubliteV1::ComputeTimeCursorRequest
Compute the corresponding cursor for a publish or event time in a topic partition.
Attributes
partition[RW]
Required. The partition for which we should compute the cursor. Corresponds to the JSON property `partition` @return [Fixnum]
target[RW]
A target publish or event time. Can be used for seeking to or retrieving the corresponding cursor. Corresponds to the JSON property `target` @return [Google::Apis::PubsubliteV1::TimeTarget]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/pubsublite_v1/classes.rb, line 228 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/pubsublite_v1/classes.rb, line 233 def update!(**args) @partition = args[:partition] if args.key?(:partition) @target = args[:target] if args.key?(:target) end