Class: Google::Apis::PubsubliteV1::ComputeHeadCursorRequest

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

Compute the current head cursor for a partition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeHeadCursorRequest

Returns a new instance of ComputeHeadCursorRequest.



111
112
113
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 111

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

Instance Attribute Details

#partitionFixnum

Required. The partition for which we should compute the head cursor. Corresponds to the JSON property partition

Returns:

  • (Fixnum)


109
110
111
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 109

def partition
  @partition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



116
117
118
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 116

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