Skip to content

Commit b165f92

Browse files
feat: [google-apps-chat] A new field custom_emoji_metadata is added to message .google.chat.v1.Annotation (#13474)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: A new field custom_emoji_metadata is added to message `.google.chat.v1.Annotation` feat: A new message `CustomEmojiMetadata` is added feat: A new value `CUSTOM_EMOJI` is added to enum `AnnotationType` docs: A comment for method `CreateReaction` in service `ChatService` is changed docs: A comment for method `DeleteReaction` in service `ChatService` is changed docs: A comment for field `custom_emoji` in message `.google.chat.v1.Emoji` is changed END_COMMIT_OVERRIDE PiperOrigin-RevId: 720564143 Source-Link: googleapis/googleapis@60bab91 Source-Link: googleapis/googleapis-gen@f7beff2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwcHMtY2hhdC8uT3dsQm90LnlhbWwiLCJoIjoiZjdiZWZmMjk0Nzg3NTJkODY2OTFkODE1NDgxNWE4NTM1M2E2NzMzMyJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Victor Chudnovsky <[email protected]>
1 parent 7b23175 commit b165f92

File tree

13 files changed

+56
-29
lines changed

13 files changed

+56
-29
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
Annotation,
2828
AnnotationType,
2929
ChatSpaceLinkData,
30+
CustomEmojiMetadata,
3031
DriveLinkData,
3132
RichLinkMetadata,
3233
SlashCommandMetadata,
@@ -141,6 +142,7 @@
141142
"ActionStatus",
142143
"Annotation",
143144
"ChatSpaceLinkData",
145+
"CustomEmojiMetadata",
144146
"DriveLinkData",
145147
"RichLinkMetadata",
146148
"SlashCommandMetadata",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
Annotation,
2525
AnnotationType,
2626
ChatSpaceLinkData,
27+
CustomEmojiMetadata,
2728
DriveLinkData,
2829
RichLinkMetadata,
2930
SlashCommandMetadata,
@@ -150,6 +151,7 @@
150151
"CreateReactionRequest",
151152
"CreateSpaceRequest",
152153
"CustomEmoji",
154+
"CustomEmojiMetadata",
153155
"DeleteMembershipRequest",
154156
"DeleteMessageRequest",
155157
"DeleteReactionRequest",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3170,8 +3170,8 @@ async def create_reaction(
31703170
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
31713171
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
31723172
) -> gc_reaction.Reaction:
3173-
r"""Creates a reaction and adds it to a message. Only unicode emojis
3174-
are supported. For an example, see `Add a reaction to a
3173+
r"""Creates a reaction and adds it to a message. For an example, see
3174+
`Add a reaction to a
31753175
message <https://developers.google.com/workspace/chat/create-reactions>`__.
31763176
31773177
Requires `user
@@ -3420,8 +3420,7 @@ async def delete_reaction(
34203420
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
34213421
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
34223422
) -> None:
3423-
r"""Deletes a reaction to a message. Only unicode emojis are
3424-
supported. For an example, see `Delete a
3423+
r"""Deletes a reaction to a message. For an example, see `Delete a
34253424
reaction <https://developers.google.com/workspace/chat/delete-reactions>`__.
34263425
34273426
Requires `user

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3648,8 +3648,8 @@ def create_reaction(
36483648
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
36493649
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
36503650
) -> gc_reaction.Reaction:
3651-
r"""Creates a reaction and adds it to a message. Only unicode emojis
3652-
are supported. For an example, see `Add a reaction to a
3651+
r"""Creates a reaction and adds it to a message. For an example, see
3652+
`Add a reaction to a
36533653
message <https://developers.google.com/workspace/chat/create-reactions>`__.
36543654
36553655
Requires `user
@@ -3892,8 +3892,7 @@ def delete_reaction(
38923892
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
38933893
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
38943894
) -> None:
3895-
r"""Deletes a reaction to a message. Only unicode emojis are
3896-
supported. For an example, see `Delete a
3895+
r"""Deletes a reaction to a message. For an example, see `Delete a
38973896
reaction <https://developers.google.com/workspace/chat/delete-reactions>`__.
38983897
38993898
Requires `user

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,8 +1277,8 @@ def create_reaction(
12771277
) -> Callable[[gc_reaction.CreateReactionRequest], gc_reaction.Reaction]:
12781278
r"""Return a callable for the create reaction method over gRPC.
12791279
1280-
Creates a reaction and adds it to a message. Only unicode emojis
1281-
are supported. For an example, see `Add a reaction to a
1280+
Creates a reaction and adds it to a message. For an example, see
1281+
`Add a reaction to a
12821282
message <https://developers.google.com/workspace/chat/create-reactions>`__.
12831283
12841284
Requires `user
@@ -1339,8 +1339,7 @@ def delete_reaction(
13391339
) -> Callable[[reaction.DeleteReactionRequest], empty_pb2.Empty]:
13401340
r"""Return a callable for the delete reaction method over gRPC.
13411341
1342-
Deletes a reaction to a message. Only unicode emojis are
1343-
supported. For an example, see `Delete a
1342+
Deletes a reaction to a message. For an example, see `Delete a
13441343
reaction <https://developers.google.com/workspace/chat/delete-reactions>`__.
13451344
13461345
Requires `user

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,8 +1304,8 @@ def create_reaction(
13041304
) -> Callable[[gc_reaction.CreateReactionRequest], Awaitable[gc_reaction.Reaction]]:
13051305
r"""Return a callable for the create reaction method over gRPC.
13061306
1307-
Creates a reaction and adds it to a message. Only unicode emojis
1308-
are supported. For an example, see `Add a reaction to a
1307+
Creates a reaction and adds it to a message. For an example, see
1308+
`Add a reaction to a
13091309
message <https://developers.google.com/workspace/chat/create-reactions>`__.
13101310
13111311
Requires `user
@@ -1368,8 +1368,7 @@ def delete_reaction(
13681368
) -> Callable[[reaction.DeleteReactionRequest], Awaitable[empty_pb2.Empty]]:
13691369
r"""Return a callable for the delete reaction method over gRPC.
13701370
1371-
Deletes a reaction to a message. Only unicode emojis are
1372-
supported. For an example, see `Delete a
1371+
Deletes a reaction to a message. For an example, see `Delete a
13731372
reaction <https://developers.google.com/workspace/chat/delete-reactions>`__.
13741373
13751374
Requires `user

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
Annotation,
1919
AnnotationType,
2020
ChatSpaceLinkData,
21+
CustomEmojiMetadata,
2122
DriveLinkData,
2223
RichLinkMetadata,
2324
SlashCommandMetadata,
@@ -127,6 +128,7 @@
127128
"ActionStatus",
128129
"Annotation",
129130
"ChatSpaceLinkData",
131+
"CustomEmojiMetadata",
130132
"DriveLinkData",
131133
"RichLinkMetadata",
132134
"SlashCommandMetadata",

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

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import proto # type: ignore
2121

22-
from google.apps.chat_v1.types import attachment
22+
from google.apps.chat_v1.types import attachment, reaction
2323
from google.apps.chat_v1.types import user as gc_user
2424

2525
__protobuf__ = proto.module(
@@ -30,6 +30,7 @@
3030
"UserMentionMetadata",
3131
"SlashCommandMetadata",
3232
"RichLinkMetadata",
33+
"CustomEmojiMetadata",
3334
"DriveLinkData",
3435
"ChatSpaceLinkData",
3536
},
@@ -48,11 +49,14 @@ class AnnotationType(proto.Enum):
4849
A slash command is invoked.
4950
RICH_LINK (3):
5051
A rich link annotation.
52+
CUSTOM_EMOJI (4):
53+
A custom emoji annotation.
5154
"""
5255
ANNOTATION_TYPE_UNSPECIFIED = 0
5356
USER_MENTION = 1
5457
SLASH_COMMAND = 2
5558
RICH_LINK = 3
59+
CUSTOM_EMOJI = 4
5660

5761

5862
class Annotation(proto.Message):
@@ -115,6 +119,10 @@ class Annotation(proto.Message):
115119
rich_link_metadata (google.apps.chat_v1.types.RichLinkMetadata):
116120
The metadata for a rich link.
117121
122+
This field is a member of `oneof`_ ``metadata``.
123+
custom_emoji_metadata (google.apps.chat_v1.types.CustomEmojiMetadata):
124+
The metadata for a custom emoji.
125+
118126
This field is a member of `oneof`_ ``metadata``.
119127
"""
120128

@@ -150,6 +158,12 @@ class Annotation(proto.Message):
150158
oneof="metadata",
151159
message="RichLinkMetadata",
152160
)
161+
custom_emoji_metadata: "CustomEmojiMetadata" = proto.Field(
162+
proto.MESSAGE,
163+
number=7,
164+
oneof="metadata",
165+
message="CustomEmojiMetadata",
166+
)
153167

154168

155169
class UserMentionMetadata(proto.Message):
@@ -309,6 +323,21 @@ class RichLinkType(proto.Enum):
309323
)
310324

311325

326+
class CustomEmojiMetadata(proto.Message):
327+
r"""Annotation metadata for custom emoji.
328+
329+
Attributes:
330+
custom_emoji (google.apps.chat_v1.types.CustomEmoji):
331+
The custom emoji.
332+
"""
333+
334+
custom_emoji: reaction.CustomEmoji = proto.Field(
335+
proto.MESSAGE,
336+
number=1,
337+
message=reaction.CustomEmoji,
338+
)
339+
340+
312341
class DriveLinkData(proto.Message):
313342
r"""Data for Google Drive links.
314343

0 commit comments

Comments
 (0)