Class: Google::Apis::CloudsearchV1::MessageId

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 for Message resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MessageId

Returns a new instance of MessageId.



12225
12226
12227
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12225

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

Instance Attribute Details

#message_idString

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

Returns:

  • (String)


12216
12217
12218
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12216

def message_id
  @message_id
end

#parent_idGoogle::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



12223
12224
12225
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12223

def parent_id
  @parent_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12230
12231
12232
12233
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12230

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