google-apps-chat-v1 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/apps/chat/v1/chat_service/client.rb +596 -0
- data/lib/google/apps/chat/v1/chat_service/credentials.rb +2 -0
- data/lib/google/apps/chat/v1/chat_service/paths.rb +14 -0
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +561 -0
- data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +309 -0
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/chat/v1/availability_pb.rb +36 -0
- data/lib/google/chat/v1/chat_service_pb.rb +2 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +71 -0
- data/proto_docs/google/chat/v1/availability.rb +214 -0
- metadata +3 -1
|
@@ -1353,6 +1353,206 @@ module Google
|
|
|
1353
1353
|
end
|
|
1354
1354
|
end
|
|
1355
1355
|
|
|
1356
|
+
##
|
|
1357
|
+
# Baseline implementation for the get_availability REST call
|
|
1358
|
+
#
|
|
1359
|
+
# @param request_pb [::Google::Apps::Chat::V1::GetAvailabilityRequest]
|
|
1360
|
+
# A request object representing the call parameters. Required.
|
|
1361
|
+
# @param options [::Gapic::CallOptions]
|
|
1362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1363
|
+
#
|
|
1364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1365
|
+
# @yieldparam result [::Google::Apps::Chat::V1::Availability]
|
|
1366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1367
|
+
#
|
|
1368
|
+
# @return [::Google::Apps::Chat::V1::Availability]
|
|
1369
|
+
# A result object deserialized from the server's reply
|
|
1370
|
+
def get_availability request_pb, options = nil
|
|
1371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1372
|
+
|
|
1373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_availability_request request_pb
|
|
1374
|
+
query_string_params = if query_string_params.any?
|
|
1375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1376
|
+
else
|
|
1377
|
+
{}
|
|
1378
|
+
end
|
|
1379
|
+
|
|
1380
|
+
response = @client_stub.make_http_request(
|
|
1381
|
+
verb,
|
|
1382
|
+
uri: uri,
|
|
1383
|
+
body: body || "",
|
|
1384
|
+
params: query_string_params,
|
|
1385
|
+
method_name: "get_availability",
|
|
1386
|
+
options: options
|
|
1387
|
+
)
|
|
1388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1389
|
+
result = ::Google::Apps::Chat::V1::Availability.decode_json response.body, ignore_unknown_fields: true
|
|
1390
|
+
catch :response do
|
|
1391
|
+
yield result, operation if block_given?
|
|
1392
|
+
result
|
|
1393
|
+
end
|
|
1394
|
+
end
|
|
1395
|
+
|
|
1396
|
+
##
|
|
1397
|
+
# Baseline implementation for the mark_as_active REST call
|
|
1398
|
+
#
|
|
1399
|
+
# @param request_pb [::Google::Apps::Chat::V1::MarkAsActiveRequest]
|
|
1400
|
+
# A request object representing the call parameters. Required.
|
|
1401
|
+
# @param options [::Gapic::CallOptions]
|
|
1402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1403
|
+
#
|
|
1404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1405
|
+
# @yieldparam result [::Google::Apps::Chat::V1::Availability]
|
|
1406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1407
|
+
#
|
|
1408
|
+
# @return [::Google::Apps::Chat::V1::Availability]
|
|
1409
|
+
# A result object deserialized from the server's reply
|
|
1410
|
+
def mark_as_active request_pb, options = nil
|
|
1411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1412
|
+
|
|
1413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_mark_as_active_request request_pb
|
|
1414
|
+
query_string_params = if query_string_params.any?
|
|
1415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1416
|
+
else
|
|
1417
|
+
{}
|
|
1418
|
+
end
|
|
1419
|
+
|
|
1420
|
+
response = @client_stub.make_http_request(
|
|
1421
|
+
verb,
|
|
1422
|
+
uri: uri,
|
|
1423
|
+
body: body || "",
|
|
1424
|
+
params: query_string_params,
|
|
1425
|
+
method_name: "mark_as_active",
|
|
1426
|
+
options: options
|
|
1427
|
+
)
|
|
1428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1429
|
+
result = ::Google::Apps::Chat::V1::Availability.decode_json response.body, ignore_unknown_fields: true
|
|
1430
|
+
catch :response do
|
|
1431
|
+
yield result, operation if block_given?
|
|
1432
|
+
result
|
|
1433
|
+
end
|
|
1434
|
+
end
|
|
1435
|
+
|
|
1436
|
+
##
|
|
1437
|
+
# Baseline implementation for the mark_as_away REST call
|
|
1438
|
+
#
|
|
1439
|
+
# @param request_pb [::Google::Apps::Chat::V1::MarkAsAwayRequest]
|
|
1440
|
+
# A request object representing the call parameters. Required.
|
|
1441
|
+
# @param options [::Gapic::CallOptions]
|
|
1442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1443
|
+
#
|
|
1444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1445
|
+
# @yieldparam result [::Google::Apps::Chat::V1::Availability]
|
|
1446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1447
|
+
#
|
|
1448
|
+
# @return [::Google::Apps::Chat::V1::Availability]
|
|
1449
|
+
# A result object deserialized from the server's reply
|
|
1450
|
+
def mark_as_away request_pb, options = nil
|
|
1451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1452
|
+
|
|
1453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_mark_as_away_request request_pb
|
|
1454
|
+
query_string_params = if query_string_params.any?
|
|
1455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1456
|
+
else
|
|
1457
|
+
{}
|
|
1458
|
+
end
|
|
1459
|
+
|
|
1460
|
+
response = @client_stub.make_http_request(
|
|
1461
|
+
verb,
|
|
1462
|
+
uri: uri,
|
|
1463
|
+
body: body || "",
|
|
1464
|
+
params: query_string_params,
|
|
1465
|
+
method_name: "mark_as_away",
|
|
1466
|
+
options: options
|
|
1467
|
+
)
|
|
1468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1469
|
+
result = ::Google::Apps::Chat::V1::Availability.decode_json response.body, ignore_unknown_fields: true
|
|
1470
|
+
catch :response do
|
|
1471
|
+
yield result, operation if block_given?
|
|
1472
|
+
result
|
|
1473
|
+
end
|
|
1474
|
+
end
|
|
1475
|
+
|
|
1476
|
+
##
|
|
1477
|
+
# Baseline implementation for the mark_as_do_not_disturb REST call
|
|
1478
|
+
#
|
|
1479
|
+
# @param request_pb [::Google::Apps::Chat::V1::MarkAsDoNotDisturbRequest]
|
|
1480
|
+
# A request object representing the call parameters. Required.
|
|
1481
|
+
# @param options [::Gapic::CallOptions]
|
|
1482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1483
|
+
#
|
|
1484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1485
|
+
# @yieldparam result [::Google::Apps::Chat::V1::Availability]
|
|
1486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1487
|
+
#
|
|
1488
|
+
# @return [::Google::Apps::Chat::V1::Availability]
|
|
1489
|
+
# A result object deserialized from the server's reply
|
|
1490
|
+
def mark_as_do_not_disturb request_pb, options = nil
|
|
1491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1492
|
+
|
|
1493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_mark_as_do_not_disturb_request request_pb
|
|
1494
|
+
query_string_params = if query_string_params.any?
|
|
1495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1496
|
+
else
|
|
1497
|
+
{}
|
|
1498
|
+
end
|
|
1499
|
+
|
|
1500
|
+
response = @client_stub.make_http_request(
|
|
1501
|
+
verb,
|
|
1502
|
+
uri: uri,
|
|
1503
|
+
body: body || "",
|
|
1504
|
+
params: query_string_params,
|
|
1505
|
+
method_name: "mark_as_do_not_disturb",
|
|
1506
|
+
options: options
|
|
1507
|
+
)
|
|
1508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1509
|
+
result = ::Google::Apps::Chat::V1::Availability.decode_json response.body, ignore_unknown_fields: true
|
|
1510
|
+
catch :response do
|
|
1511
|
+
yield result, operation if block_given?
|
|
1512
|
+
result
|
|
1513
|
+
end
|
|
1514
|
+
end
|
|
1515
|
+
|
|
1516
|
+
##
|
|
1517
|
+
# Baseline implementation for the update_availability REST call
|
|
1518
|
+
#
|
|
1519
|
+
# @param request_pb [::Google::Apps::Chat::V1::UpdateAvailabilityRequest]
|
|
1520
|
+
# A request object representing the call parameters. Required.
|
|
1521
|
+
# @param options [::Gapic::CallOptions]
|
|
1522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1523
|
+
#
|
|
1524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1525
|
+
# @yieldparam result [::Google::Apps::Chat::V1::Availability]
|
|
1526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1527
|
+
#
|
|
1528
|
+
# @return [::Google::Apps::Chat::V1::Availability]
|
|
1529
|
+
# A result object deserialized from the server's reply
|
|
1530
|
+
def update_availability request_pb, options = nil
|
|
1531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1532
|
+
|
|
1533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_availability_request request_pb
|
|
1534
|
+
query_string_params = if query_string_params.any?
|
|
1535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1536
|
+
else
|
|
1537
|
+
{}
|
|
1538
|
+
end
|
|
1539
|
+
|
|
1540
|
+
response = @client_stub.make_http_request(
|
|
1541
|
+
verb,
|
|
1542
|
+
uri: uri,
|
|
1543
|
+
body: body || "",
|
|
1544
|
+
params: query_string_params,
|
|
1545
|
+
method_name: "update_availability",
|
|
1546
|
+
options: options
|
|
1547
|
+
)
|
|
1548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1549
|
+
result = ::Google::Apps::Chat::V1::Availability.decode_json response.body, ignore_unknown_fields: true
|
|
1550
|
+
catch :response do
|
|
1551
|
+
yield result, operation if block_given?
|
|
1552
|
+
result
|
|
1553
|
+
end
|
|
1554
|
+
end
|
|
1555
|
+
|
|
1356
1556
|
##
|
|
1357
1557
|
# Baseline implementation for the get_space_event REST call
|
|
1358
1558
|
#
|
|
@@ -2469,6 +2669,115 @@ module Google
|
|
|
2469
2669
|
transcoder.transcode request_pb
|
|
2470
2670
|
end
|
|
2471
2671
|
|
|
2672
|
+
##
|
|
2673
|
+
# @private
|
|
2674
|
+
#
|
|
2675
|
+
# GRPC transcoding helper method for the get_availability REST call
|
|
2676
|
+
#
|
|
2677
|
+
# @param request_pb [::Google::Apps::Chat::V1::GetAvailabilityRequest]
|
|
2678
|
+
# A request object representing the call parameters. Required.
|
|
2679
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2680
|
+
# Uri, Body, Query string parameters
|
|
2681
|
+
def self.transcode_get_availability_request request_pb
|
|
2682
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2683
|
+
.with_bindings(
|
|
2684
|
+
uri_method: :get,
|
|
2685
|
+
uri_template: "/v1/{name}",
|
|
2686
|
+
matches: [
|
|
2687
|
+
["name", %r{^users/[^/]+/availability/?$}, false]
|
|
2688
|
+
]
|
|
2689
|
+
)
|
|
2690
|
+
transcoder.transcode request_pb
|
|
2691
|
+
end
|
|
2692
|
+
|
|
2693
|
+
##
|
|
2694
|
+
# @private
|
|
2695
|
+
#
|
|
2696
|
+
# GRPC transcoding helper method for the mark_as_active REST call
|
|
2697
|
+
#
|
|
2698
|
+
# @param request_pb [::Google::Apps::Chat::V1::MarkAsActiveRequest]
|
|
2699
|
+
# A request object representing the call parameters. Required.
|
|
2700
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2701
|
+
# Uri, Body, Query string parameters
|
|
2702
|
+
def self.transcode_mark_as_active_request request_pb
|
|
2703
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2704
|
+
.with_bindings(
|
|
2705
|
+
uri_method: :post,
|
|
2706
|
+
uri_template: "/v1/{name}:markAsActive",
|
|
2707
|
+
body: "*",
|
|
2708
|
+
matches: [
|
|
2709
|
+
["name", %r{^users/[^/]+/availability/?$}, false]
|
|
2710
|
+
]
|
|
2711
|
+
)
|
|
2712
|
+
transcoder.transcode request_pb
|
|
2713
|
+
end
|
|
2714
|
+
|
|
2715
|
+
##
|
|
2716
|
+
# @private
|
|
2717
|
+
#
|
|
2718
|
+
# GRPC transcoding helper method for the mark_as_away REST call
|
|
2719
|
+
#
|
|
2720
|
+
# @param request_pb [::Google::Apps::Chat::V1::MarkAsAwayRequest]
|
|
2721
|
+
# A request object representing the call parameters. Required.
|
|
2722
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2723
|
+
# Uri, Body, Query string parameters
|
|
2724
|
+
def self.transcode_mark_as_away_request request_pb
|
|
2725
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2726
|
+
.with_bindings(
|
|
2727
|
+
uri_method: :post,
|
|
2728
|
+
uri_template: "/v1/{name}:markAsAway",
|
|
2729
|
+
body: "*",
|
|
2730
|
+
matches: [
|
|
2731
|
+
["name", %r{^users/[^/]+/availability/?$}, false]
|
|
2732
|
+
]
|
|
2733
|
+
)
|
|
2734
|
+
transcoder.transcode request_pb
|
|
2735
|
+
end
|
|
2736
|
+
|
|
2737
|
+
##
|
|
2738
|
+
# @private
|
|
2739
|
+
#
|
|
2740
|
+
# GRPC transcoding helper method for the mark_as_do_not_disturb REST call
|
|
2741
|
+
#
|
|
2742
|
+
# @param request_pb [::Google::Apps::Chat::V1::MarkAsDoNotDisturbRequest]
|
|
2743
|
+
# A request object representing the call parameters. Required.
|
|
2744
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2745
|
+
# Uri, Body, Query string parameters
|
|
2746
|
+
def self.transcode_mark_as_do_not_disturb_request request_pb
|
|
2747
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2748
|
+
.with_bindings(
|
|
2749
|
+
uri_method: :post,
|
|
2750
|
+
uri_template: "/v1/{name}:markAsDoNotDisturb",
|
|
2751
|
+
body: "*",
|
|
2752
|
+
matches: [
|
|
2753
|
+
["name", %r{^users/[^/]+/availability/?$}, false]
|
|
2754
|
+
]
|
|
2755
|
+
)
|
|
2756
|
+
transcoder.transcode request_pb
|
|
2757
|
+
end
|
|
2758
|
+
|
|
2759
|
+
##
|
|
2760
|
+
# @private
|
|
2761
|
+
#
|
|
2762
|
+
# GRPC transcoding helper method for the update_availability REST call
|
|
2763
|
+
#
|
|
2764
|
+
# @param request_pb [::Google::Apps::Chat::V1::UpdateAvailabilityRequest]
|
|
2765
|
+
# A request object representing the call parameters. Required.
|
|
2766
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2767
|
+
# Uri, Body, Query string parameters
|
|
2768
|
+
def self.transcode_update_availability_request request_pb
|
|
2769
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2770
|
+
.with_bindings(
|
|
2771
|
+
uri_method: :patch,
|
|
2772
|
+
uri_template: "/v1/{availability.name}",
|
|
2773
|
+
body: "availability",
|
|
2774
|
+
matches: [
|
|
2775
|
+
["availability.name", %r{^users/[^/]+/availability/?$}, false]
|
|
2776
|
+
]
|
|
2777
|
+
)
|
|
2778
|
+
transcoder.transcode request_pb
|
|
2779
|
+
end
|
|
2780
|
+
|
|
2472
2781
|
##
|
|
2473
2782
|
# @private
|
|
2474
2783
|
#
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/chat/v1/availability.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/api/resource_pb'
|
|
9
|
+
require 'google/chat/v1/reaction_pb'
|
|
10
|
+
require 'google/protobuf/duration_pb'
|
|
11
|
+
require 'google/protobuf/field_mask_pb'
|
|
12
|
+
require 'google/protobuf/timestamp_pb'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
descriptor_data = "\n!google/chat/v1/availability.proto\x12\x0egoogle.chat.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa7\x03\n\x0c\x41vailability\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32\".google.chat.v1.Availability.StateB\x03\xe0\x41\x03\x12L\n\x17\x64o_not_disturb_metadata\x18\x03 \x01(\x0b\x32$.google.chat.v1.DoNotDisturbMetadataB\x03\xe0\x41\x03H\x00\x12\x38\n\rcustom_status\x18\x04 \x01(\x0b\x32\x1c.google.chat.v1.CustomStatusB\x03\xe0\x41\x01\"R\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x08\n\x04IDLE\x10\x02\x12\x08\n\x04\x41WAY\x10\x03\x12\x12\n\x0e\x44O_NOT_DISTURB\x10\x04:^\xea\x41[\n chat.googleapis.com/Availability\x12\x19users/{user}/availability*\x0e\x61vailabilities2\x0c\x61vailabilityB\x10\n\x0estate_metadata\"\xbc\x01\n\x0c\x43ustomStatus\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12)\n\x05\x65moji\x18\x02 \x01(\x0b\x32\x15.google.chat.v1.EmojiB\x03\xe0\x41\x02\x12\x31\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12-\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x04H\x00\x42\x0c\n\nexpiration\"P\n\x14\x44oNotDisturbMetadata\x12\x38\n\x0f\x65xpiration_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"P\n\x16GetAvailabilityRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n chat.googleapis.com/Availability\"\x8a\x01\n\x19UpdateAvailabilityRequest\x12\x37\n\x0c\x61vailability\x18\x01 \x01(\x0b\x32\x1c.google.chat.v1.AvailabilityB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb8\x01\n\x13MarkAsActiveRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n chat.googleapis.com/Availability\x12\x31\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12(\n\x03ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x0c\n\nexpiration\"K\n\x11MarkAsAwayRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n chat.googleapis.com/Availability\"\xbe\x01\n\x19MarkAsDoNotDisturbRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n chat.googleapis.com/Availability\x12\x31\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12(\n\x03ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x0c\n\nexpirationB\xaa\x01\n\x12\x63om.google.chat.v1B\x11\x41vailabilityProtoP\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"
|
|
16
|
+
|
|
17
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apps
|
|
22
|
+
module Chat
|
|
23
|
+
module V1
|
|
24
|
+
Availability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Availability").msgclass
|
|
25
|
+
Availability::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.Availability.State").enummodule
|
|
26
|
+
CustomStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.CustomStatus").msgclass
|
|
27
|
+
DoNotDisturbMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.DoNotDisturbMetadata").msgclass
|
|
28
|
+
GetAvailabilityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.GetAvailabilityRequest").msgclass
|
|
29
|
+
UpdateAvailabilityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.UpdateAvailabilityRequest").msgclass
|
|
30
|
+
MarkAsActiveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MarkAsActiveRequest").msgclass
|
|
31
|
+
MarkAsAwayRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MarkAsAwayRequest").msgclass
|
|
32
|
+
MarkAsDoNotDisturbRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.chat.v1.MarkAsDoNotDisturbRequest").msgclass
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -7,6 +7,7 @@ require 'google/protobuf'
|
|
|
7
7
|
require 'google/api/annotations_pb'
|
|
8
8
|
require 'google/api/client_pb'
|
|
9
9
|
require 'google/chat/v1/attachment_pb'
|
|
10
|
+
require 'google/chat/v1/availability_pb'
|
|
10
11
|
require 'google/chat/v1/membership_pb'
|
|
11
12
|
require 'google/chat/v1/message_pb'
|
|
12
13
|
require 'google/chat/v1/reaction_pb'
|
|
@@ -20,7 +21,7 @@ require 'google/chat/v1/thread_read_state_pb'
|
|
|
20
21
|
require 'google/protobuf/empty_pb'
|
|
21
22
|
|
|
22
23
|
|
|
23
|
-
descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1cgoogle/chat/v1/section.proto\x1a\x1agoogle/chat/v1/space.proto\x1a google/chat/v1/space_event.proto\x1a/google/chat/v1/space_notification_setting.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\xd1@\n\x0b\x43hatService\x12\x9b\x01\n\rCreateMessage\x12$.google.chat.v1.CreateMessageRequest\x1a\x17.google.chat.v1.Message\"K\xda\x41\x19parent,message,message_id\x82\xd3\xe4\x93\x02)\"\x1e/v1/{parent=spaces/*}/messages:\x07message\x12\x8a\x01\n\x0cListMessages\x12#.google.chat.v1.ListMessagesRequest\x1a$.google.chat.v1.ListMessagesResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=spaces/*}/messages\x12\x92\x01\n\x0fListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1a\'.google.chat.v1.ListMembershipsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=spaces/*}/members\x12\x7f\n\rGetMembership\x12$.google.chat.v1.GetMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=spaces/*/members/*}\x12w\n\nGetMessage\x12!.google.chat.v1.GetMessageRequest\x1a\x17.google.chat.v1.Message\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=spaces/*/messages/*}\x12\xd1\x01\n\rUpdateMessage\x12$.google.chat.v1.UpdateMessageRequest\x1a\x17.google.chat.v1.Message\"\x80\x01\xda\x41\x13message,update_mask\x82\xd3\xe4\x93\x02\x64\x1a&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\n\rDeleteMessage\x12$.google.chat.v1.DeleteMessageRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=spaces/*/messages/*}\x12\x8e\x01\n\rGetAttachment\x12$.google.chat.v1.GetAttachmentRequest\x1a\x1a.google.chat.v1.Attachment\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9a\x01\n\x10UploadAttachment\x12\'.google.chat.v1.UploadAttachmentRequest\x1a(.google.chat.v1.UploadAttachmentResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\n\nListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1a\".google.chat.v1.ListSpacesResponse\"\x15\xda\x41\x00\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/spaces\x12w\n\x0cSearchSpaces\x12#.google.chat.v1.SearchSpacesRequest\x1a$.google.chat.v1.SearchSpacesResponse\"\x1c\xda\x41\x00\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/spaces:search\x12\x66\n\x08GetSpace\x12\x1f.google.chat.v1.GetSpaceRequest\x1a\x15.google.chat.v1.Space\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\n\x0b\x43reateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1a\x15.google.chat.v1.Space\"!\xda\x41\x05space\x82\xd3\xe4\x93\x02\x13\"\n/v1/spaces:\x05space\x12\x63\n\nSetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1a\x15.google.chat.v1.Space\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\n\x0bUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1a\x15.google.chat.v1.Space\"<\xda\x41\x11space,update_mask\x82\xd3\xe4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\n\x0b\x44\x65leteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9d\x01\n\x13\x43ompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1a+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\n\x11\x46indDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1a\x15.google.chat.v1.Space\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/spaces:findDirectMessage\x12\x82\x01\n\x0e\x46indGroupChats\x12%.google.chat.v1.FindGroupChatsRequest\x1a&.google.chat.v1.FindGroupChatsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/spaces:findGroupChats\x12\x9e\x01\n\x10\x43reateMembership\x12\'.google.chat.v1.CreateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"E\xda\x41\x11parent,membership\x82\xd3\xe4\x93\x02+\"\x1d/v1/{parent=spaces/*}/members:\nmembership\x12\xae\x01\n\x10UpdateMembership\x12\'.google.chat.v1.UpdateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"U\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x36\x32(/v1/{membership.name=spaces/*/members/*}:\nmembership\x12\x85\x01\n\x10\x44\x65leteMembership\x12\'.google.chat.v1.DeleteMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=spaces/*/members/*}\x12\xa1\x01\n\x0e\x43reateReaction\x12%.google.chat.v1.CreateReactionRequest\x1a\x18.google.chat.v1.Reaction\"N\xda\x41\x0fparent,reaction\x82\xd3\xe4\x93\x02\x36\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\n\rListReactions\x12$.google.chat.v1.ListReactionsRequest\x1a%.google.chat.v1.ListReactionsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8a\x01\n\x0e\x44\x65leteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x91\x01\n\x11\x43reateCustomEmoji\x12(.google.chat.v1.CreateCustomEmojiRequest\x1a\x1b.google.chat.v1.CustomEmoji\"5\xda\x41\x0c\x63ustom_emoji\x82\xd3\xe4\x93\x02 \"\x10/v1/customEmojis:\x0c\x63ustom_emoji\x12~\n\x0eGetCustomEmoji\x12%.google.chat.v1.GetCustomEmojiRequest\x1a\x1b.google.chat.v1.CustomEmoji\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/{name=customEmojis/*}\x12\x82\x01\n\x10ListCustomEmojis\x12\'.google.chat.v1.ListCustomEmojisRequest\x1a(.google.chat.v1.ListCustomEmojisResponse\"\x1b\xda\x41\x00\x82\xd3\xe4\x93\x02\x12\x12\x10/v1/customEmojis\x12\x7f\n\x11\x44\x65leteCustomEmoji\x12(.google.chat.v1.DeleteCustomEmojiRequest\x1a\x16.google.protobuf.Empty\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b*\x19/v1/{name=customEmojis/*}\x12\x98\x01\n\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xd9\x01\n\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"t\xda\x41\x1cspace_read_state,update_mask\x82\xd3\xe4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xa6\x01\n\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1a\x1f.google.chat.v1.ThreadReadState\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x12\x83\x01\n\rGetSpaceEvent\x12$.google.chat.v1.GetSpaceEventRequest\x1a\x1a.google.chat.v1.SpaceEvent\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=spaces/*/spaceEvents/*}\x12\x9d\x01\n\x0fListSpaceEvents\x12&.google.chat.v1.ListSpaceEventsRequest\x1a\'.google.chat.v1.ListSpaceEventsResponse\"9\xda\x41\rparent,filter\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=spaces/*}/spaceEvents\x12\xc0\x01\n\x1bGetSpaceNotificationSetting\x12\x32.google.chat.v1.GetSpaceNotificationSettingRequest\x1a(.google.chat.v1.SpaceNotificationSetting\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=users/*/spaces/*/spaceNotificationSetting}\x12\xa0\x02\n\x1eUpdateSpaceNotificationSetting\x12\x35.google.chat.v1.UpdateSpaceNotificationSettingRequest\x1a(.google.chat.v1.SpaceNotificationSetting\"\x9c\x01\xda\x41&space_notification_setting,update_mask\x82\xd3\xe4\x93\x02m2O/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}:\x1aspace_notification_setting\x12\x8f\x01\n\rCreateSection\x12$.google.chat.v1.CreateSectionRequest\x1a\x17.google.chat.v1.Section\"?\xda\x41\x0eparent,section\x82\xd3\xe4\x93\x02(\"\x1d/v1/{parent=users/*}/sections:\x07section\x12{\n\rDeleteSection\x12$.google.chat.v1.DeleteSectionRequest\x1a\x16.google.protobuf.Empty\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=users/*/sections/*}\x12\x9c\x01\n\rUpdateSection\x12$.google.chat.v1.UpdateSectionRequest\x1a\x17.google.chat.v1.Section\"L\xda\x41\x13section,update_mask\x82\xd3\xe4\x93\x02\x30\x32%/v1/{section.name=users/*/sections/*}:\x07section\x12\x89\x01\n\x0cListSections\x12#.google.chat.v1.ListSectionsRequest\x1a$.google.chat.v1.ListSectionsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=users/*}/sections\x12\x95\x01\n\x0fPositionSection\x12&.google.chat.v1.PositionSectionRequest\x1a\'.google.chat.v1.PositionSectionResponse\"1\x82\xd3\xe4\x93\x02+\"&/v1/{name=users/*/sections/*}:position:\x01*\x12\x9d\x01\n\x10ListSectionItems\x12\'.google.chat.v1.ListSectionItemsRequest\x1a(.google.chat.v1.ListSectionItemsResponse\"6\xda\x41\x06parent\x82\xd3\xe4\x93\x02\'\x12%/v1/{parent=users/*/sections/*}/items\x12\xaf\x01\n\x0fMoveSectionItem\x12&.google.chat.v1.MoveSectionItemRequest\x1a\'.google.chat.v1.MoveSectionItemResponse\"K\xda\x41\x13name,target_section\x82\xd3\xe4\x93\x02/\"*/v1/{name=users/*/sections/*/items/*}:move:\x01*\x1a\xbe\x0e\xca\x41\x13\x63hat.googleapis.com\xd2\x41\xa4\x0ehttps://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettingsB\xa9\x01\n\x12\x63om.google.chat.v1B\x10\x43hatServiceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
|
|
24
|
+
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\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\xc6G\n\x0b\x43hatService\x12\x9b\x01\n\rCreateMessage\x12$.google.chat.v1.CreateMessageRequest\x1a\x17.google.chat.v1.Message\"K\xda\x41\x19parent,message,message_id\x82\xd3\xe4\x93\x02)\"\x1e/v1/{parent=spaces/*}/messages:\x07message\x12\x8a\x01\n\x0cListMessages\x12#.google.chat.v1.ListMessagesRequest\x1a$.google.chat.v1.ListMessagesResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=spaces/*}/messages\x12\x92\x01\n\x0fListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1a\'.google.chat.v1.ListMembershipsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=spaces/*}/members\x12\x7f\n\rGetMembership\x12$.google.chat.v1.GetMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=spaces/*/members/*}\x12w\n\nGetMessage\x12!.google.chat.v1.GetMessageRequest\x1a\x17.google.chat.v1.Message\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=spaces/*/messages/*}\x12\xd1\x01\n\rUpdateMessage\x12$.google.chat.v1.UpdateMessageRequest\x1a\x17.google.chat.v1.Message\"\x80\x01\xda\x41\x13message,update_mask\x82\xd3\xe4\x93\x02\x64\x1a&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\n\rDeleteMessage\x12$.google.chat.v1.DeleteMessageRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=spaces/*/messages/*}\x12\x8e\x01\n\rGetAttachment\x12$.google.chat.v1.GetAttachmentRequest\x1a\x1a.google.chat.v1.Attachment\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9a\x01\n\x10UploadAttachment\x12\'.google.chat.v1.UploadAttachmentRequest\x1a(.google.chat.v1.UploadAttachmentResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\n\nListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1a\".google.chat.v1.ListSpacesResponse\"\x15\xda\x41\x00\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/spaces\x12w\n\x0cSearchSpaces\x12#.google.chat.v1.SearchSpacesRequest\x1a$.google.chat.v1.SearchSpacesResponse\"\x1c\xda\x41\x00\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/spaces:search\x12\x66\n\x08GetSpace\x12\x1f.google.chat.v1.GetSpaceRequest\x1a\x15.google.chat.v1.Space\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\n\x0b\x43reateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1a\x15.google.chat.v1.Space\"!\xda\x41\x05space\x82\xd3\xe4\x93\x02\x13\"\n/v1/spaces:\x05space\x12\x63\n\nSetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1a\x15.google.chat.v1.Space\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\n\x0bUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1a\x15.google.chat.v1.Space\"<\xda\x41\x11space,update_mask\x82\xd3\xe4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\n\x0b\x44\x65leteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9d\x01\n\x13\x43ompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1a+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\n\x11\x46indDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1a\x15.google.chat.v1.Space\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/spaces:findDirectMessage\x12\x82\x01\n\x0e\x46indGroupChats\x12%.google.chat.v1.FindGroupChatsRequest\x1a&.google.chat.v1.FindGroupChatsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/spaces:findGroupChats\x12\x9e\x01\n\x10\x43reateMembership\x12\'.google.chat.v1.CreateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"E\xda\x41\x11parent,membership\x82\xd3\xe4\x93\x02+\"\x1d/v1/{parent=spaces/*}/members:\nmembership\x12\xae\x01\n\x10UpdateMembership\x12\'.google.chat.v1.UpdateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"U\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x36\x32(/v1/{membership.name=spaces/*/members/*}:\nmembership\x12\x85\x01\n\x10\x44\x65leteMembership\x12\'.google.chat.v1.DeleteMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=spaces/*/members/*}\x12\xa1\x01\n\x0e\x43reateReaction\x12%.google.chat.v1.CreateReactionRequest\x1a\x18.google.chat.v1.Reaction\"N\xda\x41\x0fparent,reaction\x82\xd3\xe4\x93\x02\x36\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\n\rListReactions\x12$.google.chat.v1.ListReactionsRequest\x1a%.google.chat.v1.ListReactionsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8a\x01\n\x0e\x44\x65leteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x91\x01\n\x11\x43reateCustomEmoji\x12(.google.chat.v1.CreateCustomEmojiRequest\x1a\x1b.google.chat.v1.CustomEmoji\"5\xda\x41\x0c\x63ustom_emoji\x82\xd3\xe4\x93\x02 \"\x10/v1/customEmojis:\x0c\x63ustom_emoji\x12~\n\x0eGetCustomEmoji\x12%.google.chat.v1.GetCustomEmojiRequest\x1a\x1b.google.chat.v1.CustomEmoji\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1/{name=customEmojis/*}\x12\x82\x01\n\x10ListCustomEmojis\x12\'.google.chat.v1.ListCustomEmojisRequest\x1a(.google.chat.v1.ListCustomEmojisResponse\"\x1b\xda\x41\x00\x82\xd3\xe4\x93\x02\x12\x12\x10/v1/customEmojis\x12\x7f\n\x11\x44\x65leteCustomEmoji\x12(.google.chat.v1.DeleteCustomEmojiRequest\x1a\x16.google.protobuf.Empty\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b*\x19/v1/{name=customEmojis/*}\x12\x98\x01\n\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xd9\x01\n\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"t\xda\x41\x1cspace_read_state,update_mask\x82\xd3\xe4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xa6\x01\n\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1a\x1f.google.chat.v1.ThreadReadState\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x12\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\xb7\x0f\xca\x41\x13\x63hat.googleapis.com\xd2\x41\x9d\x0fhttps://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.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"
|
|
24
25
|
|
|
25
26
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
26
27
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -828,6 +828,77 @@ module Google
|
|
|
828
828
|
# - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
|
|
829
829
|
# - `https://www.googleapis.com/auth/chat.users.readstate`
|
|
830
830
|
rpc :GetThreadReadState, ::Google::Apps::Chat::V1::GetThreadReadStateRequest, ::Google::Apps::Chat::V1::ThreadReadState
|
|
831
|
+
# Returns availability information for a human user in Google Chat. For
|
|
832
|
+
# example, this can be used to check if a user is online or away, or to
|
|
833
|
+
# retrieve their custom status message.
|
|
834
|
+
#
|
|
835
|
+
# This method only retrieves the authenticated user's availability.
|
|
836
|
+
#
|
|
837
|
+
# Requires [user
|
|
838
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
839
|
+
# with one of the following [authorization
|
|
840
|
+
# scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
841
|
+
#
|
|
842
|
+
# - `https://www.googleapis.com/auth/chat.users.availability.readonly`
|
|
843
|
+
# - `https://www.googleapis.com/auth/chat.users.availability`
|
|
844
|
+
rpc :GetAvailability, ::Google::Apps::Chat::V1::GetAvailabilityRequest, ::Google::Apps::Chat::V1::Availability
|
|
845
|
+
# Marks user as `ACTIVE` in Google Chat.
|
|
846
|
+
#
|
|
847
|
+
# Sets the user's availability state to `ACTIVE`. The `ACTIVE` state
|
|
848
|
+
# lasts until the specified expiration, at which point the user's state
|
|
849
|
+
# becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE`
|
|
850
|
+
# state duration may extend beyond the provided expiration.
|
|
851
|
+
#
|
|
852
|
+
# This method only updates the authenticated user's availability.
|
|
853
|
+
#
|
|
854
|
+
# Requires [user
|
|
855
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
856
|
+
# with [authorization
|
|
857
|
+
# scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
858
|
+
#
|
|
859
|
+
# - `https://www.googleapis.com/auth/chat.users.availability`
|
|
860
|
+
rpc :MarkAsActive, ::Google::Apps::Chat::V1::MarkAsActiveRequest, ::Google::Apps::Chat::V1::Availability
|
|
861
|
+
# Marks user as `AWAY` in Google Chat.
|
|
862
|
+
#
|
|
863
|
+
# Sets the user's state to away and is not affected by the user's
|
|
864
|
+
# activity.
|
|
865
|
+
#
|
|
866
|
+
# This method only updates the authenticated user's availability.
|
|
867
|
+
#
|
|
868
|
+
# Requires [user
|
|
869
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
870
|
+
# with [authorization
|
|
871
|
+
# scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
872
|
+
#
|
|
873
|
+
# - `https://www.googleapis.com/auth/chat.users.availability`
|
|
874
|
+
rpc :MarkAsAway, ::Google::Apps::Chat::V1::MarkAsAwayRequest, ::Google::Apps::Chat::V1::Availability
|
|
875
|
+
# Marks user as `DO_NOT_DISTURB` in Google Chat.
|
|
876
|
+
#
|
|
877
|
+
# Sets a user's availability state to `DO_NOT_DISTURB` until a specified
|
|
878
|
+
# expiration time.
|
|
879
|
+
# When in `DO_NOT_DISTURB`, users typically won't receive notifications.
|
|
880
|
+
#
|
|
881
|
+
# This method only updates the authenticated user's availability.
|
|
882
|
+
#
|
|
883
|
+
# Requires [user
|
|
884
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
885
|
+
# with [authorization
|
|
886
|
+
# scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
887
|
+
#
|
|
888
|
+
# - `https://www.googleapis.com/auth/chat.users.availability`
|
|
889
|
+
rpc :MarkAsDoNotDisturb, ::Google::Apps::Chat::V1::MarkAsDoNotDisturbRequest, ::Google::Apps::Chat::V1::Availability
|
|
890
|
+
# Updates availability information for a human user. Only the `custom_status`
|
|
891
|
+
# field can be updated through this method.
|
|
892
|
+
#
|
|
893
|
+
# This method only updates the authenticated user's availability.
|
|
894
|
+
#
|
|
895
|
+
# Requires [user
|
|
896
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
897
|
+
# with one of the following [authorization
|
|
898
|
+
# scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
899
|
+
#
|
|
900
|
+
# - `https://www.googleapis.com/auth/chat.users.availability`
|
|
901
|
+
rpc :UpdateAvailability, ::Google::Apps::Chat::V1::UpdateAvailabilityRequest, ::Google::Apps::Chat::V1::Availability
|
|
831
902
|
# Returns an event from a Google Chat space. The [event
|
|
832
903
|
# payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
|
|
833
904
|
# contains the most recent version of the resource that changed. For example,
|