Class: Google::Apis::PubsubliteV1::PartitionCursor
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::PartitionCursor
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsublite_v1/classes.rb,
generated/google/apis/pubsublite_v1/representations.rb,
generated/google/apis/pubsublite_v1/representations.rb
Overview
A pair of a Cursor and the partition it is for.
Instance Attribute Summary collapse
-
#cursor ⇒ Google::Apis::PubsubliteV1::Cursor
A cursor that describes the position of a message within a topic partition.
-
#partition ⇒ Fixnum
The partition this is for.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PartitionCursor
constructor
A new instance of PartitionCursor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PartitionCursor
Returns a new instance of PartitionCursor.
335 336 337 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 335 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cursor ⇒ Google::Apis::PubsubliteV1::Cursor
A cursor that describes the position of a message within a topic partition.
Corresponds to the JSON property cursor
328 329 330 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 328 def cursor @cursor end |
#partition ⇒ Fixnum
The partition this is for.
Corresponds to the JSON property partition
333 334 335 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 333 def partition @partition end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
340 341 342 343 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 340 def update!(**args) @cursor = args[:cursor] if args.key?(:cursor) @partition = args[:partition] if args.key?(:partition) end |