Skip to content

Commit b61a65d

Browse files
feat: [chat] Add CHAT_SPACE link type support for GA launch (#5659)
* feat: Add CHAT_SPACE link type support for GA launch PiperOrigin-RevId: 671436186 Source-Link: googleapis/googleapis@f21743b Source-Link: googleapis/googleapis-gen@0120294 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNoYXQvLk93bEJvdC55YW1sIiwiaCI6IjAxMjAyOTQ4YWVhY2Y1MDJmNjNkM2QwMTk5NTUyMTU4OWU0YzZkYjQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 88edc8b commit b61a65d

4 files changed

Lines changed: 474 additions & 6 deletions

File tree

packages/google-chat/protos/google/chat/v1/annotation.proto

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ message RichLinkMetadata {
139139

140140
// A Google Drive rich link type.
141141
DRIVE_FILE = 1;
142+
143+
// A Chat space rich link type. For example, a space smart chip.
144+
CHAT_SPACE = 2;
142145
}
143146

144147
// The URI of this link.
@@ -151,6 +154,9 @@ message RichLinkMetadata {
151154
oneof data {
152155
// Data for a drive link.
153156
DriveLinkData drive_link_data = 3;
157+
158+
// Data for a chat space link.
159+
ChatSpaceLinkData chat_space_link_data = 4;
154160
}
155161
}
156162

@@ -165,6 +171,29 @@ message DriveLinkData {
165171
string mime_type = 2;
166172
}
167173

174+
// Data for Chat space links.
175+
message ChatSpaceLinkData {
176+
// The space of the linked Chat space resource.
177+
//
178+
// Format: `spaces/{space}`
179+
string space = 1
180+
[(google.api.resource_reference) = { type: "chat.googleapis.com/Space" }];
181+
182+
// The thread of the linked Chat space resource.
183+
//
184+
// Format: `spaces/{space}/threads/{thread}`
185+
string thread = 2 [
186+
(google.api.resource_reference) = { type: "chat.googleapis.com/Thread" }
187+
];
188+
189+
// The message of the linked Chat space resource.
190+
//
191+
// Format: `spaces/{space}/messages/{message}`
192+
string message = 3 [
193+
(google.api.resource_reference) = { type: "chat.googleapis.com/Message" }
194+
];
195+
}
196+
168197
// Type of the annotation.
169198
enum AnnotationType {
170199
// Default value for the enum. Don't use.

packages/google-chat/protos/protos.d.ts

Lines changed: 118 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)