Skip to content

Commit 5ff8274

Browse files
authored
feat: update sources and regenerate (#18164)
1 parent e8adbff commit 5ff8274

121 files changed

Lines changed: 12113 additions & 1742 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.librarian/generator-input/client-post-processing/bigquery-storage-integration.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ replacements:
210210
AppendRowsResponse,
211211
BatchCommitWriteStreamsRequest,
212212
BatchCommitWriteStreamsResponse,
213+
ClientStats,
213214
CreateReadSessionRequest,
214215
CreateWriteStreamRequest,
215216
FinalizeWriteStreamRequest,
@@ -262,6 +263,7 @@ replacements:
262263
"BatchCommitWriteStreamsResponse",
263264
"BigQueryReadClient",
264265
"BigQueryWriteClient",
266+
"ClientStats",
265267
"CreateReadSessionRequest",
266268
"CreateWriteStreamRequest",
267269
"DataFormat",

librarian.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ version: v0.38.0
1616
repo: googleapis/google-cloud-python
1717
sources:
1818
googleapis:
19-
commit: 240b58fe7058f6fff77cba02f51d600170b6c421
20-
sha256: ca03f2c93b8f1e92fd75c87b2568992c96a2ecc37fde750c5bf83129fa17b407
19+
commit: 8856eed71a9cb2b9829d2617ee57fe2d8871a691
20+
sha256: 54104af35306b605a97f7d1b98b9b96f4a507cd18322b44d81f62eca17969b3a
2121
tools:
2222
pip:
2323
- name: black

packages/google-apps-chat/google/apps/chat/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
)
7979
from google.apps.chat_v1.types.group import Group
8080
from google.apps.chat_v1.types.history_state import HistoryState
81+
from google.apps.chat_v1.types.markup_syntax import MarkupSyntax
8182
from google.apps.chat_v1.types.matched_url import MatchedUrl
8283
from google.apps.chat_v1.types.membership import (
8384
CreateMembershipRequest,
@@ -234,6 +235,7 @@
234235
"SpaceUpdatedEventData",
235236
"Group",
236237
"HistoryState",
238+
"MarkupSyntax",
237239
"MatchedUrl",
238240
"CreateMembershipRequest",
239241
"DeleteMembershipRequest",

packages/google-apps-chat/google/apps/chat_v1/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"google.apps.chat_v1.types.event_payload",
4343
"google.apps.chat_v1.types.group",
4444
"google.apps.chat_v1.types.history_state",
45+
"google.apps.chat_v1.types.markup_syntax",
4546
"google.apps.chat_v1.types.matched_url",
4647
"google.apps.chat_v1.types.membership",
4748
"google.apps.chat_v1.types.message",
@@ -116,6 +117,7 @@
116117
)
117118
from .types.group import Group
118119
from .types.history_state import HistoryState
120+
from .types.markup_syntax import MarkupSyntax
119121
from .types.matched_url import MatchedUrl
120122
from .types.membership import (
121123
CreateMembershipRequest,
@@ -379,6 +381,7 @@ def _get_version(dependency_name):
379381
"MarkAsActiveRequest",
380382
"MarkAsAwayRequest",
381383
"MarkAsDoNotDisturbRequest",
384+
"MarkupSyntax",
382385
"MatchedUrl",
383386
"MeetSpaceLinkData",
384387
"Membership",

packages/google-apps-chat/google/apps/chat_v1/services/chat_service/async_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
event_payload,
5858
group,
5959
history_state,
60+
markup_syntax,
6061
matched_url,
6162
membership,
6263
message,

packages/google-apps-chat/google/apps/chat_v1/services/chat_service/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
event_payload,
7575
group,
7676
history_state,
77+
markup_syntax,
7778
matched_url,
7879
membership,
7980
message,

packages/google-apps-chat/google/apps/chat_v1/services/chat_service/transports/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ class ChatServiceTransport(abc.ABC):
6767
"https://www.googleapis.com/auth/chat.admin.memberships.readonly",
6868
"https://www.googleapis.com/auth/chat.admin.spaces",
6969
"https://www.googleapis.com/auth/chat.admin.spaces.readonly",
70+
"https://www.googleapis.com/auth/chat.app.all.memberships.readonly",
71+
"https://www.googleapis.com/auth/chat.app.all.messages.readonly",
72+
"https://www.googleapis.com/auth/chat.app.all.spaces.readonly",
7073
"https://www.googleapis.com/auth/chat.app.delete",
7174
"https://www.googleapis.com/auth/chat.app.memberships",
7275
"https://www.googleapis.com/auth/chat.app.memberships.readonly",

packages/google-apps-chat/google/apps/chat_v1/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
from .history_state import (
8282
HistoryState,
8383
)
84+
from .markup_syntax import (
85+
MarkupSyntax,
86+
)
8487
from .matched_url import (
8588
MatchedUrl,
8689
)
@@ -245,6 +248,7 @@
245248
"SpaceUpdatedEventData",
246249
"Group",
247250
"HistoryState",
251+
"MarkupSyntax",
248252
"MatchedUrl",
249253
"CreateMembershipRequest",
250254
"DeleteMembershipRequest",
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2026 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from __future__ import annotations
17+
18+
from typing import MutableMapping, MutableSequence
19+
20+
import proto # type: ignore
21+
22+
__protobuf__ = proto.module(
23+
package="google.chat.v1",
24+
manifest={
25+
"MarkupSyntax",
26+
},
27+
)
28+
29+
30+
class MarkupSyntax(proto.Enum):
31+
r"""Specifies the markup syntax used to format the Chat message text.
32+
Applies to the ``text`` field of the ``Message`` resource.
33+
34+
Values:
35+
MARKUP_SYNTAX_UNSPECIFIED (0):
36+
Represents the unspecified value.
37+
MARKUP_SYNTAX_CHAT (1):
38+
Uses Google Chat's markup syntax.
39+
See
40+
https://developers.google.com/workspace/chat/format-messages#format-texts
41+
for more information.
42+
MARKUP_SYNTAX_MARKDOWN (2):
43+
Uses Markdown syntax. This syntax is based on the
44+
`CommonMark <https://commonmark.org/help/>`__ specification,
45+
with additional extensions. See
46+
https://developers.google.com/workspace/chat/format-messages#format-texts
47+
for more information.
48+
"""
49+
50+
MARKUP_SYNTAX_UNSPECIFIED = 0
51+
MARKUP_SYNTAX_CHAT = 1
52+
MARKUP_SYNTAX_MARKDOWN = 2
53+
54+
55+
__all__ = tuple(sorted(__protobuf__.manifest))

packages/google-apps-chat/google/apps/chat_v1/types/message.py

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
)
3333
from google.apps.chat_v1.types import attachment as gc_attachment
3434
from 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
3536
from google.apps.chat_v1.types import matched_url as gc_matched_url
3637
from google.apps.chat_v1.types import slash_command as gc_slash_command
3738
from 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

412426
class 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

796818
class 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

11661196
class 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

Comments
 (0)