Class: Google::Apis::PubsubliteV1::Cursor

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/pubsublite_v1/classes.rb,
lib/google/apis/pubsublite_v1/representations.rb,
lib/google/apis/pubsublite_v1/representations.rb

Overview

A cursor that describes the position of a message within a topic partition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Cursor

Returns a new instance of Cursor.



256
257
258
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 256

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#offsetFixnum

The offset of a message within a topic partition. Must be greater than or equal 0. Corresponds to the JSON property offset

Returns:

  • (Fixnum)


254
255
256
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 254

def offset
  @offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



261
262
263
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 261

def update!(**args)
  @offset = args[:offset] if args.key?(:offset)
end