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.



20419
20420
20421
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20419

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>)


20412
20413
20414
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20412

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)


20417
20418
20419
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20417

def num_constituents
  @num_constituents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20424
20425
20426
20427
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20424

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