Class: Google::Apis::CloudsearchV1::TopicState
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::TopicState
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
State of an topic thread as maintained within Tingle.
Instance Attribute Summary collapse
-
#label_id_message_count ⇒ Hash<String,Fixnum>
Map of label => count of topic constituent messages with label These only contain counts of labels that are relevant for topic normalization/ denormalization.
-
#num_constituents ⇒ Fixnum
Number of constituents for this entity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TopicState
constructor
A new instance of TopicState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TopicState
Returns a new instance of TopicState.
20598 20599 20600 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20598 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label_id_message_count ⇒ Hash<String,Fixnum>
Map of label => count of topic constituent messages with label These only
contain counts of labels that are relevant for topic normalization/
denormalization. Eg. If a topic thread has 5 constituents, 4 of which are in
inbox, this will contain ^i => 4. Some labels of interest are archive, inbox,
trash, spam, etc.
Corresponds to the JSON property labelIdMessageCount
20591 20592 20593 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20591 def @label_id_message_count end |
#num_constituents ⇒ Fixnum
Number of constituents for this entity.
Corresponds to the JSON property numConstituents
20596 20597 20598 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20596 def num_constituents @num_constituents end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20603 20604 20605 20606 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20603 def update!(**args) @label_id_message_count = args[:label_id_message_count] if args.key?(:label_id_message_count) @num_constituents = args[:num_constituents] if args.key?(:num_constituents) end |