Class: Google::Apis::PubsubliteV1::ComputeMessageStatsRequest
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::ComputeMessageStatsRequest
- 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
-
#end_cursor ⇒ Google::Apis::PubsubliteV1::Cursor
A cursor that describes the position of a message within a topic partition.
-
#partition ⇒ Fixnum
Required.
-
#start_cursor ⇒ Google::Apis::PubsubliteV1::Cursor
A cursor that describes the position of a message within a topic partition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeMessageStatsRequest
constructor
A new instance of ComputeMessageStatsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeMessageStatsRequest
Returns a new instance of ComputeMessageStatsRequest.
107 108 109 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 107 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_cursor ⇒ Google::Apis::PubsubliteV1::Cursor
A cursor that describes the position of a message within a topic partition.
Corresponds to the JSON property endCursor
95 96 97 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 95 def end_cursor @end_cursor end |
#partition ⇒ Fixnum
Required. The partition for which we should compute message stats.
Corresponds to the JSON property partition
100 101 102 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 100 def partition @partition end |
#start_cursor ⇒ Google::Apis::PubsubliteV1::Cursor
A cursor that describes the position of a message within a topic partition.
Corresponds to the JSON property startCursor
105 106 107 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 105 def start_cursor @start_cursor end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
112 113 114 115 116 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 112 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 |