Class: Google::Apis::CloudsearchV1::Message
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Message
- 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
Message posted to a Space.
Instance Attribute Summary collapse
-
#annotations ⇒ Array<Google::Apis::CloudsearchV1::Annotation>
Annotations parsed and extracted from the text body.
-
#app_profile ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedAppProfile
Optional field for apps overriding display info Corresponds to the JSON property
appProfile
. -
#attachments ⇒ Array<Google::Apis::CloudsearchV1::Attachment>
Attachments parsed from incoming webhooks Corresponds to the JSON property
attachments
. -
#attributes ⇒ Google::Apis::CloudsearchV1::MessageAttributes
Stores tombstone message attributes: go/tombstone-message-attributes-overview Corresponds to the JSON property
attributes
. -
#bot_responses ⇒ Array<Google::Apis::CloudsearchV1::BotResponse>
Responses from bots indicating if extra auth/config is needed.
-
#communal_labels ⇒ Array<Google::Apis::CloudsearchV1::CommunalLabelTag>
Communal labels associated with a message.
-
#content_report_summary ⇒ Google::Apis::CloudsearchV1::ContentReportSummary
Summarized info of content reports.
-
#create_time ⇒ Fixnum
Time when the Message was posted in microseconds.
-
#creator_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
-
#deletable_by ⇒ String
Indicates who can delete the message.
-
#delete_time ⇒ Fixnum
Time when the Message was deleted in microseconds.
-
#delete_time_for_requester ⇒ Fixnum
Time when the Message was per-user deleted by the message requester in microseconds.
-
#deleted_by_vault ⇒ Boolean
(also: #deleted_by_vault?)
Was this message deleted by Vault (Only used for Vault support) This is false if message is live or message was deleted by user.
-
#dlp_scan_summary ⇒ Google::Apis::CloudsearchV1::DlpScanSummary
A summary of a DLP scan event.
-
#editable_by ⇒ String
Indicates who can edit the message.
-
#fallback_text ⇒ String
A plain-text description of the attachment, used when clients cannot display formatted attachment (e.g. mobile push notifications).
-
#id ⇒ Google::Apis::CloudsearchV1::MessageId
Primary key for Message resource.
-
#is_content_purged ⇒ Boolean
(also: #is_content_purged?)
Whether the message is content purged.
-
#is_inline_reply ⇒ Boolean
(also: #is_inline_reply?)
Output only.
-
#last_edit_time ⇒ Fixnum
If the message was edited by a user, timestamp of the last edit, in microseconds.
-
#last_update_time ⇒ Fixnum
Time when the Message text was last updated in microseconds.
-
#local_id ⇒ String
A unique id specified on the client side.
-
#message_integration_payload ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedMessageIntegrationPayload
The payload(restricted to 1P applications) to be stored with a specific message.
-
#message_origin ⇒ String
Where the message was posted from Corresponds to the JSON property
messageOrigin
. -
#message_reference ⇒ Google::Apis::CloudsearchV1::MessageReference
Contains reference to another message.
-
#message_search_info ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedMessageSearchInfo
Metadata used to describe how to render a message in search results page, e.g., highlighting and snipetting.
-
#message_state ⇒ String
State of the message, indicating whether the message is visible to all members in the group or is only visible to the sender only, or the private_message_viewer if it is set.
-
#number_of_unicode_emojis ⇒ Fixnum
Indicates the number of unicode emojis in the message.
-
#origin_app_suggestions ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteSharedOriginAppSuggestion>
Indicates if this message contains any suggestions that were provided by any Apps.
-
#personal_labels ⇒ Array<Google::Apis::CloudsearchV1::PersonalLabelTag>
Personal labels associated with a message for the viewing user.
-
#private_message_infos ⇒ Array<Google::Apis::CloudsearchV1::PrivateMessageInfo>
A list of per-user private information.
-
#private_message_viewer ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
-
#props ⇒ Google::Apis::CloudsearchV1::MessageProps
Container for storing properties applicable to messages.
-
#quoted_by_state ⇒ String
Output only.
-
#quoted_message_metadata ⇒ Google::Apis::CloudsearchV1::QuotedMessageMetadata
Quote metadata: go/message-quoting-be-dd-v2.
-
#reactions ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteSharedReaction>
A list of user reactions to this message.
-
#reports ⇒ Array<Google::Apis::CloudsearchV1::ContentReport>
Output only.
-
#retention_settings ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedRetentionSettings
The settings of retention period of a message or topic.
-
#rich_text_formatting_type ⇒ String
Used by clients to correctly log format type for message creation due to complexity with client side optimistic update (see go/content-metric-post-send- logging for details).
-
#secondary_message_key ⇒ String
A client-specified string that can be used to uniquely identify a message in a space, in lieu of
id.message_id
. -
#text_body ⇒ String
Plaintext body of the Message.
-
#tombstone_metadata ⇒ Google::Apis::CloudsearchV1::TombstoneMetadata
Tombstoning is the act of leaving a contextual trace when deleting a message.
-
#updater_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
-
#upload_metadata ⇒ Array<Google::Apis::CloudsearchV1::UploadMetadata>
UploadMetadata b/36864213 is an ongoing effort to move UploadMetadata out of annotations field and save it to upload_metadata field only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Message
constructor
A new instance of Message.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Message
Returns a new instance of Message.
14061 14062 14063 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14061 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Array<Google::Apis::CloudsearchV1::Annotation>
Annotations parsed and extracted from the text body.
Corresponds to the JSON property annotations
13776 13777 13778 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13776 def annotations @annotations end |
#app_profile ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedAppProfile
Optional field for apps overriding display info
Corresponds to the JSON property appProfile
13781 13782 13783 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13781 def app_profile @app_profile end |
#attachments ⇒ Array<Google::Apis::CloudsearchV1::Attachment>
Attachments parsed from incoming webhooks
Corresponds to the JSON property attachments
13786 13787 13788 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13786 def @attachments end |
#attributes ⇒ Google::Apis::CloudsearchV1::MessageAttributes
Stores tombstone message attributes: go/tombstone-message-attributes-overview
Corresponds to the JSON property attributes
13791 13792 13793 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13791 def attributes @attributes end |
#bot_responses ⇒ Array<Google::Apis::CloudsearchV1::BotResponse>
Responses from bots indicating if extra auth/config is needed.
Corresponds to the JSON property botResponses
13796 13797 13798 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13796 def bot_responses @bot_responses end |
#communal_labels ⇒ Array<Google::Apis::CloudsearchV1::CommunalLabelTag>
Communal labels associated with a message. These exist on the message itself
regardless of which user fetches them. Order of entries is arbitrary and will
not list duplicates of the same label_id. See go/chat-labels-design for
details.
Corresponds to the JSON property communalLabels
13804 13805 13806 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13804 def communal_labels @communal_labels end |
#content_report_summary ⇒ Google::Apis::CloudsearchV1::ContentReportSummary
Summarized info of content reports. Usually less expensive to fetch than to
fetch all detailed reports. Set only when the request asks for it.
Corresponds to the JSON property contentReportSummary
13810 13811 13812 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13810 def content_report_summary @content_report_summary end |
#create_time ⇒ Fixnum
Time when the Message was posted in microseconds.
Corresponds to the JSON property createTime
13815 13816 13817 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13815 def create_time @create_time end |
#creator_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Corresponds to the JSON property creatorId
13820 13821 13822 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13820 def creator_id @creator_id end |
#deletable_by ⇒ String
Indicates who can delete the message. This field is set on the read path (e.g.
ListTopics) but doesn’t have any effect on the write path (e.g.
CreateMessageRequest).
Corresponds to the JSON property deletableBy
13827 13828 13829 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13827 def deletable_by @deletable_by end |
#delete_time ⇒ Fixnum
Time when the Message was deleted in microseconds. This field is set to
nonzero value only for Messages deleted globally.
Corresponds to the JSON property deleteTime
13833 13834 13835 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13833 def delete_time @delete_time end |
#delete_time_for_requester ⇒ Fixnum
Time when the Message was per-user deleted by the message requester in
microseconds. This field is set to nonzero value only for Message per-user
deleted by the requester.
Corresponds to the JSON property deleteTimeForRequester
13840 13841 13842 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13840 def delete_time_for_requester @delete_time_for_requester end |
#deleted_by_vault ⇒ Boolean Also known as: deleted_by_vault?
Was this message deleted by Vault (Only used for Vault support) This is false
if message is live or message was deleted by user.
Corresponds to the JSON property deletedByVault
13846 13847 13848 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13846 def deleted_by_vault @deleted_by_vault end |
#dlp_scan_summary ⇒ Google::Apis::CloudsearchV1::DlpScanSummary
A summary of a DLP scan event. This is a summary and should contain the
minimum amount of data required to identify and process DLP scans. It is
written to Starcast and encoded & returned to the client on attachment upload.
Corresponds to the JSON property dlpScanSummary
13854 13855 13856 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13854 def dlp_scan_summary @dlp_scan_summary end |
#editable_by ⇒ String
Indicates who can edit the message. This field is set on the read path (e.g.
ListTopics) but doesn’t have any effect on the write path (e.g.
CreateMessageRequest).
Corresponds to the JSON property editableBy
13861 13862 13863 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13861 def editable_by @editable_by end |
#fallback_text ⇒ String
A plain-text description of the attachment, used when clients cannot display
formatted attachment (e.g. mobile push notifications).
Corresponds to the JSON property fallbackText
13867 13868 13869 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13867 def fallback_text @fallback_text end |
#id ⇒ Google::Apis::CloudsearchV1::MessageId
Primary key for Message resource.
Corresponds to the JSON property id
13872 13873 13874 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13872 def id @id end |
#is_content_purged ⇒ Boolean Also known as: is_content_purged?
Whether the message is content purged. Content purged messages contain only
data required for tombstone (see go/chat-infinite-tombstone). This field is
only used by Vault to display tombstone and should only be set to true if the
message is a tombstone.
Corresponds to the JSON property isContentPurged
13880 13881 13882 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13880 def is_content_purged @is_content_purged end |
#is_inline_reply ⇒ Boolean Also known as: is_inline_reply?
Output only. Indicates if the message is an inline reply. Set to true only if
the message's ParentPath is non-NULL. Currently, only inline replies have non-
NULL ParentPath. See go/chat-be-inline-reply-indicator.
Corresponds to the JSON property isInlineReply
13888 13889 13890 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13888 def is_inline_reply @is_inline_reply end |
#last_edit_time ⇒ Fixnum
If the message was edited by a user, timestamp of the last edit, in
microseconds.
Corresponds to the JSON property lastEditTime
13895 13896 13897 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13895 def last_edit_time @last_edit_time end |
#last_update_time ⇒ Fixnum
Time when the Message text was last updated in microseconds.
Corresponds to the JSON property lastUpdateTime
13900 13901 13902 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13900 def last_update_time @last_update_time end |
#local_id ⇒ String
A unique id specified on the client side.
Corresponds to the JSON property localId
13905 13906 13907 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13905 def local_id @local_id end |
#message_integration_payload ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedMessageIntegrationPayload
The payload(restricted to 1P applications) to be stored with a specific
message.
Corresponds to the JSON property messageIntegrationPayload
13911 13912 13913 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13911 def @message_integration_payload end |
#message_origin ⇒ String
Where the message was posted from
Corresponds to the JSON property messageOrigin
13916 13917 13918 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13916 def @message_origin end |
#message_reference ⇒ Google::Apis::CloudsearchV1::MessageReference
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).
Corresponds to the JSON property messageReference
13929 13930 13931 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13929 def @message_reference end |
#message_search_info ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedMessageSearchInfo
Metadata used to describe how to render a message in search results page, e.g.,
highlighting and snipetting. In future, we can use this proto to return more
search specific data attached to a message.
Corresponds to the JSON property messageSearchInfo
13936 13937 13938 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13936 def @message_search_info end |
#message_state ⇒ String
State of the message, indicating whether the message is visible to all members
in the group or is only visible to the sender only, or the
private_message_viewer if it is set.
Corresponds to the JSON property messageState
13943 13944 13945 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13943 def @message_state end |
#number_of_unicode_emojis ⇒ Fixnum
Indicates the number of unicode emojis in the message.
Corresponds to the JSON property numberOfUnicodeEmojis
13948 13949 13950 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13948 def number_of_unicode_emojis @number_of_unicode_emojis end |
#origin_app_suggestions ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteSharedOriginAppSuggestion>
Indicates if this message contains any suggestions that were provided by any
Apps.
Corresponds to the JSON property originAppSuggestions
13954 13955 13956 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13954 def origin_app_suggestions @origin_app_suggestions end |
#personal_labels ⇒ Array<Google::Apis::CloudsearchV1::PersonalLabelTag>
Personal labels associated with a message for the viewing user. Order of
entries is arbitrary and will not list duplicates of the same label_id. See go/
chat-labels-design for details. NOTE: This will be unpopulated in the case of
SpaceChangelog events.
Corresponds to the JSON property personalLabels
13962 13963 13964 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13962 def personal_labels @personal_labels end |
#private_message_infos ⇒ Array<Google::Apis::CloudsearchV1::PrivateMessageInfo>
A list of per-user private information. This is deprecated, because we no
longer plan to support partially private messages or private messages for
multiple users. The message_state and private_message_viewer fields should be
sufficient for this infrastructure.
Corresponds to the JSON property privateMessageInfos
13970 13971 13972 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13970 def @private_message_infos end |
#private_message_viewer ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Corresponds to the JSON property privateMessageViewer
13975 13976 13977 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13975 def @private_message_viewer end |
#props ⇒ Google::Apis::CloudsearchV1::MessageProps
Container for storing properties applicable to messages. For now (until
storage consolidation is complete), it will only be used for babel props. In
the future it could be used to house Dynamite properties for experimenting/
rapid prototyping.
Corresponds to the JSON property props
13983 13984 13985 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13983 def props @props end |
#quoted_by_state ⇒ String
Output only. Whether this message has been quoted by another message or not.
Used by clients to handle message edit flows for messages that have been
quoted.
Corresponds to the JSON property quotedByState
13990 13991 13992 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13990 def quoted_by_state @quoted_by_state end |
#quoted_message_metadata ⇒ Google::Apis::CloudsearchV1::QuotedMessageMetadata
Quote metadata: go/message-quoting-be-dd-v2. This proto is only used on the
read path. For the request proto, refer to QuotedMessagePayload
. Fields are
either derived from storage directly from the Item this metadata belongs to,
or is hydrated at read time from another Item read. Note:
QuotedMessageMetadata proto is similar to Message proto with less field.
Reasons to differtiate QuotedMessageMetadata from Message are: 1. Not all
fields for original message is applicable for quoted message. (E.g. reactions,
is_inline_reply, etc.), thus separting out for confusion. 2. We don't support
nested message quoting. For more detailed discussion, please see http://shortn/
_VsSXQb2C7P. For future reference: if your new feature/field will be supported
in message quoting feature (go/chat-quoting-prd), you will need to add that
field within QuotedMessageMetadata
Corresponds to the JSON property quotedMessageMetadata
14006 14007 14008 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14006 def @quoted_message_metadata end |
#reactions ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteSharedReaction>
A list of user reactions to this message. Ordered by the timestamp of the
first reaction, ascending (oldest to newest).
Corresponds to the JSON property reactions
14012 14013 14014 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14012 def reactions @reactions end |
#reports ⇒ Array<Google::Apis::CloudsearchV1::ContentReport>
Output only. Details of content reports. Set only when the request asks for it.
Corresponds to the JSON property reports
14017 14018 14019 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14017 def reports @reports end |
#retention_settings ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedRetentionSettings
The settings of retention period of a message or topic.
Corresponds to the JSON property retentionSettings
14022 14023 14024 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14022 def retention_settings @retention_settings end |
#rich_text_formatting_type ⇒ String
Used by clients to correctly log format type for message creation due to
complexity with client side optimistic update (see go/content-metric-post-send-
logging for details). Currently, only set by server in the message or topic
creation path.
Corresponds to the JSON property richTextFormattingType
14030 14031 14032 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14030 def rich_text_formatting_type @rich_text_formatting_type end |
#secondary_message_key ⇒ String
A client-specified string that can be used to uniquely identify a message in a
space, in lieu of id.message_id
.
Corresponds to the JSON property secondaryMessageKey
14036 14037 14038 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14036 def @secondary_message_key end |
#text_body ⇒ String
Plaintext body of the Message.
Corresponds to the JSON property textBody
14041 14042 14043 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14041 def text_body @text_body end |
#tombstone_metadata ⇒ Google::Apis::CloudsearchV1::TombstoneMetadata
Tombstoning is the act of leaving a contextual trace when deleting a message.
See more: go/tombstone-prd, go/hub-dynamite-tombstones-server-design-v2.
Corresponds to the JSON property tombstoneMetadata
14047 14048 14049 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14047 def @tombstone_metadata end |
#updater_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Corresponds to the JSON property updaterId
14052 14053 14054 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14052 def updater_id @updater_id end |
#upload_metadata ⇒ Array<Google::Apis::CloudsearchV1::UploadMetadata>
UploadMetadata b/36864213 is an ongoing effort to move UploadMetadata out of
annotations field and save it to upload_metadata field only. After the
migration, UploadMetadata will only be saved in this field.
Corresponds to the JSON property uploadMetadata
14059 14060 14061 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14059 def @upload_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14066 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @app_profile = args[:app_profile] if args.key?(:app_profile) @attachments = args[:attachments] if args.key?(:attachments) @attributes = args[:attributes] if args.key?(:attributes) @bot_responses = args[:bot_responses] if args.key?(:bot_responses) @communal_labels = args[:communal_labels] if args.key?(:communal_labels) @content_report_summary = args[:content_report_summary] if args.key?(:content_report_summary) @create_time = args[:create_time] if args.key?(:create_time) @creator_id = args[:creator_id] if args.key?(:creator_id) @deletable_by = args[:deletable_by] if args.key?(:deletable_by) @delete_time = args[:delete_time] if args.key?(:delete_time) @delete_time_for_requester = args[:delete_time_for_requester] if args.key?(:delete_time_for_requester) @deleted_by_vault = args[:deleted_by_vault] if args.key?(:deleted_by_vault) @dlp_scan_summary = args[:dlp_scan_summary] if args.key?(:dlp_scan_summary) @editable_by = args[:editable_by] if args.key?(:editable_by) @fallback_text = args[:fallback_text] if args.key?(:fallback_text) @id = args[:id] if args.key?(:id) @is_content_purged = args[:is_content_purged] if args.key?(:is_content_purged) @is_inline_reply = args[:is_inline_reply] if args.key?(:is_inline_reply) @last_edit_time = args[:last_edit_time] if args.key?(:last_edit_time) @last_update_time = args[:last_update_time] if args.key?(:last_update_time) @local_id = args[:local_id] if args.key?(:local_id) @message_integration_payload = args[:message_integration_payload] if args.key?(:message_integration_payload) @message_origin = args[:message_origin] if args.key?(:message_origin) @message_reference = args[:message_reference] if args.key?(:message_reference) @message_search_info = args[:message_search_info] if args.key?(:message_search_info) @message_state = args[:message_state] if args.key?(:message_state) @number_of_unicode_emojis = args[:number_of_unicode_emojis] if args.key?(:number_of_unicode_emojis) @origin_app_suggestions = args[:origin_app_suggestions] if args.key?(:origin_app_suggestions) @personal_labels = args[:personal_labels] if args.key?(:personal_labels) @private_message_infos = args[:private_message_infos] if args.key?(:private_message_infos) @private_message_viewer = args[:private_message_viewer] if args.key?(:private_message_viewer) @props = args[:props] if args.key?(:props) @quoted_by_state = args[:quoted_by_state] if args.key?(:quoted_by_state) @quoted_message_metadata = args[:quoted_message_metadata] if args.key?(:quoted_message_metadata) @reactions = args[:reactions] if args.key?(:reactions) @reports = args[:reports] if args.key?(:reports) @retention_settings = args[:retention_settings] if args.key?(:retention_settings) @rich_text_formatting_type = args[:rich_text_formatting_type] if args.key?(:rich_text_formatting_type) @secondary_message_key = args[:secondary_message_key] if args.key?(:secondary_message_key) @text_body = args[:text_body] if args.key?(:text_body) @tombstone_metadata = args[:tombstone_metadata] if args.key?(:tombstone_metadata) @updater_id = args[:updater_id] if args.key?(:updater_id) @upload_metadata = args[:upload_metadata] if args.key?(:upload_metadata) end |