google-apps-chat-v1 0.22.0 → 0.23.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/README.md +1 -1
- data/lib/google/apps/chat/v1/chat_service/client.rb +160 -1
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +161 -1
- data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +59 -0
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/chat/v1/chat_service_pb.rb +1 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +21 -0
- data/lib/google/chat/v1/message_pb.rb +3 -1
- data/lib/google/chat/v1/space_pb.rb +4 -1
- data/proto_docs/google/apps/card/v1/card.rb +1 -1
- data/proto_docs/google/chat/v1/message.rb +43 -0
- data/proto_docs/google/chat/v1/section.rb +1 -1
- data/proto_docs/google/chat/v1/space.rb +86 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12c00cb3c52b9d1805248c8478ad06d8b1343b4a5ac47621bf876d865d3682da
|
|
4
|
+
data.tar.gz: 45a030d1415a8b2b27d7e1efcb90532f061bfb54e376c87eb70bd2ca070cbc62
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fee60bd814be845ffc8166f9766eeb661afb25319f4c9057d37724c0850dbfbba7dff2192817f5c16f2d086f4fc6b2a630935305fea3c4f79d4cd34a15a6014a
|
|
7
|
+
data.tar.gz: 73dc911c8bf5abf6656730c9034a19f96391dc21e1326af04f8fcfaf3129c067a7a71fad090239b192fa030a88505a8b3f2da2fc67b006f96e606b5adb65f27b
|
data/README.md
CHANGED
|
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
86
86
|
|
|
87
87
|
## Supported Ruby Versions
|
|
88
88
|
|
|
89
|
-
This library is supported on Ruby 3.
|
|
89
|
+
This library is supported on Ruby 3.2+.
|
|
90
90
|
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
@@ -161,6 +161,11 @@ module Google
|
|
|
161
161
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
default_config.rpcs.find_group_chats.timeout = 30.0
|
|
165
|
+
default_config.rpcs.find_group_chats.retry_policy = {
|
|
166
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
167
|
+
}
|
|
168
|
+
|
|
164
169
|
default_config.rpcs.create_membership.timeout = 30.0
|
|
165
170
|
default_config.rpcs.create_membership.retry_policy = {
|
|
166
171
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
@@ -450,7 +455,7 @@ module Google
|
|
|
450
455
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
451
456
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
452
457
|
#
|
|
453
|
-
# @overload create_message(parent: nil, message: nil, thread_key: nil, request_id: nil, message_reply_option: nil, message_id: nil)
|
|
458
|
+
# @overload create_message(parent: nil, message: nil, thread_key: nil, request_id: nil, message_reply_option: nil, message_id: nil, create_message_notification_options: nil)
|
|
454
459
|
# Pass arguments to `create_message` via keyword arguments. Note that at
|
|
455
460
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
456
461
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -498,6 +503,10 @@ module Google
|
|
|
498
503
|
#
|
|
499
504
|
# For details, see [Name a
|
|
500
505
|
# message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
|
|
506
|
+
# @param create_message_notification_options [::Google::Apps::Chat::V1::CreateMessageNotificationOptions, ::Hash]
|
|
507
|
+
# Optional. Controls the notification behavior when the message is posted.
|
|
508
|
+
# To learn more, see [Force notifications or send silent
|
|
509
|
+
# messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent).
|
|
501
510
|
#
|
|
502
511
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
503
512
|
# @yieldparam response [::Google::Apps::Chat::V1::Message]
|
|
@@ -3011,6 +3020,147 @@ module Google
|
|
|
3011
3020
|
raise ::Google::Cloud::Error.from_error(e)
|
|
3012
3021
|
end
|
|
3013
3022
|
|
|
3023
|
+
##
|
|
3024
|
+
# Returns all spaces with `spaceType == GROUP_CHAT`, whose
|
|
3025
|
+
# human memberships contain exactly the calling user, and the users specified
|
|
3026
|
+
# in `FindGroupChatsRequest.users`. Only members that have joined the
|
|
3027
|
+
# conversation are supported. For an example, see [Find group
|
|
3028
|
+
# chats](https://developers.google.com/workspace/chat/find-group-chats).
|
|
3029
|
+
#
|
|
3030
|
+
# If the calling user blocks, or is blocked by, some users, and no spaces
|
|
3031
|
+
# with the entire specified set of users are found, this method returns
|
|
3032
|
+
# spaces that don't include the blocked or blocking users.
|
|
3033
|
+
#
|
|
3034
|
+
# The specified set of users must contain only human (non-app) memberships.
|
|
3035
|
+
# A request that contains non-human users doesn't return any spaces.
|
|
3036
|
+
#
|
|
3037
|
+
# Requires [user
|
|
3038
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3039
|
+
# with one of the following [authorization
|
|
3040
|
+
# scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
3041
|
+
#
|
|
3042
|
+
# - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
3043
|
+
# - `https://www.googleapis.com/auth/chat.memberships`
|
|
3044
|
+
#
|
|
3045
|
+
# @overload find_group_chats(request, options = nil)
|
|
3046
|
+
# Pass arguments to `find_group_chats` via a request object, either of type
|
|
3047
|
+
# {::Google::Apps::Chat::V1::FindGroupChatsRequest} or an equivalent Hash.
|
|
3048
|
+
#
|
|
3049
|
+
# @param request [::Google::Apps::Chat::V1::FindGroupChatsRequest, ::Hash]
|
|
3050
|
+
# A request object representing the call parameters. Required. To specify no
|
|
3051
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
3052
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
3053
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
3054
|
+
#
|
|
3055
|
+
# @overload find_group_chats(users: nil, page_size: nil, page_token: nil, space_view: nil)
|
|
3056
|
+
# Pass arguments to `find_group_chats` via keyword arguments. Note that at
|
|
3057
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
3058
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
3059
|
+
#
|
|
3060
|
+
# @param users [::Array<::String>]
|
|
3061
|
+
# Optional. Resource names of all human users in group chat with the calling
|
|
3062
|
+
# user. Chat apps can't be included in the request.
|
|
3063
|
+
#
|
|
3064
|
+
# The maximum number of users that can be specified in a single request is
|
|
3065
|
+
# `49`.
|
|
3066
|
+
#
|
|
3067
|
+
# Format: `users/{user}`, where `{user}` is either the `id` for the
|
|
3068
|
+
# [person](https://developers.google.com/people/api/rest/v1/people) from the
|
|
3069
|
+
# People API, or the `id` for the
|
|
3070
|
+
# [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
|
|
3071
|
+
# in the Directory API. For example, to find all group chats with the calling
|
|
3072
|
+
# user and two other users, with People API profile IDs `123456789` and
|
|
3073
|
+
# `987654321`, you can use `users/123456789` and `users/987654321`.
|
|
3074
|
+
# You can also use the email as an alias for `{user}`. For example,
|
|
3075
|
+
# `users/example@gmail.com` where `example@gmail.com` is the email of the
|
|
3076
|
+
# Google Chat user.
|
|
3077
|
+
# @param page_size [::Integer]
|
|
3078
|
+
# Optional. The maximum number of spaces to return. The service might return
|
|
3079
|
+
# fewer than this value.
|
|
3080
|
+
#
|
|
3081
|
+
# If unspecified, at most 10 spaces are returned.
|
|
3082
|
+
#
|
|
3083
|
+
# The maximum value is 30. If you use a value more than 30, it's
|
|
3084
|
+
# automatically changed to 30.
|
|
3085
|
+
#
|
|
3086
|
+
# Negative values return an `INVALID_ARGUMENT` error.
|
|
3087
|
+
# @param page_token [::String]
|
|
3088
|
+
# Optional. A page token, received from a previous call to find group chats.
|
|
3089
|
+
# Provide this parameter to retrieve the subsequent page.
|
|
3090
|
+
#
|
|
3091
|
+
# When paginating, all other parameters provided should match the call that
|
|
3092
|
+
# provided the token. Passing different values may lead to unexpected
|
|
3093
|
+
# results.
|
|
3094
|
+
# @param space_view [::Google::Apps::Chat::V1::SpaceView]
|
|
3095
|
+
# Requested space view type. If unset, defaults to
|
|
3096
|
+
# `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
|
|
3097
|
+
# `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
|
|
3098
|
+
# for example,
|
|
3099
|
+
# https://www.googleapis.com/auth/chat.spaces or
|
|
3100
|
+
# https://www.googleapis.com/auth/chat.spaces.readonly.
|
|
3101
|
+
#
|
|
3102
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
3103
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Chat::V1::Space>]
|
|
3104
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
3105
|
+
#
|
|
3106
|
+
# @return [::Gapic::PagedEnumerable<::Google::Apps::Chat::V1::Space>]
|
|
3107
|
+
#
|
|
3108
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
3109
|
+
#
|
|
3110
|
+
# @example Basic example
|
|
3111
|
+
# require "google/apps/chat/v1"
|
|
3112
|
+
#
|
|
3113
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
3114
|
+
# client = Google::Apps::Chat::V1::ChatService::Client.new
|
|
3115
|
+
#
|
|
3116
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
3117
|
+
# request = Google::Apps::Chat::V1::FindGroupChatsRequest.new
|
|
3118
|
+
#
|
|
3119
|
+
# # Call the find_group_chats method.
|
|
3120
|
+
# result = client.find_group_chats request
|
|
3121
|
+
#
|
|
3122
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
3123
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
3124
|
+
# result.each do |item|
|
|
3125
|
+
# # Each element is of type ::Google::Apps::Chat::V1::Space.
|
|
3126
|
+
# p item
|
|
3127
|
+
# end
|
|
3128
|
+
#
|
|
3129
|
+
def find_group_chats request, options = nil
|
|
3130
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
3131
|
+
|
|
3132
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Chat::V1::FindGroupChatsRequest
|
|
3133
|
+
|
|
3134
|
+
# Converts hash and nil to an options object
|
|
3135
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
3136
|
+
|
|
3137
|
+
# Customize the options with defaults
|
|
3138
|
+
metadata = @config.rpcs.find_group_chats.metadata.to_h
|
|
3139
|
+
|
|
3140
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
3141
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
3142
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
3143
|
+
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
|
3144
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
3145
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
3146
|
+
|
|
3147
|
+
options.apply_defaults timeout: @config.rpcs.find_group_chats.timeout,
|
|
3148
|
+
metadata: metadata,
|
|
3149
|
+
retry_policy: @config.rpcs.find_group_chats.retry_policy
|
|
3150
|
+
|
|
3151
|
+
options.apply_defaults timeout: @config.timeout,
|
|
3152
|
+
metadata: @config.metadata,
|
|
3153
|
+
retry_policy: @config.retry_policy
|
|
3154
|
+
|
|
3155
|
+
@chat_service_stub.call_rpc :find_group_chats, request, options: options do |response, operation|
|
|
3156
|
+
response = ::Gapic::PagedEnumerable.new @chat_service_stub, :find_group_chats, request, response, operation, options
|
|
3157
|
+
yield response, operation if block_given?
|
|
3158
|
+
throw :response, response
|
|
3159
|
+
end
|
|
3160
|
+
rescue ::GRPC::BadStatus => e
|
|
3161
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
3162
|
+
end
|
|
3163
|
+
|
|
3014
3164
|
##
|
|
3015
3165
|
# Creates a membership for the calling Chat app, a user, or a Google Group.
|
|
3016
3166
|
# Creating memberships for other Chat apps isn't supported.
|
|
@@ -6001,6 +6151,7 @@ module Google
|
|
|
6001
6151
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
6002
6152
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
6003
6153
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
6154
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
6004
6155
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
6005
6156
|
# trigger a retry.
|
|
6006
6157
|
# @return [::Hash]
|
|
@@ -6084,6 +6235,7 @@ module Google
|
|
|
6084
6235
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
6085
6236
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
6086
6237
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
6238
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
6087
6239
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
6088
6240
|
# trigger a retry.
|
|
6089
6241
|
#
|
|
@@ -6179,6 +6331,11 @@ module Google
|
|
|
6179
6331
|
#
|
|
6180
6332
|
attr_reader :find_direct_message
|
|
6181
6333
|
##
|
|
6334
|
+
# RPC-specific configuration for `find_group_chats`
|
|
6335
|
+
# @return [::Gapic::Config::Method]
|
|
6336
|
+
#
|
|
6337
|
+
attr_reader :find_group_chats
|
|
6338
|
+
##
|
|
6182
6339
|
# RPC-specific configuration for `create_membership`
|
|
6183
6340
|
# @return [::Gapic::Config::Method]
|
|
6184
6341
|
#
|
|
@@ -6337,6 +6494,8 @@ module Google
|
|
|
6337
6494
|
@complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
|
|
6338
6495
|
find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
|
|
6339
6496
|
@find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
|
|
6497
|
+
find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
|
|
6498
|
+
@find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
|
|
6340
6499
|
create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
|
|
6341
6500
|
@create_membership = ::Gapic::Config::Method.new create_membership_config
|
|
6342
6501
|
update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
|
|
@@ -163,6 +163,11 @@ module Google
|
|
|
163
163
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
default_config.rpcs.find_group_chats.timeout = 30.0
|
|
167
|
+
default_config.rpcs.find_group_chats.retry_policy = {
|
|
168
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
169
|
+
}
|
|
170
|
+
|
|
166
171
|
default_config.rpcs.create_membership.timeout = 30.0
|
|
167
172
|
default_config.rpcs.create_membership.retry_policy = {
|
|
168
173
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
@@ -443,7 +448,7 @@ module Google
|
|
|
443
448
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
444
449
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
445
450
|
#
|
|
446
|
-
# @overload create_message(parent: nil, message: nil, thread_key: nil, request_id: nil, message_reply_option: nil, message_id: nil)
|
|
451
|
+
# @overload create_message(parent: nil, message: nil, thread_key: nil, request_id: nil, message_reply_option: nil, message_id: nil, create_message_notification_options: nil)
|
|
447
452
|
# Pass arguments to `create_message` via keyword arguments. Note that at
|
|
448
453
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
449
454
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -491,6 +496,10 @@ module Google
|
|
|
491
496
|
#
|
|
492
497
|
# For details, see [Name a
|
|
493
498
|
# message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
|
|
499
|
+
# @param create_message_notification_options [::Google::Apps::Chat::V1::CreateMessageNotificationOptions, ::Hash]
|
|
500
|
+
# Optional. Controls the notification behavior when the message is posted.
|
|
501
|
+
# To learn more, see [Force notifications or send silent
|
|
502
|
+
# messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent).
|
|
494
503
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
495
504
|
# @yieldparam result [::Google::Apps::Chat::V1::Message]
|
|
496
505
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -2918,6 +2927,148 @@ module Google
|
|
|
2918
2927
|
raise ::Google::Cloud::Error.from_error(e)
|
|
2919
2928
|
end
|
|
2920
2929
|
|
|
2930
|
+
##
|
|
2931
|
+
# Returns all spaces with `spaceType == GROUP_CHAT`, whose
|
|
2932
|
+
# human memberships contain exactly the calling user, and the users specified
|
|
2933
|
+
# in `FindGroupChatsRequest.users`. Only members that have joined the
|
|
2934
|
+
# conversation are supported. For an example, see [Find group
|
|
2935
|
+
# chats](https://developers.google.com/workspace/chat/find-group-chats).
|
|
2936
|
+
#
|
|
2937
|
+
# If the calling user blocks, or is blocked by, some users, and no spaces
|
|
2938
|
+
# with the entire specified set of users are found, this method returns
|
|
2939
|
+
# spaces that don't include the blocked or blocking users.
|
|
2940
|
+
#
|
|
2941
|
+
# The specified set of users must contain only human (non-app) memberships.
|
|
2942
|
+
# A request that contains non-human users doesn't return any spaces.
|
|
2943
|
+
#
|
|
2944
|
+
# Requires [user
|
|
2945
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
2946
|
+
# with one of the following [authorization
|
|
2947
|
+
# scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
2948
|
+
#
|
|
2949
|
+
# - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
2950
|
+
# - `https://www.googleapis.com/auth/chat.memberships`
|
|
2951
|
+
#
|
|
2952
|
+
# @overload find_group_chats(request, options = nil)
|
|
2953
|
+
# Pass arguments to `find_group_chats` via a request object, either of type
|
|
2954
|
+
# {::Google::Apps::Chat::V1::FindGroupChatsRequest} or an equivalent Hash.
|
|
2955
|
+
#
|
|
2956
|
+
# @param request [::Google::Apps::Chat::V1::FindGroupChatsRequest, ::Hash]
|
|
2957
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2958
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2959
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2960
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2961
|
+
#
|
|
2962
|
+
# @overload find_group_chats(users: nil, page_size: nil, page_token: nil, space_view: nil)
|
|
2963
|
+
# Pass arguments to `find_group_chats` via keyword arguments. Note that at
|
|
2964
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2965
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2966
|
+
#
|
|
2967
|
+
# @param users [::Array<::String>]
|
|
2968
|
+
# Optional. Resource names of all human users in group chat with the calling
|
|
2969
|
+
# user. Chat apps can't be included in the request.
|
|
2970
|
+
#
|
|
2971
|
+
# The maximum number of users that can be specified in a single request is
|
|
2972
|
+
# `49`.
|
|
2973
|
+
#
|
|
2974
|
+
# Format: `users/{user}`, where `{user}` is either the `id` for the
|
|
2975
|
+
# [person](https://developers.google.com/people/api/rest/v1/people) from the
|
|
2976
|
+
# People API, or the `id` for the
|
|
2977
|
+
# [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
|
|
2978
|
+
# in the Directory API. For example, to find all group chats with the calling
|
|
2979
|
+
# user and two other users, with People API profile IDs `123456789` and
|
|
2980
|
+
# `987654321`, you can use `users/123456789` and `users/987654321`.
|
|
2981
|
+
# You can also use the email as an alias for `{user}`. For example,
|
|
2982
|
+
# `users/example@gmail.com` where `example@gmail.com` is the email of the
|
|
2983
|
+
# Google Chat user.
|
|
2984
|
+
# @param page_size [::Integer]
|
|
2985
|
+
# Optional. The maximum number of spaces to return. The service might return
|
|
2986
|
+
# fewer than this value.
|
|
2987
|
+
#
|
|
2988
|
+
# If unspecified, at most 10 spaces are returned.
|
|
2989
|
+
#
|
|
2990
|
+
# The maximum value is 30. If you use a value more than 30, it's
|
|
2991
|
+
# automatically changed to 30.
|
|
2992
|
+
#
|
|
2993
|
+
# Negative values return an `INVALID_ARGUMENT` error.
|
|
2994
|
+
# @param page_token [::String]
|
|
2995
|
+
# Optional. A page token, received from a previous call to find group chats.
|
|
2996
|
+
# Provide this parameter to retrieve the subsequent page.
|
|
2997
|
+
#
|
|
2998
|
+
# When paginating, all other parameters provided should match the call that
|
|
2999
|
+
# provided the token. Passing different values may lead to unexpected
|
|
3000
|
+
# results.
|
|
3001
|
+
# @param space_view [::Google::Apps::Chat::V1::SpaceView]
|
|
3002
|
+
# Requested space view type. If unset, defaults to
|
|
3003
|
+
# `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
|
|
3004
|
+
# `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
|
|
3005
|
+
# for example,
|
|
3006
|
+
# https://www.googleapis.com/auth/chat.spaces or
|
|
3007
|
+
# https://www.googleapis.com/auth/chat.spaces.readonly.
|
|
3008
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
3009
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Apps::Chat::V1::Space>]
|
|
3010
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
3011
|
+
#
|
|
3012
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Apps::Chat::V1::Space>]
|
|
3013
|
+
#
|
|
3014
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
3015
|
+
#
|
|
3016
|
+
# @example Basic example
|
|
3017
|
+
# require "google/apps/chat/v1"
|
|
3018
|
+
#
|
|
3019
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
3020
|
+
# client = Google::Apps::Chat::V1::ChatService::Rest::Client.new
|
|
3021
|
+
#
|
|
3022
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
3023
|
+
# request = Google::Apps::Chat::V1::FindGroupChatsRequest.new
|
|
3024
|
+
#
|
|
3025
|
+
# # Call the find_group_chats method.
|
|
3026
|
+
# result = client.find_group_chats request
|
|
3027
|
+
#
|
|
3028
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
3029
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
3030
|
+
# result.each do |item|
|
|
3031
|
+
# # Each element is of type ::Google::Apps::Chat::V1::Space.
|
|
3032
|
+
# p item
|
|
3033
|
+
# end
|
|
3034
|
+
#
|
|
3035
|
+
def find_group_chats request, options = nil
|
|
3036
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
3037
|
+
|
|
3038
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Chat::V1::FindGroupChatsRequest
|
|
3039
|
+
|
|
3040
|
+
# Converts hash and nil to an options object
|
|
3041
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
3042
|
+
|
|
3043
|
+
# Customize the options with defaults
|
|
3044
|
+
call_metadata = @config.rpcs.find_group_chats.metadata.to_h
|
|
3045
|
+
|
|
3046
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
3047
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
3048
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
3049
|
+
gapic_version: ::Google::Apps::Chat::V1::VERSION,
|
|
3050
|
+
transports_version_send: [:rest]
|
|
3051
|
+
|
|
3052
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
3053
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
3054
|
+
|
|
3055
|
+
options.apply_defaults timeout: @config.rpcs.find_group_chats.timeout,
|
|
3056
|
+
metadata: call_metadata,
|
|
3057
|
+
retry_policy: @config.rpcs.find_group_chats.retry_policy
|
|
3058
|
+
|
|
3059
|
+
options.apply_defaults timeout: @config.timeout,
|
|
3060
|
+
metadata: @config.metadata,
|
|
3061
|
+
retry_policy: @config.retry_policy
|
|
3062
|
+
|
|
3063
|
+
@chat_service_stub.find_group_chats request, options do |result, operation|
|
|
3064
|
+
result = ::Gapic::Rest::PagedEnumerable.new @chat_service_stub, :find_group_chats, "spaces", request, result, options
|
|
3065
|
+
yield result, operation if block_given?
|
|
3066
|
+
throw :response, result
|
|
3067
|
+
end
|
|
3068
|
+
rescue ::Gapic::Rest::Error => e
|
|
3069
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
3070
|
+
end
|
|
3071
|
+
|
|
2921
3072
|
##
|
|
2922
3073
|
# Creates a membership for the calling Chat app, a user, or a Google Group.
|
|
2923
3074
|
# Creating memberships for other Chat apps isn't supported.
|
|
@@ -5730,6 +5881,7 @@ module Google
|
|
|
5730
5881
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
5731
5882
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
5732
5883
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
5884
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
5733
5885
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
5734
5886
|
# trigger a retry.
|
|
5735
5887
|
# @return [::Hash]
|
|
@@ -5802,6 +5954,7 @@ module Google
|
|
|
5802
5954
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
5803
5955
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
5804
5956
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
5957
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
5805
5958
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
5806
5959
|
# trigger a retry.
|
|
5807
5960
|
#
|
|
@@ -5897,6 +6050,11 @@ module Google
|
|
|
5897
6050
|
#
|
|
5898
6051
|
attr_reader :find_direct_message
|
|
5899
6052
|
##
|
|
6053
|
+
# RPC-specific configuration for `find_group_chats`
|
|
6054
|
+
# @return [::Gapic::Config::Method]
|
|
6055
|
+
#
|
|
6056
|
+
attr_reader :find_group_chats
|
|
6057
|
+
##
|
|
5900
6058
|
# RPC-specific configuration for `create_membership`
|
|
5901
6059
|
# @return [::Gapic::Config::Method]
|
|
5902
6060
|
#
|
|
@@ -6055,6 +6213,8 @@ module Google
|
|
|
6055
6213
|
@complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
|
|
6056
6214
|
find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
|
|
6057
6215
|
@find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
|
|
6216
|
+
find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
|
|
6217
|
+
@find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
|
|
6058
6218
|
create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
|
|
6059
6219
|
@create_membership = ::Gapic::Config::Method.new create_membership_config
|
|
6060
6220
|
update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
|
|
@@ -793,6 +793,46 @@ module Google
|
|
|
793
793
|
end
|
|
794
794
|
end
|
|
795
795
|
|
|
796
|
+
##
|
|
797
|
+
# Baseline implementation for the find_group_chats REST call
|
|
798
|
+
#
|
|
799
|
+
# @param request_pb [::Google::Apps::Chat::V1::FindGroupChatsRequest]
|
|
800
|
+
# A request object representing the call parameters. Required.
|
|
801
|
+
# @param options [::Gapic::CallOptions]
|
|
802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
803
|
+
#
|
|
804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
805
|
+
# @yieldparam result [::Google::Apps::Chat::V1::FindGroupChatsResponse]
|
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
807
|
+
#
|
|
808
|
+
# @return [::Google::Apps::Chat::V1::FindGroupChatsResponse]
|
|
809
|
+
# A result object deserialized from the server's reply
|
|
810
|
+
def find_group_chats request_pb, options = nil
|
|
811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
812
|
+
|
|
813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_find_group_chats_request request_pb
|
|
814
|
+
query_string_params = if query_string_params.any?
|
|
815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
816
|
+
else
|
|
817
|
+
{}
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
response = @client_stub.make_http_request(
|
|
821
|
+
verb,
|
|
822
|
+
uri: uri,
|
|
823
|
+
body: body || "",
|
|
824
|
+
params: query_string_params,
|
|
825
|
+
method_name: "find_group_chats",
|
|
826
|
+
options: options
|
|
827
|
+
)
|
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
829
|
+
result = ::Google::Apps::Chat::V1::FindGroupChatsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
830
|
+
catch :response do
|
|
831
|
+
yield result, operation if block_given?
|
|
832
|
+
result
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
796
836
|
##
|
|
797
837
|
# Baseline implementation for the create_membership REST call
|
|
798
838
|
#
|
|
@@ -2136,6 +2176,25 @@ module Google
|
|
|
2136
2176
|
transcoder.transcode request_pb
|
|
2137
2177
|
end
|
|
2138
2178
|
|
|
2179
|
+
##
|
|
2180
|
+
# @private
|
|
2181
|
+
#
|
|
2182
|
+
# GRPC transcoding helper method for the find_group_chats REST call
|
|
2183
|
+
#
|
|
2184
|
+
# @param request_pb [::Google::Apps::Chat::V1::FindGroupChatsRequest]
|
|
2185
|
+
# A request object representing the call parameters. Required.
|
|
2186
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2187
|
+
# Uri, Body, Query string parameters
|
|
2188
|
+
def self.transcode_find_group_chats_request request_pb
|
|
2189
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2190
|
+
.with_bindings(
|
|
2191
|
+
uri_method: :get,
|
|
2192
|
+
uri_template: "/v1/spaces:findGroupChats",
|
|
2193
|
+
matches: []
|
|
2194
|
+
)
|
|
2195
|
+
transcoder.transcode request_pb
|
|
2196
|
+
end
|
|
2197
|
+
|
|
2139
2198
|
##
|
|
2140
2199
|
# @private
|
|
2141
2200
|
#
|
|
@@ -20,7 +20,7 @@ require 'google/chat/v1/thread_read_state_pb'
|
|
|
20
20
|
require 'google/protobuf/empty_pb'
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
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\x1cgoogle/chat/v1/section.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\xcc?\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\x12\x8f\x01\n\rCreateSection\x12$.google.chat.v1.CreateSectionRequest\x1a\x17.google.chat.v1.Section\"?\xda\x41\x0eparent,section\x82\xd3\xe4\x93\x02(\"\x1d/v1/{parent=users/*}/sections:\x07section\x12{\n\rDeleteSection\x12$.google.chat.v1.DeleteSectionRequest\x1a\x16.google.protobuf.Empty\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=users/*/sections/*}\x12\x9c\x01\n\rUpdateSection\x12$.google.chat.v1.UpdateSectionRequest\x1a\x17.google.chat.v1.Section\"L\xda\x41\x13section,update_mask\x82\xd3\xe4\x93\x02\x30\x32%/v1/{section.name=users/*/sections/*}:\x07section\x12\x89\x01\n\x0cListSections\x12#.google.chat.v1.ListSectionsRequest\x1a$.google.chat.v1.ListSectionsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=users/*}/sections\x12\x95\x01\n\x0fPositionSection\x12&.google.chat.v1.PositionSectionRequest\x1a\'.google.chat.v1.PositionSectionResponse\"1\x82\xd3\xe4\x93\x02+\"&/v1/{name=users/*/sections/*}:position:\x01*\x12\x9d\x01\n\x10ListSectionItems\x12\'.google.chat.v1.ListSectionItemsRequest\x1a(.google.chat.v1.ListSectionItemsResponse\"6\xda\x41\x06parent\x82\xd3\xe4\x93\x02\'\x12%/v1/{parent=users/*/sections/*}/items\x12\xaf\x01\n\x0fMoveSectionItem\x12&.google.chat.v1.MoveSectionItemRequest\x1a\'.google.chat.v1.MoveSectionItemResponse\"K\xda\x41\x13name,target_section\x82\xd3\xe4\x93\x02/\"*/v1/{name=users/*/sections/*/items/*}:move:\x01*\x1a\xbe\x0e\xca\x41\x13\x63hat.googleapis.com\xd2\x41\xa4\x0ehttps://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.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.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.sections,https://www.googleapis.com/auth/chat.users.sections.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
|
+
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\x1cgoogle/chat/v1/section.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\xd1@\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\x82\x01\n\x0e\x46indGroupChats\x12%.google.chat.v1.FindGroupChatsRequest\x1a&.google.chat.v1.FindGroupChatsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/spaces:findGroupChats\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\x12\x8f\x01\n\rCreateSection\x12$.google.chat.v1.CreateSectionRequest\x1a\x17.google.chat.v1.Section\"?\xda\x41\x0eparent,section\x82\xd3\xe4\x93\x02(\"\x1d/v1/{parent=users/*}/sections:\x07section\x12{\n\rDeleteSection\x12$.google.chat.v1.DeleteSectionRequest\x1a\x16.google.protobuf.Empty\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=users/*/sections/*}\x12\x9c\x01\n\rUpdateSection\x12$.google.chat.v1.UpdateSectionRequest\x1a\x17.google.chat.v1.Section\"L\xda\x41\x13section,update_mask\x82\xd3\xe4\x93\x02\x30\x32%/v1/{section.name=users/*/sections/*}:\x07section\x12\x89\x01\n\x0cListSections\x12#.google.chat.v1.ListSectionsRequest\x1a$.google.chat.v1.ListSectionsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=users/*}/sections\x12\x95\x01\n\x0fPositionSection\x12&.google.chat.v1.PositionSectionRequest\x1a\'.google.chat.v1.PositionSectionResponse\"1\x82\xd3\xe4\x93\x02+\"&/v1/{name=users/*/sections/*}:position:\x01*\x12\x9d\x01\n\x10ListSectionItems\x12\'.google.chat.v1.ListSectionItemsRequest\x1a(.google.chat.v1.ListSectionItemsResponse\"6\xda\x41\x06parent\x82\xd3\xe4\x93\x02\'\x12%/v1/{parent=users/*/sections/*}/items\x12\xaf\x01\n\x0fMoveSectionItem\x12&.google.chat.v1.MoveSectionItemRequest\x1a\'.google.chat.v1.MoveSectionItemResponse\"K\xda\x41\x13name,target_section\x82\xd3\xe4\x93\x02/\"*/v1/{name=users/*/sections/*/items/*}:move:\x01*\x1a\xbe\x0e\xca\x41\x13\x63hat.googleapis.com\xd2\x41\xa4\x0ehttps://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.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.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.sections,https://www.googleapis.com/auth/chat.users.sections.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"
|
|
24
24
|
|
|
25
25
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
26
26
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -553,6 +553,27 @@ module Google
|
|
|
553
553
|
# - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
554
554
|
# - `https://www.googleapis.com/auth/chat.spaces`
|
|
555
555
|
rpc :FindDirectMessage, ::Google::Apps::Chat::V1::FindDirectMessageRequest, ::Google::Apps::Chat::V1::Space
|
|
556
|
+
# Returns all spaces with `spaceType == GROUP_CHAT`, whose
|
|
557
|
+
# human memberships contain exactly the calling user, and the users specified
|
|
558
|
+
# in `FindGroupChatsRequest.users`. Only members that have joined the
|
|
559
|
+
# conversation are supported. For an example, see [Find group
|
|
560
|
+
# chats](https://developers.google.com/workspace/chat/find-group-chats).
|
|
561
|
+
#
|
|
562
|
+
# If the calling user blocks, or is blocked by, some users, and no spaces
|
|
563
|
+
# with the entire specified set of users are found, this method returns
|
|
564
|
+
# spaces that don't include the blocked or blocking users.
|
|
565
|
+
#
|
|
566
|
+
# The specified set of users must contain only human (non-app) memberships.
|
|
567
|
+
# A request that contains non-human users doesn't return any spaces.
|
|
568
|
+
#
|
|
569
|
+
# Requires [user
|
|
570
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
571
|
+
# with one of the following [authorization
|
|
572
|
+
# scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
573
|
+
#
|
|
574
|
+
# - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
575
|
+
# - `https://www.googleapis.com/auth/chat.memberships`
|
|
576
|
+
rpc :FindGroupChats, ::Google::Apps::Chat::V1::FindGroupChatsRequest, ::Google::Apps::Chat::V1::FindGroupChatsResponse
|
|
556
577
|
# Creates a membership for the calling Chat app, a user, or a Google Group.
|
|
557
578
|
# Creating memberships for other Chat apps isn't supported.
|
|
558
579
|
# When creating a membership, if the specified member has their auto-accept
|
|
@@ -21,7 +21,7 @@ require 'google/protobuf/field_mask_pb'
|
|
|
21
21
|
require 'google/protobuf/timestamp_pb'
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
descriptor_data = "\n\x1cgoogle/chat/v1/message.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/apps/card/v1/card.proto\x1a\"google/chat/v1/action_status.proto\x1a\x1fgoogle/chat/v1/annotation.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a%google/chat/v1/contextual_addon.proto\x1a&google/chat/v1/deletion_metadata.proto\x1a google/chat/v1/matched_url.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\"google/chat/v1/slash_command.proto\x1a\x1agoogle/chat/v1/space.proto\x1a\x19google/chat/v1/user.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
24
|
+
descriptor_data = "\n\x1cgoogle/chat/v1/message.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/apps/card/v1/card.proto\x1a\"google/chat/v1/action_status.proto\x1a\x1fgoogle/chat/v1/annotation.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a%google/chat/v1/contextual_addon.proto\x1a&google/chat/v1/deletion_metadata.proto\x1a google/chat/v1/matched_url.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\"google/chat/v1/slash_command.proto\x1a\x1agoogle/chat/v1/space.proto\x1a\x19google/chat/v1/user.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\n\n\x07Message\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12)\n\x06sender\x18\x02 \x01(\x0b\x32\x14.google.chat.v1.UserB\x03\xe0\x41\x03\x12\x37\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xe0\x41\x05\xe0\x41\x01\x12\x39\n\x10last_update_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x1a \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04text\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x66ormatted_text\x18+ \x01(\tB\x03\xe0\x41\x03\x12=\n\x05\x63\x61rds\x18\x05 \x03(\x0b\x32*.google.chat.v1.ContextualAddOnMarkup.CardB\x02\x18\x01\x12\x31\n\x08\x63\x61rds_v2\x18\x16 \x03(\x0b\x32\x1a.google.chat.v1.CardWithIdB\x03\xe0\x41\x01\x12\x34\n\x0b\x61nnotations\x18\n \x03(\x0b\x32\x1a.google.chat.v1.AnnotationB\x03\xe0\x41\x03\x12&\n\x06thread\x18\x0b \x01(\x0b\x32\x16.google.chat.v1.Thread\x12)\n\x05space\x18\x0c \x01(\x0b\x32\x15.google.chat.v1.SpaceB\x03\xe0\x41\x03\x12\x1a\n\rfallback_text\x18\r \x01(\tB\x03\xe0\x41\x01\x12<\n\x0f\x61\x63tion_response\x18\x0e \x01(\x0b\x32\x1e.google.chat.v1.ActionResponseB\x03\xe0\x41\x04\x12\x1a\n\rargument_text\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12\x38\n\rslash_command\x18\x11 \x01(\x0b\x32\x1c.google.chat.v1.SlashCommandB\x03\xe0\x41\x03\x12\x33\n\nattachment\x18\x12 \x03(\x0b\x32\x1a.google.chat.v1.AttachmentB\x03\xe0\x41\x01\x12\x34\n\x0bmatched_url\x18\x14 \x01(\x0b\x32\x1a.google.chat.v1.MatchedUrlB\x03\xe0\x41\x03\x12\x19\n\x0cthread_reply\x18\x19 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06silent\x18. \x01(\x08\x42\x03\xe0\x41\x03\x12\'\n\x1a\x63lient_assigned_message_id\x18 \x01(\tB\x03\xe0\x41\x01\x12K\n\x18\x65moji_reaction_summaries\x18! \x03(\x0b\x32$.google.chat.v1.EmojiReactionSummaryB\x03\xe0\x41\x03\x12<\n\x16private_message_viewer\x18$ \x01(\x0b\x32\x14.google.chat.v1.UserB\x06\xe0\x41\x05\xe0\x41\x01\x12@\n\x11\x64\x65letion_metadata\x18& \x01(\x0b\x32 .google.chat.v1.DeletionMetadataB\x03\xe0\x41\x03\x12K\n\x17quoted_message_metadata\x18\' \x01(\x0b\x32%.google.chat.v1.QuotedMessageMetadataB\x03\xe0\x41\x01\x12\x37\n\rattached_gifs\x18* \x03(\x0b\x32\x1b.google.chat.v1.AttachedGifB\x03\xe0\x41\x03\x12?\n\x11\x61\x63\x63\x65ssory_widgets\x18, \x03(\x0b\x32\x1f.google.chat.v1.AccessoryWidgetB\x03\xe0\x41\x01:C\xea\x41@\n\x1b\x63hat.googleapis.com/Message\x12!spaces/{space}/messages/{message}\"\x1f\n\x0b\x41ttachedGif\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\"\x98\x04\n\x15QuotedMessageMetadata\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x39\n\x10last_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12H\n\nquote_type\x18\x04 \x01(\x0e\x32/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\x03\xe0\x41\x01\x12K\n\x17quoted_message_snapshot\x18\x05 \x01(\x0b\x32%.google.chat.v1.QuotedMessageSnapshotB\x03\xe0\x41\x03\x12\x42\n\x12\x66orwarded_metadata\x18\x06 \x01(\x0b\x32!.google.chat.v1.ForwardedMetadataB\x03\xe0\x41\x03\"2\n\tQuoteType\x12\x1a\n\x16QUOTE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05REPLY\x10\x01:\x81\x01\xea\x41~\n)chat.googleapis.com/QuotedMessageMetadata\x12Qspaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\xc8\x01\n\x15QuotedMessageSnapshot\x12\x13\n\x06sender\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04text\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66ormatted_text\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x1a.google.chat.v1.AnnotationB\x03\xe0\x41\x03\x12\x34\n\x0b\x61ttachments\x18\x05 \x03(\x0b\x32\x1a.google.chat.v1.AttachmentB\x03\xe0\x41\x03\"f\n\x11\x46orwardedMetadata\x12\x30\n\x05space\x18\x01 \x01(\tB!\xe0\x41\x03\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x1f\n\x12space_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\"v\n\x06Thread\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\nthread_key\x18\x03 \x01(\tB\x03\xe0\x41\x01:@\xea\x41=\n\x1a\x63hat.googleapis.com/Thread\x12\x1fspaces/{space}/threads/{thread}\"\xd2\x04\n\x0e\x41\x63tionResponse\x12>\n\x04type\x18\x01 \x01(\x0e\x32+.google.chat.v1.ActionResponse.ResponseTypeB\x03\xe0\x41\x04\x12\x10\n\x03url\x18\x02 \x01(\tB\x03\xe0\x41\x04\x12\x38\n\rdialog_action\x18\x03 \x01(\x0b\x32\x1c.google.chat.v1.DialogActionB\x03\xe0\x41\x04\x12I\n\x0eupdated_widget\x18\x04 \x01(\x0b\x32,.google.chat.v1.ActionResponse.UpdatedWidgetB\x03\xe0\x41\x04\x1aR\n\x0eSelectionItems\x12@\n\x05items\x18\x01 \x03(\x0b\x32\x31.google.apps.card.v1.SelectionInput.SelectionItem\x1aw\n\rUpdatedWidget\x12\x44\n\x0bsuggestions\x18\x01 \x01(\x0b\x32-.google.chat.v1.ActionResponse.SelectionItemsH\x00\x12\x0e\n\x06widget\x18\x02 \x01(\tB\x10\n\x0eupdated_widget\"\x9b\x01\n\x0cResponseType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNEW_MESSAGE\x10\x01\x12\x12\n\x0eUPDATE_MESSAGE\x10\x02\x12\x1d\n\x19UPDATE_USER_MESSAGE_CARDS\x10\x06\x12\x12\n\x0eREQUEST_CONFIG\x10\x03\x12\n\n\x06\x44IALOG\x10\x04\x12\x11\n\rUPDATE_WIDGET\x10\x07\"S\n\x0f\x41\x63\x63\x65ssoryWidget\x12\x36\n\x0b\x62utton_list\x18\x01 \x01(\x0b\x32\x1f.google.apps.card.v1.ButtonListH\x00\x42\x08\n\x06\x61\x63tion\"F\n\x11GetMessageRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\"]\n\x14\x44\x65leteMessageRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x97\x01\n\x14UpdateMessageRequest\x12-\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.MessageB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x04\n\x14\x43reateMessageRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\x12-\n\x07message\x18\x04 \x01(\x0b\x32\x17.google.chat.v1.MessageB\x03\xe0\x41\x02\x12\x19\n\nthread_key\x18\x06 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x14message_reply_option\x18\x08 \x01(\x0e\x32\x37.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\x03\xe0\x41\x01\x12\x17\n\nmessage_id\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x62\n#create_message_notification_options\x18\n \x01(\x0b\x32\x30.google.chat.v1.CreateMessageNotificationOptionsB\x03\xe0\x41\x01\"\x7f\n\x12MessageReplyOption\x12$\n MESSAGE_REPLY_OPTION_UNSPECIFIED\x10\x00\x12(\n$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\x10\x01\x12\x19\n\x15REPLY_MESSAGE_OR_FAIL\x10\x02\"\xf2\x01\n CreateMessageNotificationOptions\x12\\\n\x11notification_type\x18\x01 \x01(\x0e\x32\x41.google.chat.v1.CreateMessageNotificationOptions.NotificationType\"p\n\x10NotificationType\x12\x1a\n\x16NOTIFICATION_TYPE_NONE\x10\x00\x12\"\n\x1eNOTIFICATION_TYPE_FORCE_NOTIFY\x10\x02\x12\x1c\n\x18NOTIFICATION_TYPE_SILENT\x10\x03\"\xc2\x01\n\x13ListMessagesRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\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\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"Z\n\x14ListMessagesResponse\x12)\n\x08messages\x18\x01 \x03(\x0b\x32\x17.google.chat.v1.Message\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x81\x01\n\x0c\x44ialogAction\x12-\n\x06\x64ialog\x18\x01 \x01(\x0b\x32\x16.google.chat.v1.DialogB\x03\xe0\x41\x04H\x00\x12\x38\n\raction_status\x18\x02 \x01(\x0b\x32\x1c.google.chat.v1.ActionStatusB\x03\xe0\x41\x04\x42\x08\n\x06\x61\x63tion\"6\n\x06\x44ialog\x12,\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x19.google.apps.card.v1.CardB\x03\xe0\x41\x04\"F\n\nCardWithId\x12\x0f\n\x07\x63\x61rd_id\x18\x01 \x01(\t\x12\'\n\x04\x63\x61rd\x18\x02 \x01(\x0b\x32\x19.google.apps.card.v1.CardB\xa5\x01\n\x12\x63om.google.chat.v1B\x0cMessageProtoP\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"
|
|
25
25
|
|
|
26
26
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
27
27
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -47,6 +47,8 @@ module Google
|
|
|
47
47
|
UpdateMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.UpdateMessageRequest").msgclass
|
|
48
48
|
CreateMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CreateMessageRequest").msgclass
|
|
49
49
|
CreateMessageRequest::MessageReplyOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CreateMessageRequest.MessageReplyOption").enummodule
|
|
50
|
+
CreateMessageNotificationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CreateMessageNotificationOptions").msgclass
|
|
51
|
+
CreateMessageNotificationOptions::NotificationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CreateMessageNotificationOptions.NotificationType").enummodule
|
|
50
52
|
ListMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListMessagesRequest").msgclass
|
|
51
53
|
ListMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListMessagesResponse").msgclass
|
|
52
54
|
DialogAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DialogAction").msgclass
|
|
@@ -11,7 +11,7 @@ require 'google/protobuf/field_mask_pb'
|
|
|
11
11
|
require 'google/protobuf/timestamp_pb'
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
descriptor_data = "\n\x1agoogle/chat/v1/space.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/chat/v1/history_state.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcd\x16\n\x05Space\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12/\n\x04type\x18\x02 \x01(\x0e\x32\x1a.google.chat.v1.Space.TypeB\x05\x18\x01\xe0\x41\x03\x12\x38\n\nspace_type\x18\n \x01(\x0e\x32\x1f.google.chat.v1.Space.SpaceTypeB\x03\xe0\x41\x01\x12\x1f\n\x12single_user_bot_dm\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x17\n\x08threaded\x18\x05 \x01(\x08\x42\x05\x18\x01\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12%\n\x15\x65xternal_user_allowed\x18\x08 \x01(\x08\x42\x06\xe0\x41\x05\xe0\x41\x01\x12M\n\x15space_threading_state\x18\t \x01(\x0e\x32).google.chat.v1.Space.SpaceThreadingStateB\x03\xe0\x41\x03\x12>\n\rspace_details\x18\x0b \x01(\x0b\x32\".google.chat.v1.Space.SpaceDetailsB\x03\xe0\x41\x01\x12>\n\x13space_history_state\x18\r \x01(\x0e\x32\x1c.google.chat.v1.HistoryStateB\x03\xe0\x41\x01\x12\x18\n\x0bimport_mode\x18\x10 \x01(\x08\x42\x03\xe0\x41\x01\x12\x37\n\x0b\x63reate_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xe0\x41\x05\xe0\x41\x01\x12\x39\n\x10last_active_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x0f\x61\x64min_installed\x18\x13 \x01(\x08\x42\x03\xe0\x41\x03\x12\x44\n\x10membership_count\x18\x14 \x01(\x0b\x32%.google.chat.v1.Space.MembershipCountB\x03\xe0\x41\x03\x12\x42\n\x0f\x61\x63\x63\x65ss_settings\x18\x17 \x01(\x0b\x32$.google.chat.v1.Space.AccessSettingsB\x03\xe0\x41\x01\x12\x1d\n\x08\x63ustomer\x18\x18 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x01H\x01\x88\x01\x01\x12\x16\n\tspace_uri\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x64\n\x1epredefined_permission_settings\x18\x1a \x01(\x0e\x32\x32.google.chat.v1.Space.PredefinedPermissionSettingsB\x06\xe0\x41\x04\xe0\x41\x01H\x00\x12L\n\x13permission_settings\x18\x1b \x01(\x0b\x32(.google.chat.v1.Space.PermissionSettingsB\x03\xe0\x41\x01H\x00\x12@\n\x17import_mode_expire_time\x18\x1c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\x41\n\x0cSpaceDetails\x12\x18\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nguidelines\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1a_\n\x0fMembershipCount\x12+\n\x1ejoined_direct_human_user_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1f\n\x12joined_group_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x1a\xc0\x01\n\x0e\x41\x63\x63\x65ssSettings\x12K\n\x0c\x61\x63\x63\x65ss_state\x18\x01 \x01(\x0e\x32\x30.google.chat.v1.Space.AccessSettings.AccessStateB\x03\xe0\x41\x03\x12\x15\n\x08\x61udience\x18\x03 \x01(\tB\x03\xe0\x41\x01\"J\n\x0b\x41\x63\x63\x65ssState\x12\x1c\n\x18\x41\x43\x43\x45SS_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIVATE\x10\x01\x12\x10\n\x0c\x44ISCOVERABLE\x10\x02\x1a\xa8\x06\n\x12PermissionSettings\x12T\n\x19manage_members_and_groups\x18\x01 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12O\n\x14modify_space_details\x18\x02 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12I\n\x0etoggle_history\x18\x03 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x02\x88\x01\x01\x12M\n\x12use_at_mention_all\x18\x04 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x03\x88\x01\x01\x12\x46\n\x0bmanage_apps\x18\x05 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x04\x88\x01\x01\x12J\n\x0fmanage_webhooks\x18\x06 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12H\n\rpost_messages\x18\x07 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12I\n\x0ereply_messages\x18\x08 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x07\x88\x01\x01\x42\x1c\n\x1a_manage_members_and_groupsB\x17\n\x15_modify_space_detailsB\x11\n\x0f_toggle_historyB\x15\n\x13_use_at_mention_allB\x0e\n\x0c_manage_appsB\x12\n\x10_manage_webhooksB\x10\n\x0e_post_messagesB\x11\n\x0f_reply_messages\x1a\x9d\x01\n\x11PermissionSetting\x12\x1d\n\x10managers_allowed\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12,\n\x1a\x61ssistant_managers_allowed\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x1c\n\x0fmembers_allowed\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x42\x1d\n\x1b_assistant_managers_allowed\".\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04ROOM\x10\x01\x12\x06\n\x02\x44M\x10\x02\"V\n\tSpaceType\x12\x1a\n\x16SPACE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nGROUP_CHAT\x10\x02\x12\x12\n\x0e\x44IRECT_MESSAGE\x10\x03\"\x82\x01\n\x13SpaceThreadingState\x12%\n!SPACE_THREADING_STATE_UNSPECIFIED\x10\x00\x12\x15\n\x11THREADED_MESSAGES\x10\x02\x12\x14\n\x10GROUPED_MESSAGES\x10\x03\x12\x17\n\x13UNTHREADED_MESSAGES\x10\x04\"\x7f\n\x1cPredefinedPermissionSettings\x12.\n*PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\n\x13\x43OLLABORATION_SPACE\x10\x01\x12\x16\n\x12\x41NNOUNCEMENT_SPACE\x10\x02:.\xea\x41+\n\x19\x63hat.googleapis.com/Space\x12\x0espaces/{space}B\x1b\n\x19space_permission_settingsB\x0b\n\t_customer\"X\n\x12\x43reateSpaceRequest\x12)\n\x05space\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.SpaceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"Y\n\x11ListSpacesRequest\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\"T\n\x12ListSpacesResponse\x12%\n\x06spaces\x18\x01 \x03(\x0b\x32\x15.google.chat.v1.Space\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x0fGetSpaceRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x1d\n\x10use_admin_access\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"-\n\x18\x46indDirectMessageRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x94\x01\n\x12UpdateSpaceRequest\x12)\n\x05space\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.SpaceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1d\n\x10use_admin_access\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x81\x01\n\x13SearchSpacesRequest\x12\x18\n\x10use_admin_access\x18\x01 \x01(\x08\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x12\n\x05query\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"j\n\x14SearchSpacesResponse\x12%\n\x06spaces\x18\x01 \x03(\x0b\x32\x15.google.chat.v1.Space\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"d\n\x12\x44\x65leteSpaceRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x1d\n\x10use_admin_access\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"M\n\x1a\x43ompleteImportSpaceRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\"C\n\x1b\x43ompleteImportSpaceResponse\x12$\n\x05space\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.
|
|
14
|
+
descriptor_data = "\n\x1agoogle/chat/v1/space.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/chat/v1/history_state.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcd\x16\n\x05Space\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12/\n\x04type\x18\x02 \x01(\x0e\x32\x1a.google.chat.v1.Space.TypeB\x05\x18\x01\xe0\x41\x03\x12\x38\n\nspace_type\x18\n \x01(\x0e\x32\x1f.google.chat.v1.Space.SpaceTypeB\x03\xe0\x41\x01\x12\x1f\n\x12single_user_bot_dm\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x17\n\x08threaded\x18\x05 \x01(\x08\x42\x05\x18\x01\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12%\n\x15\x65xternal_user_allowed\x18\x08 \x01(\x08\x42\x06\xe0\x41\x05\xe0\x41\x01\x12M\n\x15space_threading_state\x18\t \x01(\x0e\x32).google.chat.v1.Space.SpaceThreadingStateB\x03\xe0\x41\x03\x12>\n\rspace_details\x18\x0b \x01(\x0b\x32\".google.chat.v1.Space.SpaceDetailsB\x03\xe0\x41\x01\x12>\n\x13space_history_state\x18\r \x01(\x0e\x32\x1c.google.chat.v1.HistoryStateB\x03\xe0\x41\x01\x12\x18\n\x0bimport_mode\x18\x10 \x01(\x08\x42\x03\xe0\x41\x01\x12\x37\n\x0b\x63reate_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xe0\x41\x05\xe0\x41\x01\x12\x39\n\x10last_active_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x0f\x61\x64min_installed\x18\x13 \x01(\x08\x42\x03\xe0\x41\x03\x12\x44\n\x10membership_count\x18\x14 \x01(\x0b\x32%.google.chat.v1.Space.MembershipCountB\x03\xe0\x41\x03\x12\x42\n\x0f\x61\x63\x63\x65ss_settings\x18\x17 \x01(\x0b\x32$.google.chat.v1.Space.AccessSettingsB\x03\xe0\x41\x01\x12\x1d\n\x08\x63ustomer\x18\x18 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x01H\x01\x88\x01\x01\x12\x16\n\tspace_uri\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x64\n\x1epredefined_permission_settings\x18\x1a \x01(\x0e\x32\x32.google.chat.v1.Space.PredefinedPermissionSettingsB\x06\xe0\x41\x04\xe0\x41\x01H\x00\x12L\n\x13permission_settings\x18\x1b \x01(\x0b\x32(.google.chat.v1.Space.PermissionSettingsB\x03\xe0\x41\x01H\x00\x12@\n\x17import_mode_expire_time\x18\x1c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\x41\n\x0cSpaceDetails\x12\x18\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nguidelines\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1a_\n\x0fMembershipCount\x12+\n\x1ejoined_direct_human_user_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1f\n\x12joined_group_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x1a\xc0\x01\n\x0e\x41\x63\x63\x65ssSettings\x12K\n\x0c\x61\x63\x63\x65ss_state\x18\x01 \x01(\x0e\x32\x30.google.chat.v1.Space.AccessSettings.AccessStateB\x03\xe0\x41\x03\x12\x15\n\x08\x61udience\x18\x03 \x01(\tB\x03\xe0\x41\x01\"J\n\x0b\x41\x63\x63\x65ssState\x12\x1c\n\x18\x41\x43\x43\x45SS_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIVATE\x10\x01\x12\x10\n\x0c\x44ISCOVERABLE\x10\x02\x1a\xa8\x06\n\x12PermissionSettings\x12T\n\x19manage_members_and_groups\x18\x01 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12O\n\x14modify_space_details\x18\x02 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12I\n\x0etoggle_history\x18\x03 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x02\x88\x01\x01\x12M\n\x12use_at_mention_all\x18\x04 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x03\x88\x01\x01\x12\x46\n\x0bmanage_apps\x18\x05 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x04\x88\x01\x01\x12J\n\x0fmanage_webhooks\x18\x06 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12H\n\rpost_messages\x18\x07 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x03H\x06\x88\x01\x01\x12I\n\x0ereply_messages\x18\x08 \x01(\x0b\x32\'.google.chat.v1.Space.PermissionSettingB\x03\xe0\x41\x01H\x07\x88\x01\x01\x42\x1c\n\x1a_manage_members_and_groupsB\x17\n\x15_modify_space_detailsB\x11\n\x0f_toggle_historyB\x15\n\x13_use_at_mention_allB\x0e\n\x0c_manage_appsB\x12\n\x10_manage_webhooksB\x10\n\x0e_post_messagesB\x11\n\x0f_reply_messages\x1a\x9d\x01\n\x11PermissionSetting\x12\x1d\n\x10managers_allowed\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12,\n\x1a\x61ssistant_managers_allowed\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x1c\n\x0fmembers_allowed\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x42\x1d\n\x1b_assistant_managers_allowed\".\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04ROOM\x10\x01\x12\x06\n\x02\x44M\x10\x02\"V\n\tSpaceType\x12\x1a\n\x16SPACE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nGROUP_CHAT\x10\x02\x12\x12\n\x0e\x44IRECT_MESSAGE\x10\x03\"\x82\x01\n\x13SpaceThreadingState\x12%\n!SPACE_THREADING_STATE_UNSPECIFIED\x10\x00\x12\x15\n\x11THREADED_MESSAGES\x10\x02\x12\x14\n\x10GROUPED_MESSAGES\x10\x03\x12\x17\n\x13UNTHREADED_MESSAGES\x10\x04\"\x7f\n\x1cPredefinedPermissionSettings\x12.\n*PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\n\x13\x43OLLABORATION_SPACE\x10\x01\x12\x16\n\x12\x41NNOUNCEMENT_SPACE\x10\x02:.\xea\x41+\n\x19\x63hat.googleapis.com/Space\x12\x0espaces/{space}B\x1b\n\x19space_permission_settingsB\x0b\n\t_customer\"X\n\x12\x43reateSpaceRequest\x12)\n\x05space\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.SpaceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"Y\n\x11ListSpacesRequest\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\"T\n\x12ListSpacesResponse\x12%\n\x06spaces\x18\x01 \x03(\x0b\x32\x15.google.chat.v1.Space\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x0fGetSpaceRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x1d\n\x10use_admin_access\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"-\n\x18\x46indDirectMessageRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x8b\x01\n\x15\x46indGroupChatsRequest\x12\x12\n\x05users\x18\x05 \x03(\tB\x03\xe0\x41\x01\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-\n\nspace_view\x18\x04 \x01(\x0e\x32\x19.google.chat.v1.SpaceView\"X\n\x16\x46indGroupChatsResponse\x12%\n\x06spaces\x18\x01 \x03(\x0b\x32\x15.google.chat.v1.Space\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x94\x01\n\x12UpdateSpaceRequest\x12)\n\x05space\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.SpaceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1d\n\x10use_admin_access\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x81\x01\n\x13SearchSpacesRequest\x12\x18\n\x10use_admin_access\x18\x01 \x01(\x08\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x12\n\x05query\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"j\n\x14SearchSpacesResponse\x12%\n\x06spaces\x18\x01 \x03(\x0b\x32\x15.google.chat.v1.Space\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"d\n\x12\x44\x65leteSpaceRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x1d\n\x10use_admin_access\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"M\n\x1a\x43ompleteImportSpaceRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\"C\n\x1b\x43ompleteImportSpaceResponse\x12$\n\x05space\x18\x01 \x01(\x0b\x32\x15.google.chat.v1.Space*c\n\tSpaceView\x12\x1a\n\x16SPACE_VIEW_UNSPECIFIED\x10\x00\x12!\n\x1dSPACE_VIEW_RESOURCE_NAME_ONLY\x10\x03\x12\x17\n\x13SPACE_VIEW_EXPANDED\x10\x04\x42\xa3\x01\n\x12\x63om.google.chat.v1B\nSpaceProtoP\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"
|
|
15
15
|
|
|
16
16
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
17
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -36,12 +36,15 @@ module Google
|
|
|
36
36
|
ListSpacesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ListSpacesResponse").msgclass
|
|
37
37
|
GetSpaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.GetSpaceRequest").msgclass
|
|
38
38
|
FindDirectMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.FindDirectMessageRequest").msgclass
|
|
39
|
+
FindGroupChatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.FindGroupChatsRequest").msgclass
|
|
40
|
+
FindGroupChatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.FindGroupChatsResponse").msgclass
|
|
39
41
|
UpdateSpaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.UpdateSpaceRequest").msgclass
|
|
40
42
|
SearchSpacesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SearchSpacesRequest").msgclass
|
|
41
43
|
SearchSpacesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SearchSpacesResponse").msgclass
|
|
42
44
|
DeleteSpaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DeleteSpaceRequest").msgclass
|
|
43
45
|
CompleteImportSpaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CompleteImportSpaceRequest").msgclass
|
|
44
46
|
CompleteImportSpaceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CompleteImportSpaceResponse").msgclass
|
|
47
|
+
SpaceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SpaceView").enummodule
|
|
45
48
|
end
|
|
46
49
|
end
|
|
47
50
|
end
|
|
@@ -790,7 +790,7 @@ module Google
|
|
|
790
790
|
# Aligns widgets to the end position of the column. For left-to-right
|
|
791
791
|
# layouts, aligns widgets to the right. For right-to-left layouts, aligns
|
|
792
792
|
# widgets to the left.
|
|
793
|
-
|
|
793
|
+
const_set :END, 3
|
|
794
794
|
end
|
|
795
795
|
|
|
796
796
|
# Represents vertical alignment attribute.
|
|
@@ -172,6 +172,10 @@ module Google
|
|
|
172
172
|
#
|
|
173
173
|
# If the space doesn't support reply in threads, this field is always
|
|
174
174
|
# `false`.
|
|
175
|
+
# @!attribute [r] silent
|
|
176
|
+
# @return [::Boolean]
|
|
177
|
+
# Output only. Whether this is a silent message. Silent messages are messages
|
|
178
|
+
# where Chat suppresses push notifications for recipients.
|
|
175
179
|
# @!attribute [rw] client_assigned_message_id
|
|
176
180
|
# @return [::String]
|
|
177
181
|
# Optional. A custom ID for the message. You can use field to identify a
|
|
@@ -583,6 +587,11 @@ module Google
|
|
|
583
587
|
#
|
|
584
588
|
# For details, see [Name a
|
|
585
589
|
# message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
|
|
590
|
+
# @!attribute [rw] create_message_notification_options
|
|
591
|
+
# @return [::Google::Apps::Chat::V1::CreateMessageNotificationOptions]
|
|
592
|
+
# Optional. Controls the notification behavior when the message is posted.
|
|
593
|
+
# To learn more, see [Force notifications or send silent
|
|
594
|
+
# messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent).
|
|
586
595
|
class CreateMessageRequest
|
|
587
596
|
include ::Google::Protobuf::MessageExts
|
|
588
597
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -610,6 +619,40 @@ module Google
|
|
|
610
619
|
end
|
|
611
620
|
end
|
|
612
621
|
|
|
622
|
+
# Options for the notification behavior when the message is posted.
|
|
623
|
+
# @!attribute [rw] notification_type
|
|
624
|
+
# @return [::Google::Apps::Chat::V1::CreateMessageNotificationOptions::NotificationType]
|
|
625
|
+
# The notification type for the message.
|
|
626
|
+
class CreateMessageNotificationOptions
|
|
627
|
+
include ::Google::Protobuf::MessageExts
|
|
628
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
629
|
+
|
|
630
|
+
# The notification types options for the message.
|
|
631
|
+
module NotificationType
|
|
632
|
+
# Default behavior. Notification behavior is similar to when the human user
|
|
633
|
+
# sends the message using the Chat UI: no notification is sent to the
|
|
634
|
+
# human sender.
|
|
635
|
+
NOTIFICATION_TYPE_NONE = 0
|
|
636
|
+
|
|
637
|
+
# Force notify recipients. This bypasses users' space notification settings
|
|
638
|
+
# and [Chat Do Not Disturb
|
|
639
|
+
# settings](https://support.google.com/chat/answer/9093489). This option
|
|
640
|
+
# does not bypass device-level Do Not Disturb settings.
|
|
641
|
+
#
|
|
642
|
+
# Requires [app authentication]
|
|
643
|
+
# (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
|
|
644
|
+
NOTIFICATION_TYPE_FORCE_NOTIFY = 2
|
|
645
|
+
|
|
646
|
+
# Silence the notification as if the recipients have [Chat Do Not
|
|
647
|
+
# Disturb](https://support.google.com/chat/answer/9093489) enabled or
|
|
648
|
+
# have muted the space.
|
|
649
|
+
#
|
|
650
|
+
# Requires [app authentication]
|
|
651
|
+
# (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
|
|
652
|
+
NOTIFICATION_TYPE_SILENT = 3
|
|
653
|
+
end
|
|
654
|
+
end
|
|
655
|
+
|
|
613
656
|
# Lists messages in the specified space, that the user is a member of.
|
|
614
657
|
# @!attribute [rw] parent
|
|
615
658
|
# @return [::String]
|
|
@@ -539,6 +539,71 @@ module Google
|
|
|
539
539
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
540
540
|
end
|
|
541
541
|
|
|
542
|
+
# A request to get group chat spaces based on user resources.
|
|
543
|
+
# @!attribute [rw] users
|
|
544
|
+
# @return [::Array<::String>]
|
|
545
|
+
# Optional. Resource names of all human users in group chat with the calling
|
|
546
|
+
# user. Chat apps can't be included in the request.
|
|
547
|
+
#
|
|
548
|
+
# The maximum number of users that can be specified in a single request is
|
|
549
|
+
# `49`.
|
|
550
|
+
#
|
|
551
|
+
# Format: `users/{user}`, where `{user}` is either the `id` for the
|
|
552
|
+
# [person](https://developers.google.com/people/api/rest/v1/people) from the
|
|
553
|
+
# People API, or the `id` for the
|
|
554
|
+
# [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
|
|
555
|
+
# in the Directory API. For example, to find all group chats with the calling
|
|
556
|
+
# user and two other users, with People API profile IDs `123456789` and
|
|
557
|
+
# `987654321`, you can use `users/123456789` and `users/987654321`.
|
|
558
|
+
# You can also use the email as an alias for `{user}`. For example,
|
|
559
|
+
# `users/example@gmail.com` where `example@gmail.com` is the email of the
|
|
560
|
+
# Google Chat user.
|
|
561
|
+
# @!attribute [rw] page_size
|
|
562
|
+
# @return [::Integer]
|
|
563
|
+
# Optional. The maximum number of spaces to return. The service might return
|
|
564
|
+
# fewer than this value.
|
|
565
|
+
#
|
|
566
|
+
# If unspecified, at most 10 spaces are returned.
|
|
567
|
+
#
|
|
568
|
+
# The maximum value is 30. If you use a value more than 30, it's
|
|
569
|
+
# automatically changed to 30.
|
|
570
|
+
#
|
|
571
|
+
# Negative values return an `INVALID_ARGUMENT` error.
|
|
572
|
+
# @!attribute [rw] page_token
|
|
573
|
+
# @return [::String]
|
|
574
|
+
# Optional. A page token, received from a previous call to find group chats.
|
|
575
|
+
# Provide this parameter to retrieve the subsequent page.
|
|
576
|
+
#
|
|
577
|
+
# When paginating, all other parameters provided should match the call that
|
|
578
|
+
# provided the token. Passing different values may lead to unexpected
|
|
579
|
+
# results.
|
|
580
|
+
# @!attribute [rw] space_view
|
|
581
|
+
# @return [::Google::Apps::Chat::V1::SpaceView]
|
|
582
|
+
# Requested space view type. If unset, defaults to
|
|
583
|
+
# `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
|
|
584
|
+
# `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
|
|
585
|
+
# for example,
|
|
586
|
+
# https://www.googleapis.com/auth/chat.spaces or
|
|
587
|
+
# https://www.googleapis.com/auth/chat.spaces.readonly.
|
|
588
|
+
class FindGroupChatsRequest
|
|
589
|
+
include ::Google::Protobuf::MessageExts
|
|
590
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
# A response containing group chat spaces with exactly the calling user and the
|
|
594
|
+
# requested users.
|
|
595
|
+
# @!attribute [rw] spaces
|
|
596
|
+
# @return [::Array<::Google::Apps::Chat::V1::Space>]
|
|
597
|
+
# List of spaces in the requested (or first) page.
|
|
598
|
+
# @!attribute [rw] next_page_token
|
|
599
|
+
# @return [::String]
|
|
600
|
+
# A token that you can send as `pageToken` to retrieve the next page of
|
|
601
|
+
# results. If empty, there are no subsequent pages.
|
|
602
|
+
class FindGroupChatsResponse
|
|
603
|
+
include ::Google::Protobuf::MessageExts
|
|
604
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
605
|
+
end
|
|
606
|
+
|
|
542
607
|
# A request to update a single space.
|
|
543
608
|
# @!attribute [rw] space
|
|
544
609
|
# @return [::Google::Apps::Chat::V1::Space]
|
|
@@ -820,6 +885,27 @@ module Google
|
|
|
820
885
|
include ::Google::Protobuf::MessageExts
|
|
821
886
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
822
887
|
end
|
|
888
|
+
|
|
889
|
+
# A view that specifies which fields should be populated on the
|
|
890
|
+
# [`Space`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
|
|
891
|
+
# resource.
|
|
892
|
+
# To ensure compatibility with future releases, we recommend that your code
|
|
893
|
+
# account for additional values.
|
|
894
|
+
module SpaceView
|
|
895
|
+
# The default / unset value.
|
|
896
|
+
SPACE_VIEW_UNSPECIFIED = 0
|
|
897
|
+
|
|
898
|
+
# Populates only the Space resource name.
|
|
899
|
+
SPACE_VIEW_RESOURCE_NAME_ONLY = 3
|
|
900
|
+
|
|
901
|
+
# Populates Space resource fields. Note: the `permissionSettings` field
|
|
902
|
+
# will not be populated.
|
|
903
|
+
# Requests that specify SPACE_VIEW_EXPANDED must include scopes that allow
|
|
904
|
+
# reading space data, for example,
|
|
905
|
+
# https://www.googleapis.com/auth/chat.spaces or
|
|
906
|
+
# https://www.googleapis.com/auth/chat.spaces.readonly.
|
|
907
|
+
SPACE_VIEW_EXPANDED = 4
|
|
908
|
+
end
|
|
823
909
|
end
|
|
824
910
|
end
|
|
825
911
|
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.
|
|
4
|
+
version: 0.23.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.3'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.3'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: google-apps-card-v1
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|