class Google::Apis::PubsubliteV1::CommitCursorRequest
Request for CommitCursor.
Attributes
cursor[RW]
A cursor that describes the position of a message within a topic partition. Corresponds to the JSON property `cursor` @return [Google::Apis::PubsubliteV1::Cursor]
partition[RW]
The partition for which to update the cursor. Partitions are zero indexed, so ` partition` must be in the range [0, topic.num_partitions). Corresponds to the JSON property `partition` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/pubsublite_v1/classes.rb, line 78 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 83 def update!(**args) @cursor = args[:cursor] if args.key?(:cursor) @partition = args[:partition] if args.key?(:partition) end