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.



78
79
80
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 78

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



76
77
78
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 76

def head_cursor
  @head_cursor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



83
84
85
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 83

def update!(**args)
  @head_cursor = args[:head_cursor] if args.key?(:head_cursor)
end