class Google::Apis::PubsubliteV1::ComputeMessageStatsRequest

Compute statistics about a range of messages in a given topic and partition.

Attributes

end_cursor[RW]

A cursor that describes the position of a message within a topic partition. Corresponds to the JSON property `endCursor` @return [Google::Apis::PubsubliteV1::Cursor]

partition[RW]

Required. The partition for which we should compute message stats. Corresponds to the JSON property `partition` @return [Fixnum]

start_cursor[RW]

A cursor that describes the position of a message within a topic partition. Corresponds to the JSON property `startCursor` @return [Google::Apis::PubsubliteV1::Cursor]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/pubsublite_v1/classes.rb, line 159
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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