Class: Google::Apis::PubsubliteV1::ComputeMessageStatsRequest

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 statistics about a range of messages in a given topic and partition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeMessageStatsRequest

Returns a new instance of ComputeMessageStatsRequest.



159
160
161
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 159

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

Instance Attribute Details

#end_cursorGoogle::Apis::PubsubliteV1::Cursor

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



147
148
149
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 147

def end_cursor
  @end_cursor
end

#partitionFixnum

Required. The partition for which we should compute message stats. Corresponds to the JSON property partition

Returns:

  • (Fixnum)


152
153
154
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 152

def partition
  @partition
end

#start_cursorGoogle::Apis::PubsubliteV1::Cursor

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



157
158
159
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 157

def start_cursor
  @start_cursor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



164
165
166
167
168
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 164

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