Class: Google::Apis::PubsubliteV1::Cursor
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::Cursor
- 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
-
#offset ⇒ Fixnum
The offset of a message within a topic partition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Cursor
constructor
A new instance of Cursor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Cursor
Returns a new instance of Cursor.
170 171 172 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 170 def initialize(**args) update!(**args) end |
Instance Attribute Details
#offset ⇒ Fixnum
The offset of a message within a topic partition. Must be greater than or
equal 0.
Corresponds to the JSON property offset
168 169 170 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 168 def offset @offset end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
175 176 177 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 175 def update!(**args) @offset = args[:offset] if args.key?(:offset) end |