Skip to content

Commit f21743b

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add CHAT_SPACE link type support for GA launch
PiperOrigin-RevId: 671436186
1 parent 34133c7 commit f21743b

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

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.

0 commit comments

Comments
 (0)