Class: Google::Apis::CloudsearchV1::MessageParentId

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

Primary key identifying Message resource's immediate parent. For top-level Messages, either topic_id or chat_id is populated. For replies, message_id is populated with the topic Message's ID.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MessageParentId

Returns a new instance of MessageParentId.



14301
14302
14303
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14301

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

Instance Attribute Details

#topic_idGoogle::Apis::CloudsearchV1::TopicId

ID of the Topic this Message is posted to. NEXT TAG : 5 Corresponds to the JSON property topicId



14299
14300
14301
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14299

def topic_id
  @topic_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14306
14307
14308
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14306

def update!(**args)
  @topic_id = args[:topic_id] if args.key?(:topic_id)
end