@@ -16,6 +16,7 @@ syntax = "proto3";
1616
1717package google.chat.v1 ;
1818
19+ import "google/api/field_behavior.proto" ;
1920import "google/api/resource.proto" ;
2021import "google/chat/v1/attachment.proto" ;
2122import "google/chat/v1/reaction.proto" ;
@@ -30,9 +31,10 @@ option objc_class_prefix = "DYNAPIProto";
3031option php_namespace = "Google\\Apps\\Chat\\V1" ;
3132option ruby_package = "Google::Apps::Chat::V1" ;
3233
33- // Output only. Annotations associated with the plain-text body of the message.
34- // To add basic formatting to a text message, see
35- // [Format text
34+ // Output only. Annotations can be associated with the plain-text body of the
35+ // message or with chips that link to Google Workspace resources like Google
36+ // Docs or Sheets with `start_index` and `length` of 0. To add basic formatting
37+ // to a text message, see [Format text
3638// messages](https://developers.google.com/workspace/chat/format-messages).
3739//
3840// Example plain-text message body:
@@ -66,7 +68,7 @@ message Annotation {
6668 optional int32 start_index = 2 ;
6769
6870 // Length of the substring in the plain-text message body this annotation
69- // corresponds to.
71+ // corresponds to. If not present, indicates a length of 0.
7072 int32 length = 3 ;
7173
7274 // Additional metadata about the annotation.
@@ -134,7 +136,10 @@ message SlashCommandMetadata {
134136 bool triggers_dialog = 5 ;
135137}
136138
137- // A rich link to a resource.
139+ // A rich link to a resource. Rich links can be associated with the plain-text
140+ // body of the message or represent chips that link to Google Workspace
141+ // resources like Google Docs or Sheets with `start_index` and `length`
142+ // of 0.
138143message RichLinkMetadata {
139144 // The rich link type. More types might be added in the future.
140145 enum RichLinkType {
@@ -146,6 +151,12 @@ message RichLinkMetadata {
146151
147152 // A Chat space rich link type. For example, a space smart chip.
148153 CHAT_SPACE = 2 ;
154+
155+ // A Meet message rich link type. For example, a Meet chip.
156+ MEET_SPACE = 4 ;
157+
158+ // A Calendar message rich link type. For example, a Calendar chip.
159+ CALENDAR_EVENT = 5 ;
149160 }
150161
151162 // The URI of this link.
@@ -161,6 +172,12 @@ message RichLinkMetadata {
161172
162173 // Data for a chat space link.
163174 ChatSpaceLinkData chat_space_link_data = 4 ;
175+
176+ // Data for a Meet space link.
177+ MeetSpaceLinkData meet_space_link_data = 5 ;
178+
179+ // Data for a Calendar event link.
180+ CalendarEventLinkData calendar_event_link_data = 6 ;
164181 }
165182}
166183
@@ -204,6 +221,64 @@ message ChatSpaceLinkData {
204221 ];
205222}
206223
224+ // Data for Meet space links.
225+ message MeetSpaceLinkData {
226+ // The type of the Meet space.
227+ enum Type {
228+ // Default value for the enum. Don't use.
229+ TYPE_UNSPECIFIED = 0 ;
230+
231+ // The Meet space is a meeting.
232+ MEETING = 1 ;
233+
234+ // The Meet space is a huddle.
235+ HUDDLE = 2 ;
236+ }
237+
238+ // The status of the huddle
239+ enum HuddleStatus {
240+ // Default value for the enum. Don't use.
241+ HUDDLE_STATUS_UNSPECIFIED = 0 ;
242+
243+ // The huddle has started.
244+ STARTED = 1 ;
245+
246+ // The huddle has ended. In this case the Meet space URI and identifiers
247+ // will no longer be valid.
248+ ENDED = 2 ;
249+
250+ // The huddle has been missed. In this case the Meet space URI and
251+ // identifiers will no longer be valid.
252+ MISSED = 3 ;
253+ }
254+
255+ // Meeting code of the linked Meet space.
256+ string meeting_code = 1 ;
257+
258+ // Indicates the type of the Meet space.
259+ Type type = 2 ;
260+
261+ // Optional. Output only. If the Meet is a Huddle, indicates the status of the
262+ // huddle. Otherwise, this is unset.
263+ HuddleStatus huddle_status = 3 [
264+ (google.api.field_behavior ) = OPTIONAL ,
265+ (google.api.field_behavior ) = OUTPUT_ONLY
266+ ];
267+ }
268+
269+ // Data for Calendar event links.
270+ message CalendarEventLinkData {
271+ // The [Calendar
272+ // identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars)
273+ // of the linked Calendar.
274+ string calendar_id = 1 ;
275+
276+ // The [Event
277+ // identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events)
278+ // of the linked Calendar event.
279+ string event_id = 2 ;
280+ }
281+
207282// Type of the annotation.
208283enum AnnotationType {
209284 // Default value for the enum. Don't use.
0 commit comments