Class: Google::Apis::PubsubliteV1::ComputeTimeCursorResponse

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 cursor corresponding to a publish or event time in a topic partition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeTimeCursorResponse

Returns a new instance of ComputeTimeCursorResponse.



249
250
251
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 249

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cursorGoogle::Apis::PubsubliteV1::Cursor

A cursor that describes the position of a message within a topic partition. Corresponds to the JSON property cursor



247
248
249
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 247

def cursor
  @cursor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



254
255
256
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 254

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