Class: Google::Apis::CloudsearchV1::MessageId
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::MessageId
- 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 for Message resource.
Instance Attribute Summary collapse
-
#message_id ⇒ String
Opaque, server-assigned ID of the Message.
-
#parent_id ⇒ Google::Apis::CloudsearchV1::MessageParentId
Primary key identifying Message resource's immediate parent.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MessageId
constructor
A new instance of MessageId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MessageId
Returns a new instance of MessageId.
14325 14326 14327 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14325 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message_id ⇒ String
Opaque, server-assigned ID of the Message. While this ID is guaranteed to be
unique within the Space, it's not guaranteed to be globally unique.
Corresponds to the JSON property messageId
14316 14317 14318 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14316 def @message_id end |
#parent_id ⇒ Google::Apis::CloudsearchV1::MessageParentId
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.
Corresponds to the JSON property parentId
14323 14324 14325 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14323 def parent_id @parent_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14330 14331 14332 14333 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14330 def update!(**args) @message_id = args[:message_id] if args.key?(:message_id) @parent_id = args[:parent_id] if args.key?(:parent_id) end |