google-apps-chat-v1 0.32.0 → 0.34.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 +4 -6
- data/lib/google/apps/chat/v1/chat_service/client.rb +117 -0
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +110 -0
- data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +62 -0
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/chat/v1/action_status_pb.rb +2 -1
- data/lib/google/chat/v1/chat_service_pb.rb +1 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +14 -0
- data/lib/google/chat/v1/citation_pb.rb +24 -0
- data/lib/google/chat/v1/cited_source_pb.rb +26 -0
- data/lib/google/chat/v1/elements_common_pb.rb +23 -0
- data/lib/google/chat/v1/elements_pb.rb +25 -0
- data/lib/google/chat/v1/message_pb.rb +4 -1
- data/proto_docs/google/chat/v1/citation.rb +50 -0
- data/proto_docs/google/chat/v1/cited_source.rb +75 -0
- data/proto_docs/google/chat/v1/elements.rb +48 -0
- data/proto_docs/google/chat/v1/elements_common.rb +41 -0
- data/proto_docs/google/chat/v1/message.rb +43 -0
- data/proto_docs/google/chat/v1/space.rb +1 -1
- metadata +9 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78db153dcdadea5d0595d624e6e056bcf439b72770d49b481b0336334cd395cb
|
|
4
|
+
data.tar.gz: 4bb8d950b32315385656f7ba9d88d751eb3da145a610f80c75735b6072077127
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0be1488aa0c326ad42e84cc302acdee094130c49933ec38e5e553c1ea3d0528ada9685a7328dceadbc4cabe6a84e92c281fb10717bbde0ab9c779a2585cd0fd
|
|
7
|
+
data.tar.gz: 7d3ac4e57dde713f13fd9fa5b5804a583a4725a5218f3729aac6a8cdf8b1d9aebfc90a2cfc8693e6b0f50b5d10d1d189cfb5f9c30ecb767fc627302f3d890150
|
data/README.md
CHANGED
|
@@ -87,12 +87,10 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
87
87
|
|
|
88
88
|
This library is supported on Ruby 3.2+.
|
|
89
89
|
|
|
90
|
-
Google provides official support for Ruby versions
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
|
95
|
-
support schedule.
|
|
90
|
+
Google provides official support for Ruby versions as described in the
|
|
91
|
+
[Supported Ruby versions](https://docs.cloud.google.com/ruby/getting-started/supported-ruby-versions)
|
|
92
|
+
policy. Older versions of Ruby _may_ still work, but are unsupported and not
|
|
93
|
+
recommended.
|
|
96
94
|
|
|
97
95
|
## Which client should I use?
|
|
98
96
|
|
|
@@ -316,6 +316,11 @@ module Google
|
|
|
316
316
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
+
default_config.rpcs.replace_message_cards.timeout = 30.0
|
|
320
|
+
default_config.rpcs.replace_message_cards.retry_policy = {
|
|
321
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
322
|
+
}
|
|
323
|
+
|
|
319
324
|
default_config
|
|
320
325
|
end
|
|
321
326
|
yield @configure if block_given?
|
|
@@ -7332,6 +7337,111 @@ module Google
|
|
|
7332
7337
|
raise ::Google::Cloud::Error.from_error(e)
|
|
7333
7338
|
end
|
|
7334
7339
|
|
|
7340
|
+
##
|
|
7341
|
+
# Replaces the cards included in a message.
|
|
7342
|
+
#
|
|
7343
|
+
# A Chat app can only replace cards on a human-created message if the message
|
|
7344
|
+
# already contains cards, and the cards were created by the app.
|
|
7345
|
+
#
|
|
7346
|
+
# If the app replaces the cards with an empty list, the cards are removed.
|
|
7347
|
+
# After removing the cards, the app cannot add cards back to the message.
|
|
7348
|
+
#
|
|
7349
|
+
# Requires [app
|
|
7350
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
7351
|
+
# with the [authorization
|
|
7352
|
+
# scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
7353
|
+
# - `https://www.googleapis.com/auth/chat.bot`
|
|
7354
|
+
#
|
|
7355
|
+
# @overload replace_message_cards(request, options = nil)
|
|
7356
|
+
# Pass arguments to `replace_message_cards` via a request object, either of type
|
|
7357
|
+
# {::Google::Apps::Chat::V1::ReplaceMessageCardsRequest} or an equivalent Hash.
|
|
7358
|
+
#
|
|
7359
|
+
# @param request [::Google::Apps::Chat::V1::ReplaceMessageCardsRequest, ::Hash]
|
|
7360
|
+
# A request object representing the call parameters. Required. To specify no
|
|
7361
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
7362
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
7363
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
7364
|
+
#
|
|
7365
|
+
# @overload replace_message_cards(name: nil, cards_v2: nil)
|
|
7366
|
+
# Pass arguments to `replace_message_cards` via keyword arguments. Note that at
|
|
7367
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
7368
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
7369
|
+
#
|
|
7370
|
+
# @param name [::String]
|
|
7371
|
+
# Required. The resource name of the message.
|
|
7372
|
+
#
|
|
7373
|
+
# Format: `spaces/{space}/messages/{message}`
|
|
7374
|
+
# @param cards_v2 [::Array<::Google::Apps::Chat::V1::CardWithId, ::Hash>]
|
|
7375
|
+
# Optional. An array of
|
|
7376
|
+
# [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
|
|
7377
|
+
# to be included in the message. These cards will replace the existing cards
|
|
7378
|
+
# of the message. If empty, the original cards included in the message will
|
|
7379
|
+
# be cleared.
|
|
7380
|
+
#
|
|
7381
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
7382
|
+
# @yieldparam response [::Google::Apps::Chat::V1::ReplaceMessageCardsResponse]
|
|
7383
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
7384
|
+
#
|
|
7385
|
+
# @return [::Google::Apps::Chat::V1::ReplaceMessageCardsResponse]
|
|
7386
|
+
#
|
|
7387
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
7388
|
+
#
|
|
7389
|
+
# @example Basic example
|
|
7390
|
+
# require "google/apps/chat/v1"
|
|
7391
|
+
#
|
|
7392
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
7393
|
+
# client = Google::Apps::Chat::V1::ChatService::Client.new
|
|
7394
|
+
#
|
|
7395
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
7396
|
+
# request = Google::Apps::Chat::V1::ReplaceMessageCardsRequest.new
|
|
7397
|
+
#
|
|
7398
|
+
# # Call the replace_message_cards method.
|
|
7399
|
+
# result = client.replace_message_cards request
|
|
7400
|
+
#
|
|
7401
|
+
# # The returned object is of type Google::Apps::Chat::V1::ReplaceMessageCardsResponse.
|
|
7402
|
+
# p result
|
|
7403
|
+
#
|
|
7404
|
+
def replace_message_cards request, options = nil
|
|
7405
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
7406
|
+
|
|
7407
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Chat::V1::ReplaceMessageCardsRequest
|
|
7408
|
+
|
|
7409
|
+
# Converts hash and nil to an options object
|
|
7410
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
7411
|
+
|
|
7412
|
+
# Customize the options with defaults
|
|
7413
|
+
metadata = @config.rpcs.replace_message_cards.metadata.to_h
|
|
7414
|
+
|
|
7415
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
7416
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
7417
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
7418
|
+
gapic_version: ::Google::Apps::Chat::V1::VERSION
|
|
7419
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
7420
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
7421
|
+
|
|
7422
|
+
header_params = {}
|
|
7423
|
+
if request.name
|
|
7424
|
+
header_params["name"] = request.name
|
|
7425
|
+
end
|
|
7426
|
+
|
|
7427
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
7428
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
7429
|
+
|
|
7430
|
+
options.apply_defaults timeout: @config.rpcs.replace_message_cards.timeout,
|
|
7431
|
+
metadata: metadata,
|
|
7432
|
+
retry_policy: @config.rpcs.replace_message_cards.retry_policy
|
|
7433
|
+
|
|
7434
|
+
options.apply_defaults timeout: @config.timeout,
|
|
7435
|
+
metadata: @config.metadata,
|
|
7436
|
+
retry_policy: @config.retry_policy
|
|
7437
|
+
|
|
7438
|
+
@chat_service_stub.call_rpc :replace_message_cards, request, options: options do |response, operation|
|
|
7439
|
+
yield response, operation if block_given?
|
|
7440
|
+
end
|
|
7441
|
+
rescue ::GRPC::BadStatus => e
|
|
7442
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
7443
|
+
end
|
|
7444
|
+
|
|
7335
7445
|
##
|
|
7336
7446
|
# Configuration class for the ChatService API.
|
|
7337
7447
|
#
|
|
@@ -7777,6 +7887,11 @@ module Google
|
|
|
7777
7887
|
# @return [::Gapic::Config::Method]
|
|
7778
7888
|
#
|
|
7779
7889
|
attr_reader :move_section_item
|
|
7890
|
+
##
|
|
7891
|
+
# RPC-specific configuration for `replace_message_cards`
|
|
7892
|
+
# @return [::Gapic::Config::Method]
|
|
7893
|
+
#
|
|
7894
|
+
attr_reader :replace_message_cards
|
|
7780
7895
|
|
|
7781
7896
|
# @private
|
|
7782
7897
|
def initialize parent_rpcs = nil
|
|
@@ -7884,6 +7999,8 @@ module Google
|
|
|
7884
7999
|
@list_section_items = ::Gapic::Config::Method.new list_section_items_config
|
|
7885
8000
|
move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
|
|
7886
8001
|
@move_section_item = ::Gapic::Config::Method.new move_section_item_config
|
|
8002
|
+
replace_message_cards_config = parent_rpcs.replace_message_cards if parent_rpcs.respond_to? :replace_message_cards
|
|
8003
|
+
@replace_message_cards = ::Gapic::Config::Method.new replace_message_cards_config
|
|
7887
8004
|
|
|
7888
8005
|
yield self if block_given?
|
|
7889
8006
|
end
|
|
@@ -318,6 +318,11 @@ module Google
|
|
|
318
318
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
+
default_config.rpcs.replace_message_cards.timeout = 30.0
|
|
322
|
+
default_config.rpcs.replace_message_cards.retry_policy = {
|
|
323
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
324
|
+
}
|
|
325
|
+
|
|
321
326
|
default_config
|
|
322
327
|
end
|
|
323
328
|
yield @configure if block_given?
|
|
@@ -7025,6 +7030,104 @@ module Google
|
|
|
7025
7030
|
raise ::Google::Cloud::Error.from_error(e)
|
|
7026
7031
|
end
|
|
7027
7032
|
|
|
7033
|
+
##
|
|
7034
|
+
# Replaces the cards included in a message.
|
|
7035
|
+
#
|
|
7036
|
+
# A Chat app can only replace cards on a human-created message if the message
|
|
7037
|
+
# already contains cards, and the cards were created by the app.
|
|
7038
|
+
#
|
|
7039
|
+
# If the app replaces the cards with an empty list, the cards are removed.
|
|
7040
|
+
# After removing the cards, the app cannot add cards back to the message.
|
|
7041
|
+
#
|
|
7042
|
+
# Requires [app
|
|
7043
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
7044
|
+
# with the [authorization
|
|
7045
|
+
# scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
7046
|
+
# - `https://www.googleapis.com/auth/chat.bot`
|
|
7047
|
+
#
|
|
7048
|
+
# @overload replace_message_cards(request, options = nil)
|
|
7049
|
+
# Pass arguments to `replace_message_cards` via a request object, either of type
|
|
7050
|
+
# {::Google::Apps::Chat::V1::ReplaceMessageCardsRequest} or an equivalent Hash.
|
|
7051
|
+
#
|
|
7052
|
+
# @param request [::Google::Apps::Chat::V1::ReplaceMessageCardsRequest, ::Hash]
|
|
7053
|
+
# A request object representing the call parameters. Required. To specify no
|
|
7054
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
7055
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
7056
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
7057
|
+
#
|
|
7058
|
+
# @overload replace_message_cards(name: nil, cards_v2: nil)
|
|
7059
|
+
# Pass arguments to `replace_message_cards` via keyword arguments. Note that at
|
|
7060
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
7061
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
7062
|
+
#
|
|
7063
|
+
# @param name [::String]
|
|
7064
|
+
# Required. The resource name of the message.
|
|
7065
|
+
#
|
|
7066
|
+
# Format: `spaces/{space}/messages/{message}`
|
|
7067
|
+
# @param cards_v2 [::Array<::Google::Apps::Chat::V1::CardWithId, ::Hash>]
|
|
7068
|
+
# Optional. An array of
|
|
7069
|
+
# [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
|
|
7070
|
+
# to be included in the message. These cards will replace the existing cards
|
|
7071
|
+
# of the message. If empty, the original cards included in the message will
|
|
7072
|
+
# be cleared.
|
|
7073
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
7074
|
+
# @yieldparam result [::Google::Apps::Chat::V1::ReplaceMessageCardsResponse]
|
|
7075
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
7076
|
+
#
|
|
7077
|
+
# @return [::Google::Apps::Chat::V1::ReplaceMessageCardsResponse]
|
|
7078
|
+
#
|
|
7079
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
7080
|
+
#
|
|
7081
|
+
# @example Basic example
|
|
7082
|
+
# require "google/apps/chat/v1"
|
|
7083
|
+
#
|
|
7084
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
7085
|
+
# client = Google::Apps::Chat::V1::ChatService::Rest::Client.new
|
|
7086
|
+
#
|
|
7087
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
7088
|
+
# request = Google::Apps::Chat::V1::ReplaceMessageCardsRequest.new
|
|
7089
|
+
#
|
|
7090
|
+
# # Call the replace_message_cards method.
|
|
7091
|
+
# result = client.replace_message_cards request
|
|
7092
|
+
#
|
|
7093
|
+
# # The returned object is of type Google::Apps::Chat::V1::ReplaceMessageCardsResponse.
|
|
7094
|
+
# p result
|
|
7095
|
+
#
|
|
7096
|
+
def replace_message_cards request, options = nil
|
|
7097
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
7098
|
+
|
|
7099
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Chat::V1::ReplaceMessageCardsRequest
|
|
7100
|
+
|
|
7101
|
+
# Converts hash and nil to an options object
|
|
7102
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
7103
|
+
|
|
7104
|
+
# Customize the options with defaults
|
|
7105
|
+
call_metadata = @config.rpcs.replace_message_cards.metadata.to_h
|
|
7106
|
+
|
|
7107
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
7108
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
7109
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
7110
|
+
gapic_version: ::Google::Apps::Chat::V1::VERSION,
|
|
7111
|
+
transports_version_send: [:rest]
|
|
7112
|
+
|
|
7113
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
7114
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
7115
|
+
|
|
7116
|
+
options.apply_defaults timeout: @config.rpcs.replace_message_cards.timeout,
|
|
7117
|
+
metadata: call_metadata,
|
|
7118
|
+
retry_policy: @config.rpcs.replace_message_cards.retry_policy
|
|
7119
|
+
|
|
7120
|
+
options.apply_defaults timeout: @config.timeout,
|
|
7121
|
+
metadata: @config.metadata,
|
|
7122
|
+
retry_policy: @config.retry_policy
|
|
7123
|
+
|
|
7124
|
+
@chat_service_stub.replace_message_cards request, options do |result, operation|
|
|
7125
|
+
yield result, operation if block_given?
|
|
7126
|
+
end
|
|
7127
|
+
rescue ::Gapic::Rest::Error => e
|
|
7128
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
7129
|
+
end
|
|
7130
|
+
|
|
7028
7131
|
##
|
|
7029
7132
|
# Configuration class for the ChatService REST API.
|
|
7030
7133
|
#
|
|
@@ -7433,6 +7536,11 @@ module Google
|
|
|
7433
7536
|
# @return [::Gapic::Config::Method]
|
|
7434
7537
|
#
|
|
7435
7538
|
attr_reader :move_section_item
|
|
7539
|
+
##
|
|
7540
|
+
# RPC-specific configuration for `replace_message_cards`
|
|
7541
|
+
# @return [::Gapic::Config::Method]
|
|
7542
|
+
#
|
|
7543
|
+
attr_reader :replace_message_cards
|
|
7436
7544
|
|
|
7437
7545
|
# @private
|
|
7438
7546
|
def initialize parent_rpcs = nil
|
|
@@ -7540,6 +7648,8 @@ module Google
|
|
|
7540
7648
|
@list_section_items = ::Gapic::Config::Method.new list_section_items_config
|
|
7541
7649
|
move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
|
|
7542
7650
|
@move_section_item = ::Gapic::Config::Method.new move_section_item_config
|
|
7651
|
+
replace_message_cards_config = parent_rpcs.replace_message_cards if parent_rpcs.respond_to? :replace_message_cards
|
|
7652
|
+
@replace_message_cards = ::Gapic::Config::Method.new replace_message_cards_config
|
|
7543
7653
|
|
|
7544
7654
|
yield self if block_given?
|
|
7545
7655
|
end
|
|
@@ -2153,6 +2153,46 @@ module Google
|
|
|
2153
2153
|
end
|
|
2154
2154
|
end
|
|
2155
2155
|
|
|
2156
|
+
##
|
|
2157
|
+
# Baseline implementation for the replace_message_cards REST call
|
|
2158
|
+
#
|
|
2159
|
+
# @param request_pb [::Google::Apps::Chat::V1::ReplaceMessageCardsRequest]
|
|
2160
|
+
# A request object representing the call parameters. Required.
|
|
2161
|
+
# @param options [::Gapic::CallOptions]
|
|
2162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2163
|
+
#
|
|
2164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2165
|
+
# @yieldparam result [::Google::Apps::Chat::V1::ReplaceMessageCardsResponse]
|
|
2166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2167
|
+
#
|
|
2168
|
+
# @return [::Google::Apps::Chat::V1::ReplaceMessageCardsResponse]
|
|
2169
|
+
# A result object deserialized from the server's reply
|
|
2170
|
+
def replace_message_cards request_pb, options = nil
|
|
2171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2172
|
+
|
|
2173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_replace_message_cards_request request_pb
|
|
2174
|
+
query_string_params = if query_string_params.any?
|
|
2175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2176
|
+
else
|
|
2177
|
+
{}
|
|
2178
|
+
end
|
|
2179
|
+
|
|
2180
|
+
response = @client_stub.make_http_request(
|
|
2181
|
+
verb,
|
|
2182
|
+
uri: uri,
|
|
2183
|
+
body: body || "",
|
|
2184
|
+
params: query_string_params,
|
|
2185
|
+
method_name: "replace_message_cards",
|
|
2186
|
+
options: options
|
|
2187
|
+
)
|
|
2188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2189
|
+
result = ::Google::Apps::Chat::V1::ReplaceMessageCardsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
2190
|
+
catch :response do
|
|
2191
|
+
yield result, operation if block_given?
|
|
2192
|
+
result
|
|
2193
|
+
end
|
|
2194
|
+
end
|
|
2195
|
+
|
|
2156
2196
|
##
|
|
2157
2197
|
# @private
|
|
2158
2198
|
#
|
|
@@ -3259,6 +3299,28 @@ module Google
|
|
|
3259
3299
|
)
|
|
3260
3300
|
transcoder.transcode request_pb
|
|
3261
3301
|
end
|
|
3302
|
+
|
|
3303
|
+
##
|
|
3304
|
+
# @private
|
|
3305
|
+
#
|
|
3306
|
+
# GRPC transcoding helper method for the replace_message_cards REST call
|
|
3307
|
+
#
|
|
3308
|
+
# @param request_pb [::Google::Apps::Chat::V1::ReplaceMessageCardsRequest]
|
|
3309
|
+
# A request object representing the call parameters. Required.
|
|
3310
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3311
|
+
# Uri, Body, Query string parameters
|
|
3312
|
+
def self.transcode_replace_message_cards_request request_pb
|
|
3313
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3314
|
+
.with_bindings(
|
|
3315
|
+
uri_method: :post,
|
|
3316
|
+
uri_template: "/v1/{name}:replaceCards",
|
|
3317
|
+
body: "*",
|
|
3318
|
+
matches: [
|
|
3319
|
+
["name", %r{^spaces/[^/]+/messages/[^/]+/?$}, false]
|
|
3320
|
+
]
|
|
3321
|
+
)
|
|
3322
|
+
transcoder.transcode request_pb
|
|
3323
|
+
end
|
|
3262
3324
|
end
|
|
3263
3325
|
end
|
|
3264
3326
|
end
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
7
8
|
require 'google/rpc/code_pb'
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
descriptor_data = "\n\"google/chat/v1/action_status.proto\x12\x0egoogle.chat.v1\x1a\x15google/rpc/code.proto\"R\n\x0c\x41\x63tionStatus\x12%\n\x0bstatus_code\x18\x01 \x01(\x0e\x32\x10.google.rpc.Code\x12\x1b\n\x13user_facing_message\x18\x02 \x01(\tB\xaa\x01\n\x12\x63om.google.chat.v1B\x11\x41\x63tionStatusProtoP\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"
|
|
11
|
+
descriptor_data = "\n\"google/chat/v1/action_status.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x15google/rpc/code.proto\"R\n\x0c\x41\x63tionStatus\x12%\n\x0bstatus_code\x18\x01 \x01(\x0e\x32\x10.google.rpc.Code\x12\x1b\n\x13user_facing_message\x18\x02 \x01(\tB\xaa\x01\n\x12\x63om.google.chat.v1B\x11\x41\x63tionStatusProtoP\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"
|
|
11
12
|
|
|
12
13
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
14
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -22,7 +22,7 @@ require 'google/chat/v1/thread_read_state_pb'
|
|
|
22
22
|
require 'google/protobuf/empty_pb'
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
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!google/chat/v1/availability.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a google/chat/v1/message_pin.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\xdbN\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\xa1\x01\n\x0eSearchMessages\x12%.google.chat.v1.SearchMessagesRequest\x1a&.google.chat.v1.SearchMessagesResponse\"@\xda\x41\rparent,filter\x82\xd3\xe4\x93\x02*\"%/v1/{parent=spaces/*}/messages:search:\x01*\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\x96\x01\n\x0fListMessagePins\x12&.google.chat.v1.ListMessagePinsRequest\x1a\'.google.chat.v1.ListMessagePinsResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=spaces/*}/messagePins\x12\xa4\x01\n\x10\x43reateMessagePin\x12\'.google.chat.v1.CreateMessagePinRequest\x1a\x1a.google.chat.v1.MessagePin\"K\xda\x41\x12parent,message_pin\x82\xd3\xe4\x93\x02\x30\"!/v1/{parent=spaces/*}/messagePins:\x0bmessage_pin\x12\x85\x01\n\x10\x44\x65leteMessagePin\x12\'.google.chat.v1.DeleteMessagePinRequest\x1a\x16.google.protobuf.Empty\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v1/{name=spaces/*/messagePins/*}\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\x87\x01\n\x0fGetAvailability\x12&.google.chat.v1.GetAvailabilityRequest\x1a\x1c.google.chat.v1.Availability\".\xda\x41\x04name\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=users/*/availability}\x12\x8a\x01\n\x0cMarkAsActive\x12#.google.chat.v1.MarkAsActiveRequest\x1a\x1c.google.chat.v1.Availability\"7\x82\xd3\xe4\x93\x02\x31\",/v1/{name=users/*/availability}:markAsActive:\x01*\x12\x84\x01\n\nMarkAsAway\x12!.google.chat.v1.MarkAsAwayRequest\x1a\x1c.google.chat.v1.Availability\"5\x82\xd3\xe4\x93\x02/\"*/v1/{name=users/*/availability}:markAsAway:\x01*\x12\x9c\x01\n\x12MarkAsDoNotDisturb\x12).google.chat.v1.MarkAsDoNotDisturbRequest\x1a\x1c.google.chat.v1.Availability\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=users/*/availability}:markAsDoNotDisturb:\x01*\x12\xbc\x01\n\x12UpdateAvailability\x12).google.chat.v1.UpdateAvailabilityRequest\x1a\x1c.google.chat.v1.Availability\"]\xda\x41\x18\x61vailability,update_mask\x82\xd3\xe4\x93\x02<2,/v1/{availability.name=users/*/availability}:\x0c\x61vailability\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\xe0\x11\xca\x41\x13\x63hat.googleapis.com\xd2\x41\xc6\x11https://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.all.memberships.readonly,https://www.googleapis.com/auth/chat.app.all.messages.readonly,https://www.googleapis.com/auth/chat.app.all.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.pins,https://www.googleapis.com/auth/chat.spaces.pins.readonly,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.availability,https://www.googleapis.com/auth/chat.users.availability.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"
|
|
25
|
+
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!google/chat/v1/availability.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a google/chat/v1/message_pin.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\x84P\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\xa1\x01\n\x0eSearchMessages\x12%.google.chat.v1.SearchMessagesRequest\x1a&.google.chat.v1.SearchMessagesResponse\"@\xda\x41\rparent,filter\x82\xd3\xe4\x93\x02*\"%/v1/{parent=spaces/*}/messages:search:\x01*\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\x96\x01\n\x0fListMessagePins\x12&.google.chat.v1.ListMessagePinsRequest\x1a\'.google.chat.v1.ListMessagePinsResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=spaces/*}/messagePins\x12\xa4\x01\n\x10\x43reateMessagePin\x12\'.google.chat.v1.CreateMessagePinRequest\x1a\x1a.google.chat.v1.MessagePin\"K\xda\x41\x12parent,message_pin\x82\xd3\xe4\x93\x02\x30\"!/v1/{parent=spaces/*}/messagePins:\x0bmessage_pin\x12\x85\x01\n\x10\x44\x65leteMessagePin\x12\'.google.chat.v1.DeleteMessagePinRequest\x1a\x16.google.protobuf.Empty\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v1/{name=spaces/*/messagePins/*}\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\x87\x01\n\x0fGetAvailability\x12&.google.chat.v1.GetAvailabilityRequest\x1a\x1c.google.chat.v1.Availability\".\xda\x41\x04name\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=users/*/availability}\x12\x8a\x01\n\x0cMarkAsActive\x12#.google.chat.v1.MarkAsActiveRequest\x1a\x1c.google.chat.v1.Availability\"7\x82\xd3\xe4\x93\x02\x31\",/v1/{name=users/*/availability}:markAsActive:\x01*\x12\x84\x01\n\nMarkAsAway\x12!.google.chat.v1.MarkAsAwayRequest\x1a\x1c.google.chat.v1.Availability\"5\x82\xd3\xe4\x93\x02/\"*/v1/{name=users/*/availability}:markAsAway:\x01*\x12\x9c\x01\n\x12MarkAsDoNotDisturb\x12).google.chat.v1.MarkAsDoNotDisturbRequest\x1a\x1c.google.chat.v1.Availability\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=users/*/availability}:markAsDoNotDisturb:\x01*\x12\xbc\x01\n\x12UpdateAvailability\x12).google.chat.v1.UpdateAvailabilityRequest\x1a\x1c.google.chat.v1.Availability\"]\xda\x41\x18\x61vailability,update_mask\x82\xd3\xe4\x93\x02<2,/v1/{availability.name=users/*/availability}:\x0c\x61vailability\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*\x12\xa6\x01\n\x13ReplaceMessageCards\x12*.google.chat.v1.ReplaceMessageCardsRequest\x1a+.google.chat.v1.ReplaceMessageCardsResponse\"6\x82\xd3\xe4\x93\x02\x30\"+/v1/{name=spaces/*/messages/*}:replaceCards:\x01*\x1a\xe0\x11\xca\x41\x13\x63hat.googleapis.com\xd2\x41\xc6\x11https://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.all.memberships.readonly,https://www.googleapis.com/auth/chat.app.all.messages.readonly,https://www.googleapis.com/auth/chat.app.all.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.pins,https://www.googleapis.com/auth/chat.spaces.pins.readonly,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.availability,https://www.googleapis.com/auth/chat.users.availability.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"
|
|
26
26
|
|
|
27
27
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
28
28
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -1170,6 +1170,20 @@ module Google
|
|
|
1170
1170
|
#
|
|
1171
1171
|
# - `https://www.googleapis.com/auth/chat.users.sections`
|
|
1172
1172
|
rpc :MoveSectionItem, ::Google::Apps::Chat::V1::MoveSectionItemRequest, ::Google::Apps::Chat::V1::MoveSectionItemResponse
|
|
1173
|
+
# Replaces the cards included in a message.
|
|
1174
|
+
#
|
|
1175
|
+
# A Chat app can only replace cards on a human-created message if the message
|
|
1176
|
+
# already contains cards, and the cards were created by the app.
|
|
1177
|
+
#
|
|
1178
|
+
# If the app replaces the cards with an empty list, the cards are removed.
|
|
1179
|
+
# After removing the cards, the app cannot add cards back to the message.
|
|
1180
|
+
#
|
|
1181
|
+
# Requires [app
|
|
1182
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1183
|
+
# with the [authorization
|
|
1184
|
+
# scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1185
|
+
# - `https://www.googleapis.com/auth/chat.bot`
|
|
1186
|
+
rpc :ReplaceMessageCards, ::Google::Apps::Chat::V1::ReplaceMessageCardsRequest, ::Google::Apps::Chat::V1::ReplaceMessageCardsResponse
|
|
1173
1187
|
end
|
|
1174
1188
|
|
|
1175
1189
|
Stub = Service.rpc_stub_class
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/chat/v1/citation.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/chat/v1/cited_source_pb'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n\x1dgoogle/chat/v1/citation.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a!google/chat/v1/cited_source.proto\"V\n\x08\x43itation\x12\x10\n\x02id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x38\n\rcited_sources\x18\x03 \x03(\x0b\x32\x1b.google.chat.v1.CitedSourceB\x04\xe2\x41\x01\x01\x42\x98\x01\n\x12\x63om.google.chat.v1B\rCitationProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Apps
|
|
18
|
+
module Chat
|
|
19
|
+
module V1
|
|
20
|
+
Citation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Citation").msgclass
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/chat/v1/cited_source.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/chat/v1/elements_common_pb'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n!google/chat/v1/cited_source.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a$google/chat/v1/elements_common.proto\"\xa4\x02\n\x0b\x43itedSource\x12\x13\n\x05title\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x11\n\x03uri\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12:\n\x07snippet\x18\x03 \x01(\x0b\x32#.google.chat.v1.CitedSource.SnippetB\x04\xe2\x41\x01\x01\x12\x38\n\x06\x66ooter\x18\x05 \x01(\x0b\x32\".google.chat.v1.CitedSource.FooterB\x04\xe2\x41\x01\x01\x1aY\n\x07Snippet\x12\x12\n\x04text\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x12:\n\rimage_preview\x18\x02 \x01(\x0b\x32\x1d.google.chat.v1.ElementsImageB\x04\xe2\x41\x01\x01\x1a\x1c\n\x06\x46ooter\x12\x12\n\x04text\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01\x42\x9b\x01\n\x12\x63om.google.chat.v1B\x10\x43itedSourceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Apps
|
|
18
|
+
module Chat
|
|
19
|
+
module V1
|
|
20
|
+
CitedSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CitedSource").msgclass
|
|
21
|
+
CitedSource::Snippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CitedSource.Snippet").msgclass
|
|
22
|
+
CitedSource::Footer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CitedSource.Footer").msgclass
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/chat/v1/elements_common.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n$google/chat/v1/elements_common.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\"3\n\rElementsImage\x12\x19\n\timage_uri\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02H\x00\x42\x07\n\x05imageB\x9e\x01\n\x12\x63om.google.chat.v1B\x13\x45lementsCommonProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Google
|
|
16
|
+
module Apps
|
|
17
|
+
module Chat
|
|
18
|
+
module V1
|
|
19
|
+
ElementsImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ElementsImage").msgclass
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/chat/v1/elements.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/chat/v1/citation_pb'
|
|
9
|
+
require 'google/chat/v1/cited_source_pb'
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
descriptor_data = "\n\x1dgoogle/chat/v1/elements.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/chat/v1/citation.proto\x1a!google/chat/v1/cited_source.proto\"w\n\x08\x45lements\x12\x38\n\rcited_sources\x18\x01 \x03(\x0b\x32\x1b.google.chat.v1.CitedSourceB\x04\xe2\x41\x01\x01\x12\x31\n\tcitations\x18\x02 \x03(\x0b\x32\x18.google.chat.v1.CitationB\x04\xe2\x41\x01\x01\x42\x98\x01\n\x12\x63om.google.chat.v1B\rElementsProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
|
|
13
|
+
|
|
14
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
|
|
17
|
+
module Google
|
|
18
|
+
module Apps
|
|
19
|
+
module Chat
|
|
20
|
+
module V1
|
|
21
|
+
Elements = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Elements").msgclass
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -12,6 +12,7 @@ require 'google/chat/v1/annotation_pb'
|
|
|
12
12
|
require 'google/chat/v1/attachment_pb'
|
|
13
13
|
require 'google/chat/v1/contextual_addon_pb'
|
|
14
14
|
require 'google/chat/v1/deletion_metadata_pb'
|
|
15
|
+
require 'google/chat/v1/elements_pb'
|
|
15
16
|
require 'google/chat/v1/markup_syntax_pb'
|
|
16
17
|
require 'google/chat/v1/matched_url_pb'
|
|
17
18
|
require 'google/chat/v1/reaction_pb'
|
|
@@ -23,7 +24,7 @@ require 'google/protobuf/field_mask_pb'
|
|
|
23
24
|
require 'google/protobuf/timestamp_pb'
|
|
24
25
|
|
|
25
26
|
|
|
26
|
-
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/markup_syntax.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/google/chat/v1/space_notification_setting.proto\x1a\x19google/chat/v1/user.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb9\x0b\n\x07Message\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08\x12*\n\x06sender\x18\x02 \x01(\x0b\x32\x14.google.chat.v1.UserB\x04\xe2\x41\x01\x03\x12\x36\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x05\xe2\x41\x02\x05\x01\x12:\n\x10last_update_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x64\x65lete_time\x18\x1a \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x12\n\x04text\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1c\n\x0e\x66ormatted_text\x18+ \x01(\tB\x04\xe2\x41\x01\x03\x12=\n\x05\x63\x61rds\x18\x05 \x03(\x0b\x32*.google.chat.v1.ContextualAddOnMarkup.CardB\x02\x18\x01\x12\x32\n\x08\x63\x61rds_v2\x18\x16 \x03(\x0b\x32\x1a.google.chat.v1.CardWithIdB\x04\xe2\x41\x01\x01\x12\x35\n\x0b\x61nnotations\x18\n \x03(\x0b\x32\x1a.google.chat.v1.AnnotationB\x04\xe2\x41\x01\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\x04\xe2\x41\x01\x03\x12\x1b\n\rfallback_text\x18\r \x01(\tB\x04\xe2\x41\x01\x01\x12=\n\x0f\x61\x63tion_response\x18\x0e \x01(\x0b\x32\x1e.google.chat.v1.ActionResponseB\x04\xe2\x41\x01\x04\x12\x1b\n\rargument_text\x18\x0f \x01(\tB\x04\xe2\x41\x01\x03\x12\x39\n\rslash_command\x18\x11 \x01(\x0b\x32\x1c.google.chat.v1.SlashCommandB\x04\xe2\x41\x01\x03\x12\x34\n\nattachment\x18\x12 \x03(\x0b\x32\x1a.google.chat.v1.AttachmentB\x04\xe2\x41\x01\x01\x12\x35\n\x0bmatched_url\x18\x14 \x01(\x0b\x32\x1a.google.chat.v1.MatchedUrlB\x04\xe2\x41\x01\x03\x12\x1a\n\x0cthread_reply\x18\x19 \x01(\x08\x42\x04\xe2\x41\x01\x03\x12\x14\n\x06silent\x18. \x01(\x08\x42\x04\xe2\x41\x01\x03\x12(\n\x1a\x63lient_assigned_message_id\x18 \x01(\tB\x04\xe2\x41\x01\x01\x12L\n\x18\x65moji_reaction_summaries\x18! \x03(\x0b\x32$.google.chat.v1.EmojiReactionSummaryB\x04\xe2\x41\x01\x03\x12;\n\x16private_message_viewer\x18$ \x01(\x0b\x32\x14.google.chat.v1.UserB\x05\xe2\x41\x02\x05\x01\x12\x41\n\x11\x64\x65letion_metadata\x18& \x01(\x0b\x32 .google.chat.v1.DeletionMetadataB\x04\xe2\x41\x01\x03\x12L\n\x17quoted_message_metadata\x18\' \x01(\x0b\x32%.google.chat.v1.QuotedMessageMetadataB\x04\xe2\x41\x01\x01\x12\x38\n\rattached_gifs\x18* \x03(\x0b\x32\x1b.google.chat.v1.AttachedGifB\x04\xe2\x41\x01\x03\x12@\n\x11\x61\x63\x63\x65ssory_widgets\x18, \x03(\x0b\x32\x1f.google.chat.v1.AccessoryWidgetB\x04\xe2\x41\x01\x01\x12\x39\n\rmarkup_syntax\x18/ \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x04\xe2\x41\x01\x01:C\xea\x41@\n\x1b\x63hat.googleapis.com/Message\x12!spaces/{space}/messages/{message}\" \n\x0b\x41ttachedGif\x12\x11\n\x03uri\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\"\xaa\x04\n\x15QuotedMessageMetadata\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12:\n\x10last_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x02\x12I\n\nquote_type\x18\x04 \x01(\x0e\x32/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\x04\xe2\x41\x01\x01\x12L\n\x17quoted_message_snapshot\x18\x05 \x01(\x0b\x32%.google.chat.v1.QuotedMessageSnapshotB\x04\xe2\x41\x01\x03\x12\x43\n\x12\x66orwarded_metadata\x18\x06 \x01(\x0b\x32!.google.chat.v1.ForwardedMetadataB\x04\xe2\x41\x01\x03\"?\n\tQuoteType\x12\x1a\n\x16QUOTE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05REPLY\x10\x01\x12\x0b\n\x07\x46ORWARD\x10\x02:\x81\x01\xea\x41~\n)chat.googleapis.com/QuotedMessageMetadata\x12Qspaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\xcd\x01\n\x15QuotedMessageSnapshot\x12\x14\n\x06sender\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x12\n\x04text\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1c\n\x0e\x66ormatted_text\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x1a.google.chat.v1.AnnotationB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x61ttachments\x18\x05 \x03(\x0b\x32\x1a.google.chat.v1.AttachmentB\x04\xe2\x41\x01\x03\"h\n\x11\x46orwardedMetadata\x12\x31\n\x05space\x18\x01 \x01(\tB\"\xe2\x41\x01\x03\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12 \n\x12space_display_name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\"\x89\x01\n\x06Thread\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08\x12\x18\n\nthread_key\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01:Q\xea\x41N\n\x1a\x63hat.googleapis.com/Thread\x12\x1fspaces/{space}/threads/{thread}*\x07threads2\x06thread\"\xd6\x04\n\x0e\x41\x63tionResponse\x12?\n\x04type\x18\x01 \x01(\x0e\x32+.google.chat.v1.ActionResponse.ResponseTypeB\x04\xe2\x41\x01\x04\x12\x11\n\x03url\x18\x02 \x01(\tB\x04\xe2\x41\x01\x04\x12\x39\n\rdialog_action\x18\x03 \x01(\x0b\x32\x1c.google.chat.v1.DialogActionB\x04\xe2\x41\x01\x04\x12J\n\x0eupdated_widget\x18\x04 \x01(\x0b\x32,.google.chat.v1.ActionResponse.UpdatedWidgetB\x04\xe2\x41\x01\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\"\x82\x01\n\x11GetMessageRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x39\n\rmarkup_syntax\x18\x03 \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x04\xe2\x41\x01\x01\"_\n\x14\x44\x65leteMessageRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x13\n\x05\x66orce\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\x9a\x01\n\x14UpdateMessageRequest\x12.\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.MessageB\x04\xe2\x41\x01\x02\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12\x1b\n\rallow_missing\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\x8f\x04\n\x14\x43reateMessageRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\x12.\n\x07message\x18\x04 \x01(\x0b\x32\x17.google.chat.v1.MessageB\x04\xe2\x41\x01\x02\x12\x1a\n\nthread_key\x18\x06 \x01(\tB\x06\x18\x01\xe2\x41\x01\x01\x12\x18\n\nrequest_id\x18\x07 \x01(\tB\x04\xe2\x41\x01\x01\x12[\n\x14message_reply_option\x18\x08 \x01(\x0e\x32\x37.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\x04\xe2\x41\x01\x01\x12\x18\n\nmessage_id\x18\t \x01(\tB\x04\xe2\x41\x01\x01\x12\x63\n#create_message_notification_options\x18\n \x01(\x0b\x32\x30.google.chat.v1.CreateMessageNotificationOptionsB\x04\xe2\x41\x01\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\"\x83\x02\n\x13ListMessagesRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08order_by\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0cshow_deleted\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x39\n\rmarkup_syntax\x18\t \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x04\xe2\x41\x01\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\"\x83\x01\n\x0c\x44ialogAction\x12.\n\x06\x64ialog\x18\x01 \x01(\x0b\x32\x16.google.chat.v1.DialogB\x04\xe2\x41\x01\x04H\x00\x12\x39\n\raction_status\x18\x02 \x01(\x0b\x32\x1c.google.chat.v1.ActionStatusB\x04\xe2\x41\x01\x04\x42\x08\n\x06\x61\x63tion\"7\n\x06\x44ialog\x12-\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x19.google.apps.card.v1.CardB\x04\xe2\x41\x01\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.Card\"\xb0\x03\n\x15SearchMessagesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe2\x41\x01\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x14\n\x06\x66ilter\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x17\n\tpage_size\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08order_by\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12\x39\n\rmarkup_syntax\x18\x06 \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x04\xe2\x41\x01\x01\x12L\n\x04view\x18\x07 \x01(\x0e\x32\x38.google.chat.v1.SearchMessagesRequest.SearchMessagesViewB\x04\xe2\x41\x01\x01\"y\n\x12SearchMessagesView\x12$\n SEARCH_MESSAGES_VIEW_UNSPECIFIED\x10\x00\x12\x1e\n\x1aSEARCH_MESSAGES_VIEW_BASIC\x10\x01\x12\x1d\n\x19SEARCH_MESSAGES_VIEW_FULL\x10\x02\"g\n\x16SearchMessagesResponse\x12\x34\n\x07results\x18\x01 \x03(\x0b\x32#.google.chat.v1.SearchMessageResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x01\n\x13SearchMessageResult\x12(\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.Message\x12\x11\n\x04read\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12P\n\x12space_mute_setting\x18\x04 \x01(\x0e\x32\x34.google.chat.v1.SpaceNotificationSetting.MuteSettingB\x07\n\x05_readB\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"
|
|
27
|
+
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\x1dgoogle/chat/v1/elements.proto\x1a\"google/chat/v1/markup_syntax.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/google/chat/v1/space_notification_setting.proto\x1a\x19google/chat/v1/user.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xeb\x0b\n\x07Message\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08\x12*\n\x06sender\x18\x02 \x01(\x0b\x32\x14.google.chat.v1.UserB\x04\xe2\x41\x01\x03\x12\x36\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x05\xe2\x41\x02\x05\x01\x12:\n\x10last_update_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x64\x65lete_time\x18\x1a \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x12\n\x04text\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1c\n\x0e\x66ormatted_text\x18+ \x01(\tB\x04\xe2\x41\x01\x03\x12=\n\x05\x63\x61rds\x18\x05 \x03(\x0b\x32*.google.chat.v1.ContextualAddOnMarkup.CardB\x02\x18\x01\x12\x32\n\x08\x63\x61rds_v2\x18\x16 \x03(\x0b\x32\x1a.google.chat.v1.CardWithIdB\x04\xe2\x41\x01\x01\x12\x35\n\x0b\x61nnotations\x18\n \x03(\x0b\x32\x1a.google.chat.v1.AnnotationB\x04\xe2\x41\x01\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\x04\xe2\x41\x01\x03\x12\x1b\n\rfallback_text\x18\r \x01(\tB\x04\xe2\x41\x01\x01\x12=\n\x0f\x61\x63tion_response\x18\x0e \x01(\x0b\x32\x1e.google.chat.v1.ActionResponseB\x04\xe2\x41\x01\x04\x12\x1b\n\rargument_text\x18\x0f \x01(\tB\x04\xe2\x41\x01\x03\x12\x39\n\rslash_command\x18\x11 \x01(\x0b\x32\x1c.google.chat.v1.SlashCommandB\x04\xe2\x41\x01\x03\x12\x34\n\nattachment\x18\x12 \x03(\x0b\x32\x1a.google.chat.v1.AttachmentB\x04\xe2\x41\x01\x01\x12\x35\n\x0bmatched_url\x18\x14 \x01(\x0b\x32\x1a.google.chat.v1.MatchedUrlB\x04\xe2\x41\x01\x03\x12\x1a\n\x0cthread_reply\x18\x19 \x01(\x08\x42\x04\xe2\x41\x01\x03\x12\x14\n\x06silent\x18. \x01(\x08\x42\x04\xe2\x41\x01\x03\x12(\n\x1a\x63lient_assigned_message_id\x18 \x01(\tB\x04\xe2\x41\x01\x01\x12L\n\x18\x65moji_reaction_summaries\x18! \x03(\x0b\x32$.google.chat.v1.EmojiReactionSummaryB\x04\xe2\x41\x01\x03\x12;\n\x16private_message_viewer\x18$ \x01(\x0b\x32\x14.google.chat.v1.UserB\x05\xe2\x41\x02\x05\x01\x12\x41\n\x11\x64\x65letion_metadata\x18& \x01(\x0b\x32 .google.chat.v1.DeletionMetadataB\x04\xe2\x41\x01\x03\x12L\n\x17quoted_message_metadata\x18\' \x01(\x0b\x32%.google.chat.v1.QuotedMessageMetadataB\x04\xe2\x41\x01\x01\x12\x38\n\rattached_gifs\x18* \x03(\x0b\x32\x1b.google.chat.v1.AttachedGifB\x04\xe2\x41\x01\x03\x12@\n\x11\x61\x63\x63\x65ssory_widgets\x18, \x03(\x0b\x32\x1f.google.chat.v1.AccessoryWidgetB\x04\xe2\x41\x01\x01\x12\x30\n\x08\x65lements\x18- \x01(\x0b\x32\x18.google.chat.v1.ElementsB\x04\xe2\x41\x01\x01\x12\x39\n\rmarkup_syntax\x18/ \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x04\xe2\x41\x01\x01:C\xea\x41@\n\x1b\x63hat.googleapis.com/Message\x12!spaces/{space}/messages/{message}\" \n\x0b\x41ttachedGif\x12\x11\n\x03uri\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\"\xaa\x04\n\x15QuotedMessageMetadata\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12:\n\x10last_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x02\x12I\n\nquote_type\x18\x04 \x01(\x0e\x32/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\x04\xe2\x41\x01\x01\x12L\n\x17quoted_message_snapshot\x18\x05 \x01(\x0b\x32%.google.chat.v1.QuotedMessageSnapshotB\x04\xe2\x41\x01\x03\x12\x43\n\x12\x66orwarded_metadata\x18\x06 \x01(\x0b\x32!.google.chat.v1.ForwardedMetadataB\x04\xe2\x41\x01\x03\"?\n\tQuoteType\x12\x1a\n\x16QUOTE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05REPLY\x10\x01\x12\x0b\n\x07\x46ORWARD\x10\x02:\x81\x01\xea\x41~\n)chat.googleapis.com/QuotedMessageMetadata\x12Qspaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\xcd\x01\n\x15QuotedMessageSnapshot\x12\x14\n\x06sender\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x12\n\x04text\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1c\n\x0e\x66ormatted_text\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x1a.google.chat.v1.AnnotationB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x61ttachments\x18\x05 \x03(\x0b\x32\x1a.google.chat.v1.AttachmentB\x04\xe2\x41\x01\x03\"h\n\x11\x46orwardedMetadata\x12\x31\n\x05space\x18\x01 \x01(\tB\"\xe2\x41\x01\x03\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12 \n\x12space_display_name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\"\x89\x01\n\x06Thread\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08\x12\x18\n\nthread_key\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01:Q\xea\x41N\n\x1a\x63hat.googleapis.com/Thread\x12\x1fspaces/{space}/threads/{thread}*\x07threads2\x06thread\"\xd6\x04\n\x0e\x41\x63tionResponse\x12?\n\x04type\x18\x01 \x01(\x0e\x32+.google.chat.v1.ActionResponse.ResponseTypeB\x04\xe2\x41\x01\x04\x12\x11\n\x03url\x18\x02 \x01(\tB\x04\xe2\x41\x01\x04\x12\x39\n\rdialog_action\x18\x03 \x01(\x0b\x32\x1c.google.chat.v1.DialogActionB\x04\xe2\x41\x01\x04\x12J\n\x0eupdated_widget\x18\x04 \x01(\x0b\x32,.google.chat.v1.ActionResponse.UpdatedWidgetB\x04\xe2\x41\x01\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\"\x82\x01\n\x11GetMessageRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x39\n\rmarkup_syntax\x18\x03 \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x04\xe2\x41\x01\x01\"_\n\x14\x44\x65leteMessageRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x13\n\x05\x66orce\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\x9a\x01\n\x14UpdateMessageRequest\x12.\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.MessageB\x04\xe2\x41\x01\x02\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12\x1b\n\rallow_missing\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\x8f\x04\n\x14\x43reateMessageRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\x12.\n\x07message\x18\x04 \x01(\x0b\x32\x17.google.chat.v1.MessageB\x04\xe2\x41\x01\x02\x12\x1a\n\nthread_key\x18\x06 \x01(\tB\x06\x18\x01\xe2\x41\x01\x01\x12\x18\n\nrequest_id\x18\x07 \x01(\tB\x04\xe2\x41\x01\x01\x12[\n\x14message_reply_option\x18\x08 \x01(\x0e\x32\x37.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\x04\xe2\x41\x01\x01\x12\x18\n\nmessage_id\x18\t \x01(\tB\x04\xe2\x41\x01\x01\x12\x63\n#create_message_notification_options\x18\n \x01(\x0b\x32\x30.google.chat.v1.CreateMessageNotificationOptionsB\x04\xe2\x41\x01\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\"\x83\x02\n\x13ListMessagesRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\x12\x1b\x63hat.googleapis.com/Message\x12\x17\n\tpage_size\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\x12\x14\n\x06\x66ilter\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08order_by\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0cshow_deleted\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x39\n\rmarkup_syntax\x18\t \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x04\xe2\x41\x01\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\"\x83\x01\n\x0c\x44ialogAction\x12.\n\x06\x64ialog\x18\x01 \x01(\x0b\x32\x16.google.chat.v1.DialogB\x04\xe2\x41\x01\x04H\x00\x12\x39\n\raction_status\x18\x02 \x01(\x0b\x32\x1c.google.chat.v1.ActionStatusB\x04\xe2\x41\x01\x04\x42\x08\n\x06\x61\x63tion\"7\n\x06\x44ialog\x12-\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x19.google.apps.card.v1.CardB\x04\xe2\x41\x01\x04\"v\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.Card\x12.\n\nowner_user\x18\x03 \x01(\x0b\x32\x14.google.chat.v1.UserB\x04\xe2\x41\x01\x03\"\x84\x01\n\x1aReplaceMessageCardsRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1b\x63hat.googleapis.com/Message\x12\x32\n\x08\x63\x61rds_v2\x18\x02 \x03(\x0b\x32\x1a.google.chat.v1.CardWithIdB\x04\xe2\x41\x01\x01\"\x1d\n\x1bReplaceMessageCardsResponse\"\xb0\x03\n\x15SearchMessagesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe2\x41\x01\x02\xfa\x41\x1b\n\x19\x63hat.googleapis.com/Space\x12\x14\n\x06\x66ilter\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x17\n\tpage_size\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01\x12\x18\n\npage_token\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\x12\x16\n\x08order_by\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\x12\x39\n\rmarkup_syntax\x18\x06 \x01(\x0e\x32\x1c.google.chat.v1.MarkupSyntaxB\x04\xe2\x41\x01\x01\x12L\n\x04view\x18\x07 \x01(\x0e\x32\x38.google.chat.v1.SearchMessagesRequest.SearchMessagesViewB\x04\xe2\x41\x01\x01\"y\n\x12SearchMessagesView\x12$\n SEARCH_MESSAGES_VIEW_UNSPECIFIED\x10\x00\x12\x1e\n\x1aSEARCH_MESSAGES_VIEW_BASIC\x10\x01\x12\x1d\n\x19SEARCH_MESSAGES_VIEW_FULL\x10\x02\"g\n\x16SearchMessagesResponse\x12\x34\n\x07results\x18\x01 \x03(\x0b\x32#.google.chat.v1.SearchMessageResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x01\n\x13SearchMessageResult\x12(\n\x07message\x18\x01 \x01(\x0b\x32\x17.google.chat.v1.Message\x12\x11\n\x04read\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12P\n\x12space_mute_setting\x18\x04 \x01(\x0e\x32\x34.google.chat.v1.SpaceNotificationSetting.MuteSettingB\x07\n\x05_readB\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"
|
|
27
28
|
|
|
28
29
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
29
30
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -56,6 +57,8 @@ module Google
|
|
|
56
57
|
DialogAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DialogAction").msgclass
|
|
57
58
|
Dialog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Dialog").msgclass
|
|
58
59
|
CardWithId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CardWithId").msgclass
|
|
60
|
+
ReplaceMessageCardsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ReplaceMessageCardsRequest").msgclass
|
|
61
|
+
ReplaceMessageCardsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.ReplaceMessageCardsResponse").msgclass
|
|
59
62
|
SearchMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SearchMessagesRequest").msgclass
|
|
60
63
|
SearchMessagesRequest::SearchMessagesView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SearchMessagesRequest.SearchMessagesView").enummodule
|
|
61
64
|
SearchMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.SearchMessagesResponse").msgclass
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apps
|
|
22
|
+
module Chat
|
|
23
|
+
module V1
|
|
24
|
+
# Citations are inline references that can provide users more detailed
|
|
25
|
+
# information about the inline reference. Corresponding inline citations
|
|
26
|
+
# should be present in the message text in a markup format of
|
|
27
|
+
# `<chat-citation data-id="{id}">{text}</chat-citation>`. Citations are
|
|
28
|
+
# only supported when the message's `markup_syntax` is set to `MARKDOWN`.
|
|
29
|
+
#
|
|
30
|
+
# Unreferenced citations in `Elements.citations` (those without a matching
|
|
31
|
+
# `<chat-citation>` tag in the message text) are ignored and do not cause the
|
|
32
|
+
# message to be rejected.
|
|
33
|
+
# @!attribute [rw] id
|
|
34
|
+
# @return [::String]
|
|
35
|
+
# Required. The ID of the citation. This ID is defined by the app creating
|
|
36
|
+
# the citation and must match the `data-id` attribute of the
|
|
37
|
+
# `<chat-citation>` tag in the message text. Must contain only ASCII letters
|
|
38
|
+
# and numbers, and less than 63 characters.
|
|
39
|
+
# @!attribute [rw] cited_sources
|
|
40
|
+
# @return [::Array<::Google::Apps::Chat::V1::CitedSource>]
|
|
41
|
+
# Optional. A list of sources that are relevant to the citation. Sources are
|
|
42
|
+
# displayed in the citation hover card.
|
|
43
|
+
class Citation
|
|
44
|
+
include ::Google::Protobuf::MessageExts
|
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apps
|
|
22
|
+
module Chat
|
|
23
|
+
module V1
|
|
24
|
+
# A reference to a source of information.
|
|
25
|
+
# @!attribute [rw] title
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Required. The plaintext title of the `CitedSource`. Does not support
|
|
28
|
+
# markdown format.
|
|
29
|
+
# @!attribute [rw] uri
|
|
30
|
+
# @return [::String]
|
|
31
|
+
# Required. The URI pointing to the resource referenced by this
|
|
32
|
+
# `CitedSource`.
|
|
33
|
+
# @!attribute [rw] snippet
|
|
34
|
+
# @return [::Google::Apps::Chat::V1::CitedSource::Snippet]
|
|
35
|
+
# Optional. Snippet containing information directly from the source.
|
|
36
|
+
# @!attribute [rw] footer
|
|
37
|
+
# @return [::Google::Apps::Chat::V1::CitedSource::Footer]
|
|
38
|
+
# Optional. Additional information to show alongside the snippet in the form
|
|
39
|
+
# of a footer.
|
|
40
|
+
class CitedSource
|
|
41
|
+
include ::Google::Protobuf::MessageExts
|
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
43
|
+
|
|
44
|
+
# A snippet object representing an excerpt from a larger corpus.
|
|
45
|
+
# @!attribute [rw] text
|
|
46
|
+
# @return [::String]
|
|
47
|
+
# Optional. A short plaintext excerpt directly from the corpus that is
|
|
48
|
+
# rendered in the citation hover card or source preview. When footer
|
|
49
|
+
# sources are automatically populated from inline `citations` (because
|
|
50
|
+
# `Elements.cited_sources` is not set), snippets are omitted from the
|
|
51
|
+
# deduplicated footer sources. Does not support markdown format, and must
|
|
52
|
+
# not exceed 1,000 characters.
|
|
53
|
+
# @!attribute [rw] image_preview
|
|
54
|
+
# @return [::Google::Apps::Chat::V1::ElementsImage]
|
|
55
|
+
# Optional. Image preview of the snippet provided as an input when creating
|
|
56
|
+
# the citation.
|
|
57
|
+
class Snippet
|
|
58
|
+
include ::Google::Protobuf::MessageExts
|
|
59
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# A footer for a source, used for attribution.
|
|
63
|
+
# @!attribute [rw] text
|
|
64
|
+
# @return [::String]
|
|
65
|
+
# Optional. The plaintext to display in the footer. Does not support
|
|
66
|
+
# markdown format.
|
|
67
|
+
class Footer
|
|
68
|
+
include ::Google::Protobuf::MessageExts
|
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apps
|
|
22
|
+
module Chat
|
|
23
|
+
module V1
|
|
24
|
+
# Elements are additional message components,
|
|
25
|
+
# including inline `citations` (where each citation is associated with a
|
|
26
|
+
# specific portion of the message text) and `cited_sources` (which are general
|
|
27
|
+
# references used to generate the response and are not directly linked to
|
|
28
|
+
# specific segments of the text). Both `citations` and `cited_sources` can be
|
|
29
|
+
# provided as input when creating or updating a message and are populated on
|
|
30
|
+
# output when reading a message.
|
|
31
|
+
# @!attribute [rw] cited_sources
|
|
32
|
+
# @return [::Array<::Google::Apps::Chat::V1::CitedSource>]
|
|
33
|
+
# Optional. A list of sources to be displayed under the message as footer
|
|
34
|
+
# links. These are not referenced inline. For inline references, use
|
|
35
|
+
# `citations`.
|
|
36
|
+
# @!attribute [rw] citations
|
|
37
|
+
# @return [::Array<::Google::Apps::Chat::V1::Citation>]
|
|
38
|
+
# Optional. A list of inline citations referenced within the message text
|
|
39
|
+
# (via
|
|
40
|
+
# `<chat-citation>` tags) that render as interactive hover cards.
|
|
41
|
+
class Elements
|
|
42
|
+
include ::Google::Protobuf::MessageExts
|
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apps
|
|
22
|
+
module Chat
|
|
23
|
+
module V1
|
|
24
|
+
# An object encapsulating different ways of representing an image.
|
|
25
|
+
# Currently supported representations:
|
|
26
|
+
#
|
|
27
|
+
# * An image fetched from a URI.
|
|
28
|
+
#
|
|
29
|
+
# Additional representations might be supported in the future.
|
|
30
|
+
# @!attribute [rw] image_uri
|
|
31
|
+
# @return [::String]
|
|
32
|
+
# Required. The URI of the image. Must be a publicly accessible URI so that
|
|
33
|
+
# Chat can fetch and display it.
|
|
34
|
+
class ElementsImage
|
|
35
|
+
include ::Google::Protobuf::MessageExts
|
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -238,6 +238,22 @@ module Google
|
|
|
238
238
|
# Creating a message with accessory widgets requires [app
|
|
239
239
|
# authentication]
|
|
240
240
|
# (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
|
|
241
|
+
# @!attribute [rw] elements
|
|
242
|
+
# @return [::Google::Apps::Chat::V1::Elements]
|
|
243
|
+
# Optional. Additional message components, including inline `citations`
|
|
244
|
+
# (where each citation is associated with a specific portion of the message
|
|
245
|
+
# text) and `cited_sources` (which are general references used to generate
|
|
246
|
+
# the response and are not directly linked to specific segments of the text).
|
|
247
|
+
#
|
|
248
|
+
# On input, provide `elements` when creating or updating a message. On
|
|
249
|
+
# output, both `citations` and `cited_sources` are populated when reading a
|
|
250
|
+
# message that contains them. Callers can read structured citation metadata
|
|
251
|
+
# from `elements`, while `formatted_text` also includes inline citation tags
|
|
252
|
+
# or source links depending on `markup_syntax`.
|
|
253
|
+
#
|
|
254
|
+
# These differ from `annotations`, which are output-only and offer
|
|
255
|
+
# supplementary information tied to message fragments or the entire message
|
|
256
|
+
# text.
|
|
241
257
|
# @!attribute [rw] markup_syntax
|
|
242
258
|
# @return [::Google::Apps::Chat::V1::MarkupSyntax]
|
|
243
259
|
# Optional. Specifies how the server interprets the message `text` field
|
|
@@ -839,11 +855,38 @@ module Google
|
|
|
839
855
|
# @!attribute [rw] card
|
|
840
856
|
# @return [::Google::Apps::Card::V1::Card]
|
|
841
857
|
# A card. Maximum size is 32 KB.
|
|
858
|
+
# @!attribute [r] owner_user
|
|
859
|
+
# @return [::Google::Apps::Chat::V1::User]
|
|
860
|
+
# Output only. The app that owns the card.
|
|
842
861
|
class CardWithId
|
|
843
862
|
include ::Google::Protobuf::MessageExts
|
|
844
863
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
845
864
|
end
|
|
846
865
|
|
|
866
|
+
# Request message for ReplaceMessageCards API method.
|
|
867
|
+
# @!attribute [rw] name
|
|
868
|
+
# @return [::String]
|
|
869
|
+
# Required. The resource name of the message.
|
|
870
|
+
#
|
|
871
|
+
# Format: `spaces/{space}/messages/{message}`
|
|
872
|
+
# @!attribute [rw] cards_v2
|
|
873
|
+
# @return [::Array<::Google::Apps::Chat::V1::CardWithId>]
|
|
874
|
+
# Optional. An array of
|
|
875
|
+
# [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
|
|
876
|
+
# to be included in the message. These cards will replace the existing cards
|
|
877
|
+
# of the message. If empty, the original cards included in the message will
|
|
878
|
+
# be cleared.
|
|
879
|
+
class ReplaceMessageCardsRequest
|
|
880
|
+
include ::Google::Protobuf::MessageExts
|
|
881
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
882
|
+
end
|
|
883
|
+
|
|
884
|
+
# Response message for ReplaceMessageCards API.
|
|
885
|
+
class ReplaceMessageCardsResponse
|
|
886
|
+
include ::Google::Protobuf::MessageExts
|
|
887
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
888
|
+
end
|
|
889
|
+
|
|
847
890
|
# Request message for searching messages.
|
|
848
891
|
# @!attribute [rw] parent
|
|
849
892
|
# @return [::String]
|
|
@@ -199,7 +199,7 @@ module Google
|
|
|
199
199
|
# Optional. A description of the space. For example, describe the space's
|
|
200
200
|
# discussion topic, functional purpose, or participants.
|
|
201
201
|
#
|
|
202
|
-
# Supports up to
|
|
202
|
+
# Supports up to 4,096 characters.
|
|
203
203
|
# @!attribute [rw] guidelines
|
|
204
204
|
# @return [::String]
|
|
205
205
|
# Optional. The space's rules, expectations, and etiquette.
|
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.34.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -90,8 +90,12 @@ files:
|
|
|
90
90
|
- lib/google/chat/v1/availability_pb.rb
|
|
91
91
|
- lib/google/chat/v1/chat_service_pb.rb
|
|
92
92
|
- lib/google/chat/v1/chat_service_services_pb.rb
|
|
93
|
+
- lib/google/chat/v1/citation_pb.rb
|
|
94
|
+
- lib/google/chat/v1/cited_source_pb.rb
|
|
93
95
|
- lib/google/chat/v1/contextual_addon_pb.rb
|
|
94
96
|
- lib/google/chat/v1/deletion_metadata_pb.rb
|
|
97
|
+
- lib/google/chat/v1/elements_common_pb.rb
|
|
98
|
+
- lib/google/chat/v1/elements_pb.rb
|
|
95
99
|
- lib/google/chat/v1/event_payload_pb.rb
|
|
96
100
|
- lib/google/chat/v1/group_pb.rb
|
|
97
101
|
- lib/google/chat/v1/history_state_pb.rb
|
|
@@ -124,8 +128,12 @@ files:
|
|
|
124
128
|
- proto_docs/google/chat/v1/attachment.rb
|
|
125
129
|
- proto_docs/google/chat/v1/audience.rb
|
|
126
130
|
- proto_docs/google/chat/v1/availability.rb
|
|
131
|
+
- proto_docs/google/chat/v1/citation.rb
|
|
132
|
+
- proto_docs/google/chat/v1/cited_source.rb
|
|
127
133
|
- proto_docs/google/chat/v1/contextual_addon.rb
|
|
128
134
|
- proto_docs/google/chat/v1/deletion_metadata.rb
|
|
135
|
+
- proto_docs/google/chat/v1/elements.rb
|
|
136
|
+
- proto_docs/google/chat/v1/elements_common.rb
|
|
129
137
|
- proto_docs/google/chat/v1/event_payload.rb
|
|
130
138
|
- proto_docs/google/chat/v1/group.rb
|
|
131
139
|
- proto_docs/google/chat/v1/history_state.rb
|