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.
117 118 119 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 117 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
115 116 117 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 115 def head_cursor @head_cursor end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
122 123 124 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 122 def update!(**args) @head_cursor = args[:head_cursor] if args.key?(:head_cursor) end |