3232)
3333from google .apps .chat_v1 .types import attachment as gc_attachment
3434from google .apps .chat_v1 .types import deletion_metadata as gc_deletion_metadata
35+ from google .apps .chat_v1 .types import markup_syntax as gc_markup_syntax
3536from google .apps .chat_v1 .types import matched_url as gc_matched_url
3637from google .apps .chat_v1 .types import slash_command as gc_slash_command
3738from google .apps .chat_v1 .types import space as gc_space
@@ -161,10 +162,15 @@ class Message(proto.Message):
161162 Optional. An array of
162163 `cards <https://developers.google.com/workspace/chat/api/reference/rest/v1/cards>`__.
163164
164- Only Chat apps can create cards. If your Chat app
165- `authenticates as a
165+ Chat apps can create cards with `app
166+ authentication <https://developers.google.com/workspace/chat/authenticate-authorize-chat-app>`__.
167+ As part of the `Developer Preview
168+ Program <https://developers.google.com/workspace/preview>`__,
169+ if your Chat app `authenticates as a
166170 user <https://developers.google.com/workspace/chat/authenticate-authorize-chat-user>`__,
167- the messages can't contain cards.
171+ it can create card messages. If your Chat app is not part of
172+ Developer Preview Program, it can't create cards with user
173+ authentication.
168174
169175 To learn how to create a message that contains cards, see
170176 `Send a
@@ -274,6 +280,9 @@ class Message(proto.Message):
274280 Creating a message with accessory widgets requires [app
275281 authentication]
276282 (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
283+ markup_syntax (google.apps.chat_v1.types.MarkupSyntax):
284+ Optional. Specifies how the server interprets the message
285+ ``text`` field content.
277286 """
278287
279288 name : str = proto .Field (
@@ -407,6 +416,11 @@ class Message(proto.Message):
407416 number = 44 ,
408417 message = "AccessoryWidget" ,
409418 )
419+ markup_syntax : gc_markup_syntax .MarkupSyntax = proto .Field (
420+ proto .ENUM ,
421+ number = 47 ,
422+ enum = gc_markup_syntax .MarkupSyntax ,
423+ )
410424
411425
412426class AttachedGif (proto .Message ):
@@ -785,12 +799,20 @@ class GetMessageRequest(proto.Message):
785799 value from the ``clientAssignedMessageId`` field for
786800 ``{message}``. For details, see [Name a message]
787801 (https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
802+ markup_syntax (google.apps.chat_v1.types.MarkupSyntax):
803+ Optional. Specifies the desired output syntax for the Chat
804+ message ``formatted_text`` field.
788805 """
789806
790807 name : str = proto .Field (
791808 proto .STRING ,
792809 number = 1 ,
793810 )
811+ markup_syntax : gc_markup_syntax .MarkupSyntax = proto .Field (
812+ proto .ENUM ,
813+ number = 3 ,
814+ enum = gc_markup_syntax .MarkupSyntax ,
815+ )
794816
795817
796818class DeleteMessageRequest (proto .Message ):
@@ -1135,6 +1157,9 @@ class ListMessagesRequest(proto.Message):
11351157 messages. Deleted messages include deleted time
11361158 and metadata about their deletion, but message
11371159 content is unavailable.
1160+ markup_syntax (google.apps.chat_v1.types.MarkupSyntax):
1161+ Optional. Specifies the desired output syntax for the Chat
1162+ message ``formatted_text`` field.
11381163 """
11391164
11401165 parent : str = proto .Field (
@@ -1161,6 +1186,11 @@ class ListMessagesRequest(proto.Message):
11611186 proto .BOOL ,
11621187 number = 6 ,
11631188 )
1189+ markup_syntax : gc_markup_syntax .MarkupSyntax = proto .Field (
1190+ proto .ENUM ,
1191+ number = 9 ,
1192+ enum = gc_markup_syntax .MarkupSyntax ,
1193+ )
11641194
11651195
11661196class ListMessagesResponse (proto .Message ):
@@ -1247,10 +1277,18 @@ class CardWithId(proto.Message):
12471277 `card <https://developers.google.com/workspace/chat/api/reference/rest/v1/cards>`__
12481278 in a Google Chat message.
12491279
1250- Only Chat apps can create cards. If your Chat app `authenticates as
1251- a
1280+ Chat apps can create cards with `app
1281+ authentication <https://developers.google.com/workspace/chat/authenticate-authorize-chat-app>`__.
1282+ As part of the `Developer Preview
1283+ Program <https://developers.google.com/workspace/preview>`__, if
1284+ your Chat app `authenticates as a
12521285 user <https://developers.google.com/workspace/chat/authenticate-authorize-chat-user>`__,
1253- the message can't contain cards.
1286+ it can create card messages. If your Chat app is not part of
1287+ Developer Preview Program, it can't create cards with user
1288+ authentication.
1289+
1290+ To learn how to create a message that contains cards, see `Send a
1291+ message <https://developers.google.com/workspace/chat/create-messages>`__.
12541292
12551293 `Card builder <https://addons.gsuite.google.com/uikit/builder>`__
12561294
@@ -1460,6 +1498,9 @@ class SearchMessagesRequest(proto.Message):
14601498 order per query (``create_time`` or ``relevance``) is
14611499 supported. Only descending order (``desc``) is supported,
14621500 and it must be specified after the order attribute.
1501+ markup_syntax (google.apps.chat_v1.types.MarkupSyntax):
1502+ Optional. Specifies the desired output syntax for the Chat
1503+ message ``formatted_text`` field.
14631504 view (google.apps.chat_v1.types.SearchMessagesRequest.SearchMessagesView):
14641505 Optional. Specifies what kind of search results view to
14651506 return. The default is ``SEARCH_MESSAGES_VIEW_BASIC``.
@@ -1506,6 +1547,11 @@ class SearchMessagesView(proto.Enum):
15061547 proto .STRING ,
15071548 number = 5 ,
15081549 )
1550+ markup_syntax : gc_markup_syntax .MarkupSyntax = proto .Field (
1551+ proto .ENUM ,
1552+ number = 6 ,
1553+ enum = gc_markup_syntax .MarkupSyntax ,
1554+ )
15091555 view : SearchMessagesView = proto .Field (
15101556 proto .ENUM ,
15111557 number = 7 ,
0 commit comments