Class: Google::Apis::CloudsearchV1::QuotedMessageMetadata

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QuotedMessageMetadata

Returns a new instance of QuotedMessageMetadata.



16758
16759
16760
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16758

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

Instance Attribute Details

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

Output only. Snapshot of the annotations of the quoted message. Corresponds to the JSON property annotations



16690
16691
16692
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16690

def annotations
  @annotations
end

#app_profileGoogle::Apis::CloudsearchV1::AppsDynamiteSharedAppProfile

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



16695
16696
16697
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16695

def app_profile
  @app_profile
end

#bot_attachment_stateString

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

Returns:

  • (String)


16701
16702
16703
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16701

def bot_attachment_state
  @bot_attachment_state
end

#create_time_microsFixnum

Output only. Time when the quoted message was posted in microseconds. Corresponds to the JSON property createTimeMicros

Returns:

  • (Fixnum)


16706
16707
16708
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16706

def create_time_micros
  @create_time_micros
end

#creator_idGoogle::Apis::CloudsearchV1::UserId

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



16711
16712
16713
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16711

def creator_id
  @creator_id
end

#last_edit_time_microsFixnum

Output only. Time when the quoted message was last edited by a user at the time when quoting action happens. Time is in microseconds. Corresponds to the JSON property lastEditTimeMicros

Returns:

  • (Fixnum)


16717
16718
16719
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16717

def last_edit_time_micros
  @last_edit_time_micros
end

#last_update_time_when_quoted_microsFixnum

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

Returns:

  • (Fixnum)


16725
16726
16727
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16725

def last_update_time_when_quoted_micros
  @last_update_time_when_quoted_micros
end

#message_idGoogle::Apis::CloudsearchV1::MessageId

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



16730
16731
16732
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16730

def message_id
  @message_id
end

#message_stateString

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

Returns:

  • (String)


16736
16737
16738
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16736

def message_state
  @message_state
end

#retention_settingsGoogle::Apis::CloudsearchV1::AppsDynamiteSharedRetentionSettings

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



16741
16742
16743
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16741

def retention_settings
  @retention_settings
end

#text_bodyString

Output only. Snapshot of the text body of the quoted message. Corresponds to the JSON property textBody

Returns:

  • (String)


16746
16747
16748
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16746

def text_body
  @text_body
end

#updater_idGoogle::Apis::CloudsearchV1::UserId

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



16751
16752
16753
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16751

def updater_id
  @updater_id
end

#upload_metadataArray<Google::Apis::CloudsearchV1::UploadMetadata>

Output only. Upload metadata of the quoted message. Corresponds to the JSON property uploadMetadata



16756
16757
16758
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16756

def 
  @upload_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16763

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)
  @create_time_micros = args[:create_time_micros] if args.key?(:create_time_micros)
  @creator_id = args[:creator_id] if args.key?(:creator_id)
  @last_edit_time_micros = args[:last_edit_time_micros] if args.key?(:last_edit_time_micros)
  @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)
  @updater_id = args[:updater_id] if args.key?(:updater_id)
  @upload_metadata = args[:upload_metadata] if args.key?(:upload_metadata)
end