google-apps-chat-v1 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eeda6bc2f615d8ca27f597cebf0343c21920a729ceddf7510bbe8ba6969a931
|
4
|
+
data.tar.gz: 3a0029b4fc9c7610e43bf3e6ae7a48d04e86a61b13cda457a775178b2f699866
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b316b4e4ec5ed0c9b995a50e78935bae0daeeeda7c22b2eea96fae41b3734ce87efc7d31da051ef53d8ea9c7bb2c4c01c351d2793324f26705d5c41bc7c1e28b
|
7
|
+
data.tar.gz: c838c9a0a9c03253c6b9588545e2c48804f2242abe041f74ae14ae83dba0a9bf5e401f03dcf59ae34903e7caf6230fbc9f346dd3f4bc518cde9fd72a5f43af08
|
@@ -4,13 +4,14 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
require 'google/chat/v1/attachment_pb'
|
9
10
|
require 'google/chat/v1/reaction_pb'
|
10
11
|
require 'google/chat/v1/user_pb'
|
11
12
|
|
12
13
|
|
13
|
-
descriptor_data = "\n\x1fgoogle/chat/v1/annotation.proto\x12\x0egoogle.chat.v1\x1a\x19google/api/resource.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x19google/chat/v1/user.proto\"\x82\x03\n\nAnnotation\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x1e.google.chat.v1.AnnotationType\x12\x18\n\x0bstart_index\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12;\n\x0cuser_mention\x18\x04 \x01(\x0b\x32#.google.chat.v1.UserMentionMetadataH\x00\x12=\n\rslash_command\x18\x05 \x01(\x0b\x32$.google.chat.v1.SlashCommandMetadataH\x00\x12>\n\x12rich_link_metadata\x18\x06 \x01(\x0b\x32 .google.chat.v1.RichLinkMetadataH\x00\x12\x44\n\x15\x63ustom_emoji_metadata\x18\x07 \x01(\x0b\x32#.google.chat.v1.CustomEmojiMetadataH\x00\x42\n\n\x08metadataB\x0e\n\x0c_start_index\"\xa5\x01\n\x13UserMentionMetadata\x12\"\n\x04user\x18\x01 \x01(\x0b\x32\x14.google.chat.v1.User\x12\x36\n\x04type\x18\x02 \x01(\x0e\x32(.google.chat.v1.UserMentionMetadata.Type\"2\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\x0b\n\x07MENTION\x10\x02\"\xe8\x01\n\x14SlashCommandMetadata\x12!\n\x03\x62ot\x18\x01 \x01(\x0b\x32\x14.google.chat.v1.User\x12\x37\n\x04type\x18\x02 \x01(\x0e\x32).google.chat.v1.SlashCommandMetadata.Type\x12\x14\n\x0c\x63ommand_name\x18\x03 \x01(\t\x12\x12\n\ncommand_id\x18\x04 \x01(\x03\x12\x17\n\x0ftriggers_dialog\x18\x05 \x01(\x08\"1\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06INVOKE\x10\x02\"\
|
14
|
+
descriptor_data = "\n\x1fgoogle/chat/v1/annotation.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x19google/chat/v1/user.proto\"\x82\x03\n\nAnnotation\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x1e.google.chat.v1.AnnotationType\x12\x18\n\x0bstart_index\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12;\n\x0cuser_mention\x18\x04 \x01(\x0b\x32#.google.chat.v1.UserMentionMetadataH\x00\x12=\n\rslash_command\x18\x05 \x01(\x0b\x32$.google.chat.v1.SlashCommandMetadataH\x00\x12>\n\x12rich_link_metadata\x18\x06 \x01(\x0b\x32 .google.chat.v1.RichLinkMetadataH\x00\x12\x44\n\x15\x63ustom_emoji_metadata\x18\x07 \x01(\x0b\x32#.google.chat.v1.CustomEmojiMetadataH\x00\x42\n\n\x08metadataB\x0e\n\x0c_start_index\"\xa5\x01\n\x13UserMentionMetadata\x12\"\n\x04user\x18\x01 \x01(\x0b\x32\x14.google.chat.v1.User\x12\x36\n\x04type\x18\x02 \x01(\x0e\x32(.google.chat.v1.UserMentionMetadata.Type\"2\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\x0b\n\x07MENTION\x10\x02\"\xe8\x01\n\x14SlashCommandMetadata\x12!\n\x03\x62ot\x18\x01 \x01(\x0b\x32\x14.google.chat.v1.User\x12\x37\n\x04type\x18\x02 \x01(\x0e\x32).google.chat.v1.SlashCommandMetadata.Type\x12\x14\n\x0c\x63ommand_name\x18\x03 \x01(\t\x12\x12\n\ncommand_id\x18\x04 \x01(\x03\x12\x17\n\x0ftriggers_dialog\x18\x05 \x01(\x08\"1\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06INVOKE\x10\x02\"\xed\x03\n\x10RichLinkMetadata\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x45\n\x0erich_link_type\x18\x02 \x01(\x0e\x32-.google.chat.v1.RichLinkMetadata.RichLinkType\x12\x38\n\x0f\x64rive_link_data\x18\x03 \x01(\x0b\x32\x1d.google.chat.v1.DriveLinkDataH\x00\x12\x41\n\x14\x63hat_space_link_data\x18\x04 \x01(\x0b\x32!.google.chat.v1.ChatSpaceLinkDataH\x00\x12\x41\n\x14meet_space_link_data\x18\x05 \x01(\x0b\x32!.google.chat.v1.MeetSpaceLinkDataH\x00\x12I\n\x18\x63\x61lendar_event_link_data\x18\x06 \x01(\x0b\x32%.google.chat.v1.CalendarEventLinkDataH\x00\"r\n\x0cRichLinkType\x12\x1e\n\x1aRICH_LINK_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nDRIVE_FILE\x10\x01\x12\x0e\n\nCHAT_SPACE\x10\x02\x12\x0e\n\nMEET_SPACE\x10\x04\x12\x12\n\x0e\x43\x41LENDAR_EVENT\x10\x05\x42\x06\n\x04\x64\x61ta\"H\n\x13\x43ustomEmojiMetadata\x12\x31\n\x0c\x63ustom_emoji\x18\x01 \x01(\x0b\x32\x1b.google.chat.v1.CustomEmoji\"X\n\rDriveLinkData\x12\x34\n\x0e\x64rive_data_ref\x18\x01 \x01(\x0b\x32\x1c.google.chat.v1.DriveDataRef\x12\x11\n\tmime_type\x18\x02 \x01(\t\"\xa6\x01\n\x11\x43hatSpaceLinkData\x12-\n\x05space\x18\x01 \x01(\tB\x1e\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12/\n\x06thread\x18\x02 \x01(\tB\x1f\xfa\x41\x1c\n\x1a\x63hat.googleapis.com/Thread\x12\x31\n\x07message\x18\x03 \x01(\tB \xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\"\xb8\x02\n\x11MeetSpaceLinkData\x12\x14\n\x0cmeeting_code\x18\x01 \x01(\t\x12\x34\n\x04type\x18\x02 \x01(\x0e\x32&.google.chat.v1.MeetSpaceLinkData.Type\x12M\n\rhuddle_status\x18\x03 \x01(\x0e\x32..google.chat.v1.MeetSpaceLinkData.HuddleStatusB\x06\xe0\x41\x01\xe0\x41\x03\"5\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07MEETING\x10\x01\x12\n\n\x06HUDDLE\x10\x02\"Q\n\x0cHuddleStatus\x12\x1d\n\x19HUDDLE_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07STARTED\x10\x01\x12\t\n\x05\x45NDED\x10\x02\x12\n\n\x06MISSED\x10\x03\">\n\x15\x43\x61lendarEventLinkData\x12\x13\n\x0b\x63\x61lendar_id\x18\x01 \x01(\t\x12\x10\n\x08\x65vent_id\x18\x02 \x01(\t*w\n\x0e\x41nnotationType\x12\x1f\n\x1b\x41NNOTATION_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cUSER_MENTION\x10\x01\x12\x11\n\rSLASH_COMMAND\x10\x02\x12\r\n\tRICH_LINK\x10\x03\x12\x10\n\x0c\x43USTOM_EMOJI\x10\x04\x42\xa8\x01\n\x12\x63om.google.chat.v1B\x0f\x41nnotationProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
|
14
15
|
|
15
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
17
|
|
@@ -53,6 +54,10 @@ module Google
|
|
53
54
|
CustomEmojiMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CustomEmojiMetadata").msgclass
|
54
55
|
DriveLinkData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DriveLinkData").msgclass
|
55
56
|
ChatSpaceLinkData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ChatSpaceLinkData").msgclass
|
57
|
+
MeetSpaceLinkData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MeetSpaceLinkData").msgclass
|
58
|
+
MeetSpaceLinkData::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MeetSpaceLinkData.Type").enummodule
|
59
|
+
MeetSpaceLinkData::HuddleStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MeetSpaceLinkData.HuddleStatus").enummodule
|
60
|
+
CalendarEventLinkData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CalendarEventLinkData").msgclass
|
56
61
|
AnnotationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.AnnotationType").enummodule
|
57
62
|
end
|
58
63
|
end
|
@@ -21,9 +21,10 @@ module Google
|
|
21
21
|
module Apps
|
22
22
|
module Chat
|
23
23
|
module V1
|
24
|
-
# Output only. Annotations associated with the plain-text body of the
|
25
|
-
#
|
26
|
-
#
|
24
|
+
# Output only. Annotations can be associated with the plain-text body of the
|
25
|
+
# message or with chips that link to Google Workspace resources like Google
|
26
|
+
# Docs or Sheets with `start_index` and `length` of 0. To add basic formatting
|
27
|
+
# to a text message, see [Format text
|
27
28
|
# messages](https://developers.google.com/workspace/chat/format-messages).
|
28
29
|
#
|
29
30
|
# Example plain-text message body:
|
@@ -58,7 +59,7 @@ module Google
|
|
58
59
|
# @!attribute [rw] length
|
59
60
|
# @return [::Integer]
|
60
61
|
# Length of the substring in the plain-text message body this annotation
|
61
|
-
# corresponds to.
|
62
|
+
# corresponds to. If not present, indicates a length of 0.
|
62
63
|
# @!attribute [rw] user_mention
|
63
64
|
# @return [::Google::Apps::Chat::V1::UserMentionMetadata]
|
64
65
|
# The metadata of user mention.
|
@@ -139,7 +140,10 @@ module Google
|
|
139
140
|
end
|
140
141
|
end
|
141
142
|
|
142
|
-
# A rich link to a resource.
|
143
|
+
# A rich link to a resource. Rich links can be associated with the plain-text
|
144
|
+
# body of the message or represent chips that link to Google Workspace
|
145
|
+
# resources like Google Docs or Sheets with `start_index` and `length`
|
146
|
+
# of 0.
|
143
147
|
# @!attribute [rw] uri
|
144
148
|
# @return [::String]
|
145
149
|
# The URI of this link.
|
@@ -150,12 +154,22 @@ module Google
|
|
150
154
|
# @return [::Google::Apps::Chat::V1::DriveLinkData]
|
151
155
|
# Data for a drive link.
|
152
156
|
#
|
153
|
-
# Note: The following fields are mutually exclusive: `drive_link_data`, `chat_space_link_data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
157
|
+
# Note: The following fields are mutually exclusive: `drive_link_data`, `chat_space_link_data`, `meet_space_link_data`, `calendar_event_link_data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
154
158
|
# @!attribute [rw] chat_space_link_data
|
155
159
|
# @return [::Google::Apps::Chat::V1::ChatSpaceLinkData]
|
156
160
|
# Data for a chat space link.
|
157
161
|
#
|
158
|
-
# Note: The following fields are mutually exclusive: `chat_space_link_data`, `drive_link_data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
162
|
+
# Note: The following fields are mutually exclusive: `chat_space_link_data`, `drive_link_data`, `meet_space_link_data`, `calendar_event_link_data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
163
|
+
# @!attribute [rw] meet_space_link_data
|
164
|
+
# @return [::Google::Apps::Chat::V1::MeetSpaceLinkData]
|
165
|
+
# Data for a Meet space link.
|
166
|
+
#
|
167
|
+
# Note: The following fields are mutually exclusive: `meet_space_link_data`, `drive_link_data`, `chat_space_link_data`, `calendar_event_link_data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
168
|
+
# @!attribute [rw] calendar_event_link_data
|
169
|
+
# @return [::Google::Apps::Chat::V1::CalendarEventLinkData]
|
170
|
+
# Data for a Calendar event link.
|
171
|
+
#
|
172
|
+
# Note: The following fields are mutually exclusive: `calendar_event_link_data`, `drive_link_data`, `chat_space_link_data`, `meet_space_link_data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
159
173
|
class RichLinkMetadata
|
160
174
|
include ::Google::Protobuf::MessageExts
|
161
175
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -170,6 +184,12 @@ module Google
|
|
170
184
|
|
171
185
|
# A Chat space rich link type. For example, a space smart chip.
|
172
186
|
CHAT_SPACE = 2
|
187
|
+
|
188
|
+
# A Meet message rich link type. For example, a Meet chip.
|
189
|
+
MEET_SPACE = 4
|
190
|
+
|
191
|
+
# A Calendar message rich link type. For example, a Calendar chip.
|
192
|
+
CALENDAR_EVENT = 5
|
173
193
|
end
|
174
194
|
end
|
175
195
|
|
@@ -217,6 +237,67 @@ module Google
|
|
217
237
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
218
238
|
end
|
219
239
|
|
240
|
+
# Data for Meet space links.
|
241
|
+
# @!attribute [rw] meeting_code
|
242
|
+
# @return [::String]
|
243
|
+
# Meeting code of the linked Meet space.
|
244
|
+
# @!attribute [rw] type
|
245
|
+
# @return [::Google::Apps::Chat::V1::MeetSpaceLinkData::Type]
|
246
|
+
# Indicates the type of the Meet space.
|
247
|
+
# @!attribute [r] huddle_status
|
248
|
+
# @return [::Google::Apps::Chat::V1::MeetSpaceLinkData::HuddleStatus]
|
249
|
+
# Optional. Output only. If the Meet is a Huddle, indicates the status of the
|
250
|
+
# huddle. Otherwise, this is unset.
|
251
|
+
class MeetSpaceLinkData
|
252
|
+
include ::Google::Protobuf::MessageExts
|
253
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
254
|
+
|
255
|
+
# The type of the Meet space.
|
256
|
+
module Type
|
257
|
+
# Default value for the enum. Don't use.
|
258
|
+
TYPE_UNSPECIFIED = 0
|
259
|
+
|
260
|
+
# The Meet space is a meeting.
|
261
|
+
MEETING = 1
|
262
|
+
|
263
|
+
# The Meet space is a huddle.
|
264
|
+
HUDDLE = 2
|
265
|
+
end
|
266
|
+
|
267
|
+
# The status of the huddle
|
268
|
+
module HuddleStatus
|
269
|
+
# Default value for the enum. Don't use.
|
270
|
+
HUDDLE_STATUS_UNSPECIFIED = 0
|
271
|
+
|
272
|
+
# The huddle has started.
|
273
|
+
STARTED = 1
|
274
|
+
|
275
|
+
# The huddle has ended. In this case the Meet space URI and identifiers
|
276
|
+
# will no longer be valid.
|
277
|
+
ENDED = 2
|
278
|
+
|
279
|
+
# The huddle has been missed. In this case the Meet space URI and
|
280
|
+
# identifiers will no longer be valid.
|
281
|
+
MISSED = 3
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# Data for Calendar event links.
|
286
|
+
# @!attribute [rw] calendar_id
|
287
|
+
# @return [::String]
|
288
|
+
# The [Calendar
|
289
|
+
# identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars)
|
290
|
+
# of the linked Calendar.
|
291
|
+
# @!attribute [rw] event_id
|
292
|
+
# @return [::String]
|
293
|
+
# The [Event
|
294
|
+
# identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events)
|
295
|
+
# of the linked Calendar event.
|
296
|
+
class CalendarEventLinkData
|
297
|
+
include ::Google::Protobuf::MessageExts
|
298
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
299
|
+
end
|
300
|
+
|
220
301
|
# Type of the annotation.
|
221
302
|
module AnnotationType
|
222
303
|
# Default value for the enum. Don't use.
|
@@ -124,7 +124,9 @@ module Google
|
|
124
124
|
# [Card builder](https://addons.gsuite.google.com/uikit/builder)
|
125
125
|
# @!attribute [r] annotations
|
126
126
|
# @return [::Array<::Google::Apps::Chat::V1::Annotation>]
|
127
|
-
# Output only. Annotations associated with the
|
127
|
+
# Output only. Annotations can be associated with the plain-text body of the
|
128
|
+
# message or with chips that link to Google Workspace resources like Google
|
129
|
+
# Docs or Sheets with `start_index` and `length` of 0.
|
128
130
|
# @!attribute [rw] thread
|
129
131
|
# @return [::Google::Apps::Chat::V1::Thread]
|
130
132
|
# The thread the message belongs to. For example usage, see
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apps-chat-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
|
-
rubygems_version: 3.6.
|
161
|
+
rubygems_version: 3.6.9
|
162
162
|
specification_version: 4
|
163
163
|
summary: The Google Chat API lets you build Chat apps to integrate your services with
|
164
164
|
Google Chat and manage Chat resources such as spaces, members, and messages.
|