Skip to content

Commit c6c2227

Browse files
feat: Automated regeneration of Chat client (googleapis#12899)
Auto-created at 2025-01-31 13:12:00 +0000 using the toys pull request generator.
1 parent 7de28c7 commit c6c2227

File tree

5 files changed

+53
-4
lines changed

5 files changed

+53
-4
lines changed

clients/chat/lib/google_api/chat/v1/api/spaces.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ defmodule GoogleApi.Chat.V1.Api.Spaces do
13671367
end
13681368

13691369
@doc """
1370-
Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, see [Add a reaction to a message](https://developers.google.com/workspace/chat/create-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
1370+
Creates a reaction and adds it to a message. For an example, see [Add a reaction to a message](https://developers.google.com/workspace/chat/create-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
13711371
13721372
## Parameters
13731373
@@ -1434,7 +1434,7 @@ defmodule GoogleApi.Chat.V1.Api.Spaces do
14341434
end
14351435

14361436
@doc """
1437-
Deletes a reaction to a message. Only unicode emojis are supported. For an example, see [Delete a reaction](https://developers.google.com/workspace/chat/delete-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
1437+
Deletes a reaction to a message. For an example, see [Delete a reaction](https://developers.google.com/workspace/chat/delete-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
14381438
14391439
## Parameters
14401440

clients/chat/lib/google_api/chat/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Chat.V1 do
2020
API client metadata for GoogleApi.Chat.V1.
2121
"""
2222

23-
@discovery_revision "20250116"
23+
@discovery_revision "20250126"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/chat/lib/google_api/chat/v1/model/annotation.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.Chat.V1.Model.Annotation do
2121
2222
## Attributes
2323
24+
* `customEmojiMetadata` (*type:* `GoogleApi.Chat.V1.Model.CustomEmojiMetadata.t`, *default:* `nil`) - The metadata for a custom emoji.
2425
* `length` (*type:* `integer()`, *default:* `nil`) - Length of the substring in the plain-text message body this annotation corresponds to.
2526
* `richLinkMetadata` (*type:* `GoogleApi.Chat.V1.Model.RichLinkMetadata.t`, *default:* `nil`) - The metadata for a rich link.
2627
* `slashCommand` (*type:* `GoogleApi.Chat.V1.Model.SlashCommandMetadata.t`, *default:* `nil`) - The metadata for a slash command.
@@ -32,6 +33,7 @@ defmodule GoogleApi.Chat.V1.Model.Annotation do
3233
use GoogleApi.Gax.ModelBase
3334

3435
@type t :: %__MODULE__{
36+
:customEmojiMetadata => GoogleApi.Chat.V1.Model.CustomEmojiMetadata.t() | nil,
3537
:length => integer() | nil,
3638
:richLinkMetadata => GoogleApi.Chat.V1.Model.RichLinkMetadata.t() | nil,
3739
:slashCommand => GoogleApi.Chat.V1.Model.SlashCommandMetadata.t() | nil,
@@ -40,6 +42,7 @@ defmodule GoogleApi.Chat.V1.Model.Annotation do
4042
:userMention => GoogleApi.Chat.V1.Model.UserMentionMetadata.t() | nil
4143
}
4244

45+
field(:customEmojiMetadata, as: GoogleApi.Chat.V1.Model.CustomEmojiMetadata)
4346
field(:length)
4447
field(:richLinkMetadata, as: GoogleApi.Chat.V1.Model.RichLinkMetadata)
4548
field(:slashCommand, as: GoogleApi.Chat.V1.Model.SlashCommandMetadata)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Chat.V1.Model.CustomEmojiMetadata do
19+
@moduledoc """
20+
Annotation metadata for custom emoji.
21+
22+
## Attributes
23+
24+
* `customEmoji` (*type:* `GoogleApi.Chat.V1.Model.CustomEmoji.t`, *default:* `nil`) - The custom emoji.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:customEmoji => GoogleApi.Chat.V1.Model.CustomEmoji.t() | nil
31+
}
32+
33+
field(:customEmoji, as: GoogleApi.Chat.V1.Model.CustomEmoji)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.CustomEmojiMetadata do
37+
def decode(value, options) do
38+
GoogleApi.Chat.V1.Model.CustomEmojiMetadata.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.CustomEmojiMetadata do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/chat/lib/google_api/chat/v1/model/emoji.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Chat.V1.Model.Emoji do
2121
2222
## Attributes
2323
24-
* `customEmoji` (*type:* `GoogleApi.Chat.V1.Model.CustomEmoji.t`, *default:* `nil`) - Output only. A custom emoji.
24+
* `customEmoji` (*type:* `GoogleApi.Chat.V1.Model.CustomEmoji.t`, *default:* `nil`) - A custom emoji.
2525
* `unicode` (*type:* `String.t`, *default:* `nil`) - Optional. A basic emoji represented by a unicode string.
2626
"""
2727

0 commit comments

Comments
 (0)