-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhangout_media.proto
1576 lines (1369 loc) · 43.7 KB
/
hangout_media.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// proto2 is required because we need to be able to serialize default values:
syntax = "proto2";
import "hangouts.proto";
message AnonymousDevice {
optional string user_name = 1;
}
message AnonymousDeviceAddRequest {
optional RequestHeader request_header = 1;
repeated AnonymousDevice device = 2;
}
message AnonymousDeviceAddResponse {
optional ResponseHeader response_header = 1;
optional SyncMetadata sync_metadata = 2;
repeated AnonymousDevice device = 3;
}
message CommonAnnouncement {
optional string hangout_id = 1;
optional string announcement_id = 2;
optional AnnouncementType announcement_type = 3;
optional string sender_id = 4;
optional string subject_id = 5;
repeated string recipient_id = 6;
optional string locale = 7;
optional CommonAnnouncementAction action = 8;
optional string title = 9;
optional string body = 10;
optional LifeTime life_time = 11;
}
enum CommonAnnouncementAction {
FYI = 0;
CONFIRM = 1;
INTERRUPT = 2;
}
enum LifeTime {
UNKNOWN = 0;
FIRE_AND_FORGET = 1;
STICKY = 2;
}
message CommonAnnouncementAddRequest {
optional RequestHeader request_header = 1;
optional CommonAnnouncement announcement = 2;
optional SyncMetadata sync_metadata = 3;
repeated CommonAnnouncement resource = 4;
}
message CommonAnnouncementAddResponse {
optional ResponseHeader response_header = 1;
optional CommonAnnouncement announcement = 2;
optional SyncMetadata sync_metadata = 3;
repeated CommonAnnouncement resource = 4;
}
message CommonAnnouncementSearchRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional SyncMetadata sync_metadata = 3;
optional string locale = 4;
}
message CommonAnnouncementSearchResponse {
optional ResponseHeader response_header = 1;
repeated CommonAnnouncement announcement = 2;
optional SyncMetadata sync_metadata = 3;
}
message CommonAnnouncementRemoveRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional string announcement_id = 3;
optional SyncMetadata sync_metadata = 4;
repeated string resource_id = 5;
}
message CommonAnnouncementRemoveResponse {
optional ResponseHeader response_header = 1;
optional SyncMetadata sync_metadata = 2;
}
message HangoutBulkRequestEntry {
optional HangoutParticipantAddRequest hangout_participant_add_request = 1;
optional MediaSessionAddRequest media_session_add_request = 2;
optional MediaStreamAddRequest media_stream_add_request = 3;
optional MediaStreamSearchRequest media_stream_search_request = 4;
optional MediaSourceAddRequest media_source_add_request = 5;
optional MediaSourceSearchRequest media_source_search_request = 6;
optional HangoutParticipantSearchRequest hangout_participant_search_request = 7;
optional HangoutQueryRequest hangout_query_request = 8;
optional HangoutAddRequest hangout_add_request = 9;
optional HangoutResolveRequest hangout_resolve_request = 10;
optional HangoutInvitationAddRequest hangout_invitation_add_request = 11;
optional HangoutInvitationAddPhoneRequest hangout_invitation_add_phone_request = 12;
optional MediaSessionQueryRequest media_session_query_request = 13;
}
message HangoutBulkResponseEntry {
optional HangoutParticipantAddResponse hangout_participant_add_response = 1;
optional MediaSessionAddResponse media_session_add_response = 2;
optional MediaStreamAddResponse media_stream_add_response = 3;
optional MediaStreamSearchResponse media_stream_search_response = 4;
optional MediaSourceAddResponse media_source_add_response = 5;
optional MediaSourceSearchResponse media_source_search_response = 6;
optional HangoutParticipantSearchResponse hangout_participant_search_response = 7;
optional HangoutQueryResponse hangout_query_response = 8;
optional HangoutAddResponse hangout_add_response = 9;
optional HangoutResolveResponse hangout_resolve_response = 10;
optional HangoutInvitationAddResponse hangout_invitation_add_response = 11;
optional HangoutInvitationAddPhoneResponse hangout_invitation_add_phone_response = 12;
optional MediaSessionQueryResponse media_session_query_response = 13;
}
message HangoutBulkRequest {
optional RequestHeader request_header = 1;
repeated HangoutBulkRequestEntry entry = 2;
optional SyncMetadata sync_metadata = 3;
}
message HangoutBulkResponse {
optional ResponseHeader response_header = 1;
repeated HangoutBulkResponseEntry entry = 2;
optional SyncMetadata sync_metadata = 3;
}
message ExternalKey {
optional string service = 1;
optional string value = 2;
}
message Presenter {
optional string presenter_participant_id = 1;
optional string by_participant_id = 2;
}
message Hangout {
optional string hangout_id = 1;
optional HangoutType type = 2;
optional ExternalKey external_key = 3;
optional bool active = 4;
optional bool is_public = 5;
optional int64 created_ms = 6;
optional int64 last_activity_ms = 7;
optional string topic = 8;
optional ConversationId conversation_id = 9;
optional bool by_invitation_only = 10;
optional int64 start_time_ms = 11;
optional int64 duration_ms = 12;
optional string organizer_id = 13;
optional HangoutMediaType media_type = 14;
optional bool allows_minors = 16;
//repeated string tag = 15; ?
optional Presenter presenter = 17;
optional bool knockable = 18;
//repeated {true/false, en-US} locale = 19;
optional Tristate external_invited = 21;
optional Tristate knocking_enabled = 25;
repeated RecordingType active_recording = 26;
optional string company_title = 27;
optional string meeting_room_name = 28;
optional string meeting_domain = 29;
optional string url = 30;
}
enum HangoutType {
HANGOUT_TYPE_CONSUMER = 1;
HANGOUT_TYPE_BUSINESS = 2;
HANGOUT_TYPE_BROADCAST = 3;
HANGOUT_TYPE_LITE = 4;
HANGOUT_TYPE_SINGLE_PARTICIPANT_BROADCAST = 5;
HANGOUT_TYPE_SPEAKEASY = 6;
HANGOUT_TYPE_EXPRESS_LANE = 7;
HANGOUT_TYPE_HOT_LANE = 8;
}
enum RecordingType {
RECORDING_TYPE_UNKNOWN = 0;
RECORDING_TYPE_CONSUMER = 1;
RECORDING_TYPE_GVC = 2;
}
message PhoneCallId {
optional PhoneNumber from_number = 1;
optional PhoneNumber to_number = 2;
}
message HangoutParticipant {
optional string hangout_id = 1;
optional string participant_id = 2;
optional string user_id = 3;
optional string display_name = 4;
optional string avatar_url = 5;
optional bool recording = 6;
optional bool presenting = 7;
//repeated string blocked_user_ids = 8;
optional bool in_circles = 9;
optional string given_name = 10;
optional string family_name = 11;
optional MediaRole role = 12;
optional ClientType client_type = 13;
optional PhoneCallId phone_call_id = 16;
optional ParticipantState participant_state = 17;
repeated HangoutParticipantPrivilege privilege = 19;
repeated HangoutParticipantBlockedUser blocked_user = 20;
optional bool accepted_tos = 21;
optional E911UserLocationInfo e911_user_location_info = 22;
optional int64 invitation_id = 23;
optional string user_message = 25;
}
message HangoutParticipantBlockedUser {
optional string user_id = 1;
optional BlockType block_type = 2;
}
enum BlockType {
HANGOUT_IGNORE = 1;
GPLUS_BLOCK = 2;
}
enum ClientType {
OTHER = 1;
DESKTOP = 2;
MOBILE = 3;
TABLET = 4;
PHONE = 5;
VC_ROOM = 6;
}
enum ParticipantState {
PARTICIPANT_STATE_UNKNOWN = 0;
PARTICIPANT_STATE_JOINED = 1;
PARTICIPANT_STATE_RINGING = 2;
PARTICIPANT_STATE_KNOCKING = 10;
PARTICIPANT_STATE_KNOCKING_DENIED = 11;
PARTICIPANT_STATE_KNOCKING_ACCEPTED = 12;
PARTICIPANT_STATE_RINGING_CONNECTING = 20;
PARTICIPANT_STATE_RINGING_NOEARLYMEDIA = 21;
PARTICIPANT_STATE_RINGING_EARLYMEDIA = 22;
}
enum HangoutParticipantPrivilege {
PARTICIPANT_PRIVILEGE_UNKNOWN = 0;
PARTICIPANT_PRIVILEGE_MAY_ACCEPT_KNOCK = 1;
PARTICIPANT_PRIVILEGE_MAY_SET_PRESENTER = 2;
PARTICIPANT_PRIVILEGE_MAY_INVITE = 3;
PARTICIPANT_PRIVILEGE_MAY_KICK = 4;
}
message NamedHangout {
optional string name = 1;
optional string domain = 2;
optional string calendar_id = 3;
optional string event_id = 4;
}
message HangoutSearchResult {
optional Hangout hangout = 1;
repeated HangoutParticipant participant = 2;
repeated Broadcast broadcast = 3;
}
message HangoutSearchRequest {
optional RequestHeader request_header = 1;
optional bool active_only = 2;
optional bool is_public = 3;
optional int32 limit = 4;
optional int64 oldest_timestamp = 6;
}
message HangoutSearchResponse {
optional ResponseHeader response_header = 1;
repeated HangoutSearchResult result = 2;
}
message HangoutAddRequest {
optional RequestHeader request_header = 1;
optional Hangout hangout = 2;
optional SyncMetadata sync_metadata = 3;
repeated Hangout resource = 4;
}
message HangoutAddResponse {
optional ResponseHeader response_header = 1;
optional Hangout hangout = 2;
optional SyncMetadata sync_metadata = 3;
optional string sharing_url = 4;
repeated Hangout resource = 5;
}
message HangoutQueryRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional SyncMetadata sync_metadata = 3;
}
message HangoutQueryResponse {
optional ResponseHeader response_header = 1;
optional Hangout hangout = 2;
optional SyncMetadata sync_metadata = 3;
}
message HangoutResolveRequest {
optional RequestHeader request_header = 1;
optional ExternalKey external_key = 2;
optional NamedHangout named_hangout = 4;
optional bool is_joining = 5;
optional HangoutMediaType media_type = 6;
optional string sharing_url = 7;
optional SyncMetadata sync_metadata = 8;
}
message HangoutResolveResponse {
optional ResponseHeader response_header = 1;
optional string hangout_id = 2;
optional HangoutResolveError error_code = 3;
optional string sharing_url = 4;
optional SyncMetadata sync_metadata = 5;
}
enum HangoutResolveError {
INVALID_ROOM_NAME = 0;
HANGOUT_NOT_FOUND = 1;
}
message HangoutModifyRequest {
optional RequestHeader request_header = 1;
optional Hangout hangout = 2;
optional SyncMetadata sync_metadata = 3;
repeated Hangout resource = 4;
}
message HangoutModifyResponse {
optional ResponseHeader response_header = 1;
optional Hangout hangout = 2;
optional SyncMetadata sync_metadata = 3;
repeated Hangout resource = 4;
}
message HangoutRemoveRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional SyncMetadata sync_metadata = 3;
repeated string resource_id = 4 ;
}
message HangoutRemoveResponse {
optional ResponseHeader response_header = 1;
optional SyncMetadata sync_metadata = 2;
}
message HangoutParticipantSearchRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional SyncMetadata sync_metadata = 3;
}
message RemovedParticipant {
optional string participant_id = 1;
optional RemovalReason removal_reason = 2;
}
message HangoutParticipantSearchResponse {
optional ResponseHeader response_header = 1;
repeated HangoutParticipant participant = 2;
optional SyncMetadata sync_metadata = 3;
repeated RemovedParticipant removed = 4;
}
message HangoutParticipantAddPrerequisite {
optional Hangout hangout = 1;
repeated ParticipantId participant = 2;
optional bool hoa_tos_accepted = 3;
optional bool customer_recording_tos_accepted = 4;
}
message HangoutParticipantAddRequest {
optional RequestHeader request_header = 1;
optional HangoutParticipant participant = 2;
optional HangoutParticipantAddPrerequisite prerequisite = 3;
optional SyncMetadata sync_metadata = 5;
repeated HangoutParticipant resource = 6;
}
message HangoutParticipantAddResponse {
optional ResponseHeader response_header = 1;
optional HangoutParticipant participant = 2;
optional SyncMetadata sync_metadata = 3;
optional HangoutParticipantAddErrorCode error_code = 4;
repeated HangoutParticipant resource = 5;
}
message HangoutParticipantQueryRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional string participant_id = 3;
optional SyncMetadata sync_metadata = 4;
}
message HangoutParticipantQueryResponse {
optional ResponseHeader response_header = 1;
optional HangoutParticipant participant = 2;
optional SyncMetadata sync_metadata = 3;
}
message HangoutParticipantModifyRequest {
optional RequestHeader request_header = 1;
optional HangoutParticipant participant = 2;
optional SyncMetadata sync_metadata = 3;
repeated HangoutParticipant resource = 4;
}
message HangoutParticipantModifyResponse {
optional ResponseHeader response_header = 1;
optional HangoutParticipant participant = 2;
optional SyncMetadata sync_metadata = 3;
repeated HangoutParticipant resource = 4;
}
message HangoutParticipantRemoveRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional string participant_id = 3 ;
optional EndCause end_cause = 5;
optional SyncMetadata sync_metadata = 4;
repeated string resource_id = 6;
repeated HangoutParticipantIdentifier resource = 7;
}
message HangoutParticipantRemoveResponse {
optional ResponseHeader response_header = 1;
optional SyncMetadata sync_metadata = 2;
}
message SyncMetadata {
optional int64 version = 1;
optional string changed_by = 2;
optional HangoutCookie hangout_cookie = 3;
}
message HangoutCookie {
optional string cookie = 1;
optional int64 timestamp = 2;
}
message HangoutParticipantIdentifier {
optional string hangout_id = 1;
optional string participant_id = 2;
}
message MediaSourceIdentifier {
optional string hangout_id = 1;
optional string participant_id = 2;
optional string source_id = 3;
}
message BroadcastIdentifier {
optional string hangout_id = 1;
optional string broadcast_id = 2;
}
message DTMFEvent {
repeated DTMF dtmf = 1;
}
message DTMF {
optional DTMFCode code = 1;
}
enum DTMFCode {
ZERO = 0;
ONE = 1;
TWO = 2;
THREE = 3;
FOUR = 4;
FIVE = 5;
SIX = 6;
SEVEN = 7;
EIGHT = 8;
NINE = 9;
ASTERISK = 10;
POUND = 11;
A = 12;
B = 13;
C = 14;
D = 15;
}
message HangoutPushEvent {
optional string hangout_id = 1;
optional string sender_participant_id = 2;
repeated string receiver_participant_id = 3;
optional PushEventType event_type = 4;
optional DTMFEvent dtmf_event = 5;
optional bool should_ack = 6;
}
message HangoutPushEventAddRequest {
optional RequestHeader request_header = 1;
optional HangoutPushEvent event = 2;
repeated HangoutPushEvent resource = 3;
}
message HangoutPushEventAddResponse {
optional ResponseHeader response_header = 1;
optional HangoutPushEvent event = 2;
optional SyncMetadata sync_metadata = 3;
repeated HangoutPushEvent resource = 4;
}
message HangoutPushEventAckRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional SyncMetadata sync_metadata = 3;
}
message HangoutPushEventAckResponse {
optional ResponseHeader response_header = 1;
}
message VideoResolution {
optional int32 height = 1;
optional int32 width = 2;
optional int32 frame_rate = 3;
}
message StreamRequest {
optional bool ssrcs_known = 1;
optional bool send = 2;
optional VideoResolution resolution = 3;
optional uint32 priority = 4;
repeated int32 ssrc = 5;
}
message MediaSource {
optional string hangout_id = 1 ;
optional string participant_id = 2 ;
optional string source_id = 3 ;
optional MediaType media_type = 4;
optional MuteState mute_state = 5;
optional MuteRequest mute_request = 6;
optional VideoDetails video_details = 7;
optional PlayLevelRequest play_level_request = 8;
}
message MuteState {
required bool muted = 1;
optional string by_participant_id = 2;
optional float play_level = 3;
}
message MuteRequest {
required string by_participant_id = 1;
}
message VideoDetails {
optional CaptureType capture_type = 1;
optional VideoResolution captured_resolution = 2;
repeated VideoDetailsRegion interest_region = 3;
}
message VideoDetailsRegion {
required float x = 1;
required float y = 2;
required float width = 3;
required float height = 4;
}
enum CaptureType {
CAMERA = 1;
SCREENCAST = 2;
}
message PlayLevelRequest {
required string by_participant_id = 1;
optional float play_level = 2;
}
enum DefaultSourceId {
AUDIO = 1;
VIDEO = 2;
DATA = 3;
}
message MediaIceCandidate {
optional Component component = 1;
optional Protocol protocol = 2;
optional string ip = 3;
optional int32 port = 4;
optional MediaIceCandidateType type = 5;
optional int32 priority = 6;
optional string network = 7;
optional int32 generation = 8;
optional MediaType media_type = 9;
}
enum Component {
RTP = 1;
RTCP = 2;
}
enum Protocol {
UDP = 1;
TCP = 2;
SSLTCP = 3;
}
enum MediaIceCandidateType {
HOST = 1;
PEER_REFLEXIVE = 2;
SERVER_REFLEXIVE = 3;
RELAY = 4;
}
message MediaTransport {
optional IceVersion ice_version = 1;
optional SslFingerprint ssl_fingerprint = 2;
repeated string option = 3 ;
optional string username = 4 ;
optional string password = 5 ;
repeated MediaIceCandidate candidate = 6;
}
message SslFingerprint {
optional string algorithm = 1;
optional string fingerprint = 2;
}
enum IceVersion {
ICE_GOOGLE_DRAFT = 1; //http://www.google.com/transport/p2p
ICE_RFC_5245 = 2; //urn:xmpp:jingle:transports:ice-udp:1
}
message MediaCodec {
optional int32 payload_id = 1;
optional string name = 2;
optional MediaType media_type = 3;
optional int32 preference = 4;
optional int32 bit_rate = 5;
optional int32 sample_rate = 6;
optional int32 channel_count = 7;
repeated MediaCodecParam param = 8;
}
message MediaCodecParam {
optional string key = 1;
optional string value = 2;
}
message MediaCryptoParams {
optional MediaCryptoSuite suite = 1;
optional string key_params = 2;
optional string session_params = 3;
optional int32 tag = 4;
}
enum MediaCryptoSuite {
AES_CM_128_HMAC_SHA1_80 = 1;
AES_CM_128_HMAC_SHA1_32 = 2;
}
message MediaRtpHeaderExtension {
optional int32 id = 1;
optional string uri = 2 ;
optional MediaType media_type = 3;
}
message MediaRequest {
optional MediaType media_type = 1;
optional StreamRequest stream_request = 2;
}
message MediaContent {
optional MediaType media_type = 1;
optional MediaTransport transport = 2;
repeated MediaCodec codec = 3;
repeated MediaCryptoParams crypto_param = 4;
repeated MediaRtpHeaderExtension rtp_header_extension = 5;
repeated MediaRequest default_request = 6;
}
message PushChannel {
optional string channel_id = 1;
optional PushChannelFormat format = 2;
optional int32 ssrc = 3;
optional string label = 4;
}
enum PushChannelFormat {
FORMAT_PROTOJSON = 1;
FORMAT_PROTOTEXT = 2;
FORMAT_PROTOBUF = 3;
}
message MediaSession {
optional string session_id = 1;
repeated MediaContent client_content = 3;
repeated MediaContent server_content = 4;
repeated PushChannel push_channel = 5;
repeated string hangout_id = 6;
optional MediaSessionType type = 7;
}
enum MediaSessionType {
TYPE_CLOUD = 1;
TYPE_P2P = 2;
}
message MediaStream {
optional MediaStreamDirection direction = 1;
optional MediaType media_type = 2;
optional string session_id = 3;
optional string stream_id = 4;
optional string hangout_id = 5;
optional string participant_id = 6;
optional string source_id = 7;
optional MediaStreamOffer offer = 8;
optional StreamRequest request = 9;
}
message MediaStreamOffer {
repeated uint32 ssrc = 1;
repeated SsrcGroup ssrc_group = 2;
}
message SsrcGroup {
optional string semantics = 1;
repeated uint32 ssrc = 2;
}
message MediaSourceSearchRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional string participant_id = 3;
optional SyncMetadata sync_metadata = 4;
}
message MediaSourceSearchResponse {
optional ResponseHeader response_header = 1;
repeated MediaSource result = 2;
optional SyncMetadata sync_metadata = 3;
}
message MediaSourceAddRequest {
optional RequestHeader request_header = 1;
optional MediaSource source = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaSource resource = 4;
}
message MediaSourceAddResponse {
optional ResponseHeader response_header = 1;
optional MediaSource source = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaSource resource = 4;
}
message MediaSourceQueryRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional string participant_id = 3;
optional string source_id = 4;
}
message MediaSourceQueryResponse {
optional ResponseHeader response_header = 1;
optional MediaSource source = 2;
}
message MediaSourceModifyRequest {
optional RequestHeader request_header = 1;
optional MediaSource source = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaSource resource = 4;
}
message MediaSourceModifyResponse {
optional ResponseHeader response_header = 1;
optional MediaSource source = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaSource resource = 4;
}
message MediaSourceRemoveRequest {
optional RequestHeader request_header = 1;
optional string hangout_id = 2;
optional string participant_id = 3;
optional string source_id = 4;
optional SyncMetadata sync_metadata = 5;
repeated string resource_id = 6;
}
message MediaSourceRemoveResponse {
optional ResponseHeader response_header = 1;
optional SyncMetadata sync_metadata = 2;
}
message MediaSessionSearchRequest {
optional RequestHeader request_header = 1;
optional SyncMetadata sync_metadata = 2;
optional string hangout_id = 3;
}
message MediaSessionSearchResponse {
optional ResponseHeader response_header = 1;
repeated MediaSession result = 2;
optional SyncMetadata sync_metadata = 3;
}
message MediaSessionAddRequest {
optional RequestHeader request_header = 1;
optional MediaSession session = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaSession resource = 4;
}
message MediaSessionAddResponse {
optional ResponseHeader response_header = 1;
optional MediaSession session = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaSession resource = 4;
}
message MediaSessionQueryRequest {
optional RequestHeader request_header = 1;
optional string session_id = 2;
optional SyncMetadata sync_metadata = 3;
}
message MediaSessionQueryResponse {
optional ResponseHeader response_header = 1;
optional MediaSession session = 2;
optional SyncMetadata sync_metadata = 3;
}
message MediaSessionModifyRequest {
optional RequestHeader request_header = 1;
optional MediaSession session = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaSession resource = 4;
}
message MediaSessionModifyResponse {
optional ResponseHeader response_header = 1;
optional MediaSession session = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaSession resource = 4;
}
message MediaSessionLogRequest {
optional RequestHeader request_header = 1;
optional string session_id = 2;
optional LogData log_data = 3;
optional SyncMetadata sync_metadata = 4;
}
message MediaSessionLogResponse {
optional ResponseHeader response_header = 1;
optional SyncMetadata sync_metadata = 2;
}
message MediaSessionRemoveRequest {
optional RequestHeader request_header = 1;
optional string session_id = 2;
optional SyncMetadata sync_metadata = 3;
repeated string resource_id = 4;
}
message MediaSessionRemoveResponse {
optional ResponseHeader response_header = 1;
optional SyncMetadata sync_metadata = 2;
}
message MediaStreamSearchRequest {
optional RequestHeader request_header = 1;
optional MediaStreamDirection direction = 2;
optional string session_id = 3;
optional string hangout_id = 4;
optional SyncMetadata sync_metadata = 5;
}
message MediaStreamSearchResponse {
optional ResponseHeader response_header = 1;
repeated MediaStream result = 2;
optional SyncMetadata sync_metadata = 3;
}
message MediaStreamAddRequest {
optional RequestHeader request_header = 1;
optional MediaStream stream = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaStream resource = 4;
}
message MediaStreamAddResponse {
optional ResponseHeader response_header = 1;
optional MediaStream stream = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaStream resource = 4;
}
message MediaStreamQueryRequest {
optional RequestHeader request_header = 1;
optional MediaStreamDirection direction = 2;
optional string session_id = 3;
optional string stream_id = 4;
optional string hangout_id = 5;
}
message MediaStreamQueryResponse {
optional ResponseHeader response_header = 1;
optional MediaStream stream = 2;
}
message MediaStreamModifyRequest {
optional RequestHeader request_header = 1;
optional MediaStream stream = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaStream resource = 4;
}
message MediaStreamModifyResponse {
optional ResponseHeader response_header = 1;
optional MediaStream stream = 2;
optional SyncMetadata sync_metadata = 3;
repeated MediaStream resource = 4;
}
message MediaStreamRemoveRequest {
optional RequestHeader request_header = 1;
optional MediaStreamDirection direction = 2;
optional string session_id = 3;
optional string stream_id = 4;
optional string hangout_id = 5;
optional SyncMetadata sync_metadata = 6;
repeated string resource_id = 7;
}
message MediaStreamRemoveResponse {
optional ResponseHeader response_header = 1;
optional SyncMetadata sync_metadata = 2;
}
message HangoutClientBatchNotification {
repeated HangoutClientPushNotification notification = 1;
}
message HangoutIdentifier {
optional string hangout_id = 1;
}
message MediaSessionIdentifier {
optional string session_id = 1;
}
message MediaStreamIdentifier {
optional string hangout_id = 1;
optional string session_id = 2;
optional string stream_id = 3;
optional MediaStreamDirection direction = 4;
}
message CommonAnnouncementIdentifier {
optional string hangout_id = 1;
optional string announcement_id = 2;
}
message HangoutsPushNotification {
optional SyncMetadata sync_metadata = 1;
repeated Hangout modified = 2;
repeated HangoutIdentifier deleted = 3;
optional HangoutIdentifier resync_collection = 4;
}
message HangoutParticipantsPushNotification {
optional SyncMetadata sync_metadata = 1;
repeated HangoutParticipant modified = 2;
repeated HangoutParticipantIdentifier deleted = 3;
optional EndCause end_cause = 4;
optional HangoutParticipantIdentifier resync_collection = 5;
optional RemovalReason removal_reason = 6;
}
message MediaSessionsPushNotification {
optional SyncMetadata sync_metadata = 1;
repeated MediaSession modified = 2;
repeated MediaSessionIdentifier deleted = 3;
optional MediaSessionIdentifier resync_collection = 4;
}
message MediaSourcesPushNotification {
optional SyncMetadata sync_metadata = 1;
repeated MediaSource modified = 2;
repeated MediaSourceIdentifier deleted = 3;