@@ -1476,6 +1476,35 @@ def update!(**args)
14761476 end
14771477 end
14781478
1479+ # Metadata about the source space from which a message was forwarded.
1480+ class ForwardedMetadata
1481+ include Google ::Apis ::Core ::Hashable
1482+
1483+ # Output only. The resource name of the source space. Format: spaces/`space`
1484+ # Corresponds to the JSON property `space`
1485+ # @return [String]
1486+ attr_accessor :space
1487+
1488+ # Output only. The display name of the source space or DM at the time of
1489+ # forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this is
1490+ # the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is a
1491+ # generated name based on members' first names, limited to 5 including the
1492+ # creator (e.g., "User A, User B").
1493+ # Corresponds to the JSON property `spaceDisplayName`
1494+ # @return [String]
1495+ attr_accessor :space_display_name
1496+
1497+ def initialize ( **args )
1498+ update! ( **args )
1499+ end
1500+
1501+ # Update properties of this object
1502+ def update! ( **args )
1503+ @space = args [ :space ] if args . key? ( :space )
1504+ @space_display_name = args [ :space_display_name ] if args . key? ( :space_display_name )
1505+ end
1506+ end
1507+
14791508 # An action that describes the behavior when the form is submitted. For example,
14801509 # you can invoke an Apps Script script to handle the form. If the action is
14811510 # triggered, the form values are sent to the server. [Google Workspace add-ons
@@ -5512,6 +5541,11 @@ def update!(**args)
55125541 class QuotedMessageMetadata
55135542 include Google ::Apis ::Core ::Hashable
55145543
5544+ # Metadata about the source space from which a message was forwarded.
5545+ # Corresponds to the JSON property `forwardedMetadata`
5546+ # @return [Google::Apis::ChatV1::ForwardedMetadata]
5547+ attr_accessor :forwarded_metadata
5548+
55155549 # Required. The timestamp when the quoted message was created or when the quoted
55165550 # message was last updated. If the message was edited, use this field, `
55175551 # last_update_time`. If the message was never edited, use `create_time`. If `
@@ -5527,14 +5561,79 @@ class QuotedMessageMetadata
55275561 # @return [String]
55285562 attr_accessor :name
55295563
5564+ # Optional. Specifies the quote type. If not set, defaults to REPLY in the
5565+ # message read/write path for backward compatibility.
5566+ # Corresponds to the JSON property `quoteType`
5567+ # @return [String]
5568+ attr_accessor :quote_type
5569+
5570+ # Provides a snapshot of the content of the quoted message at the time of
5571+ # quoting or forwarding
5572+ # Corresponds to the JSON property `quotedMessageSnapshot`
5573+ # @return [Google::Apis::ChatV1::QuotedMessageSnapshot]
5574+ attr_accessor :quoted_message_snapshot
5575+
55305576 def initialize ( **args )
55315577 update! ( **args )
55325578 end
55335579
55345580 # Update properties of this object
55355581 def update! ( **args )
5582+ @forwarded_metadata = args [ :forwarded_metadata ] if args . key? ( :forwarded_metadata )
55365583 @last_update_time = args [ :last_update_time ] if args . key? ( :last_update_time )
55375584 @name = args [ :name ] if args . key? ( :name )
5585+ @quote_type = args [ :quote_type ] if args . key? ( :quote_type )
5586+ @quoted_message_snapshot = args [ :quoted_message_snapshot ] if args . key? ( :quoted_message_snapshot )
5587+ end
5588+ end
5589+
5590+ # Provides a snapshot of the content of the quoted message at the time of
5591+ # quoting or forwarding
5592+ class QuotedMessageSnapshot
5593+ include Google ::Apis ::Core ::Hashable
5594+
5595+ # Output only. Annotations parsed from the text body of the quoted message.
5596+ # Populated only for FORWARD quote type.
5597+ # Corresponds to the JSON property `annotations`
5598+ # @return [Array<Google::Apis::ChatV1::Annotation>]
5599+ attr_accessor :annotations
5600+
5601+ # Output only. Attachments that were part of the quoted message. These are
5602+ # copies of the quoted message's attachment metadata. Populated only for FORWARD
5603+ # quote type.
5604+ # Corresponds to the JSON property `attachments`
5605+ # @return [Array<Google::Apis::ChatV1::Attachment>]
5606+ attr_accessor :attachments
5607+
5608+ # Output only. Contains the quoted message `text` with markups added to support
5609+ # rich formatting like hyperlinks,custom emojis, markup, etc. Populated only for
5610+ # FORWARD quote type.
5611+ # Corresponds to the JSON property `formattedText`
5612+ # @return [String]
5613+ attr_accessor :formatted_text
5614+
5615+ # Output only. The quoted message's author name. Populated for both REPLY &
5616+ # FORWARD quote types.
5617+ # Corresponds to the JSON property `sender`
5618+ # @return [String]
5619+ attr_accessor :sender
5620+
5621+ # Output only. Snapshot of the quoted message's text content.
5622+ # Corresponds to the JSON property `text`
5623+ # @return [String]
5624+ attr_accessor :text
5625+
5626+ def initialize ( **args )
5627+ update! ( **args )
5628+ end
5629+
5630+ # Update properties of this object
5631+ def update! ( **args )
5632+ @annotations = args [ :annotations ] if args . key? ( :annotations )
5633+ @attachments = args [ :attachments ] if args . key? ( :attachments )
5634+ @formatted_text = args [ :formatted_text ] if args . key? ( :formatted_text )
5635+ @sender = args [ :sender ] if args . key? ( :sender )
5636+ @text = args [ :text ] if args . key? ( :text )
55385637 end
55395638 end
55405639
0 commit comments