Class: Google::Apis::CloudsearchV1::TopicState

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TopicState

Returns a new instance of TopicState.



19715
19716
19717
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19715

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

Instance Attribute Details

#label_id_message_countHash<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

Returns:

  • (Hash<String,Fixnum>)


19708
19709
19710
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19708

def label_id_message_count
  @label_id_message_count
end

#num_constituentsFixnum

Number of constituents for this entity. Corresponds to the JSON property numConstituents

Returns:

  • (Fixnum)


19713
19714
19715
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19713

def num_constituents
  @num_constituents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19720
19721
19722
19723
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19720

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