Class: Google::Apis::CloudsearchV1::Message

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

Message posted to a Space.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Message

Returns a new instance of Message.



13601
13602
13603
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13601

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

Instance Attribute Details

#annotationsArray<Google::Apis::CloudsearchV1::Annotation>

Annotations parsed and extracted from the text body. Corresponds to the JSON property annotations



13334
13335
13336
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13334

def annotations
  @annotations
end

#app_profileGoogle::Apis::CloudsearchV1::AppsDynamiteSharedAppProfile

Optional field for apps overriding display info Corresponds to the JSON property appProfile



13339
13340
13341
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13339

def app_profile
  @app_profile
end

#attachmentsArray<Google::Apis::CloudsearchV1::Attachment>

Attachments parsed from incoming webhooks Corresponds to the JSON property attachments



13344
13345
13346
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13344

def attachments
  @attachments
end

#attributesGoogle::Apis::CloudsearchV1::MessageAttributes

Stores tombstone message attributes: go/tombstone-message-attributes-overview Corresponds to the JSON property attributes



13349
13350
13351
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13349

def attributes
  @attributes
end

#bot_responsesArray<Google::Apis::CloudsearchV1::BotResponse>

Responses from bots indicating if extra auth/config is needed. Corresponds to the JSON property botResponses



13354
13355
13356
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13354

def bot_responses
  @bot_responses
end

#communal_labelsArray<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



13362
13363
13364
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13362

def communal_labels
  @communal_labels
end

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



13368
13369
13370
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13368

def content_report_summary
  @content_report_summary
end

#create_timeFixnum

Time when the Message was posted in microseconds. Corresponds to the JSON property createTime

Returns:

  • (Fixnum)


13373
13374
13375
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13373

def create_time
  @create_time
end

#creator_idGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property creatorId



13378
13379
13380
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13378

def creator_id
  @creator_id
end

#deletable_byString

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

Returns:

  • (String)


13385
13386
13387
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13385

def deletable_by
  @deletable_by
end

#delete_timeFixnum

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

Returns:

  • (Fixnum)


13391
13392
13393
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13391

def delete_time
  @delete_time
end

#delete_time_for_requesterFixnum

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

Returns:

  • (Fixnum)


13398
13399
13400
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13398

def delete_time_for_requester
  @delete_time_for_requester
end

#deleted_by_vaultBoolean 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

Returns:

  • (Boolean)


13404
13405
13406
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13404

def deleted_by_vault
  @deleted_by_vault
end

#dlp_scan_outcomeString

Data Loss Prevention scan information for this message. Messages are evaluated in the backend on create message/topic and edit message actions. DEPRECATED: use dlp_scan_summary instead. Corresponds to the JSON property dlpScanOutcome

Returns:

  • (String)


13412
13413
13414
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13412

def dlp_scan_outcome
  @dlp_scan_outcome
end

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



13419
13420
13421
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13419

def dlp_scan_summary
  @dlp_scan_summary
end

#editable_byString

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

Returns:

  • (String)


13426
13427
13428
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13426

def editable_by
  @editable_by
end

#fallback_textString

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

Returns:

  • (String)


13432
13433
13434
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13432

def fallback_text
  @fallback_text
end

#idGoogle::Apis::CloudsearchV1::MessageId

Primary key for Message resource. Corresponds to the JSON property id



13437
13438
13439
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13437

def id
  @id
end

#is_content_purgedBoolean 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

Returns:

  • (Boolean)


13445
13446
13447
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13445

def is_content_purged
  @is_content_purged
end

#is_inline_replyBoolean 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

Returns:

  • (Boolean)


13453
13454
13455
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13453

def is_inline_reply
  @is_inline_reply
end

#last_edit_timeFixnum

If the message was edited by a user, timestamp of the last edit, in microseconds. Corresponds to the JSON property lastEditTime

Returns:

  • (Fixnum)


13460
13461
13462
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13460

def last_edit_time
  @last_edit_time
end

#last_update_timeFixnum

Time when the Message text was last updated in microseconds. Corresponds to the JSON property lastUpdateTime

Returns:

  • (Fixnum)


13465
13466
13467
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13465

def last_update_time
  @last_update_time
end

#local_idString

A unique id specified on the client side. Corresponds to the JSON property localId

Returns:

  • (String)


13470
13471
13472
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13470

def local_id
  @local_id
end

#message_integration_payloadGoogle::Apis::CloudsearchV1::AppsDynamiteSharedMessageIntegrationPayload

The payload(restricted to 1P applications) to be stored with a specific message. Corresponds to the JSON property messageIntegrationPayload



13476
13477
13478
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13476

def message_integration_payload
  @message_integration_payload
end

#message_originString

Where the message was posted from Corresponds to the JSON property messageOrigin

Returns:

  • (String)


13481
13482
13483
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13481

def message_origin
  @message_origin
end

#message_stateString

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

Returns:

  • (String)


13488
13489
13490
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13488

def message_state
  @message_state
end

#origin_app_suggestionsArray<Google::Apis::CloudsearchV1::AppsDynamiteSharedOriginAppSuggestion>

Indicates if this message contains any suggestions that were provided by any Apps. Corresponds to the JSON property originAppSuggestions



13494
13495
13496
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13494

def origin_app_suggestions
  @origin_app_suggestions
end

#personal_labelsArray<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



13502
13503
13504
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13502

def personal_labels
  @personal_labels
end

#private_message_infosArray<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



13510
13511
13512
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13510

def private_message_infos
  @private_message_infos
end

#private_message_viewerGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property privateMessageViewer



13515
13516
13517
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13515

def private_message_viewer
  @private_message_viewer
end

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



13523
13524
13525
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13523

def props
  @props
end

#quoted_by_stateString

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

Returns:

  • (String)


13530
13531
13532
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13530

def quoted_by_state
  @quoted_by_state
end

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



13546
13547
13548
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13546

def 
  @quoted_message_metadata
end

#reactionsArray<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



13552
13553
13554
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13552

def reactions
  @reactions
end

#reportsArray<Google::Apis::CloudsearchV1::ContentReport>

Output only. Details of content reports. Set only when the request asks for it. Corresponds to the JSON property reports



13557
13558
13559
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13557

def reports
  @reports
end

#retention_settingsGoogle::Apis::CloudsearchV1::AppsDynamiteSharedRetentionSettings

The settings of retention period of a message or topic. Corresponds to the JSON property retentionSettings



13562
13563
13564
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13562

def retention_settings
  @retention_settings
end

#rich_text_formatting_typeString

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

Returns:

  • (String)


13570
13571
13572
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13570

def rich_text_formatting_type
  @rich_text_formatting_type
end

#secondary_message_keyString

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

Returns:

  • (String)


13576
13577
13578
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13576

def secondary_message_key
  @secondary_message_key
end

#text_bodyString

Plaintext body of the Message. Corresponds to the JSON property textBody

Returns:

  • (String)


13581
13582
13583
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13581

def text_body
  @text_body
end

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



13587
13588
13589
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13587

def 
  @tombstone_metadata
end

#updater_idGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property updaterId



13592
13593
13594
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13592

def updater_id
  @updater_id
end

#upload_metadataArray<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



13599
13600
13601
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13599

def 
  @upload_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13606

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_outcome = args[:dlp_scan_outcome] if args.key?(:dlp_scan_outcome)
  @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_state = args[:message_state] if args.key?(:message_state)
  @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