Skip to content

Commit 7d0fedc

Browse files
feat: Automated regeneration of chat v1 client (#25464)
Auto-created at 2026-01-25 10:09:47 +0000 using the toys pull request generator.
1 parent e31e12f commit 7d0fedc

File tree

5 files changed

+157
-2
lines changed

5 files changed

+157
-2
lines changed

api_names_out.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64164,6 +64164,9 @@
6416464164
"/chat:v1/FormAction/actionMethodName": action_method_name
6416564165
"/chat:v1/FormAction/parameters": parameters
6416664166
"/chat:v1/FormAction/parameters/parameter": parameter
64167+
"/chat:v1/ForwardedMetadata": forwarded_metadata
64168+
"/chat:v1/ForwardedMetadata/space": space
64169+
"/chat:v1/ForwardedMetadata/spaceDisplayName": space_display_name
6416764170
"/chat:v1/GoogleAppsCardV1Action": google_apps_card_v1_action
6416864171
"/chat:v1/GoogleAppsCardV1Action/allWidgetsAreRequired": all_widgets_are_required
6416964172
"/chat:v1/GoogleAppsCardV1Action/function": function
@@ -64622,8 +64625,19 @@
6462264625
"/chat:v1/PermissionSettings/toggleHistory": toggle_history
6462364626
"/chat:v1/PermissionSettings/useAtMentionAll": use_at_mention_all
6462464627
"/chat:v1/QuotedMessageMetadata": quoted_message_metadata
64628+
"/chat:v1/QuotedMessageMetadata/forwardedMetadata": forwarded_metadata
6462564629
"/chat:v1/QuotedMessageMetadata/lastUpdateTime": last_update_time
6462664630
"/chat:v1/QuotedMessageMetadata/name": name
64631+
"/chat:v1/QuotedMessageMetadata/quoteType": quote_type
64632+
"/chat:v1/QuotedMessageMetadata/quotedMessageSnapshot": quoted_message_snapshot
64633+
"/chat:v1/QuotedMessageSnapshot": quoted_message_snapshot
64634+
"/chat:v1/QuotedMessageSnapshot/annotations": annotations
64635+
"/chat:v1/QuotedMessageSnapshot/annotations/annotation": annotation
64636+
"/chat:v1/QuotedMessageSnapshot/attachments": attachments
64637+
"/chat:v1/QuotedMessageSnapshot/attachments/attachment": attachment
64638+
"/chat:v1/QuotedMessageSnapshot/formattedText": formatted_text
64639+
"/chat:v1/QuotedMessageSnapshot/sender": sender
64640+
"/chat:v1/QuotedMessageSnapshot/text": text
6462764641
"/chat:v1/Reaction": reaction
6462864642
"/chat:v1/Reaction/emoji": emoji
6462964643
"/chat:v1/Reaction/name": name

generated/google-apis-chat_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-chat_v1
22

3+
### v0.142.0 (2026-01-25)
4+
5+
* Regenerated from discovery document revision 20260120
6+
37
### v0.141.0 (2026-01-18)
48

59
* Regenerated from discovery document revision 20260108

generated/google-apis-chat_v1/lib/google/apis/chat_v1/classes.rb

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

generated/google-apis-chat_v1/lib/google/apis/chat_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ChatV1
1818
# Version of the google-apis-chat_v1 gem
19-
GEM_VERSION = "0.141.0"
19+
GEM_VERSION = "0.142.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260108"
25+
REVISION = "20260120"
2626
end
2727
end
2828
end

generated/google-apis-chat_v1/lib/google/apis/chat_v1/representations.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
250250
include Google::Apis::Core::JsonObjectSupport
251251
end
252252

253+
class ForwardedMetadata
254+
class Representation < Google::Apis::Core::JsonRepresentation; end
255+
256+
include Google::Apis::Core::JsonObjectSupport
257+
end
258+
253259
class GoogleAppsCardV1Action
254260
class Representation < Google::Apis::Core::JsonRepresentation; end
255261

@@ -766,6 +772,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
766772
include Google::Apis::Core::JsonObjectSupport
767773
end
768774

775+
class QuotedMessageSnapshot
776+
class Representation < Google::Apis::Core::JsonRepresentation; end
777+
778+
include Google::Apis::Core::JsonObjectSupport
779+
end
780+
769781
class Reaction
770782
class Representation < Google::Apis::Core::JsonRepresentation; end
771783

@@ -1346,6 +1358,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
13461358
end
13471359
end
13481360

1361+
class ForwardedMetadata
1362+
# @private
1363+
class Representation < Google::Apis::Core::JsonRepresentation
1364+
property :space, as: 'space'
1365+
property :space_display_name, as: 'spaceDisplayName'
1366+
end
1367+
end
1368+
13491369
class GoogleAppsCardV1Action
13501370
# @private
13511371
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2322,8 +2342,26 @@ class Representation < Google::Apis::Core::JsonRepresentation
23222342
class QuotedMessageMetadata
23232343
# @private
23242344
class Representation < Google::Apis::Core::JsonRepresentation
2345+
property :forwarded_metadata, as: 'forwardedMetadata', class: Google::Apis::ChatV1::ForwardedMetadata, decorator: Google::Apis::ChatV1::ForwardedMetadata::Representation
2346+
23252347
property :last_update_time, as: 'lastUpdateTime'
23262348
property :name, as: 'name'
2349+
property :quote_type, as: 'quoteType'
2350+
property :quoted_message_snapshot, as: 'quotedMessageSnapshot', class: Google::Apis::ChatV1::QuotedMessageSnapshot, decorator: Google::Apis::ChatV1::QuotedMessageSnapshot::Representation
2351+
2352+
end
2353+
end
2354+
2355+
class QuotedMessageSnapshot
2356+
# @private
2357+
class Representation < Google::Apis::Core::JsonRepresentation
2358+
collection :annotations, as: 'annotations', class: Google::Apis::ChatV1::Annotation, decorator: Google::Apis::ChatV1::Annotation::Representation
2359+
2360+
collection :attachments, as: 'attachments', class: Google::Apis::ChatV1::Attachment, decorator: Google::Apis::ChatV1::Attachment::Representation
2361+
2362+
property :formatted_text, as: 'formattedText'
2363+
property :sender, as: 'sender'
2364+
property :text, as: 'text'
23272365
end
23282366
end
23292367

0 commit comments

Comments
 (0)