google-apps-chat-v1 0.a → 0.1.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 +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/apps/chat/v1/chat_service/client.rb +3663 -0
- data/lib/google/apps/chat/v1/chat_service/credentials.rb +63 -0
- data/lib/google/apps/chat/v1/chat_service/paths.rb +191 -0
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +3487 -0
- data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +1614 -0
- data/lib/google/apps/chat/v1/chat_service/rest.rb +53 -0
- data/lib/google/apps/chat/v1/chat_service.rb +56 -0
- data/lib/google/apps/chat/v1/rest.rb +37 -0
- data/lib/google/apps/chat/v1/version.rb +7 -2
- data/lib/google/apps/chat/v1.rb +45 -0
- data/lib/google/chat/v1/action_status_pb.rb +44 -0
- data/lib/google/chat/v1/annotation_pb.rb +55 -0
- data/lib/google/chat/v1/attachment_pb.rb +51 -0
- data/lib/google/chat/v1/chat_service_pb.rb +53 -0
- data/lib/google/chat/v1/chat_service_services_pb.rb +359 -0
- data/lib/google/chat/v1/contextual_addon_pb.rb +50 -0
- data/lib/google/chat/v1/deletion_metadata_pb.rb +43 -0
- data/lib/google/chat/v1/group_pb.rb +42 -0
- data/lib/google/chat/v1/history_state_pb.rb +42 -0
- data/lib/google/chat/v1/matched_url_pb.rb +44 -0
- data/lib/google/chat/v1/membership_pb.rb +61 -0
- data/lib/google/chat/v1/message_pb.rb +89 -0
- data/lib/google/chat/v1/reaction_pb.rb +54 -0
- data/lib/google/chat/v1/slash_command_pb.rb +42 -0
- data/lib/google/chat/v1/space_pb.rb +63 -0
- data/lib/google/chat/v1/space_read_state_pb.rb +51 -0
- data/lib/google/chat/v1/space_setup_pb.rb +48 -0
- data/lib/google/chat/v1/thread_read_state_pb.rb +48 -0
- data/lib/google/chat/v1/user_pb.rb +46 -0
- data/lib/google/chat/v1/widgets_pb.rb +53 -0
- data/lib/google-apps-chat-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/apps/card/v1/card.rb +2076 -0
- data/proto_docs/google/chat/v1/action_status.rb +40 -0
- data/proto_docs/google/chat/v1/annotation.rb +186 -0
- data/proto_docs/google/chat/v1/attachment.rb +131 -0
- data/proto_docs/google/chat/v1/contextual_addon.rb +120 -0
- data/proto_docs/google/chat/v1/deletion_metadata.rb +60 -0
- data/proto_docs/google/chat/v1/group.rb +41 -0
- data/proto_docs/google/chat/v1/history_state.rb +42 -0
- data/proto_docs/google/chat/v1/matched_url.rb +37 -0
- data/proto_docs/google/chat/v1/membership.rb +294 -0
- data/proto_docs/google/chat/v1/message.rb +657 -0
- data/proto_docs/google/chat/v1/reaction.rb +185 -0
- data/proto_docs/google/chat/v1/slash_command.rb +37 -0
- data/proto_docs/google/chat/v1/space.rb +382 -0
- data/proto_docs/google/chat/v1/space_read_state.rb +104 -0
- data/proto_docs/google/chat/v1/space_setup.rb +92 -0
- data/proto_docs/google/chat/v1/thread_read_state.rb +66 -0
- data/proto_docs/google/chat/v1/user.rb +84 -0
- data/proto_docs/google/chat/v1/widgets.rb +293 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/code.rb +185 -0
- data/proto_docs/google/type/color.rb +173 -0
- metadata +128 -10
@@ -0,0 +1,40 @@
|
|
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
|
+
# Represents the status for a request to either invoke or submit a
|
25
|
+
# [dialog](https://developers.google.com/workspace/chat/dialogs).
|
26
|
+
# @!attribute [rw] status_code
|
27
|
+
# @return [::Google::Rpc::Code]
|
28
|
+
# The status code.
|
29
|
+
# @!attribute [rw] user_facing_message
|
30
|
+
# @return [::String]
|
31
|
+
# The message to send users about the status of their request.
|
32
|
+
# If unset, a generic message based on the `status_code` is sent.
|
33
|
+
class ActionStatus
|
34
|
+
include ::Google::Protobuf::MessageExts
|
35
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,186 @@
|
|
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
|
+
# Output only. Annotations associated with the plain-text body of the message.
|
25
|
+
# To add basic formatting to a text message, see
|
26
|
+
# [Format text
|
27
|
+
# messages](https://developers.google.com/workspace/chat/format-messages).
|
28
|
+
#
|
29
|
+
# Example plain-text message body:
|
30
|
+
# ```
|
31
|
+
# Hello @FooBot how are you!"
|
32
|
+
# ```
|
33
|
+
#
|
34
|
+
# The corresponding annotations metadata:
|
35
|
+
# ```
|
36
|
+
# "annotations":[{
|
37
|
+
# "type":"USER_MENTION",
|
38
|
+
# "startIndex":6,
|
39
|
+
# "length":7,
|
40
|
+
# "userMention": {
|
41
|
+
# "user": {
|
42
|
+
# "name":"users/\\{user}",
|
43
|
+
# "displayName":"FooBot",
|
44
|
+
# "avatarUrl":"https://goo.gl/aeDtrS",
|
45
|
+
# "type":"BOT"
|
46
|
+
# },
|
47
|
+
# "type":"MENTION"
|
48
|
+
# }
|
49
|
+
# }]
|
50
|
+
# ```
|
51
|
+
# @!attribute [rw] type
|
52
|
+
# @return [::Google::Apps::Chat::V1::AnnotationType]
|
53
|
+
# The type of this annotation.
|
54
|
+
# @!attribute [rw] start_index
|
55
|
+
# @return [::Integer]
|
56
|
+
# Start index (0-based, inclusive) in the plain-text message body this
|
57
|
+
# annotation corresponds to.
|
58
|
+
# @!attribute [rw] length
|
59
|
+
# @return [::Integer]
|
60
|
+
# Length of the substring in the plain-text message body this annotation
|
61
|
+
# corresponds to.
|
62
|
+
# @!attribute [rw] user_mention
|
63
|
+
# @return [::Google::Apps::Chat::V1::UserMentionMetadata]
|
64
|
+
# The metadata of user mention.
|
65
|
+
# @!attribute [rw] slash_command
|
66
|
+
# @return [::Google::Apps::Chat::V1::SlashCommandMetadata]
|
67
|
+
# The metadata for a slash command.
|
68
|
+
# @!attribute [rw] rich_link_metadata
|
69
|
+
# @return [::Google::Apps::Chat::V1::RichLinkMetadata]
|
70
|
+
# The metadata for a rich link.
|
71
|
+
class Annotation
|
72
|
+
include ::Google::Protobuf::MessageExts
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
74
|
+
end
|
75
|
+
|
76
|
+
# Annotation metadata for user mentions (@).
|
77
|
+
# @!attribute [rw] user
|
78
|
+
# @return [::Google::Apps::Chat::V1::User]
|
79
|
+
# The user mentioned.
|
80
|
+
# @!attribute [rw] type
|
81
|
+
# @return [::Google::Apps::Chat::V1::UserMentionMetadata::Type]
|
82
|
+
# The type of user mention.
|
83
|
+
class UserMentionMetadata
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
|
87
|
+
module Type
|
88
|
+
# Default value for the enum. Don't use.
|
89
|
+
TYPE_UNSPECIFIED = 0
|
90
|
+
|
91
|
+
# Add user to space.
|
92
|
+
ADD = 1
|
93
|
+
|
94
|
+
# Mention user in space.
|
95
|
+
MENTION = 2
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# Annotation metadata for slash commands (/).
|
100
|
+
# @!attribute [rw] bot
|
101
|
+
# @return [::Google::Apps::Chat::V1::User]
|
102
|
+
# The Chat app whose command was invoked.
|
103
|
+
# @!attribute [rw] type
|
104
|
+
# @return [::Google::Apps::Chat::V1::SlashCommandMetadata::Type]
|
105
|
+
# The type of slash command.
|
106
|
+
# @!attribute [rw] command_name
|
107
|
+
# @return [::String]
|
108
|
+
# The name of the invoked slash command.
|
109
|
+
# @!attribute [rw] command_id
|
110
|
+
# @return [::Integer]
|
111
|
+
# The command ID of the invoked slash command.
|
112
|
+
# @!attribute [rw] triggers_dialog
|
113
|
+
# @return [::Boolean]
|
114
|
+
# Indicates whether the slash command is for a dialog.
|
115
|
+
class SlashCommandMetadata
|
116
|
+
include ::Google::Protobuf::MessageExts
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
118
|
+
|
119
|
+
module Type
|
120
|
+
# Default value for the enum. Don't use.
|
121
|
+
TYPE_UNSPECIFIED = 0
|
122
|
+
|
123
|
+
# Add Chat app to space.
|
124
|
+
ADD = 1
|
125
|
+
|
126
|
+
# Invoke slash command in space.
|
127
|
+
INVOKE = 2
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# A rich link to a resource.
|
132
|
+
# @!attribute [rw] uri
|
133
|
+
# @return [::String]
|
134
|
+
# The URI of this link.
|
135
|
+
# @!attribute [rw] rich_link_type
|
136
|
+
# @return [::Google::Apps::Chat::V1::RichLinkMetadata::RichLinkType]
|
137
|
+
# The rich link type.
|
138
|
+
# @!attribute [rw] drive_link_data
|
139
|
+
# @return [::Google::Apps::Chat::V1::DriveLinkData]
|
140
|
+
# Data for a drive link.
|
141
|
+
class RichLinkMetadata
|
142
|
+
include ::Google::Protobuf::MessageExts
|
143
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
144
|
+
|
145
|
+
# The rich link type. More types might be added in the future.
|
146
|
+
module RichLinkType
|
147
|
+
# Default value for the enum. Don't use.
|
148
|
+
RICH_LINK_TYPE_UNSPECIFIED = 0
|
149
|
+
|
150
|
+
# A Google Drive rich link type.
|
151
|
+
DRIVE_FILE = 1
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
# Data for Google Drive links.
|
156
|
+
# @!attribute [rw] drive_data_ref
|
157
|
+
# @return [::Google::Apps::Chat::V1::DriveDataRef]
|
158
|
+
# A
|
159
|
+
# [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref)
|
160
|
+
# which references a Google Drive file.
|
161
|
+
# @!attribute [rw] mime_type
|
162
|
+
# @return [::String]
|
163
|
+
# The mime type of the linked Google Drive resource.
|
164
|
+
class DriveLinkData
|
165
|
+
include ::Google::Protobuf::MessageExts
|
166
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
167
|
+
end
|
168
|
+
|
169
|
+
# Type of the annotation.
|
170
|
+
module AnnotationType
|
171
|
+
# Default value for the enum. Don't use.
|
172
|
+
ANNOTATION_TYPE_UNSPECIFIED = 0
|
173
|
+
|
174
|
+
# A user is mentioned.
|
175
|
+
USER_MENTION = 1
|
176
|
+
|
177
|
+
# A slash command is invoked.
|
178
|
+
SLASH_COMMAND = 2
|
179
|
+
|
180
|
+
# A rich link annotation.
|
181
|
+
RICH_LINK = 3
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
@@ -0,0 +1,131 @@
|
|
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 attachment in Google Chat.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Resource name of the attachment, in the form
|
28
|
+
# `spaces/*/messages/*/attachments/*`.
|
29
|
+
# @!attribute [r] content_name
|
30
|
+
# @return [::String]
|
31
|
+
# Output only. The original file name for the content, not the full path.
|
32
|
+
# @!attribute [r] content_type
|
33
|
+
# @return [::String]
|
34
|
+
# Output only. The content type (MIME type) of the file.
|
35
|
+
# @!attribute [rw] attachment_data_ref
|
36
|
+
# @return [::Google::Apps::Chat::V1::AttachmentDataRef]
|
37
|
+
# A reference to the attachment data. This field is used with the media API
|
38
|
+
# to download the attachment data.
|
39
|
+
# @!attribute [r] drive_data_ref
|
40
|
+
# @return [::Google::Apps::Chat::V1::DriveDataRef]
|
41
|
+
# Output only. A reference to the Google Drive attachment. This field is
|
42
|
+
# used with the Google Drive API.
|
43
|
+
# @!attribute [r] thumbnail_uri
|
44
|
+
# @return [::String]
|
45
|
+
# Output only. The thumbnail URL which should be used to preview the
|
46
|
+
# attachment to a human user. Chat apps shouldn't use this URL to download
|
47
|
+
# attachment content.
|
48
|
+
# @!attribute [r] download_uri
|
49
|
+
# @return [::String]
|
50
|
+
# Output only. The download URL which should be used to allow a human user to
|
51
|
+
# download the attachment. Chat apps shouldn't use this URL to download
|
52
|
+
# attachment content.
|
53
|
+
# @!attribute [r] source
|
54
|
+
# @return [::Google::Apps::Chat::V1::Attachment::Source]
|
55
|
+
# Output only. The source of the attachment.
|
56
|
+
class Attachment
|
57
|
+
include ::Google::Protobuf::MessageExts
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
59
|
+
|
60
|
+
# The source of the attachment.
|
61
|
+
module Source
|
62
|
+
# Reserved.
|
63
|
+
SOURCE_UNSPECIFIED = 0
|
64
|
+
|
65
|
+
# The file is a Google Drive file.
|
66
|
+
DRIVE_FILE = 1
|
67
|
+
|
68
|
+
# The file is uploaded to Chat.
|
69
|
+
UPLOADED_CONTENT = 2
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# A reference to the data of a drive attachment.
|
74
|
+
# @!attribute [rw] drive_file_id
|
75
|
+
# @return [::String]
|
76
|
+
# The ID for the drive file. Use with the Drive API.
|
77
|
+
class DriveDataRef
|
78
|
+
include ::Google::Protobuf::MessageExts
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
80
|
+
end
|
81
|
+
|
82
|
+
# A reference to the attachment data.
|
83
|
+
# @!attribute [rw] resource_name
|
84
|
+
# @return [::String]
|
85
|
+
# The resource name of the attachment data. This field is used with the media
|
86
|
+
# API to download the attachment data.
|
87
|
+
# @!attribute [rw] attachment_upload_token
|
88
|
+
# @return [::String]
|
89
|
+
# Opaque token containing a reference to an uploaded attachment. Treated by
|
90
|
+
# clients as an opaque string and used to create or update Chat messages with
|
91
|
+
# attachments.
|
92
|
+
class AttachmentDataRef
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
end
|
96
|
+
|
97
|
+
# Request to get an attachment.
|
98
|
+
# @!attribute [rw] name
|
99
|
+
# @return [::String]
|
100
|
+
# Required. Resource name of the attachment, in the form
|
101
|
+
# `spaces/*/messages/*/attachments/*`.
|
102
|
+
class GetAttachmentRequest
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
end
|
106
|
+
|
107
|
+
# Request to upload an attachment.
|
108
|
+
# @!attribute [rw] parent
|
109
|
+
# @return [::String]
|
110
|
+
# Required. Resource name of the Chat space in which the attachment is
|
111
|
+
# uploaded. Format "spaces/\\{space}".
|
112
|
+
# @!attribute [rw] filename
|
113
|
+
# @return [::String]
|
114
|
+
# Required. The filename of the attachment, including the file extension.
|
115
|
+
class UploadAttachmentRequest
|
116
|
+
include ::Google::Protobuf::MessageExts
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
118
|
+
end
|
119
|
+
|
120
|
+
# Response of uploading an attachment.
|
121
|
+
# @!attribute [rw] attachment_data_ref
|
122
|
+
# @return [::Google::Apps::Chat::V1::AttachmentDataRef]
|
123
|
+
# Reference to the uploaded attachment.
|
124
|
+
class UploadAttachmentResponse
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
@@ -0,0 +1,120 @@
|
|
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
|
+
# The markup for developers to specify the contents of a contextual AddOn.
|
25
|
+
class ContextualAddOnMarkup
|
26
|
+
include ::Google::Protobuf::MessageExts
|
27
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
28
|
+
|
29
|
+
# A card is a UI element that can contain UI widgets such as text and
|
30
|
+
# images.
|
31
|
+
# @!attribute [rw] header
|
32
|
+
# @return [::Google::Apps::Chat::V1::ContextualAddOnMarkup::Card::CardHeader]
|
33
|
+
# The header of the card. A header usually contains a title and an image.
|
34
|
+
# @!attribute [rw] sections
|
35
|
+
# @return [::Array<::Google::Apps::Chat::V1::ContextualAddOnMarkup::Card::Section>]
|
36
|
+
# Sections are separated by a line divider.
|
37
|
+
# @!attribute [rw] card_actions
|
38
|
+
# @return [::Array<::Google::Apps::Chat::V1::ContextualAddOnMarkup::Card::CardAction>]
|
39
|
+
# The actions of this card.
|
40
|
+
# @!attribute [rw] name
|
41
|
+
# @return [::String]
|
42
|
+
# Name of the card.
|
43
|
+
class Card
|
44
|
+
include ::Google::Protobuf::MessageExts
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
46
|
+
|
47
|
+
# @!attribute [rw] title
|
48
|
+
# @return [::String]
|
49
|
+
# The title must be specified. The header has a fixed height: if both a
|
50
|
+
# title and subtitle is specified, each takes up one line. If only the
|
51
|
+
# title is specified, it takes up both lines.
|
52
|
+
# @!attribute [rw] subtitle
|
53
|
+
# @return [::String]
|
54
|
+
# The subtitle of the card header.
|
55
|
+
# @!attribute [rw] image_style
|
56
|
+
# @return [::Google::Apps::Chat::V1::ContextualAddOnMarkup::Card::CardHeader::ImageStyle]
|
57
|
+
# The image's type (for example, square border or circular border).
|
58
|
+
# @!attribute [rw] image_url
|
59
|
+
# @return [::String]
|
60
|
+
# The URL of the image in the card header.
|
61
|
+
class CardHeader
|
62
|
+
include ::Google::Protobuf::MessageExts
|
63
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
64
|
+
|
65
|
+
module ImageStyle
|
66
|
+
IMAGE_STYLE_UNSPECIFIED = 0
|
67
|
+
|
68
|
+
# Square border.
|
69
|
+
IMAGE = 1
|
70
|
+
|
71
|
+
# Circular border.
|
72
|
+
AVATAR = 2
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# A section contains a collection of widgets that are rendered
|
77
|
+
# (vertically) in the order that they are specified. Across all platforms,
|
78
|
+
# cards have a narrow fixed width, so
|
79
|
+
# there's currently no need for layout properties (for example, float).
|
80
|
+
# @!attribute [rw] header
|
81
|
+
# @return [::String]
|
82
|
+
# The header of the section. Formatted text is
|
83
|
+
# supported. For more information
|
84
|
+
# about formatting text, see
|
85
|
+
# [Formatting text in Google Chat
|
86
|
+
# apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
|
87
|
+
# and
|
88
|
+
# [Formatting
|
89
|
+
# text in Google Workspace
|
90
|
+
# Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
|
91
|
+
# @!attribute [rw] widgets
|
92
|
+
# @return [::Array<::Google::Apps::Chat::V1::WidgetMarkup>]
|
93
|
+
# A section must contain at least one widget.
|
94
|
+
class Section
|
95
|
+
include ::Google::Protobuf::MessageExts
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
|
+
end
|
98
|
+
|
99
|
+
# A card action is
|
100
|
+
# the action associated with the card. For an invoice card, a
|
101
|
+
# typical action would be: delete invoice, email invoice or open the
|
102
|
+
# invoice in browser.
|
103
|
+
#
|
104
|
+
# Not supported by Google Chat apps.
|
105
|
+
# @!attribute [rw] action_label
|
106
|
+
# @return [::String]
|
107
|
+
# The label used to be displayed in the action menu item.
|
108
|
+
# @!attribute [rw] on_click
|
109
|
+
# @return [::Google::Apps::Chat::V1::WidgetMarkup::OnClick]
|
110
|
+
# The onclick action for this action item.
|
111
|
+
class CardAction
|
112
|
+
include ::Google::Protobuf::MessageExts
|
113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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
|
+
# Information about a deleted message. A message is deleted when `delete_time`
|
25
|
+
# is set.
|
26
|
+
# @!attribute [rw] deletion_type
|
27
|
+
# @return [::Google::Apps::Chat::V1::DeletionMetadata::DeletionType]
|
28
|
+
# Indicates who deleted the message.
|
29
|
+
class DeletionMetadata
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
|
33
|
+
# Who deleted the message and how it was deleted.
|
34
|
+
module DeletionType
|
35
|
+
# This value is unused.
|
36
|
+
DELETION_TYPE_UNSPECIFIED = 0
|
37
|
+
|
38
|
+
# User deleted their own message.
|
39
|
+
CREATOR = 1
|
40
|
+
|
41
|
+
# The space owner deleted the message.
|
42
|
+
SPACE_OWNER = 2
|
43
|
+
|
44
|
+
# A Google Workspace admin deleted the message.
|
45
|
+
ADMIN = 3
|
46
|
+
|
47
|
+
# A Chat app deleted its own message when it expired.
|
48
|
+
APP_MESSAGE_EXPIRY = 4
|
49
|
+
|
50
|
+
# A Chat app deleted the message on behalf of the user.
|
51
|
+
CREATOR_VIA_APP = 5
|
52
|
+
|
53
|
+
# A Chat app deleted the message on behalf of the space owner.
|
54
|
+
SPACE_OWNER_VIA_APP = 6
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,41 @@
|
|
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
|
+
# A Google Group in Google Chat.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Resource name for a Google Group.
|
28
|
+
#
|
29
|
+
# Represents a
|
30
|
+
# [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in
|
31
|
+
# Cloud Identity Groups API.
|
32
|
+
#
|
33
|
+
# Format: groups/\\{group}
|
34
|
+
class Group
|
35
|
+
include ::Google::Protobuf::MessageExts
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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
|
+
# The history state for messages and spaces. Specifies how long messages and
|
25
|
+
# conversation threads are kept after creation.
|
26
|
+
module HistoryState
|
27
|
+
# Default value. Do not use.
|
28
|
+
HISTORY_STATE_UNSPECIFIED = 0
|
29
|
+
|
30
|
+
# History off. [Messages and threads are kept for 24
|
31
|
+
# hours](https://support.google.com/chat/answer/7664687).
|
32
|
+
HISTORY_OFF = 1
|
33
|
+
|
34
|
+
# History on. The organization's [Vault retention
|
35
|
+
# rules](https://support.google.com/vault/answer/7657597) specify for
|
36
|
+
# how long messages and threads are kept.
|
37
|
+
HISTORY_ON = 2
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,37 @@
|
|
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
|
+
# A matched URL in a Chat message. Chat apps can preview matched URLs. For more
|
25
|
+
# information, see [Preview
|
26
|
+
# links](https://developers.google.com/chat/how-tos/preview-links).
|
27
|
+
# @!attribute [r] url
|
28
|
+
# @return [::String]
|
29
|
+
# Output only. The URL that was matched.
|
30
|
+
class MatchedUrl
|
31
|
+
include ::Google::Protobuf::MessageExts
|
32
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|