Skip to content

Commit 60bab91

Browse files
Google APIscopybara-github
authored andcommitted
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 PiperOrigin-RevId: 720564143
1 parent 27aa9d5 commit 60bab91

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

google/chat/v1/annotation.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package google.chat.v1;
1818

1919
import "google/api/resource.proto";
2020
import "google/chat/v1/attachment.proto";
21+
import "google/chat/v1/reaction.proto";
2122
import "google/chat/v1/user.proto";
2223

2324
option csharp_namespace = "Google.Apps.Chat.V1";
@@ -78,6 +79,9 @@ message Annotation {
7879

7980
// The metadata for a rich link.
8081
RichLinkMetadata rich_link_metadata = 6;
82+
83+
// The metadata for a custom emoji.
84+
CustomEmojiMetadata custom_emoji_metadata = 7;
8185
}
8286
}
8387

@@ -160,6 +164,12 @@ message RichLinkMetadata {
160164
}
161165
}
162166

167+
// Annotation metadata for custom emoji.
168+
message CustomEmojiMetadata {
169+
// The custom emoji.
170+
CustomEmoji custom_emoji = 1;
171+
}
172+
163173
// Data for Google Drive links.
164174
message DriveLinkData {
165175
// A
@@ -207,4 +217,7 @@ enum AnnotationType {
207217

208218
// A rich link annotation.
209219
RICH_LINK = 3;
220+
221+
// A custom emoji annotation.
222+
CUSTOM_EMOJI = 4;
210223
}

google/chat/v1/chat_service.proto

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,7 @@ service ChatService {
611611
option (google.api.method_signature) = "name";
612612
}
613613

614-
// Creates a reaction and adds it to a message. Only unicode emojis are
615-
// supported. For an example, see
614+
// Creates a reaction and adds it to a message. For an example, see
616615
// [Add a reaction to a
617616
// message](https://developers.google.com/workspace/chat/create-reactions).
618617
//
@@ -639,8 +638,7 @@ service ChatService {
639638
option (google.api.method_signature) = "parent";
640639
}
641640

642-
// Deletes a reaction to a message. Only unicode emojis are supported.
643-
// For an example, see
641+
// Deletes a reaction to a message. For an example, see
644642
// [Delete a
645643
// reaction](https://developers.google.com/workspace/chat/delete-reactions).
646644
//

google/chat/v1/reaction.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ message Emoji {
5656
// Optional. A basic emoji represented by a unicode string.
5757
string unicode = 1 [(google.api.field_behavior) = OPTIONAL];
5858

59-
// Output only. A custom emoji.
60-
CustomEmoji custom_emoji = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
59+
// A custom emoji.
60+
CustomEmoji custom_emoji = 2;
6161
}
6262
}
6363

0 commit comments

Comments
 (0)