google-apps-chat-v1 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/chat/v1/space_event.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/chat/v1/event_payload_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+
12
+
13
+ descriptor_data = "\n google/chat/v1/space_event.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/chat/v1/event_payload.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xce\r\n\nSpaceEvent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nevent_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nevent_type\x18\x06 \x01(\t\x12M\n\x1amessage_created_event_data\x18\x0c \x01(\x0b\x32\'.google.chat.v1.MessageCreatedEventDataH\x00\x12M\n\x1amessage_updated_event_data\x18\r \x01(\x0b\x32\'.google.chat.v1.MessageUpdatedEventDataH\x00\x12M\n\x1amessage_deleted_event_data\x18\x0e \x01(\x0b\x32\'.google.chat.v1.MessageDeletedEventDataH\x00\x12X\n message_batch_created_event_data\x18\x1a \x01(\x0b\x32,.google.chat.v1.MessageBatchCreatedEventDataH\x00\x12X\n message_batch_updated_event_data\x18\x1b \x01(\x0b\x32,.google.chat.v1.MessageBatchUpdatedEventDataH\x00\x12X\n message_batch_deleted_event_data\x18\x1c \x01(\x0b\x32,.google.chat.v1.MessageBatchDeletedEventDataH\x00\x12I\n\x18space_updated_event_data\x18\x0f \x01(\x0b\x32%.google.chat.v1.SpaceUpdatedEventDataH\x00\x12T\n\x1espace_batch_updated_event_data\x18\x1d \x01(\x0b\x32*.google.chat.v1.SpaceBatchUpdatedEventDataH\x00\x12S\n\x1dmembership_created_event_data\x18\x11 \x01(\x0b\x32*.google.chat.v1.MembershipCreatedEventDataH\x00\x12S\n\x1dmembership_updated_event_data\x18\x12 \x01(\x0b\x32*.google.chat.v1.MembershipUpdatedEventDataH\x00\x12T\n\x1dmembership_deleted_event_data\x18\xdb\x01 \x01(\x0b\x32*.google.chat.v1.MembershipDeletedEventDataH\x00\x12^\n#membership_batch_created_event_data\x18\x1f \x01(\x0b\x32/.google.chat.v1.MembershipBatchCreatedEventDataH\x00\x12^\n#membership_batch_updated_event_data\x18 \x01(\x0b\x32/.google.chat.v1.MembershipBatchUpdatedEventDataH\x00\x12^\n#membership_batch_deleted_event_data\x18! \x01(\x0b\x32/.google.chat.v1.MembershipBatchDeletedEventDataH\x00\x12O\n\x1breaction_created_event_data\x18\x15 \x01(\x0b\x32(.google.chat.v1.ReactionCreatedEventDataH\x00\x12O\n\x1breaction_deleted_event_data\x18\x16 \x01(\x0b\x32(.google.chat.v1.ReactionDeletedEventDataH\x00\x12Z\n!reaction_batch_created_event_data\x18\" \x01(\x0b\x32-.google.chat.v1.ReactionBatchCreatedEventDataH\x00\x12Z\n!reaction_batch_deleted_event_data\x18# \x01(\x0b\x32-.google.chat.v1.ReactionBatchDeletedEventDataH\x00:M\xea\x41J\n\x1e\x63hat.googleapis.com/SpaceEvent\x12(spaces/{space}/spaceEvents/{space_event}B\t\n\x07payload\"L\n\x14GetSpaceEventRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63hat.googleapis.com/SpaceEvent\"\x8c\x01\n\x16ListSpaceEventsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63hat.googleapis.com/SpaceEvent\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12\x13\n\x06\x66ilter\x18\x08 \x01(\tB\x03\xe0\x41\x02\"d\n\x17ListSpaceEventsResponse\x12\x30\n\x0cspace_events\x18\x01 \x03(\x0b\x32\x1a.google.chat.v1.SpaceEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\x9a\x01\n\x12\x63om.google.chat.v1B\x0fSpaceEventProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.chat.v1.MessageCreatedEventData", "google/chat/v1/event_payload.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
+ end
36
+ end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
39
+ end
40
+
41
+ module Google
42
+ module Apps
43
+ module Chat
44
+ module V1
45
+ SpaceEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SpaceEvent").msgclass
46
+ GetSpaceEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.GetSpaceEventRequest").msgclass
47
+ ListSpaceEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListSpaceEventsRequest").msgclass
48
+ ListSpaceEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListSpaceEventsResponse").msgclass
49
+ end
50
+ end
51
+ end
52
+ end
@@ -290,6 +290,13 @@ module Google
290
290
  # @return [::String]
291
291
  # The fully qualified name of the method, for which the options below apply.
292
292
  # This is used to find the method to apply the options.
293
+ #
294
+ # Example:
295
+ #
296
+ # publishing:
297
+ # method_settings:
298
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
299
+ # # method settings for CreateFolder...
293
300
  # @!attribute [rw] long_running
294
301
  # @return [::Google::Api::MethodSettings::LongRunning]
295
302
  # Describes settings to use for long-running operations when generating
@@ -298,17 +305,14 @@ module Google
298
305
  #
299
306
  # Example of a YAML configuration::
300
307
  #
301
- # publishing:
302
- # method_settings:
308
+ # publishing:
309
+ # method_settings:
303
310
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
304
311
  # long_running:
305
- # initial_poll_delay:
306
- # seconds: 60 # 1 minute
312
+ # initial_poll_delay: 60s # 1 minute
307
313
  # poll_delay_multiplier: 1.5
308
- # max_poll_delay:
309
- # seconds: 360 # 6 minutes
310
- # total_poll_timeout:
311
- # seconds: 54000 # 90 minutes
314
+ # max_poll_delay: 360s # 6 minutes
315
+ # total_poll_timeout: 54000s # 90 minutes
312
316
  # @!attribute [rw] auto_populated_fields
313
317
  # @return [::Array<::String>]
314
318
  # List of top-level fields of the request message, that should be
@@ -317,8 +321,8 @@ module Google
317
321
  #
318
322
  # Example of a YAML configuration:
319
323
  #
320
- # publishing:
321
- # method_settings:
324
+ # publishing:
325
+ # method_settings:
322
326
  # - selector: google.example.v1.ExampleService.CreateExample
323
327
  # auto_populated_fields:
324
328
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
@@ -0,0 +1,225 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Apps
22
+ module Chat
23
+ module V1
24
+ # Event payload for a new membership.
25
+ #
26
+ # Event type: `google.workspace.chat.membership.v1.created`.
27
+ # @!attribute [rw] membership
28
+ # @return [::Google::Apps::Chat::V1::Membership]
29
+ # The new membership.
30
+ class MembershipCreatedEventData
31
+ include ::Google::Protobuf::MessageExts
32
+ extend ::Google::Protobuf::MessageExts::ClassMethods
33
+ end
34
+
35
+ # Event payload for a deleted membership.
36
+ #
37
+ # Event type: `google.workspace.chat.membership.v1.deleted`
38
+ # @!attribute [rw] membership
39
+ # @return [::Google::Apps::Chat::V1::Membership]
40
+ # The deleted membership. Only the `name` and `state` fields are populated.
41
+ class MembershipDeletedEventData
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+
46
+ # Event payload for an updated membership.
47
+ #
48
+ # Event type: `google.workspace.chat.membership.v1.updated`
49
+ # @!attribute [rw] membership
50
+ # @return [::Google::Apps::Chat::V1::Membership]
51
+ # The updated membership.
52
+ class MembershipUpdatedEventData
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
+ end
56
+
57
+ # Event payload for multiple new memberships.
58
+ #
59
+ # Event type: `google.workspace.chat.membership.v1.batchCreated`
60
+ # @!attribute [rw] memberships
61
+ # @return [::Array<::Google::Apps::Chat::V1::MembershipCreatedEventData>]
62
+ # A list of new memberships.
63
+ class MembershipBatchCreatedEventData
64
+ include ::Google::Protobuf::MessageExts
65
+ extend ::Google::Protobuf::MessageExts::ClassMethods
66
+ end
67
+
68
+ # Event payload for multiple updated memberships.
69
+ #
70
+ # Event type: `google.workspace.chat.membership.v1.batchUpdated`
71
+ # @!attribute [rw] memberships
72
+ # @return [::Array<::Google::Apps::Chat::V1::MembershipUpdatedEventData>]
73
+ # A list of updated memberships.
74
+ class MembershipBatchUpdatedEventData
75
+ include ::Google::Protobuf::MessageExts
76
+ extend ::Google::Protobuf::MessageExts::ClassMethods
77
+ end
78
+
79
+ # Event payload for multiple deleted memberships.
80
+ #
81
+ # Event type: `google.workspace.chat.membership.v1.batchDeleted`
82
+ # @!attribute [rw] memberships
83
+ # @return [::Array<::Google::Apps::Chat::V1::MembershipDeletedEventData>]
84
+ # A list of deleted memberships.
85
+ class MembershipBatchDeletedEventData
86
+ include ::Google::Protobuf::MessageExts
87
+ extend ::Google::Protobuf::MessageExts::ClassMethods
88
+ end
89
+
90
+ # Event payload for a new message.
91
+ #
92
+ # Event type: `google.workspace.chat.message.v1.created`
93
+ # @!attribute [rw] message
94
+ # @return [::Google::Apps::Chat::V1::Message]
95
+ # The new message.
96
+ class MessageCreatedEventData
97
+ include ::Google::Protobuf::MessageExts
98
+ extend ::Google::Protobuf::MessageExts::ClassMethods
99
+ end
100
+
101
+ # Event payload for an updated message.
102
+ #
103
+ # Event type: `google.workspace.chat.message.v1.updated`
104
+ # @!attribute [rw] message
105
+ # @return [::Google::Apps::Chat::V1::Message]
106
+ # The updated message.
107
+ class MessageUpdatedEventData
108
+ include ::Google::Protobuf::MessageExts
109
+ extend ::Google::Protobuf::MessageExts::ClassMethods
110
+ end
111
+
112
+ # Event payload for a deleted message.
113
+ #
114
+ # Event type: `google.workspace.chat.message.v1.deleted`
115
+ # @!attribute [rw] message
116
+ # @return [::Google::Apps::Chat::V1::Message]
117
+ # The deleted message. Only the `name`, `createTime`, `deleteTime`, and
118
+ # `deletionMetadata` fields are populated.
119
+ class MessageDeletedEventData
120
+ include ::Google::Protobuf::MessageExts
121
+ extend ::Google::Protobuf::MessageExts::ClassMethods
122
+ end
123
+
124
+ # Event payload for multiple new messages.
125
+ #
126
+ # Event type: `google.workspace.chat.message.v1.batchCreated`
127
+ # @!attribute [rw] messages
128
+ # @return [::Array<::Google::Apps::Chat::V1::MessageCreatedEventData>]
129
+ # A list of new messages.
130
+ class MessageBatchCreatedEventData
131
+ include ::Google::Protobuf::MessageExts
132
+ extend ::Google::Protobuf::MessageExts::ClassMethods
133
+ end
134
+
135
+ # Event payload for multiple updated messages.
136
+ #
137
+ # Event type: `google.workspace.chat.message.v1.batchUpdated`
138
+ # @!attribute [rw] messages
139
+ # @return [::Array<::Google::Apps::Chat::V1::MessageUpdatedEventData>]
140
+ # A list of updated messages.
141
+ class MessageBatchUpdatedEventData
142
+ include ::Google::Protobuf::MessageExts
143
+ extend ::Google::Protobuf::MessageExts::ClassMethods
144
+ end
145
+
146
+ # Event payload for multiple deleted messages.
147
+ #
148
+ # Event type: `google.workspace.chat.message.v1.batchDeleted`
149
+ # @!attribute [rw] messages
150
+ # @return [::Array<::Google::Apps::Chat::V1::MessageDeletedEventData>]
151
+ # A list of deleted messages.
152
+ class MessageBatchDeletedEventData
153
+ include ::Google::Protobuf::MessageExts
154
+ extend ::Google::Protobuf::MessageExts::ClassMethods
155
+ end
156
+
157
+ # Event payload for an updated space.
158
+ #
159
+ # Event type: `google.workspace.chat.space.v1.updated`
160
+ # @!attribute [rw] space
161
+ # @return [::Google::Apps::Chat::V1::Space]
162
+ # The updated space.
163
+ class SpaceUpdatedEventData
164
+ include ::Google::Protobuf::MessageExts
165
+ extend ::Google::Protobuf::MessageExts::ClassMethods
166
+ end
167
+
168
+ # Event payload for multiple updates to a space.
169
+ #
170
+ # Event type: `google.workspace.chat.space.v1.batchUpdated`
171
+ # @!attribute [rw] spaces
172
+ # @return [::Array<::Google::Apps::Chat::V1::SpaceUpdatedEventData>]
173
+ # A list of updated spaces.
174
+ class SpaceBatchUpdatedEventData
175
+ include ::Google::Protobuf::MessageExts
176
+ extend ::Google::Protobuf::MessageExts::ClassMethods
177
+ end
178
+
179
+ # Event payload for a new reaction.
180
+ #
181
+ # Event type: `google.workspace.chat.reaction.v1.created`
182
+ # @!attribute [rw] reaction
183
+ # @return [::Google::Apps::Chat::V1::Reaction]
184
+ # The new reaction.
185
+ class ReactionCreatedEventData
186
+ include ::Google::Protobuf::MessageExts
187
+ extend ::Google::Protobuf::MessageExts::ClassMethods
188
+ end
189
+
190
+ # Event payload for a deleted reaction.
191
+ #
192
+ # Type: `google.workspace.chat.reaction.v1.deleted`
193
+ # @!attribute [rw] reaction
194
+ # @return [::Google::Apps::Chat::V1::Reaction]
195
+ # The deleted reaction.
196
+ class ReactionDeletedEventData
197
+ include ::Google::Protobuf::MessageExts
198
+ extend ::Google::Protobuf::MessageExts::ClassMethods
199
+ end
200
+
201
+ # Event payload for multiple new reactions.
202
+ #
203
+ # Event type: `google.workspace.chat.reaction.v1.batchCreated`
204
+ # @!attribute [rw] reactions
205
+ # @return [::Array<::Google::Apps::Chat::V1::ReactionCreatedEventData>]
206
+ # A list of new reactions.
207
+ class ReactionBatchCreatedEventData
208
+ include ::Google::Protobuf::MessageExts
209
+ extend ::Google::Protobuf::MessageExts::ClassMethods
210
+ end
211
+
212
+ # Event payload for multiple deleted reactions.
213
+ #
214
+ # Event type: `google.workspace.chat.reaction.v1.batchDeleted`
215
+ # @!attribute [rw] reactions
216
+ # @return [::Array<::Google::Apps::Chat::V1::ReactionDeletedEventData>]
217
+ # A list of deleted reactions.
218
+ class ReactionBatchDeletedEventData
219
+ include ::Google::Protobuf::MessageExts
220
+ extend ::Google::Protobuf::MessageExts::ClassMethods
221
+ end
222
+ end
223
+ end
224
+ end
225
+ end
@@ -0,0 +1,285 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Apps
22
+ module Chat
23
+ module V1
24
+ # An event that represents a change or activity in a Google Chat space. To
25
+ # learn more, see [Work with events from Google
26
+ # Chat](https://developers.google.com/workspace/chat/events-overview).
27
+ # @!attribute [rw] name
28
+ # @return [::String]
29
+ # Resource name of the space event.
30
+ #
31
+ # Format: `spaces/{space}/spaceEvents/{spaceEvent}`
32
+ # @!attribute [rw] event_time
33
+ # @return [::Google::Protobuf::Timestamp]
34
+ # Time when the event occurred.
35
+ # @!attribute [rw] event_type
36
+ # @return [::String]
37
+ # Type of space event. Each event type has a batch version, which
38
+ # represents multiple instances of the event type that occur in a short
39
+ # period of time. For `spaceEvents.list()` requests, omit batch event types
40
+ # in your query filter. By default, the server returns both event type and
41
+ # its batch version.
42
+ #
43
+ # Supported event types for
44
+ # [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages):
45
+ #
46
+ # * New message: `google.workspace.chat.message.v1.created`
47
+ # * Updated message: `google.workspace.chat.message.v1.updated`
48
+ # * Deleted message: `google.workspace.chat.message.v1.deleted`
49
+ # * Multiple new messages: `google.workspace.chat.message.v1.batchCreated`
50
+ # * Multiple updated messages:
51
+ # `google.workspace.chat.message.v1.batchUpdated`
52
+ # * Multiple deleted messages:
53
+ # `google.workspace.chat.message.v1.batchDeleted`
54
+ #
55
+ # Supported event types for
56
+ # [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members):
57
+ #
58
+ # * New membership: `google.workspace.chat.membership.v1.created`
59
+ # * Updated membership: `google.workspace.chat.membership.v1.updated`
60
+ # * Deleted membership: `google.workspace.chat.membership.v1.deleted`
61
+ # * Multiple new memberships:
62
+ # `google.workspace.chat.membership.v1.batchCreated`
63
+ # * Multiple updated memberships:
64
+ # `google.workspace.chat.membership.v1.batchUpdated`
65
+ # * Multiple deleted memberships:
66
+ # `google.workspace.chat.membership.v1.batchDeleted`
67
+ #
68
+ # Supported event types for
69
+ # [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions):
70
+ #
71
+ # * New reaction: `google.workspace.chat.reaction.v1.created`
72
+ # * Deleted reaction: `google.workspace.chat.reaction.v1.deleted`
73
+ # * Multiple new reactions:
74
+ # `google.workspace.chat.reaction.v1.batchCreated`
75
+ # * Multiple deleted reactions:
76
+ # `google.workspace.chat.reaction.v1.batchDeleted`
77
+ #
78
+ # Supported event types about the
79
+ # [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces):
80
+ #
81
+ # * Updated space: `google.workspace.chat.space.v1.updated`
82
+ # * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`
83
+ # @!attribute [rw] message_created_event_data
84
+ # @return [::Google::Apps::Chat::V1::MessageCreatedEventData]
85
+ # Event payload for a new message.
86
+ #
87
+ # Event type: `google.workspace.chat.message.v1.created`
88
+ # @!attribute [rw] message_updated_event_data
89
+ # @return [::Google::Apps::Chat::V1::MessageUpdatedEventData]
90
+ # Event payload for an updated message.
91
+ #
92
+ # Event type: `google.workspace.chat.message.v1.updated`
93
+ # @!attribute [rw] message_deleted_event_data
94
+ # @return [::Google::Apps::Chat::V1::MessageDeletedEventData]
95
+ # Event payload for a deleted message.
96
+ #
97
+ # Event type: `google.workspace.chat.message.v1.deleted`
98
+ # @!attribute [rw] message_batch_created_event_data
99
+ # @return [::Google::Apps::Chat::V1::MessageBatchCreatedEventData]
100
+ # Event payload for multiple new messages.
101
+ #
102
+ # Event type: `google.workspace.chat.message.v1.batchCreated`
103
+ # @!attribute [rw] message_batch_updated_event_data
104
+ # @return [::Google::Apps::Chat::V1::MessageBatchUpdatedEventData]
105
+ # Event payload for multiple updated messages.
106
+ #
107
+ # Event type: `google.workspace.chat.message.v1.batchUpdated`
108
+ # @!attribute [rw] message_batch_deleted_event_data
109
+ # @return [::Google::Apps::Chat::V1::MessageBatchDeletedEventData]
110
+ # Event payload for multiple deleted messages.
111
+ #
112
+ # Event type: `google.workspace.chat.message.v1.batchDeleted`
113
+ # @!attribute [rw] space_updated_event_data
114
+ # @return [::Google::Apps::Chat::V1::SpaceUpdatedEventData]
115
+ # Event payload for a space update.
116
+ #
117
+ # Event type: `google.workspace.chat.space.v1.updated`
118
+ # @!attribute [rw] space_batch_updated_event_data
119
+ # @return [::Google::Apps::Chat::V1::SpaceBatchUpdatedEventData]
120
+ # Event payload for multiple updates to a space.
121
+ #
122
+ # Event type: `google.workspace.chat.space.v1.batchUpdated`
123
+ # @!attribute [rw] membership_created_event_data
124
+ # @return [::Google::Apps::Chat::V1::MembershipCreatedEventData]
125
+ # Event payload for a new membership.
126
+ #
127
+ # Event type: `google.workspace.chat.membership.v1.created`
128
+ # @!attribute [rw] membership_updated_event_data
129
+ # @return [::Google::Apps::Chat::V1::MembershipUpdatedEventData]
130
+ # Event payload for an updated membership.
131
+ #
132
+ # Event type: `google.workspace.chat.membership.v1.updated`
133
+ # @!attribute [rw] membership_deleted_event_data
134
+ # @return [::Google::Apps::Chat::V1::MembershipDeletedEventData]
135
+ # Event payload for a deleted membership.
136
+ #
137
+ # Event type: `google.workspace.chat.membership.v1.deleted`
138
+ # @!attribute [rw] membership_batch_created_event_data
139
+ # @return [::Google::Apps::Chat::V1::MembershipBatchCreatedEventData]
140
+ # Event payload for multiple new memberships.
141
+ #
142
+ # Event type: `google.workspace.chat.membership.v1.batchCreated`
143
+ # @!attribute [rw] membership_batch_updated_event_data
144
+ # @return [::Google::Apps::Chat::V1::MembershipBatchUpdatedEventData]
145
+ # Event payload for multiple updated memberships.
146
+ #
147
+ # Event type: `google.workspace.chat.membership.v1.batchUpdated`
148
+ # @!attribute [rw] membership_batch_deleted_event_data
149
+ # @return [::Google::Apps::Chat::V1::MembershipBatchDeletedEventData]
150
+ # Event payload for multiple deleted memberships.
151
+ #
152
+ # Event type: `google.workspace.chat.membership.v1.batchDeleted`
153
+ # @!attribute [rw] reaction_created_event_data
154
+ # @return [::Google::Apps::Chat::V1::ReactionCreatedEventData]
155
+ # Event payload for a new reaction.
156
+ #
157
+ # Event type: `google.workspace.chat.reaction.v1.created`
158
+ # @!attribute [rw] reaction_deleted_event_data
159
+ # @return [::Google::Apps::Chat::V1::ReactionDeletedEventData]
160
+ # Event payload for a deleted reaction.
161
+ #
162
+ # Event type: `google.workspace.chat.reaction.v1.deleted`
163
+ # @!attribute [rw] reaction_batch_created_event_data
164
+ # @return [::Google::Apps::Chat::V1::ReactionBatchCreatedEventData]
165
+ # Event payload for multiple new reactions.
166
+ #
167
+ # Event type: `google.workspace.chat.reaction.v1.batchCreated`
168
+ # @!attribute [rw] reaction_batch_deleted_event_data
169
+ # @return [::Google::Apps::Chat::V1::ReactionBatchDeletedEventData]
170
+ # Event payload for multiple deleted reactions.
171
+ #
172
+ # Event type: `google.workspace.chat.reaction.v1.batchDeleted`
173
+ class SpaceEvent
174
+ include ::Google::Protobuf::MessageExts
175
+ extend ::Google::Protobuf::MessageExts::ClassMethods
176
+ end
177
+
178
+ # Request message for getting a space event.
179
+ # @!attribute [rw] name
180
+ # @return [::String]
181
+ # Required. The resource name of the space event.
182
+ #
183
+ # Format: `spaces/{space}/spaceEvents/{spaceEvent}`
184
+ class GetSpaceEventRequest
185
+ include ::Google::Protobuf::MessageExts
186
+ extend ::Google::Protobuf::MessageExts::ClassMethods
187
+ end
188
+
189
+ # Request message for listing space events.
190
+ # @!attribute [rw] parent
191
+ # @return [::String]
192
+ # Required. Resource name of the [Google Chat
193
+ # space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
194
+ # where the events occurred.
195
+ #
196
+ # Format: `spaces/{space}`.
197
+ # @!attribute [rw] page_size
198
+ # @return [::Integer]
199
+ # Optional. The maximum number of space events returned. The service might
200
+ # return fewer than this value.
201
+ #
202
+ # Negative values return an `INVALID_ARGUMENT` error.
203
+ # @!attribute [rw] page_token
204
+ # @return [::String]
205
+ # A page token, received from a previous list space events call. Provide this
206
+ # to retrieve the subsequent page.
207
+ #
208
+ # When paginating, all other parameters provided to list space events must
209
+ # match the call that provided the page token. Passing different values to
210
+ # the other parameters might lead to unexpected results.
211
+ # @!attribute [rw] filter
212
+ # @return [::String]
213
+ # Required. A query filter.
214
+ #
215
+ # You must specify at least one event type (`event_type`)
216
+ # using the has `:` operator. To filter by multiple event types, use the `OR`
217
+ # operator. Omit batch event types in your filter. The request automatically
218
+ # returns any related batch events. For example, if you filter by new
219
+ # reactions
220
+ # (`google.workspace.chat.reaction.v1.created`), the server also returns
221
+ # batch new reactions events
222
+ # (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
223
+ # event types, see the [`SpaceEvents` reference
224
+ # documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
225
+ #
226
+ # Optionally, you can also filter by start time (`start_time`) and
227
+ # end time (`end_time`):
228
+ #
229
+ # * `start_time`: Exclusive timestamp from which to start listing space
230
+ # events.
231
+ # You can list events that occurred up to 28 days ago. If unspecified, lists
232
+ # space events from the past 28 days.
233
+ # * `end_time`: Inclusive timestamp until which space events are listed.
234
+ # If unspecified, lists events up to the time of the request.
235
+ #
236
+ # To specify a start or end time, use the equals `=` operator and format in
237
+ # [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
238
+ # `start_time` and `end_time`, use the `AND` operator.
239
+ #
240
+ # For example, the following queries are valid:
241
+ #
242
+ # ```
243
+ # start_time="2023-08-23T19:20:33+00:00" AND
244
+ # end_time="2023-08-23T19:21:54+00:00"
245
+ # ```
246
+ # ```
247
+ # start_time="2023-08-23T19:20:33+00:00" AND
248
+ # (event_types:"google.workspace.chat.space.v1.updated" OR
249
+ # event_types:"google.workspace.chat.message.v1.created")
250
+ # ```
251
+ #
252
+ # The following queries are invalid:
253
+ #
254
+ # ```
255
+ # start_time="2023-08-23T19:20:33+00:00" OR
256
+ # end_time="2023-08-23T19:21:54+00:00"
257
+ # ```
258
+ # ```
259
+ # event_types:"google.workspace.chat.space.v1.updated" AND
260
+ # event_types:"google.workspace.chat.message.v1.created"
261
+ # ```
262
+ #
263
+ # Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
264
+ # error.
265
+ class ListSpaceEventsRequest
266
+ include ::Google::Protobuf::MessageExts
267
+ extend ::Google::Protobuf::MessageExts::ClassMethods
268
+ end
269
+
270
+ # Response message for listing space events.
271
+ # @!attribute [rw] space_events
272
+ # @return [::Array<::Google::Apps::Chat::V1::SpaceEvent>]
273
+ # Results are returned in chronological order (oldest event first).
274
+ # @!attribute [rw] next_page_token
275
+ # @return [::String]
276
+ # Continuation token used to fetch more events.
277
+ # If this field is omitted, there are no subsequent pages.
278
+ class ListSpaceEventsResponse
279
+ include ::Google::Protobuf::MessageExts
280
+ extend ::Google::Protobuf::MessageExts::ClassMethods
281
+ end
282
+ end
283
+ end
284
+ end
285
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apps-chat-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -96,6 +96,7 @@ files:
96
96
  - lib/google/chat/v1/chat_service_services_pb.rb
97
97
  - lib/google/chat/v1/contextual_addon_pb.rb
98
98
  - lib/google/chat/v1/deletion_metadata_pb.rb
99
+ - lib/google/chat/v1/event_payload_pb.rb
99
100
  - lib/google/chat/v1/group_pb.rb
100
101
  - lib/google/chat/v1/history_state_pb.rb
101
102
  - lib/google/chat/v1/matched_url_pb.rb
@@ -103,6 +104,7 @@ files:
103
104
  - lib/google/chat/v1/message_pb.rb
104
105
  - lib/google/chat/v1/reaction_pb.rb
105
106
  - lib/google/chat/v1/slash_command_pb.rb
107
+ - lib/google/chat/v1/space_event_pb.rb
106
108
  - lib/google/chat/v1/space_pb.rb
107
109
  - lib/google/chat/v1/space_read_state_pb.rb
108
110
  - lib/google/chat/v1/space_setup_pb.rb
@@ -120,6 +122,7 @@ files:
120
122
  - proto_docs/google/chat/v1/attachment.rb
121
123
  - proto_docs/google/chat/v1/contextual_addon.rb
122
124
  - proto_docs/google/chat/v1/deletion_metadata.rb
125
+ - proto_docs/google/chat/v1/event_payload.rb
123
126
  - proto_docs/google/chat/v1/group.rb
124
127
  - proto_docs/google/chat/v1/history_state.rb
125
128
  - proto_docs/google/chat/v1/matched_url.rb
@@ -128,6 +131,7 @@ files:
128
131
  - proto_docs/google/chat/v1/reaction.rb
129
132
  - proto_docs/google/chat/v1/slash_command.rb
130
133
  - proto_docs/google/chat/v1/space.rb
134
+ - proto_docs/google/chat/v1/space_event.rb
131
135
  - proto_docs/google/chat/v1/space_read_state.rb
132
136
  - proto_docs/google/chat/v1/space_setup.rb
133
137
  - proto_docs/google/chat/v1/thread_read_state.rb