google-apps-chat-v1 0.11.1 → 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 +4 -4
- data/lib/google/apps/chat/v1/chat_service/client.rb +461 -2
- data/lib/google/apps/chat/v1/chat_service/credentials.rb +2 -0
- data/lib/google/apps/chat/v1/chat_service/paths.rb +14 -0
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +449 -2
- data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +241 -0
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/chat/v1/annotation_pb.rb +6 -1
- data/lib/google/chat/v1/chat_service_pb.rb +1 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +52 -0
- data/lib/google/chat/v1/reaction_pb.rb +7 -1
- data/proto_docs/google/chat/v1/annotation.rb +88 -7
- data/proto_docs/google/chat/v1/message.rb +3 -1
- data/proto_docs/google/chat/v1/reaction.rb +136 -3
- metadata +7 -13
@@ -1033,6 +1033,166 @@ module Google
|
|
1033
1033
|
end
|
1034
1034
|
end
|
1035
1035
|
|
1036
|
+
##
|
1037
|
+
# Baseline implementation for the create_custom_emoji REST call
|
1038
|
+
#
|
1039
|
+
# @param request_pb [::Google::Apps::Chat::V1::CreateCustomEmojiRequest]
|
1040
|
+
# A request object representing the call parameters. Required.
|
1041
|
+
# @param options [::Gapic::CallOptions]
|
1042
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1043
|
+
#
|
1044
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1045
|
+
# @yieldparam result [::Google::Apps::Chat::V1::CustomEmoji]
|
1046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1047
|
+
#
|
1048
|
+
# @return [::Google::Apps::Chat::V1::CustomEmoji]
|
1049
|
+
# A result object deserialized from the server's reply
|
1050
|
+
def create_custom_emoji request_pb, options = nil
|
1051
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1052
|
+
|
1053
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_custom_emoji_request request_pb
|
1054
|
+
query_string_params = if query_string_params.any?
|
1055
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1056
|
+
else
|
1057
|
+
{}
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
response = @client_stub.make_http_request(
|
1061
|
+
verb,
|
1062
|
+
uri: uri,
|
1063
|
+
body: body || "",
|
1064
|
+
params: query_string_params,
|
1065
|
+
method_name: "create_custom_emoji",
|
1066
|
+
options: options
|
1067
|
+
)
|
1068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1069
|
+
result = ::Google::Apps::Chat::V1::CustomEmoji.decode_json response.body, ignore_unknown_fields: true
|
1070
|
+
catch :response do
|
1071
|
+
yield result, operation if block_given?
|
1072
|
+
result
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
##
|
1077
|
+
# Baseline implementation for the get_custom_emoji REST call
|
1078
|
+
#
|
1079
|
+
# @param request_pb [::Google::Apps::Chat::V1::GetCustomEmojiRequest]
|
1080
|
+
# A request object representing the call parameters. Required.
|
1081
|
+
# @param options [::Gapic::CallOptions]
|
1082
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1083
|
+
#
|
1084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1085
|
+
# @yieldparam result [::Google::Apps::Chat::V1::CustomEmoji]
|
1086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1087
|
+
#
|
1088
|
+
# @return [::Google::Apps::Chat::V1::CustomEmoji]
|
1089
|
+
# A result object deserialized from the server's reply
|
1090
|
+
def get_custom_emoji request_pb, options = nil
|
1091
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1092
|
+
|
1093
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_custom_emoji_request request_pb
|
1094
|
+
query_string_params = if query_string_params.any?
|
1095
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1096
|
+
else
|
1097
|
+
{}
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
response = @client_stub.make_http_request(
|
1101
|
+
verb,
|
1102
|
+
uri: uri,
|
1103
|
+
body: body || "",
|
1104
|
+
params: query_string_params,
|
1105
|
+
method_name: "get_custom_emoji",
|
1106
|
+
options: options
|
1107
|
+
)
|
1108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1109
|
+
result = ::Google::Apps::Chat::V1::CustomEmoji.decode_json response.body, ignore_unknown_fields: true
|
1110
|
+
catch :response do
|
1111
|
+
yield result, operation if block_given?
|
1112
|
+
result
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
##
|
1117
|
+
# Baseline implementation for the list_custom_emojis REST call
|
1118
|
+
#
|
1119
|
+
# @param request_pb [::Google::Apps::Chat::V1::ListCustomEmojisRequest]
|
1120
|
+
# A request object representing the call parameters. Required.
|
1121
|
+
# @param options [::Gapic::CallOptions]
|
1122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1123
|
+
#
|
1124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1125
|
+
# @yieldparam result [::Google::Apps::Chat::V1::ListCustomEmojisResponse]
|
1126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1127
|
+
#
|
1128
|
+
# @return [::Google::Apps::Chat::V1::ListCustomEmojisResponse]
|
1129
|
+
# A result object deserialized from the server's reply
|
1130
|
+
def list_custom_emojis request_pb, options = nil
|
1131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1132
|
+
|
1133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_custom_emojis_request request_pb
|
1134
|
+
query_string_params = if query_string_params.any?
|
1135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1136
|
+
else
|
1137
|
+
{}
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
response = @client_stub.make_http_request(
|
1141
|
+
verb,
|
1142
|
+
uri: uri,
|
1143
|
+
body: body || "",
|
1144
|
+
params: query_string_params,
|
1145
|
+
method_name: "list_custom_emojis",
|
1146
|
+
options: options
|
1147
|
+
)
|
1148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1149
|
+
result = ::Google::Apps::Chat::V1::ListCustomEmojisResponse.decode_json response.body, ignore_unknown_fields: true
|
1150
|
+
catch :response do
|
1151
|
+
yield result, operation if block_given?
|
1152
|
+
result
|
1153
|
+
end
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
##
|
1157
|
+
# Baseline implementation for the delete_custom_emoji REST call
|
1158
|
+
#
|
1159
|
+
# @param request_pb [::Google::Apps::Chat::V1::DeleteCustomEmojiRequest]
|
1160
|
+
# A request object representing the call parameters. Required.
|
1161
|
+
# @param options [::Gapic::CallOptions]
|
1162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1163
|
+
#
|
1164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1165
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1167
|
+
#
|
1168
|
+
# @return [::Google::Protobuf::Empty]
|
1169
|
+
# A result object deserialized from the server's reply
|
1170
|
+
def delete_custom_emoji request_pb, options = nil
|
1171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1172
|
+
|
1173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_custom_emoji_request request_pb
|
1174
|
+
query_string_params = if query_string_params.any?
|
1175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1176
|
+
else
|
1177
|
+
{}
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
response = @client_stub.make_http_request(
|
1181
|
+
verb,
|
1182
|
+
uri: uri,
|
1183
|
+
body: body || "",
|
1184
|
+
params: query_string_params,
|
1185
|
+
method_name: "delete_custom_emoji",
|
1186
|
+
options: options
|
1187
|
+
)
|
1188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1189
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1190
|
+
catch :response do
|
1191
|
+
yield result, operation if block_given?
|
1192
|
+
result
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
|
1036
1196
|
##
|
1037
1197
|
# Baseline implementation for the get_space_read_state REST call
|
1038
1198
|
#
|
@@ -1825,6 +1985,87 @@ module Google
|
|
1825
1985
|
transcoder.transcode request_pb
|
1826
1986
|
end
|
1827
1987
|
|
1988
|
+
##
|
1989
|
+
# @private
|
1990
|
+
#
|
1991
|
+
# GRPC transcoding helper method for the create_custom_emoji REST call
|
1992
|
+
#
|
1993
|
+
# @param request_pb [::Google::Apps::Chat::V1::CreateCustomEmojiRequest]
|
1994
|
+
# A request object representing the call parameters. Required.
|
1995
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1996
|
+
# Uri, Body, Query string parameters
|
1997
|
+
def self.transcode_create_custom_emoji_request request_pb
|
1998
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1999
|
+
.with_bindings(
|
2000
|
+
uri_method: :post,
|
2001
|
+
uri_template: "/v1/customEmojis",
|
2002
|
+
body: "custom_emoji",
|
2003
|
+
matches: []
|
2004
|
+
)
|
2005
|
+
transcoder.transcode request_pb
|
2006
|
+
end
|
2007
|
+
|
2008
|
+
##
|
2009
|
+
# @private
|
2010
|
+
#
|
2011
|
+
# GRPC transcoding helper method for the get_custom_emoji REST call
|
2012
|
+
#
|
2013
|
+
# @param request_pb [::Google::Apps::Chat::V1::GetCustomEmojiRequest]
|
2014
|
+
# A request object representing the call parameters. Required.
|
2015
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2016
|
+
# Uri, Body, Query string parameters
|
2017
|
+
def self.transcode_get_custom_emoji_request request_pb
|
2018
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2019
|
+
.with_bindings(
|
2020
|
+
uri_method: :get,
|
2021
|
+
uri_template: "/v1/{name}",
|
2022
|
+
matches: [
|
2023
|
+
["name", %r{^customEmojis/[^/]+/?$}, false]
|
2024
|
+
]
|
2025
|
+
)
|
2026
|
+
transcoder.transcode request_pb
|
2027
|
+
end
|
2028
|
+
|
2029
|
+
##
|
2030
|
+
# @private
|
2031
|
+
#
|
2032
|
+
# GRPC transcoding helper method for the list_custom_emojis REST call
|
2033
|
+
#
|
2034
|
+
# @param request_pb [::Google::Apps::Chat::V1::ListCustomEmojisRequest]
|
2035
|
+
# A request object representing the call parameters. Required.
|
2036
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2037
|
+
# Uri, Body, Query string parameters
|
2038
|
+
def self.transcode_list_custom_emojis_request request_pb
|
2039
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2040
|
+
.with_bindings(
|
2041
|
+
uri_method: :get,
|
2042
|
+
uri_template: "/v1/customEmojis",
|
2043
|
+
matches: []
|
2044
|
+
)
|
2045
|
+
transcoder.transcode request_pb
|
2046
|
+
end
|
2047
|
+
|
2048
|
+
##
|
2049
|
+
# @private
|
2050
|
+
#
|
2051
|
+
# GRPC transcoding helper method for the delete_custom_emoji REST call
|
2052
|
+
#
|
2053
|
+
# @param request_pb [::Google::Apps::Chat::V1::DeleteCustomEmojiRequest]
|
2054
|
+
# A request object representing the call parameters. Required.
|
2055
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2056
|
+
# Uri, Body, Query string parameters
|
2057
|
+
def self.transcode_delete_custom_emoji_request request_pb
|
2058
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2059
|
+
.with_bindings(
|
2060
|
+
uri_method: :delete,
|
2061
|
+
uri_template: "/v1/{name}",
|
2062
|
+
matches: [
|
2063
|
+
["name", %r{^customEmojis/[^/]+/?$}, false]
|
2064
|
+
]
|
2065
|
+
)
|
2066
|
+
transcoder.transcode request_pb
|
2067
|
+
end
|
2068
|
+
|
1828
2069
|
##
|
1829
2070
|
# @private
|
1830
2071
|
#
|
@@ -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
|
@@ -19,7 +19,7 @@ require 'google/chat/v1/thread_read_state_pb'
|
|
19
19
|
require 'google/protobuf/empty_pb'
|
20
20
|
|
21
21
|
|
22
|
-
descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1agoogle/chat/v1/space.proto\x1a google/chat/v1/space_event.proto\x1a/google/chat/v1/space_notification_setting.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\
|
22
|
+
descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1agoogle/chat/v1/space.proto\x1a google/chat/v1/space_event.proto\x1a/google/chat/v1/space_notification_setting.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\xb9\x33\n\x0b\x43hatService\x12\x9b\x01\n\rCreateMessage\x12$.google.chat.v1.CreateMessageRequest\x1a\x17.google.chat.v1.Message\"K\xda\x41\x19parent,message,message_id\x82\xd3\xe4\x93\x02)\"\x1e/v1/{parent=spaces/*}/messages:\x07message\x12\x8a\x01\n\x0cListMessages\x12#.google.chat.v1.ListMessagesRequest\x1a$.google.chat.v1.ListMessagesResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=spaces/*}/messages\x12\x92\x01\n\x0fListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1a\'.google.chat.v1.ListMembershipsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=spaces/*}/members\x12\x7f\n\rGetMembership\x12$.google.chat.v1.GetMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=spaces/*/members/*}\x12w\n\nGetMessage\x12!.google.chat.v1.GetMessageRequest\x1a\x17.google.chat.v1.Message\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=spaces/*/messages/*}\x12\xd1\x01\n\rUpdateMessage\x12$.google.chat.v1.UpdateMessageRequest\x1a\x17.google.chat.v1.Message\"\x80\x01\xda\x41\x13message,update_mask\x82\xd3\xe4\x93\x02\x64\x1a&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\n\rDeleteMessage\x12$.google.chat.v1.DeleteMessageRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=spaces/*/messages/*}\x12\x8e\x01\n\rGetAttachment\x12$.google.chat.v1.GetAttachmentRequest\x1a\x1a.google.chat.v1.Attachment\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9a\x01\n\x10UploadAttachment\x12\'.google.chat.v1.UploadAttachmentRequest\x1a(.google.chat.v1.UploadAttachmentResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\n\nListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1a\".google.chat.v1.ListSpacesResponse\"\x15\xda\x41\x00\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/spaces\x12w\n\x0cSearchSpaces\x12#.google.chat.v1.SearchSpacesRequest\x1a$.google.chat.v1.SearchSpacesResponse\"\x1c\xda\x41\x00\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/spaces:search\x12\x66\n\x08GetSpace\x12\x1f.google.chat.v1.GetSpaceRequest\x1a\x15.google.chat.v1.Space\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\n\x0b\x43reateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1a\x15.google.chat.v1.Space\"!\xda\x41\x05space\x82\xd3\xe4\x93\x02\x13\"\n/v1/spaces:\x05space\x12\x63\n\nSetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1a\x15.google.chat.v1.Space\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\n\x0bUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1a\x15.google.chat.v1.Space\"<\xda\x41\x11space,update_mask\x82\xd3\xe4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\n\x0b\x44\x65leteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9d\x01\n\x13\x43ompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1a+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\n\x11\x46indDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1a\x15.google.chat.v1.Space\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/spaces:findDirectMessage\x12\x9e\x01\n\x10\x43reateMembership\x12\'.google.chat.v1.CreateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"E\xda\x41\x11parent,membership\x82\xd3\xe4\x93\x02+\"\x1d/v1/{parent=spaces/*}/members:\nmembership\x12\xae\x01\n\x10UpdateMembership\x12\'.google.chat.v1.UpdateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"U\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x36\x32(/v1/{membership.name=spaces/*/members/*}:\nmembership\x12\x85\x01\n\x10\x44\x65leteMembership\x12\'.google.chat.v1.DeleteMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=spaces/*/members/*}\x12\xa1\x01\n\x0e\x43reateReaction\x12%.google.chat.v1.CreateReactionRequest\x1a\x18.google.chat.v1.Reaction\"N\xda\x41\x0fparent,reaction\x82\xd3\xe4\x93\x02\x36\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\n\rListReactions\x12$.google.chat.v1.ListReactionsRequest\x1a%.google.chat.v1.ListReactionsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8a\x01\n\x0e\x44\x65leteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x91\x01\n\x11\x43reateCustomEmoji\x12(.google.chat.v1.CreateCustomEmojiRequest\x1a\x1b.google.chat.v1.CustomEmoji\"5\xda\x41\x0c\x63ustom_emoji\x82\xd3\xe4\x93\x02 \"\x10/v1/customEmojis:\x0c\x63ustom_emoji\x12~\n\x0eGetCustomEmoji\x12%.google.chat.v1.GetCustomEmojiRequest\x1a\x1b.google.chat.v1.CustomEmoji\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/{name=customEmojis/*}\x12\x82\x01\n\x10ListCustomEmojis\x12\'.google.chat.v1.ListCustomEmojisRequest\x1a(.google.chat.v1.ListCustomEmojisResponse\"\x1b\xda\x41\x00\x82\xd3\xe4\x93\x02\x12\x12\x10/v1/customEmojis\x12\x7f\n\x11\x44\x65leteCustomEmoji\x12(.google.chat.v1.DeleteCustomEmojiRequest\x1a\x16.google.protobuf.Empty\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b*\x19/v1/{name=customEmojis/*}\x12\x98\x01\n\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xd9\x01\n\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"t\xda\x41\x1cspace_read_state,update_mask\x82\xd3\xe4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xa6\x01\n\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1a\x1f.google.chat.v1.ThreadReadState\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x12\x83\x01\n\rGetSpaceEvent\x12$.google.chat.v1.GetSpaceEventRequest\x1a\x1a.google.chat.v1.SpaceEvent\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=spaces/*/spaceEvents/*}\x12\x9d\x01\n\x0fListSpaceEvents\x12&.google.chat.v1.ListSpaceEventsRequest\x1a\'.google.chat.v1.ListSpaceEventsResponse\"9\xda\x41\rparent,filter\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=spaces/*}/spaceEvents\x12\xc0\x01\n\x1bGetSpaceNotificationSetting\x12\x32.google.chat.v1.GetSpaceNotificationSettingRequest\x1a(.google.chat.v1.SpaceNotificationSetting\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=users/*/spaces/*/spaceNotificationSetting}\x12\xa0\x02\n\x1eUpdateSpaceNotificationSetting\x12\x35.google.chat.v1.UpdateSpaceNotificationSettingRequest\x1a(.google.chat.v1.SpaceNotificationSetting\"\x9c\x01\xda\x41&space_notification_setting,update_mask\x82\xd3\xe4\x93\x02m2O/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}:\x1aspace_notification_setting\x1a\xcf\n\xca\x41\x13\x63hat.googleapis.com\xd2\x41\xb5\nhttps://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.spacesettingsB\xa9\x01\n\x12\x63om.google.chat.v1B\x10\x43hatServiceProtoP\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"
|
23
23
|
|
24
24
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
25
25
|
|
@@ -462,6 +462,58 @@ module Google
|
|
462
462
|
# Requires [user
|
463
463
|
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
464
464
|
rpc :DeleteReaction, ::Google::Apps::Chat::V1::DeleteReactionRequest, ::Google::Protobuf::Empty
|
465
|
+
# Creates a custom emoji.
|
466
|
+
#
|
467
|
+
# Custom emojis are only available for Google Workspace accounts, and the
|
468
|
+
# administrator must turn custom emojis on for the organization. For more
|
469
|
+
# information, see [Learn about custom emojis in Google
|
470
|
+
# Chat](https://support.google.com/chat/answer/12800149) and
|
471
|
+
# [Manage custom emoji
|
472
|
+
# permissions](https://support.google.com/a/answer/12850085).
|
473
|
+
#
|
474
|
+
# Requires [user
|
475
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
476
|
+
rpc :CreateCustomEmoji, ::Google::Apps::Chat::V1::CreateCustomEmojiRequest, ::Google::Apps::Chat::V1::CustomEmoji
|
477
|
+
# Returns details about a custom emoji.
|
478
|
+
#
|
479
|
+
# Custom emojis are only available for Google Workspace accounts, and the
|
480
|
+
# administrator must turn custom emojis on for the organization. For more
|
481
|
+
# information, see [Learn about custom emojis in Google
|
482
|
+
# Chat](https://support.google.com/chat/answer/12800149) and
|
483
|
+
# [Manage custom emoji
|
484
|
+
# permissions](https://support.google.com/a/answer/12850085).
|
485
|
+
#
|
486
|
+
# Requires [user
|
487
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
488
|
+
rpc :GetCustomEmoji, ::Google::Apps::Chat::V1::GetCustomEmojiRequest, ::Google::Apps::Chat::V1::CustomEmoji
|
489
|
+
# Lists custom emojis visible to the authenticated user.
|
490
|
+
#
|
491
|
+
# Custom emojis are only available for Google Workspace accounts, and the
|
492
|
+
# administrator must turn custom emojis on for the organization. For more
|
493
|
+
# information, see [Learn about custom emojis in Google
|
494
|
+
# Chat](https://support.google.com/chat/answer/12800149) and
|
495
|
+
# [Manage custom emoji
|
496
|
+
# permissions](https://support.google.com/a/answer/12850085).
|
497
|
+
#
|
498
|
+
# Requires [user
|
499
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
500
|
+
rpc :ListCustomEmojis, ::Google::Apps::Chat::V1::ListCustomEmojisRequest, ::Google::Apps::Chat::V1::ListCustomEmojisResponse
|
501
|
+
# Deletes a custom emoji. By default, users can only delete custom emoji they
|
502
|
+
# created. [Emoji managers](https://support.google.com/a/answer/12850085)
|
503
|
+
# assigned by the administrator can delete any custom emoji in the
|
504
|
+
# organization. See [Learn about custom emojis in Google
|
505
|
+
# Chat](https://support.google.com/chat/answer/12800149).
|
506
|
+
#
|
507
|
+
# Custom emojis are only available for Google Workspace accounts, and the
|
508
|
+
# administrator must turn custom emojis on for the organization. For more
|
509
|
+
# information, see [Learn about custom emojis in Google
|
510
|
+
# Chat](https://support.google.com/chat/answer/12800149) and
|
511
|
+
# [Manage custom emoji
|
512
|
+
# permissions](https://support.google.com/a/answer/12850085).
|
513
|
+
#
|
514
|
+
# Requires [user
|
515
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
516
|
+
rpc :DeleteCustomEmoji, ::Google::Apps::Chat::V1::DeleteCustomEmojiRequest, ::Google::Protobuf::Empty
|
465
517
|
# Returns details about a user's read state within a space, used to identify
|
466
518
|
# read and unread messages. For an example, see [Get details about a user's
|
467
519
|
# space read
|
@@ -10,7 +10,7 @@ require 'google/api/resource_pb'
|
|
10
10
|
require 'google/chat/v1/user_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n\x1dgoogle/chat/v1/reaction.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x19google/chat/v1/user.proto\"\xcc\x01\n\x08Reaction\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\'\n\x04user\x18\x02 \x01(\x0b\x32\x14.google.chat.v1.UserB\x03\xe0\x41\x03\x12)\n\x05\x65moji\x18\x03 \x01(\x0b\x32\x15.google.chat.v1.EmojiB\x03\xe0\x41\x02:Y\xea\x41V\n\x1c\x63hat.googleapis.com/Reaction\x12\x36spaces/{space}/messages/{message}/reactions/{reaction}\"_\n\x05\x45moji\x12\x16\n\x07unicode\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x33\n\x0c\x63ustom_emoji\x18\x02 \x01(\x0b\x32\x1b.google.chat.v1.CustomEmojiH\x00\x42\t\n\x07\x63ontent\"\
|
13
|
+
descriptor_data = "\n\x1dgoogle/chat/v1/reaction.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x19google/chat/v1/user.proto\"\xcc\x01\n\x08Reaction\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\'\n\x04user\x18\x02 \x01(\x0b\x32\x14.google.chat.v1.UserB\x03\xe0\x41\x03\x12)\n\x05\x65moji\x18\x03 \x01(\x0b\x32\x15.google.chat.v1.EmojiB\x03\xe0\x41\x02:Y\xea\x41V\n\x1c\x63hat.googleapis.com/Reaction\x12\x36spaces/{space}/messages/{message}/reactions/{reaction}\"_\n\x05\x45moji\x12\x16\n\x07unicode\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x33\n\x0c\x63ustom_emoji\x18\x02 \x01(\x0b\x32\x1b.google.chat.v1.CustomEmojiH\x00\x42\t\n\x07\x63ontent\"\xed\x02\n\x0b\x43ustomEmoji\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x03uid\x18\x01 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\nemoji_name\x18\x03 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12 \n\x13temporary_image_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12G\n\x07payload\x18\x05 \x01(\x0b\x32..google.chat.v1.CustomEmoji.CustomEmojiPayloadB\x06\xe0\x41\x04\xe0\x41\x01\x1aL\n\x12\x43ustomEmojiPayload\x12\x1c\n\x0c\x66ile_content\x18\x01 \x01(\x0c\x42\x06\xe0\x41\x04\xe0\x41\x02\x12\x18\n\x08\x66ilename\x18\x02 \x01(\tB\x06\xe0\x41\x04\xe0\x41\x02:\\\xea\x41Y\n\x1f\x63hat.googleapis.com/CustomEmoji\x12\x1b\x63ustomEmojis/{custom_emoji}*\x0c\x63ustomEmojis2\x0b\x63ustomEmoji\"v\n\x14\x45mojiReactionSummary\x12)\n\x05\x65moji\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.EmojiB\x03\xe0\x41\x03\x12 \n\x0ereaction_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x11\n\x0f_reaction_count\"~\n\x15\x43reateReactionRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1c\x63hat.googleapis.com/Reaction\x12/\n\x08reaction\x18\x02 \x01(\x0b\x32\x18.google.chat.v1.ReactionB\x03\xe0\x41\x02\"\x92\x01\n\x14ListReactionsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1c\x63hat.googleapis.com/Reaction\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"]\n\x15ListReactionsResponse\x12+\n\treactions\x18\x01 \x03(\x0b\x32\x18.google.chat.v1.Reaction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x15\x44\x65leteReactionRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x63hat.googleapis.com/Reaction\"R\n\x18\x43reateCustomEmojiRequest\x12\x36\n\x0c\x63ustom_emoji\x18\x01 \x01(\x0b\x32\x1b.google.chat.v1.CustomEmojiB\x03\xe0\x41\x02\"N\n\x15GetCustomEmojiRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63hat.googleapis.com/CustomEmoji\"_\n\x17ListCustomEmojisRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\"l\n\x18ListCustomEmojisResponse\x12\x37\n\rcustom_emojis\x18\x01 \x03(\x0b\x32\x1b.google.chat.v1.CustomEmojiB\x03\xe0\x41\x06\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Q\n\x18\x44\x65leteCustomEmojiRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63hat.googleapis.com/CustomEmojiB\xa6\x01\n\x12\x63om.google.chat.v1B\rReactionProtoP\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
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -44,11 +44,17 @@ module Google
|
|
44
44
|
Reaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Reaction").msgclass
|
45
45
|
Emoji = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Emoji").msgclass
|
46
46
|
CustomEmoji = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CustomEmoji").msgclass
|
47
|
+
CustomEmoji::CustomEmojiPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CustomEmoji.CustomEmojiPayload").msgclass
|
47
48
|
EmojiReactionSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.EmojiReactionSummary").msgclass
|
48
49
|
CreateReactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CreateReactionRequest").msgclass
|
49
50
|
ListReactionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListReactionsRequest").msgclass
|
50
51
|
ListReactionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListReactionsResponse").msgclass
|
51
52
|
DeleteReactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DeleteReactionRequest").msgclass
|
53
|
+
CreateCustomEmojiRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CreateCustomEmojiRequest").msgclass
|
54
|
+
GetCustomEmojiRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.GetCustomEmojiRequest").msgclass
|
55
|
+
ListCustomEmojisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListCustomEmojisRequest").msgclass
|
56
|
+
ListCustomEmojisResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListCustomEmojisResponse").msgclass
|
57
|
+
DeleteCustomEmojiRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DeleteCustomEmojiRequest").msgclass
|
52
58
|
end
|
53
59
|
end
|
54
60
|
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
|