google-apps-chat-v1 0.11.1 → 0.12.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.
@@ -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
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Apps
22
22
  module Chat
23
23
  module V1
24
- VERSION = "0.11.1"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  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\xb2.\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\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\xe2\t\xca\x41\x13\x63hat.googleapis.com\xd2\x41\xc8\thttps://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.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"
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\"\'\n\x0b\x43ustomEmoji\x12\x18\n\x03uid\x18\x01 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"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/ReactionB\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"
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
@@ -54,13 +54,58 @@ module Google
54
54
  extend ::Google::Protobuf::MessageExts::ClassMethods
55
55
  end
56
56
 
57
- # Represents a custom emoji.
57
+ # Represents a [custom emoji](https://support.google.com/chat/answer/12800149).
58
+ # @!attribute [rw] name
59
+ # @return [::String]
60
+ # Identifier. The resource name of the custom emoji, assigned by the server.
61
+ #
62
+ # Format: `customEmojis/{customEmoji}`
58
63
  # @!attribute [r] uid
59
64
  # @return [::String]
60
65
  # Output only. Unique key for the custom emoji resource.
66
+ # @!attribute [rw] emoji_name
67
+ # @return [::String]
68
+ # Optional. Immutable. User-provided name for the custom emoji, which is
69
+ # unique within the organization.
70
+ #
71
+ # Required when the custom emoji is created, output only otherwise.
72
+ #
73
+ # Emoji names must start and end with colons, must be lowercase and can only
74
+ # contain alphanumeric characters, hyphens, and underscores.
75
+ # Hyphens and underscores should be used to separate words and cannot be used
76
+ # consecutively.
77
+ #
78
+ # Example: `:valid-emoji-name:`
79
+ # @!attribute [r] temporary_image_uri
80
+ # @return [::String]
81
+ # Output only. A temporary image URL for the custom emoji, valid for at least
82
+ # 10 minutes. Note that this is not populated in the response when the custom
83
+ # emoji is created.
84
+ # @!attribute [rw] payload
85
+ # @return [::Google::Apps::Chat::V1::CustomEmoji::CustomEmojiPayload]
86
+ # Optional. Input only. Payload data.
87
+ # Required when the custom emoji is created.
61
88
  class CustomEmoji
62
89
  include ::Google::Protobuf::MessageExts
63
90
  extend ::Google::Protobuf::MessageExts::ClassMethods
91
+
92
+ # Payload data for the custom emoji.
93
+ # @!attribute [rw] file_content
94
+ # @return [::String]
95
+ # Required. Input only. The image used for the custom emoji.
96
+ #
97
+ # The payload must be under 256 KB and the dimension of
98
+ # the image must be square and between 64 and 500 pixels. The
99
+ # restrictions are subject to change.
100
+ # @!attribute [rw] filename
101
+ # @return [::String]
102
+ # Required. Input only. The image file name.
103
+ #
104
+ # Supported file extensions: `.png`, `.jpg`, `.gif`.
105
+ class CustomEmojiPayload
106
+ include ::Google::Protobuf::MessageExts
107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
108
+ end
64
109
  end
65
110
 
66
111
  # The number of people who reacted to a message with a specific emoji.
@@ -153,8 +198,7 @@ module Google
153
198
  # AND user.name = "users/\\{user}"
154
199
  # ```
155
200
  #
156
- # Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
157
- # error.
201
+ # Invalid queries are rejected with an `INVALID_ARGUMENT` error.
158
202
  class ListReactionsRequest
159
203
  include ::Google::Protobuf::MessageExts
160
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -183,6 +227,95 @@ module Google
183
227
  include ::Google::Protobuf::MessageExts
184
228
  extend ::Google::Protobuf::MessageExts::ClassMethods
185
229
  end
230
+
231
+ # A request to create a custom emoji.
232
+ # @!attribute [rw] custom_emoji
233
+ # @return [::Google::Apps::Chat::V1::CustomEmoji]
234
+ # Required. The custom emoji to create.
235
+ class CreateCustomEmojiRequest
236
+ include ::Google::Protobuf::MessageExts
237
+ extend ::Google::Protobuf::MessageExts::ClassMethods
238
+ end
239
+
240
+ # A request to return a single custom emoji.
241
+ # @!attribute [rw] name
242
+ # @return [::String]
243
+ # Required. Resource name of the custom emoji.
244
+ #
245
+ # Format: `customEmojis/{customEmoji}`
246
+ #
247
+ # You can use the emoji name as an alias for `{customEmoji}`. For example,
248
+ # `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name
249
+ # for a custom emoji.
250
+ class GetCustomEmojiRequest
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # A request to return a list of custom emojis.
256
+ # @!attribute [rw] page_size
257
+ # @return [::Integer]
258
+ # Optional. The maximum number of custom emojis returned. The service can
259
+ # return fewer custom emojis than this value. If unspecified, the default
260
+ # value is 25. The maximum value is 200; values above 200 are changed to 200.
261
+ # @!attribute [rw] page_token
262
+ # @return [::String]
263
+ # Optional. (If resuming from a previous query.)
264
+ #
265
+ # A page token received from a previous list custom emoji call. Provide this
266
+ # to retrieve the subsequent page.
267
+ #
268
+ # When paginating, the filter value should match the call that provided the
269
+ # page token. Passing a different value might lead to unexpected results.
270
+ # @!attribute [rw] filter
271
+ # @return [::String]
272
+ # Optional. A query filter.
273
+ #
274
+ # Supports filtering by creator.
275
+ #
276
+ # To filter by creator, you must specify a valid value. Currently only
277
+ # `creator("users/me")` and `NOT creator("users/me")` are accepted to filter
278
+ # custom emojis by whether they were created by the calling user or not.
279
+ #
280
+ # For example, the following query returns custom emojis created by the
281
+ # caller:
282
+ # ```
283
+ # creator("users/me")
284
+ # ```
285
+ #
286
+ # Invalid queries are rejected with an `INVALID_ARGUMENT` error.
287
+ class ListCustomEmojisRequest
288
+ include ::Google::Protobuf::MessageExts
289
+ extend ::Google::Protobuf::MessageExts::ClassMethods
290
+ end
291
+
292
+ # A response to list custom emojis.
293
+ # @!attribute [rw] custom_emojis
294
+ # @return [::Array<::Google::Apps::Chat::V1::CustomEmoji>]
295
+ # Unordered list. List of custom emojis.
296
+ # @!attribute [rw] next_page_token
297
+ # @return [::String]
298
+ # A token that you can send as `pageToken` to retrieve the next page of
299
+ # results. If empty, there are no subsequent pages.
300
+ class ListCustomEmojisResponse
301
+ include ::Google::Protobuf::MessageExts
302
+ extend ::Google::Protobuf::MessageExts::ClassMethods
303
+ end
304
+
305
+ # Request for deleting a custom emoji.
306
+ # @!attribute [rw] name
307
+ # @return [::String]
308
+ # Required. Resource name of the custom emoji to delete.
309
+ #
310
+ # Format: `customEmojis/{customEmoji}`
311
+ #
312
+ # You can use the emoji name as an alias for `{customEmoji}`. For example,
313
+ # `customEmojis/:example-emoji:` where `:example-emoji:` is the emoji name
314
+ # for a custom emoji.
315
+ class DeleteCustomEmojiRequest
316
+ include ::Google::Protobuf::MessageExts
317
+ extend ::Google::Protobuf::MessageExts::ClassMethods
318
+ end
186
319
  end
187
320
  end
188
321
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apps-chat-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -13,22 +13,16 @@ dependencies:
13
13
  name: gapic-common
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: 0.25.0
19
- - - "<"
16
+ - - "~>"
20
17
  - !ruby/object:Gem::Version
21
- version: 2.a
18
+ version: '1.0'
22
19
  type: :runtime
23
20
  prerelease: false
24
21
  version_requirements: !ruby/object:Gem::Requirement
25
22
  requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- version: 0.25.0
29
- - - "<"
23
+ - - "~>"
30
24
  - !ruby/object:Gem::Version
31
- version: 2.a
25
+ version: '1.0'
32
26
  - !ruby/object:Gem::Dependency
33
27
  name: google-apps-card-v1
34
28
  requirement: !ruby/object:Gem::Requirement
@@ -157,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
151
  requirements:
158
152
  - - ">="
159
153
  - !ruby/object:Gem::Version
160
- version: '3.0'
154
+ version: '3.1'
161
155
  required_rubygems_version: !ruby/object:Gem::Requirement
162
156
  requirements:
163
157
  - - ">="