Class: Google::Apis::CloudsearchV1::MessageReference

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

Contains reference to another message. It is used in shortcuts which are used to collect messages from different spaces with a certain common property into another space. For example, all @mentions of a user are collected into a mention shortcut space (go/chat-shortcuts-backend-design for more details). Clients can use this reference to enable navigation to the source message when the shortcut message is clicked and also to identify a few other details about the source message. Other fields (like text) from the source message are copied on to the top-level fields in the Message proto by the server (More details in go/chat-shortcuts-client-server-design).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MessageReference

Returns a new instance of MessageReference.



14352
14353
14354
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14352

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

Instance Attribute Details

#source_infoGoogle::Apis::CloudsearchV1::SourceMessageInfo

Corresponds to the JSON property sourceInfo



14350
14351
14352
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14350

def source_info
  @source_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14357
14358
14359
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14357

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