class Google::Apis::PubsubliteV1::PartitionCursor

A pair of a Cursor and the partition it is for.

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 this is for. 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 602
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 607
def update!(**args)
  @cursor = args[:cursor] if args.key?(:cursor)
  @partition = args[:partition] if args.key?(:partition)
end