Class: Google::Apis::PubsubliteV1::ComputeHeadCursorResponse
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::ComputeHeadCursorResponse
- 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
Response containing the head cursor for the requested topic and partition.
Instance Attribute Summary collapse
-
#head_cursor ⇒ Google::Apis::PubsubliteV1::Cursor
A cursor that describes the position of a message within a topic partition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeHeadCursorResponse
constructor
A new instance of ComputeHeadCursorResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeHeadCursorResponse
Returns a new instance of ComputeHeadCursorResponse.
130 131 132 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 130 def initialize(**args) update!(**args) end |
Instance Attribute Details
#head_cursor ⇒ Google::Apis::PubsubliteV1::Cursor
A cursor that describes the position of a message within a topic partition.
Corresponds to the JSON property headCursor
128 129 130 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 128 def head_cursor @head_cursor end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
135 136 137 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 135 def update!(**args) @head_cursor = args[:head_cursor] if args.key?(:head_cursor) end |