Class: Google::Apis::PubsubliteV1::ComputeHeadCursorResponse

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

Response containing the head cursor for the requested topic and partition.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_cursorGoogle::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