Class: Google::Apis::CloudsearchV1::QuotedMessageMetadata
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::QuotedMessageMetadata
- 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
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
Instance Attribute Summary collapse
-
#annotations ⇒ Array<Google::Apis::CloudsearchV1::Annotation>
Output only.
-
#app_profile ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedAppProfile
Optional field for apps overriding display info Corresponds to the JSON property
appProfile. -
#bot_attachment_state ⇒ String
Output only.
-
#creator_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
-
#last_update_time_when_quoted_micros ⇒ Fixnum
The
last_update_timeof the original message when the client initiated the quote creation. -
#message_id ⇒ Google::Apis::CloudsearchV1::MessageId
Primary key for Message resource.
-
#message_state ⇒ String
Output only.
-
#retention_settings ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedRetentionSettings
The settings of retention period of a message or topic.
-
#text_body ⇒ String
Output only.
-
#upload_metadata ⇒ Array<Google::Apis::CloudsearchV1::UploadMetadata>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuotedMessageMetadata
constructor
A new instance of QuotedMessageMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QuotedMessageMetadata
Returns a new instance of QuotedMessageMetadata.
13726 13727 13728 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13726 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Array<Google::Apis::CloudsearchV1::Annotation>
Output only. Snapshot of the annotations of the quoted message.
Corresponds to the JSON property annotations
13674 13675 13676 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13674 def annotations @annotations end |
#app_profile ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedAppProfile
Optional field for apps overriding display info
Corresponds to the JSON property appProfile
13679 13680 13681 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13679 def app_profile @app_profile end |
#bot_attachment_state ⇒ String
Output only. The bot attachment state of the quoted message. Used by clients
to display a bot attachment indicator in the UI.
Corresponds to the JSON property botAttachmentState
13685 13686 13687 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13685 def @bot_attachment_state end |
#creator_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Corresponds to the JSON property creatorId
13690 13691 13692 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13690 def creator_id @creator_id end |
#last_update_time_when_quoted_micros ⇒ Fixnum
The last_update_time of the original message when the client initiated the
quote creation. This is derived from the request payload passed from clients.
Used to fetch the quoted message contents at a specific time on the read path.
This field is populated from storage directly.
Corresponds to the JSON property lastUpdateTimeWhenQuotedMicros
13698 13699 13700 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13698 def last_update_time_when_quoted_micros @last_update_time_when_quoted_micros end |
#message_id ⇒ Google::Apis::CloudsearchV1::MessageId
Primary key for Message resource.
Corresponds to the JSON property messageId
13703 13704 13705 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13703 def @message_id end |
#message_state ⇒ String
Output only. The state of the quoted message. Used by clients to display
tombstones for quotes that reference a deleted message.
Corresponds to the JSON property messageState
13709 13710 13711 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13709 def @message_state end |
#retention_settings ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedRetentionSettings
The settings of retention period of a message or topic.
Corresponds to the JSON property retentionSettings
13714 13715 13716 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13714 def retention_settings @retention_settings end |
#text_body ⇒ String
Output only. Snapshot of the text body of the quoted message.
Corresponds to the JSON property textBody
13719 13720 13721 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13719 def text_body @text_body end |
#upload_metadata ⇒ Array<Google::Apis::CloudsearchV1::UploadMetadata>
Output only. Upload metadata of the quoted message. NEXT TAG: 11
Corresponds to the JSON property uploadMetadata
13724 13725 13726 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13724 def @upload_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13731 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @app_profile = args[:app_profile] if args.key?(:app_profile) @bot_attachment_state = args[:bot_attachment_state] if args.key?(:bot_attachment_state) @creator_id = args[:creator_id] if args.key?(:creator_id) @last_update_time_when_quoted_micros = args[:last_update_time_when_quoted_micros] if args.key?(:last_update_time_when_quoted_micros) @message_id = args[:message_id] if args.key?(:message_id) @message_state = args[:message_state] if args.key?(:message_state) @retention_settings = args[:retention_settings] if args.key?(:retention_settings) @text_body = args[:text_body] if args.key?(:text_body) @upload_metadata = args[:upload_metadata] if args.key?(:upload_metadata) end |