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.



59
60
61
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 59

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)


57
58
59
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 57

def partition
  @partition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



64
65
66
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 64

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