api.pb.go 118 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/live/rtc/api/v1/api.proto
  3. package v1
  4. /*
  5. package 命名使用 {discovery_id}.{version} 的方式, version 形如 v1, v2, v1beta ..
  6. NOTE: 不知道的 discovery_id 请询问大佬, 新项目找大佬申请 discovery_id,先到先得抢注
  7. e.g. account.service.v1
  8. */
  9. import proto "github.com/gogo/protobuf/proto"
  10. import fmt "fmt"
  11. import math "math"
  12. import _ "github.com/gogo/protobuf/gogoproto"
  13. import (
  14. context "golang.org/x/net/context"
  15. grpc "google.golang.org/grpc"
  16. )
  17. import io "io"
  18. // Reference imports to suppress errors if they are not otherwise used.
  19. var _ = proto.Marshal
  20. var _ = fmt.Errorf
  21. var _ = math.Inf
  22. // This is a compile-time assertion to ensure that this generated file
  23. // is compatible with the proto package it is being compiled against.
  24. // A compilation error at this line likely means your copy of the
  25. // proto package needs to be updated.
  26. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  27. type MediaSource_MediaType int32
  28. const (
  29. MediaSource_OTHER MediaSource_MediaType = 0
  30. MediaSource_VIDEO MediaSource_MediaType = 1
  31. MediaSource_AUDIO MediaSource_MediaType = 2
  32. MediaSource_DATA MediaSource_MediaType = 3
  33. MediaSource_SMALL_VIDEO MediaSource_MediaType = 4
  34. )
  35. var MediaSource_MediaType_name = map[int32]string{
  36. 0: "OTHER",
  37. 1: "VIDEO",
  38. 2: "AUDIO",
  39. 3: "DATA",
  40. 4: "SMALL_VIDEO",
  41. }
  42. var MediaSource_MediaType_value = map[string]int32{
  43. "OTHER": 0,
  44. "VIDEO": 1,
  45. "AUDIO": 2,
  46. "DATA": 3,
  47. "SMALL_VIDEO": 4,
  48. }
  49. func (x MediaSource_MediaType) String() string {
  50. return proto.EnumName(MediaSource_MediaType_name, int32(x))
  51. }
  52. func (MediaSource_MediaType) EnumDescriptor() ([]byte, []int) {
  53. return fileDescriptor_api_cc75e2c1742b635b, []int{0, 0}
  54. }
  55. type MediaSource struct {
  56. Type MediaSource_MediaType `protobuf:"varint,1,opt,name=type,proto3,enum=live.rtc.v1.MediaSource_MediaType" json:"type"`
  57. Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec"`
  58. MediaSpecific string `protobuf:"bytes,3,opt,name=media_specific,json=mediaSpecific,proto3" json:"media_specific"`
  59. Ssrc uint32 `protobuf:"varint,4,opt,name=ssrc,proto3" json:"ssrc"`
  60. UserId uint64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id"`
  61. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  62. XXX_unrecognized []byte `json:"-"`
  63. XXX_sizecache int32 `json:"-"`
  64. }
  65. func (m *MediaSource) Reset() { *m = MediaSource{} }
  66. func (m *MediaSource) String() string { return proto.CompactTextString(m) }
  67. func (*MediaSource) ProtoMessage() {}
  68. func (*MediaSource) Descriptor() ([]byte, []int) {
  69. return fileDescriptor_api_cc75e2c1742b635b, []int{0}
  70. }
  71. func (m *MediaSource) XXX_Unmarshal(b []byte) error {
  72. return m.Unmarshal(b)
  73. }
  74. func (m *MediaSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  75. if deterministic {
  76. return xxx_messageInfo_MediaSource.Marshal(b, m, deterministic)
  77. } else {
  78. b = b[:cap(b)]
  79. n, err := m.MarshalTo(b)
  80. if err != nil {
  81. return nil, err
  82. }
  83. return b[:n], nil
  84. }
  85. }
  86. func (dst *MediaSource) XXX_Merge(src proto.Message) {
  87. xxx_messageInfo_MediaSource.Merge(dst, src)
  88. }
  89. func (m *MediaSource) XXX_Size() int {
  90. return m.Size()
  91. }
  92. func (m *MediaSource) XXX_DiscardUnknown() {
  93. xxx_messageInfo_MediaSource.DiscardUnknown(m)
  94. }
  95. var xxx_messageInfo_MediaSource proto.InternalMessageInfo
  96. func (m *MediaSource) GetType() MediaSource_MediaType {
  97. if m != nil {
  98. return m.Type
  99. }
  100. return MediaSource_OTHER
  101. }
  102. func (m *MediaSource) GetCodec() string {
  103. if m != nil {
  104. return m.Codec
  105. }
  106. return ""
  107. }
  108. func (m *MediaSource) GetMediaSpecific() string {
  109. if m != nil {
  110. return m.MediaSpecific
  111. }
  112. return ""
  113. }
  114. func (m *MediaSource) GetSsrc() uint32 {
  115. if m != nil {
  116. return m.Ssrc
  117. }
  118. return 0
  119. }
  120. func (m *MediaSource) GetUserId() uint64 {
  121. if m != nil {
  122. return m.UserId
  123. }
  124. return 0
  125. }
  126. type EncoderConfig struct {
  127. Width uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width"`
  128. Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height"`
  129. Bitrate uint32 `protobuf:"varint,3,opt,name=bitrate,proto3" json:"bitrate"`
  130. FrameRate uint32 `protobuf:"varint,4,opt,name=frame_rate,json=frameRate,proto3" json:"frame_rate"`
  131. VideoCodec string `protobuf:"bytes,5,opt,name=video_codec,json=videoCodec,proto3" json:"video_codec"`
  132. VideoProfile string `protobuf:"bytes,6,opt,name=video_profile,json=videoProfile,proto3" json:"video_profile"`
  133. Channel uint32 `protobuf:"varint,19,opt,name=channel,proto3" json:"channel"`
  134. SampleRate uint32 `protobuf:"varint,20,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate"`
  135. AudioCodec string `protobuf:"bytes,21,opt,name=audio_codec,json=audioCodec,proto3" json:"audio_codec"`
  136. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  137. XXX_unrecognized []byte `json:"-"`
  138. XXX_sizecache int32 `json:"-"`
  139. }
  140. func (m *EncoderConfig) Reset() { *m = EncoderConfig{} }
  141. func (m *EncoderConfig) String() string { return proto.CompactTextString(m) }
  142. func (*EncoderConfig) ProtoMessage() {}
  143. func (*EncoderConfig) Descriptor() ([]byte, []int) {
  144. return fileDescriptor_api_cc75e2c1742b635b, []int{1}
  145. }
  146. func (m *EncoderConfig) XXX_Unmarshal(b []byte) error {
  147. return m.Unmarshal(b)
  148. }
  149. func (m *EncoderConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  150. if deterministic {
  151. return xxx_messageInfo_EncoderConfig.Marshal(b, m, deterministic)
  152. } else {
  153. b = b[:cap(b)]
  154. n, err := m.MarshalTo(b)
  155. if err != nil {
  156. return nil, err
  157. }
  158. return b[:n], nil
  159. }
  160. }
  161. func (dst *EncoderConfig) XXX_Merge(src proto.Message) {
  162. xxx_messageInfo_EncoderConfig.Merge(dst, src)
  163. }
  164. func (m *EncoderConfig) XXX_Size() int {
  165. return m.Size()
  166. }
  167. func (m *EncoderConfig) XXX_DiscardUnknown() {
  168. xxx_messageInfo_EncoderConfig.DiscardUnknown(m)
  169. }
  170. var xxx_messageInfo_EncoderConfig proto.InternalMessageInfo
  171. func (m *EncoderConfig) GetWidth() uint32 {
  172. if m != nil {
  173. return m.Width
  174. }
  175. return 0
  176. }
  177. func (m *EncoderConfig) GetHeight() uint32 {
  178. if m != nil {
  179. return m.Height
  180. }
  181. return 0
  182. }
  183. func (m *EncoderConfig) GetBitrate() uint32 {
  184. if m != nil {
  185. return m.Bitrate
  186. }
  187. return 0
  188. }
  189. func (m *EncoderConfig) GetFrameRate() uint32 {
  190. if m != nil {
  191. return m.FrameRate
  192. }
  193. return 0
  194. }
  195. func (m *EncoderConfig) GetVideoCodec() string {
  196. if m != nil {
  197. return m.VideoCodec
  198. }
  199. return ""
  200. }
  201. func (m *EncoderConfig) GetVideoProfile() string {
  202. if m != nil {
  203. return m.VideoProfile
  204. }
  205. return ""
  206. }
  207. func (m *EncoderConfig) GetChannel() uint32 {
  208. if m != nil {
  209. return m.Channel
  210. }
  211. return 0
  212. }
  213. func (m *EncoderConfig) GetSampleRate() uint32 {
  214. if m != nil {
  215. return m.SampleRate
  216. }
  217. return 0
  218. }
  219. func (m *EncoderConfig) GetAudioCodec() string {
  220. if m != nil {
  221. return m.AudioCodec
  222. }
  223. return ""
  224. }
  225. type JoinChannelRequest struct {
  226. ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id"`
  227. UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"`
  228. ProtoVersion uint32 `protobuf:"varint,3,opt,name=proto_version,json=protoVersion,proto3" json:"proto_version"`
  229. Source []*MediaSource `protobuf:"bytes,4,rep,name=source" json:"source"`
  230. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  231. XXX_unrecognized []byte `json:"-"`
  232. XXX_sizecache int32 `json:"-"`
  233. }
  234. func (m *JoinChannelRequest) Reset() { *m = JoinChannelRequest{} }
  235. func (m *JoinChannelRequest) String() string { return proto.CompactTextString(m) }
  236. func (*JoinChannelRequest) ProtoMessage() {}
  237. func (*JoinChannelRequest) Descriptor() ([]byte, []int) {
  238. return fileDescriptor_api_cc75e2c1742b635b, []int{2}
  239. }
  240. func (m *JoinChannelRequest) XXX_Unmarshal(b []byte) error {
  241. return m.Unmarshal(b)
  242. }
  243. func (m *JoinChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  244. if deterministic {
  245. return xxx_messageInfo_JoinChannelRequest.Marshal(b, m, deterministic)
  246. } else {
  247. b = b[:cap(b)]
  248. n, err := m.MarshalTo(b)
  249. if err != nil {
  250. return nil, err
  251. }
  252. return b[:n], nil
  253. }
  254. }
  255. func (dst *JoinChannelRequest) XXX_Merge(src proto.Message) {
  256. xxx_messageInfo_JoinChannelRequest.Merge(dst, src)
  257. }
  258. func (m *JoinChannelRequest) XXX_Size() int {
  259. return m.Size()
  260. }
  261. func (m *JoinChannelRequest) XXX_DiscardUnknown() {
  262. xxx_messageInfo_JoinChannelRequest.DiscardUnknown(m)
  263. }
  264. var xxx_messageInfo_JoinChannelRequest proto.InternalMessageInfo
  265. func (m *JoinChannelRequest) GetChannelId() uint64 {
  266. if m != nil {
  267. return m.ChannelId
  268. }
  269. return 0
  270. }
  271. func (m *JoinChannelRequest) GetUserId() uint64 {
  272. if m != nil {
  273. return m.UserId
  274. }
  275. return 0
  276. }
  277. func (m *JoinChannelRequest) GetProtoVersion() uint32 {
  278. if m != nil {
  279. return m.ProtoVersion
  280. }
  281. return 0
  282. }
  283. func (m *JoinChannelRequest) GetSource() []*MediaSource {
  284. if m != nil {
  285. return m.Source
  286. }
  287. return nil
  288. }
  289. type JoinChannelResponse struct {
  290. CallId uint32 `protobuf:"varint,1,opt,name=call_id,json=callId,proto3" json:"call_id"`
  291. Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token"`
  292. Source []*MediaSource `protobuf:"bytes,3,rep,name=source" json:"source"`
  293. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  294. XXX_unrecognized []byte `json:"-"`
  295. XXX_sizecache int32 `json:"-"`
  296. }
  297. func (m *JoinChannelResponse) Reset() { *m = JoinChannelResponse{} }
  298. func (m *JoinChannelResponse) String() string { return proto.CompactTextString(m) }
  299. func (*JoinChannelResponse) ProtoMessage() {}
  300. func (*JoinChannelResponse) Descriptor() ([]byte, []int) {
  301. return fileDescriptor_api_cc75e2c1742b635b, []int{3}
  302. }
  303. func (m *JoinChannelResponse) XXX_Unmarshal(b []byte) error {
  304. return m.Unmarshal(b)
  305. }
  306. func (m *JoinChannelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  307. if deterministic {
  308. return xxx_messageInfo_JoinChannelResponse.Marshal(b, m, deterministic)
  309. } else {
  310. b = b[:cap(b)]
  311. n, err := m.MarshalTo(b)
  312. if err != nil {
  313. return nil, err
  314. }
  315. return b[:n], nil
  316. }
  317. }
  318. func (dst *JoinChannelResponse) XXX_Merge(src proto.Message) {
  319. xxx_messageInfo_JoinChannelResponse.Merge(dst, src)
  320. }
  321. func (m *JoinChannelResponse) XXX_Size() int {
  322. return m.Size()
  323. }
  324. func (m *JoinChannelResponse) XXX_DiscardUnknown() {
  325. xxx_messageInfo_JoinChannelResponse.DiscardUnknown(m)
  326. }
  327. var xxx_messageInfo_JoinChannelResponse proto.InternalMessageInfo
  328. func (m *JoinChannelResponse) GetCallId() uint32 {
  329. if m != nil {
  330. return m.CallId
  331. }
  332. return 0
  333. }
  334. func (m *JoinChannelResponse) GetToken() string {
  335. if m != nil {
  336. return m.Token
  337. }
  338. return ""
  339. }
  340. func (m *JoinChannelResponse) GetSource() []*MediaSource {
  341. if m != nil {
  342. return m.Source
  343. }
  344. return nil
  345. }
  346. type LeaveChannelRequest struct {
  347. ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id"`
  348. UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"`
  349. CallId uint32 `protobuf:"varint,3,opt,name=call_id,json=callId,proto3" json:"call_id"`
  350. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  351. XXX_unrecognized []byte `json:"-"`
  352. XXX_sizecache int32 `json:"-"`
  353. }
  354. func (m *LeaveChannelRequest) Reset() { *m = LeaveChannelRequest{} }
  355. func (m *LeaveChannelRequest) String() string { return proto.CompactTextString(m) }
  356. func (*LeaveChannelRequest) ProtoMessage() {}
  357. func (*LeaveChannelRequest) Descriptor() ([]byte, []int) {
  358. return fileDescriptor_api_cc75e2c1742b635b, []int{4}
  359. }
  360. func (m *LeaveChannelRequest) XXX_Unmarshal(b []byte) error {
  361. return m.Unmarshal(b)
  362. }
  363. func (m *LeaveChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  364. if deterministic {
  365. return xxx_messageInfo_LeaveChannelRequest.Marshal(b, m, deterministic)
  366. } else {
  367. b = b[:cap(b)]
  368. n, err := m.MarshalTo(b)
  369. if err != nil {
  370. return nil, err
  371. }
  372. return b[:n], nil
  373. }
  374. }
  375. func (dst *LeaveChannelRequest) XXX_Merge(src proto.Message) {
  376. xxx_messageInfo_LeaveChannelRequest.Merge(dst, src)
  377. }
  378. func (m *LeaveChannelRequest) XXX_Size() int {
  379. return m.Size()
  380. }
  381. func (m *LeaveChannelRequest) XXX_DiscardUnknown() {
  382. xxx_messageInfo_LeaveChannelRequest.DiscardUnknown(m)
  383. }
  384. var xxx_messageInfo_LeaveChannelRequest proto.InternalMessageInfo
  385. func (m *LeaveChannelRequest) GetChannelId() uint64 {
  386. if m != nil {
  387. return m.ChannelId
  388. }
  389. return 0
  390. }
  391. func (m *LeaveChannelRequest) GetUserId() uint64 {
  392. if m != nil {
  393. return m.UserId
  394. }
  395. return 0
  396. }
  397. func (m *LeaveChannelRequest) GetCallId() uint32 {
  398. if m != nil {
  399. return m.CallId
  400. }
  401. return 0
  402. }
  403. type LeaveChannelResponse struct {
  404. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  405. XXX_unrecognized []byte `json:"-"`
  406. XXX_sizecache int32 `json:"-"`
  407. }
  408. func (m *LeaveChannelResponse) Reset() { *m = LeaveChannelResponse{} }
  409. func (m *LeaveChannelResponse) String() string { return proto.CompactTextString(m) }
  410. func (*LeaveChannelResponse) ProtoMessage() {}
  411. func (*LeaveChannelResponse) Descriptor() ([]byte, []int) {
  412. return fileDescriptor_api_cc75e2c1742b635b, []int{5}
  413. }
  414. func (m *LeaveChannelResponse) XXX_Unmarshal(b []byte) error {
  415. return m.Unmarshal(b)
  416. }
  417. func (m *LeaveChannelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  418. if deterministic {
  419. return xxx_messageInfo_LeaveChannelResponse.Marshal(b, m, deterministic)
  420. } else {
  421. b = b[:cap(b)]
  422. n, err := m.MarshalTo(b)
  423. if err != nil {
  424. return nil, err
  425. }
  426. return b[:n], nil
  427. }
  428. }
  429. func (dst *LeaveChannelResponse) XXX_Merge(src proto.Message) {
  430. xxx_messageInfo_LeaveChannelResponse.Merge(dst, src)
  431. }
  432. func (m *LeaveChannelResponse) XXX_Size() int {
  433. return m.Size()
  434. }
  435. func (m *LeaveChannelResponse) XXX_DiscardUnknown() {
  436. xxx_messageInfo_LeaveChannelResponse.DiscardUnknown(m)
  437. }
  438. var xxx_messageInfo_LeaveChannelResponse proto.InternalMessageInfo
  439. type PublishStreamRequest struct {
  440. ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id"`
  441. UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"`
  442. CallId uint32 `protobuf:"varint,3,opt,name=call_id,json=callId,proto3" json:"call_id"`
  443. EncoderConfig *EncoderConfig `protobuf:"bytes,4,opt,name=encoder_config,json=encoderConfig" json:"encoder_config"`
  444. MixConfig string `protobuf:"bytes,5,opt,name=mix_config,json=mixConfig,proto3" json:"mix_config"`
  445. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  446. XXX_unrecognized []byte `json:"-"`
  447. XXX_sizecache int32 `json:"-"`
  448. }
  449. func (m *PublishStreamRequest) Reset() { *m = PublishStreamRequest{} }
  450. func (m *PublishStreamRequest) String() string { return proto.CompactTextString(m) }
  451. func (*PublishStreamRequest) ProtoMessage() {}
  452. func (*PublishStreamRequest) Descriptor() ([]byte, []int) {
  453. return fileDescriptor_api_cc75e2c1742b635b, []int{6}
  454. }
  455. func (m *PublishStreamRequest) XXX_Unmarshal(b []byte) error {
  456. return m.Unmarshal(b)
  457. }
  458. func (m *PublishStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  459. if deterministic {
  460. return xxx_messageInfo_PublishStreamRequest.Marshal(b, m, deterministic)
  461. } else {
  462. b = b[:cap(b)]
  463. n, err := m.MarshalTo(b)
  464. if err != nil {
  465. return nil, err
  466. }
  467. return b[:n], nil
  468. }
  469. }
  470. func (dst *PublishStreamRequest) XXX_Merge(src proto.Message) {
  471. xxx_messageInfo_PublishStreamRequest.Merge(dst, src)
  472. }
  473. func (m *PublishStreamRequest) XXX_Size() int {
  474. return m.Size()
  475. }
  476. func (m *PublishStreamRequest) XXX_DiscardUnknown() {
  477. xxx_messageInfo_PublishStreamRequest.DiscardUnknown(m)
  478. }
  479. var xxx_messageInfo_PublishStreamRequest proto.InternalMessageInfo
  480. func (m *PublishStreamRequest) GetChannelId() uint64 {
  481. if m != nil {
  482. return m.ChannelId
  483. }
  484. return 0
  485. }
  486. func (m *PublishStreamRequest) GetUserId() uint64 {
  487. if m != nil {
  488. return m.UserId
  489. }
  490. return 0
  491. }
  492. func (m *PublishStreamRequest) GetCallId() uint32 {
  493. if m != nil {
  494. return m.CallId
  495. }
  496. return 0
  497. }
  498. func (m *PublishStreamRequest) GetEncoderConfig() *EncoderConfig {
  499. if m != nil {
  500. return m.EncoderConfig
  501. }
  502. return nil
  503. }
  504. func (m *PublishStreamRequest) GetMixConfig() string {
  505. if m != nil {
  506. return m.MixConfig
  507. }
  508. return ""
  509. }
  510. type PublishStreamResponse struct {
  511. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  512. XXX_unrecognized []byte `json:"-"`
  513. XXX_sizecache int32 `json:"-"`
  514. }
  515. func (m *PublishStreamResponse) Reset() { *m = PublishStreamResponse{} }
  516. func (m *PublishStreamResponse) String() string { return proto.CompactTextString(m) }
  517. func (*PublishStreamResponse) ProtoMessage() {}
  518. func (*PublishStreamResponse) Descriptor() ([]byte, []int) {
  519. return fileDescriptor_api_cc75e2c1742b635b, []int{7}
  520. }
  521. func (m *PublishStreamResponse) XXX_Unmarshal(b []byte) error {
  522. return m.Unmarshal(b)
  523. }
  524. func (m *PublishStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  525. if deterministic {
  526. return xxx_messageInfo_PublishStreamResponse.Marshal(b, m, deterministic)
  527. } else {
  528. b = b[:cap(b)]
  529. n, err := m.MarshalTo(b)
  530. if err != nil {
  531. return nil, err
  532. }
  533. return b[:n], nil
  534. }
  535. }
  536. func (dst *PublishStreamResponse) XXX_Merge(src proto.Message) {
  537. xxx_messageInfo_PublishStreamResponse.Merge(dst, src)
  538. }
  539. func (m *PublishStreamResponse) XXX_Size() int {
  540. return m.Size()
  541. }
  542. func (m *PublishStreamResponse) XXX_DiscardUnknown() {
  543. xxx_messageInfo_PublishStreamResponse.DiscardUnknown(m)
  544. }
  545. var xxx_messageInfo_PublishStreamResponse proto.InternalMessageInfo
  546. type TerminateStreamRequest struct {
  547. ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id"`
  548. UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"`
  549. CallId uint32 `protobuf:"varint,3,opt,name=call_id,json=callId,proto3" json:"call_id"`
  550. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  551. XXX_unrecognized []byte `json:"-"`
  552. XXX_sizecache int32 `json:"-"`
  553. }
  554. func (m *TerminateStreamRequest) Reset() { *m = TerminateStreamRequest{} }
  555. func (m *TerminateStreamRequest) String() string { return proto.CompactTextString(m) }
  556. func (*TerminateStreamRequest) ProtoMessage() {}
  557. func (*TerminateStreamRequest) Descriptor() ([]byte, []int) {
  558. return fileDescriptor_api_cc75e2c1742b635b, []int{8}
  559. }
  560. func (m *TerminateStreamRequest) XXX_Unmarshal(b []byte) error {
  561. return m.Unmarshal(b)
  562. }
  563. func (m *TerminateStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  564. if deterministic {
  565. return xxx_messageInfo_TerminateStreamRequest.Marshal(b, m, deterministic)
  566. } else {
  567. b = b[:cap(b)]
  568. n, err := m.MarshalTo(b)
  569. if err != nil {
  570. return nil, err
  571. }
  572. return b[:n], nil
  573. }
  574. }
  575. func (dst *TerminateStreamRequest) XXX_Merge(src proto.Message) {
  576. xxx_messageInfo_TerminateStreamRequest.Merge(dst, src)
  577. }
  578. func (m *TerminateStreamRequest) XXX_Size() int {
  579. return m.Size()
  580. }
  581. func (m *TerminateStreamRequest) XXX_DiscardUnknown() {
  582. xxx_messageInfo_TerminateStreamRequest.DiscardUnknown(m)
  583. }
  584. var xxx_messageInfo_TerminateStreamRequest proto.InternalMessageInfo
  585. func (m *TerminateStreamRequest) GetChannelId() uint64 {
  586. if m != nil {
  587. return m.ChannelId
  588. }
  589. return 0
  590. }
  591. func (m *TerminateStreamRequest) GetUserId() uint64 {
  592. if m != nil {
  593. return m.UserId
  594. }
  595. return 0
  596. }
  597. func (m *TerminateStreamRequest) GetCallId() uint32 {
  598. if m != nil {
  599. return m.CallId
  600. }
  601. return 0
  602. }
  603. type TerminateStreamResponse struct {
  604. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  605. XXX_unrecognized []byte `json:"-"`
  606. XXX_sizecache int32 `json:"-"`
  607. }
  608. func (m *TerminateStreamResponse) Reset() { *m = TerminateStreamResponse{} }
  609. func (m *TerminateStreamResponse) String() string { return proto.CompactTextString(m) }
  610. func (*TerminateStreamResponse) ProtoMessage() {}
  611. func (*TerminateStreamResponse) Descriptor() ([]byte, []int) {
  612. return fileDescriptor_api_cc75e2c1742b635b, []int{9}
  613. }
  614. func (m *TerminateStreamResponse) XXX_Unmarshal(b []byte) error {
  615. return m.Unmarshal(b)
  616. }
  617. func (m *TerminateStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  618. if deterministic {
  619. return xxx_messageInfo_TerminateStreamResponse.Marshal(b, m, deterministic)
  620. } else {
  621. b = b[:cap(b)]
  622. n, err := m.MarshalTo(b)
  623. if err != nil {
  624. return nil, err
  625. }
  626. return b[:n], nil
  627. }
  628. }
  629. func (dst *TerminateStreamResponse) XXX_Merge(src proto.Message) {
  630. xxx_messageInfo_TerminateStreamResponse.Merge(dst, src)
  631. }
  632. func (m *TerminateStreamResponse) XXX_Size() int {
  633. return m.Size()
  634. }
  635. func (m *TerminateStreamResponse) XXX_DiscardUnknown() {
  636. xxx_messageInfo_TerminateStreamResponse.DiscardUnknown(m)
  637. }
  638. var xxx_messageInfo_TerminateStreamResponse proto.InternalMessageInfo
  639. type ChannelRequest struct {
  640. ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id"`
  641. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  642. XXX_unrecognized []byte `json:"-"`
  643. XXX_sizecache int32 `json:"-"`
  644. }
  645. func (m *ChannelRequest) Reset() { *m = ChannelRequest{} }
  646. func (m *ChannelRequest) String() string { return proto.CompactTextString(m) }
  647. func (*ChannelRequest) ProtoMessage() {}
  648. func (*ChannelRequest) Descriptor() ([]byte, []int) {
  649. return fileDescriptor_api_cc75e2c1742b635b, []int{10}
  650. }
  651. func (m *ChannelRequest) XXX_Unmarshal(b []byte) error {
  652. return m.Unmarshal(b)
  653. }
  654. func (m *ChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  655. if deterministic {
  656. return xxx_messageInfo_ChannelRequest.Marshal(b, m, deterministic)
  657. } else {
  658. b = b[:cap(b)]
  659. n, err := m.MarshalTo(b)
  660. if err != nil {
  661. return nil, err
  662. }
  663. return b[:n], nil
  664. }
  665. }
  666. func (dst *ChannelRequest) XXX_Merge(src proto.Message) {
  667. xxx_messageInfo_ChannelRequest.Merge(dst, src)
  668. }
  669. func (m *ChannelRequest) XXX_Size() int {
  670. return m.Size()
  671. }
  672. func (m *ChannelRequest) XXX_DiscardUnknown() {
  673. xxx_messageInfo_ChannelRequest.DiscardUnknown(m)
  674. }
  675. var xxx_messageInfo_ChannelRequest proto.InternalMessageInfo
  676. func (m *ChannelRequest) GetChannelId() uint64 {
  677. if m != nil {
  678. return m.ChannelId
  679. }
  680. return 0
  681. }
  682. type ChannelResponse struct {
  683. MediaSource []*MediaSource `protobuf:"bytes,1,rep,name=media_source,json=mediaSource" json:"media_source"`
  684. Server string `protobuf:"bytes,2,opt,name=server,proto3" json:"server"`
  685. TcpPort uint32 `protobuf:"varint,3,opt,name=tcp_port,json=tcpPort,proto3" json:"tcp_port"`
  686. UdpPort uint32 `protobuf:"varint,4,opt,name=udp_port,json=udpPort,proto3" json:"udp_port"`
  687. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  688. XXX_unrecognized []byte `json:"-"`
  689. XXX_sizecache int32 `json:"-"`
  690. }
  691. func (m *ChannelResponse) Reset() { *m = ChannelResponse{} }
  692. func (m *ChannelResponse) String() string { return proto.CompactTextString(m) }
  693. func (*ChannelResponse) ProtoMessage() {}
  694. func (*ChannelResponse) Descriptor() ([]byte, []int) {
  695. return fileDescriptor_api_cc75e2c1742b635b, []int{11}
  696. }
  697. func (m *ChannelResponse) XXX_Unmarshal(b []byte) error {
  698. return m.Unmarshal(b)
  699. }
  700. func (m *ChannelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  701. if deterministic {
  702. return xxx_messageInfo_ChannelResponse.Marshal(b, m, deterministic)
  703. } else {
  704. b = b[:cap(b)]
  705. n, err := m.MarshalTo(b)
  706. if err != nil {
  707. return nil, err
  708. }
  709. return b[:n], nil
  710. }
  711. }
  712. func (dst *ChannelResponse) XXX_Merge(src proto.Message) {
  713. xxx_messageInfo_ChannelResponse.Merge(dst, src)
  714. }
  715. func (m *ChannelResponse) XXX_Size() int {
  716. return m.Size()
  717. }
  718. func (m *ChannelResponse) XXX_DiscardUnknown() {
  719. xxx_messageInfo_ChannelResponse.DiscardUnknown(m)
  720. }
  721. var xxx_messageInfo_ChannelResponse proto.InternalMessageInfo
  722. func (m *ChannelResponse) GetMediaSource() []*MediaSource {
  723. if m != nil {
  724. return m.MediaSource
  725. }
  726. return nil
  727. }
  728. func (m *ChannelResponse) GetServer() string {
  729. if m != nil {
  730. return m.Server
  731. }
  732. return ""
  733. }
  734. func (m *ChannelResponse) GetTcpPort() uint32 {
  735. if m != nil {
  736. return m.TcpPort
  737. }
  738. return 0
  739. }
  740. func (m *ChannelResponse) GetUdpPort() uint32 {
  741. if m != nil {
  742. return m.UdpPort
  743. }
  744. return 0
  745. }
  746. type StreamRequest struct {
  747. ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id"`
  748. UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"`
  749. CallId uint32 `protobuf:"varint,3,opt,name=call_id,json=callId,proto3" json:"call_id"`
  750. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  751. XXX_unrecognized []byte `json:"-"`
  752. XXX_sizecache int32 `json:"-"`
  753. }
  754. func (m *StreamRequest) Reset() { *m = StreamRequest{} }
  755. func (m *StreamRequest) String() string { return proto.CompactTextString(m) }
  756. func (*StreamRequest) ProtoMessage() {}
  757. func (*StreamRequest) Descriptor() ([]byte, []int) {
  758. return fileDescriptor_api_cc75e2c1742b635b, []int{12}
  759. }
  760. func (m *StreamRequest) XXX_Unmarshal(b []byte) error {
  761. return m.Unmarshal(b)
  762. }
  763. func (m *StreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  764. if deterministic {
  765. return xxx_messageInfo_StreamRequest.Marshal(b, m, deterministic)
  766. } else {
  767. b = b[:cap(b)]
  768. n, err := m.MarshalTo(b)
  769. if err != nil {
  770. return nil, err
  771. }
  772. return b[:n], nil
  773. }
  774. }
  775. func (dst *StreamRequest) XXX_Merge(src proto.Message) {
  776. xxx_messageInfo_StreamRequest.Merge(dst, src)
  777. }
  778. func (m *StreamRequest) XXX_Size() int {
  779. return m.Size()
  780. }
  781. func (m *StreamRequest) XXX_DiscardUnknown() {
  782. xxx_messageInfo_StreamRequest.DiscardUnknown(m)
  783. }
  784. var xxx_messageInfo_StreamRequest proto.InternalMessageInfo
  785. func (m *StreamRequest) GetChannelId() uint64 {
  786. if m != nil {
  787. return m.ChannelId
  788. }
  789. return 0
  790. }
  791. func (m *StreamRequest) GetUserId() uint64 {
  792. if m != nil {
  793. return m.UserId
  794. }
  795. return 0
  796. }
  797. func (m *StreamRequest) GetCallId() uint32 {
  798. if m != nil {
  799. return m.CallId
  800. }
  801. return 0
  802. }
  803. type StreamResponse struct {
  804. EncoderConfig *EncoderConfig `protobuf:"bytes,1,opt,name=encoder_config,json=encoderConfig" json:"encoder_config"`
  805. MixConfig string `protobuf:"bytes,2,opt,name=mix_config,json=mixConfig,proto3" json:"mix_config"`
  806. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  807. XXX_unrecognized []byte `json:"-"`
  808. XXX_sizecache int32 `json:"-"`
  809. }
  810. func (m *StreamResponse) Reset() { *m = StreamResponse{} }
  811. func (m *StreamResponse) String() string { return proto.CompactTextString(m) }
  812. func (*StreamResponse) ProtoMessage() {}
  813. func (*StreamResponse) Descriptor() ([]byte, []int) {
  814. return fileDescriptor_api_cc75e2c1742b635b, []int{13}
  815. }
  816. func (m *StreamResponse) XXX_Unmarshal(b []byte) error {
  817. return m.Unmarshal(b)
  818. }
  819. func (m *StreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  820. if deterministic {
  821. return xxx_messageInfo_StreamResponse.Marshal(b, m, deterministic)
  822. } else {
  823. b = b[:cap(b)]
  824. n, err := m.MarshalTo(b)
  825. if err != nil {
  826. return nil, err
  827. }
  828. return b[:n], nil
  829. }
  830. }
  831. func (dst *StreamResponse) XXX_Merge(src proto.Message) {
  832. xxx_messageInfo_StreamResponse.Merge(dst, src)
  833. }
  834. func (m *StreamResponse) XXX_Size() int {
  835. return m.Size()
  836. }
  837. func (m *StreamResponse) XXX_DiscardUnknown() {
  838. xxx_messageInfo_StreamResponse.DiscardUnknown(m)
  839. }
  840. var xxx_messageInfo_StreamResponse proto.InternalMessageInfo
  841. func (m *StreamResponse) GetEncoderConfig() *EncoderConfig {
  842. if m != nil {
  843. return m.EncoderConfig
  844. }
  845. return nil
  846. }
  847. func (m *StreamResponse) GetMixConfig() string {
  848. if m != nil {
  849. return m.MixConfig
  850. }
  851. return ""
  852. }
  853. type SetRtcConfigRequest struct {
  854. ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id"`
  855. UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id"`
  856. CallId uint32 `protobuf:"varint,3,opt,name=call_id,json=callId,proto3" json:"call_id"`
  857. Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config"`
  858. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  859. XXX_unrecognized []byte `json:"-"`
  860. XXX_sizecache int32 `json:"-"`
  861. }
  862. func (m *SetRtcConfigRequest) Reset() { *m = SetRtcConfigRequest{} }
  863. func (m *SetRtcConfigRequest) String() string { return proto.CompactTextString(m) }
  864. func (*SetRtcConfigRequest) ProtoMessage() {}
  865. func (*SetRtcConfigRequest) Descriptor() ([]byte, []int) {
  866. return fileDescriptor_api_cc75e2c1742b635b, []int{14}
  867. }
  868. func (m *SetRtcConfigRequest) XXX_Unmarshal(b []byte) error {
  869. return m.Unmarshal(b)
  870. }
  871. func (m *SetRtcConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  872. if deterministic {
  873. return xxx_messageInfo_SetRtcConfigRequest.Marshal(b, m, deterministic)
  874. } else {
  875. b = b[:cap(b)]
  876. n, err := m.MarshalTo(b)
  877. if err != nil {
  878. return nil, err
  879. }
  880. return b[:n], nil
  881. }
  882. }
  883. func (dst *SetRtcConfigRequest) XXX_Merge(src proto.Message) {
  884. xxx_messageInfo_SetRtcConfigRequest.Merge(dst, src)
  885. }
  886. func (m *SetRtcConfigRequest) XXX_Size() int {
  887. return m.Size()
  888. }
  889. func (m *SetRtcConfigRequest) XXX_DiscardUnknown() {
  890. xxx_messageInfo_SetRtcConfigRequest.DiscardUnknown(m)
  891. }
  892. var xxx_messageInfo_SetRtcConfigRequest proto.InternalMessageInfo
  893. func (m *SetRtcConfigRequest) GetChannelId() uint64 {
  894. if m != nil {
  895. return m.ChannelId
  896. }
  897. return 0
  898. }
  899. func (m *SetRtcConfigRequest) GetUserId() uint64 {
  900. if m != nil {
  901. return m.UserId
  902. }
  903. return 0
  904. }
  905. func (m *SetRtcConfigRequest) GetCallId() uint32 {
  906. if m != nil {
  907. return m.CallId
  908. }
  909. return 0
  910. }
  911. func (m *SetRtcConfigRequest) GetConfig() string {
  912. if m != nil {
  913. return m.Config
  914. }
  915. return ""
  916. }
  917. type SetRtcConfigResponse struct {
  918. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  919. XXX_unrecognized []byte `json:"-"`
  920. XXX_sizecache int32 `json:"-"`
  921. }
  922. func (m *SetRtcConfigResponse) Reset() { *m = SetRtcConfigResponse{} }
  923. func (m *SetRtcConfigResponse) String() string { return proto.CompactTextString(m) }
  924. func (*SetRtcConfigResponse) ProtoMessage() {}
  925. func (*SetRtcConfigResponse) Descriptor() ([]byte, []int) {
  926. return fileDescriptor_api_cc75e2c1742b635b, []int{15}
  927. }
  928. func (m *SetRtcConfigResponse) XXX_Unmarshal(b []byte) error {
  929. return m.Unmarshal(b)
  930. }
  931. func (m *SetRtcConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  932. if deterministic {
  933. return xxx_messageInfo_SetRtcConfigResponse.Marshal(b, m, deterministic)
  934. } else {
  935. b = b[:cap(b)]
  936. n, err := m.MarshalTo(b)
  937. if err != nil {
  938. return nil, err
  939. }
  940. return b[:n], nil
  941. }
  942. }
  943. func (dst *SetRtcConfigResponse) XXX_Merge(src proto.Message) {
  944. xxx_messageInfo_SetRtcConfigResponse.Merge(dst, src)
  945. }
  946. func (m *SetRtcConfigResponse) XXX_Size() int {
  947. return m.Size()
  948. }
  949. func (m *SetRtcConfigResponse) XXX_DiscardUnknown() {
  950. xxx_messageInfo_SetRtcConfigResponse.DiscardUnknown(m)
  951. }
  952. var xxx_messageInfo_SetRtcConfigResponse proto.InternalMessageInfo
  953. type VerifyTokenRequest struct {
  954. ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id"`
  955. CallId uint32 `protobuf:"varint,2,opt,name=call_id,json=callId,proto3" json:"call_id"`
  956. Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token"`
  957. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  958. XXX_unrecognized []byte `json:"-"`
  959. XXX_sizecache int32 `json:"-"`
  960. }
  961. func (m *VerifyTokenRequest) Reset() { *m = VerifyTokenRequest{} }
  962. func (m *VerifyTokenRequest) String() string { return proto.CompactTextString(m) }
  963. func (*VerifyTokenRequest) ProtoMessage() {}
  964. func (*VerifyTokenRequest) Descriptor() ([]byte, []int) {
  965. return fileDescriptor_api_cc75e2c1742b635b, []int{16}
  966. }
  967. func (m *VerifyTokenRequest) XXX_Unmarshal(b []byte) error {
  968. return m.Unmarshal(b)
  969. }
  970. func (m *VerifyTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  971. if deterministic {
  972. return xxx_messageInfo_VerifyTokenRequest.Marshal(b, m, deterministic)
  973. } else {
  974. b = b[:cap(b)]
  975. n, err := m.MarshalTo(b)
  976. if err != nil {
  977. return nil, err
  978. }
  979. return b[:n], nil
  980. }
  981. }
  982. func (dst *VerifyTokenRequest) XXX_Merge(src proto.Message) {
  983. xxx_messageInfo_VerifyTokenRequest.Merge(dst, src)
  984. }
  985. func (m *VerifyTokenRequest) XXX_Size() int {
  986. return m.Size()
  987. }
  988. func (m *VerifyTokenRequest) XXX_DiscardUnknown() {
  989. xxx_messageInfo_VerifyTokenRequest.DiscardUnknown(m)
  990. }
  991. var xxx_messageInfo_VerifyTokenRequest proto.InternalMessageInfo
  992. func (m *VerifyTokenRequest) GetChannelId() uint64 {
  993. if m != nil {
  994. return m.ChannelId
  995. }
  996. return 0
  997. }
  998. func (m *VerifyTokenRequest) GetCallId() uint32 {
  999. if m != nil {
  1000. return m.CallId
  1001. }
  1002. return 0
  1003. }
  1004. func (m *VerifyTokenRequest) GetToken() string {
  1005. if m != nil {
  1006. return m.Token
  1007. }
  1008. return ""
  1009. }
  1010. type VerifyTokenResponse struct {
  1011. Pass bool `protobuf:"varint,1,opt,name=pass,proto3" json:"pass"`
  1012. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1013. XXX_unrecognized []byte `json:"-"`
  1014. XXX_sizecache int32 `json:"-"`
  1015. }
  1016. func (m *VerifyTokenResponse) Reset() { *m = VerifyTokenResponse{} }
  1017. func (m *VerifyTokenResponse) String() string { return proto.CompactTextString(m) }
  1018. func (*VerifyTokenResponse) ProtoMessage() {}
  1019. func (*VerifyTokenResponse) Descriptor() ([]byte, []int) {
  1020. return fileDescriptor_api_cc75e2c1742b635b, []int{17}
  1021. }
  1022. func (m *VerifyTokenResponse) XXX_Unmarshal(b []byte) error {
  1023. return m.Unmarshal(b)
  1024. }
  1025. func (m *VerifyTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1026. if deterministic {
  1027. return xxx_messageInfo_VerifyTokenResponse.Marshal(b, m, deterministic)
  1028. } else {
  1029. b = b[:cap(b)]
  1030. n, err := m.MarshalTo(b)
  1031. if err != nil {
  1032. return nil, err
  1033. }
  1034. return b[:n], nil
  1035. }
  1036. }
  1037. func (dst *VerifyTokenResponse) XXX_Merge(src proto.Message) {
  1038. xxx_messageInfo_VerifyTokenResponse.Merge(dst, src)
  1039. }
  1040. func (m *VerifyTokenResponse) XXX_Size() int {
  1041. return m.Size()
  1042. }
  1043. func (m *VerifyTokenResponse) XXX_DiscardUnknown() {
  1044. xxx_messageInfo_VerifyTokenResponse.DiscardUnknown(m)
  1045. }
  1046. var xxx_messageInfo_VerifyTokenResponse proto.InternalMessageInfo
  1047. func (m *VerifyTokenResponse) GetPass() bool {
  1048. if m != nil {
  1049. return m.Pass
  1050. }
  1051. return false
  1052. }
  1053. func init() {
  1054. proto.RegisterType((*MediaSource)(nil), "live.rtc.v1.MediaSource")
  1055. proto.RegisterType((*EncoderConfig)(nil), "live.rtc.v1.EncoderConfig")
  1056. proto.RegisterType((*JoinChannelRequest)(nil), "live.rtc.v1.JoinChannelRequest")
  1057. proto.RegisterType((*JoinChannelResponse)(nil), "live.rtc.v1.JoinChannelResponse")
  1058. proto.RegisterType((*LeaveChannelRequest)(nil), "live.rtc.v1.LeaveChannelRequest")
  1059. proto.RegisterType((*LeaveChannelResponse)(nil), "live.rtc.v1.LeaveChannelResponse")
  1060. proto.RegisterType((*PublishStreamRequest)(nil), "live.rtc.v1.PublishStreamRequest")
  1061. proto.RegisterType((*PublishStreamResponse)(nil), "live.rtc.v1.PublishStreamResponse")
  1062. proto.RegisterType((*TerminateStreamRequest)(nil), "live.rtc.v1.TerminateStreamRequest")
  1063. proto.RegisterType((*TerminateStreamResponse)(nil), "live.rtc.v1.TerminateStreamResponse")
  1064. proto.RegisterType((*ChannelRequest)(nil), "live.rtc.v1.ChannelRequest")
  1065. proto.RegisterType((*ChannelResponse)(nil), "live.rtc.v1.ChannelResponse")
  1066. proto.RegisterType((*StreamRequest)(nil), "live.rtc.v1.StreamRequest")
  1067. proto.RegisterType((*StreamResponse)(nil), "live.rtc.v1.StreamResponse")
  1068. proto.RegisterType((*SetRtcConfigRequest)(nil), "live.rtc.v1.SetRtcConfigRequest")
  1069. proto.RegisterType((*SetRtcConfigResponse)(nil), "live.rtc.v1.SetRtcConfigResponse")
  1070. proto.RegisterType((*VerifyTokenRequest)(nil), "live.rtc.v1.VerifyTokenRequest")
  1071. proto.RegisterType((*VerifyTokenResponse)(nil), "live.rtc.v1.VerifyTokenResponse")
  1072. proto.RegisterEnum("live.rtc.v1.MediaSource_MediaType", MediaSource_MediaType_name, MediaSource_MediaType_value)
  1073. }
  1074. // Reference imports to suppress errors if they are not otherwise used.
  1075. var _ context.Context
  1076. var _ grpc.ClientConn
  1077. // This is a compile-time assertion to ensure that this generated file
  1078. // is compatible with the grpc package it is being compiled against.
  1079. const _ = grpc.SupportPackageIsVersion4
  1080. // RtcClient is the client API for Rtc service.
  1081. //
  1082. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1083. type RtcClient interface {
  1084. // `method:"POST"`
  1085. JoinChannel(ctx context.Context, in *JoinChannelRequest, opts ...grpc.CallOption) (*JoinChannelResponse, error)
  1086. // `method:"POST"`
  1087. LeaveChannel(ctx context.Context, in *LeaveChannelRequest, opts ...grpc.CallOption) (*LeaveChannelResponse, error)
  1088. // `method:"POST"`
  1089. PublishStream(ctx context.Context, in *PublishStreamRequest, opts ...grpc.CallOption) (*PublishStreamResponse, error)
  1090. // `method:"POST"`
  1091. TerminateStream(ctx context.Context, in *TerminateStreamRequest, opts ...grpc.CallOption) (*TerminateStreamResponse, error)
  1092. // `method:"GET"`
  1093. Channel(ctx context.Context, in *ChannelRequest, opts ...grpc.CallOption) (*ChannelResponse, error)
  1094. // `method:"GET"`
  1095. Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (*StreamResponse, error)
  1096. // `method:"POST"`
  1097. SetRtcConfig(ctx context.Context, in *SetRtcConfigRequest, opts ...grpc.CallOption) (*SetRtcConfigResponse, error)
  1098. // `method:"GET"`
  1099. VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error)
  1100. }
  1101. type rtcClient struct {
  1102. cc *grpc.ClientConn
  1103. }
  1104. func NewRtcClient(cc *grpc.ClientConn) RtcClient {
  1105. return &rtcClient{cc}
  1106. }
  1107. func (c *rtcClient) JoinChannel(ctx context.Context, in *JoinChannelRequest, opts ...grpc.CallOption) (*JoinChannelResponse, error) {
  1108. out := new(JoinChannelResponse)
  1109. err := c.cc.Invoke(ctx, "/live.rtc.v1.Rtc/JoinChannel", in, out, opts...)
  1110. if err != nil {
  1111. return nil, err
  1112. }
  1113. return out, nil
  1114. }
  1115. func (c *rtcClient) LeaveChannel(ctx context.Context, in *LeaveChannelRequest, opts ...grpc.CallOption) (*LeaveChannelResponse, error) {
  1116. out := new(LeaveChannelResponse)
  1117. err := c.cc.Invoke(ctx, "/live.rtc.v1.Rtc/LeaveChannel", in, out, opts...)
  1118. if err != nil {
  1119. return nil, err
  1120. }
  1121. return out, nil
  1122. }
  1123. func (c *rtcClient) PublishStream(ctx context.Context, in *PublishStreamRequest, opts ...grpc.CallOption) (*PublishStreamResponse, error) {
  1124. out := new(PublishStreamResponse)
  1125. err := c.cc.Invoke(ctx, "/live.rtc.v1.Rtc/PublishStream", in, out, opts...)
  1126. if err != nil {
  1127. return nil, err
  1128. }
  1129. return out, nil
  1130. }
  1131. func (c *rtcClient) TerminateStream(ctx context.Context, in *TerminateStreamRequest, opts ...grpc.CallOption) (*TerminateStreamResponse, error) {
  1132. out := new(TerminateStreamResponse)
  1133. err := c.cc.Invoke(ctx, "/live.rtc.v1.Rtc/TerminateStream", in, out, opts...)
  1134. if err != nil {
  1135. return nil, err
  1136. }
  1137. return out, nil
  1138. }
  1139. func (c *rtcClient) Channel(ctx context.Context, in *ChannelRequest, opts ...grpc.CallOption) (*ChannelResponse, error) {
  1140. out := new(ChannelResponse)
  1141. err := c.cc.Invoke(ctx, "/live.rtc.v1.Rtc/Channel", in, out, opts...)
  1142. if err != nil {
  1143. return nil, err
  1144. }
  1145. return out, nil
  1146. }
  1147. func (c *rtcClient) Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (*StreamResponse, error) {
  1148. out := new(StreamResponse)
  1149. err := c.cc.Invoke(ctx, "/live.rtc.v1.Rtc/Stream", in, out, opts...)
  1150. if err != nil {
  1151. return nil, err
  1152. }
  1153. return out, nil
  1154. }
  1155. func (c *rtcClient) SetRtcConfig(ctx context.Context, in *SetRtcConfigRequest, opts ...grpc.CallOption) (*SetRtcConfigResponse, error) {
  1156. out := new(SetRtcConfigResponse)
  1157. err := c.cc.Invoke(ctx, "/live.rtc.v1.Rtc/SetRtcConfig", in, out, opts...)
  1158. if err != nil {
  1159. return nil, err
  1160. }
  1161. return out, nil
  1162. }
  1163. func (c *rtcClient) VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error) {
  1164. out := new(VerifyTokenResponse)
  1165. err := c.cc.Invoke(ctx, "/live.rtc.v1.Rtc/VerifyToken", in, out, opts...)
  1166. if err != nil {
  1167. return nil, err
  1168. }
  1169. return out, nil
  1170. }
  1171. // RtcServer is the server API for Rtc service.
  1172. type RtcServer interface {
  1173. // `method:"POST"`
  1174. JoinChannel(context.Context, *JoinChannelRequest) (*JoinChannelResponse, error)
  1175. // `method:"POST"`
  1176. LeaveChannel(context.Context, *LeaveChannelRequest) (*LeaveChannelResponse, error)
  1177. // `method:"POST"`
  1178. PublishStream(context.Context, *PublishStreamRequest) (*PublishStreamResponse, error)
  1179. // `method:"POST"`
  1180. TerminateStream(context.Context, *TerminateStreamRequest) (*TerminateStreamResponse, error)
  1181. // `method:"GET"`
  1182. Channel(context.Context, *ChannelRequest) (*ChannelResponse, error)
  1183. // `method:"GET"`
  1184. Stream(context.Context, *StreamRequest) (*StreamResponse, error)
  1185. // `method:"POST"`
  1186. SetRtcConfig(context.Context, *SetRtcConfigRequest) (*SetRtcConfigResponse, error)
  1187. // `method:"GET"`
  1188. VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error)
  1189. }
  1190. func RegisterRtcServer(s *grpc.Server, srv RtcServer) {
  1191. s.RegisterService(&_Rtc_serviceDesc, srv)
  1192. }
  1193. func _Rtc_JoinChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1194. in := new(JoinChannelRequest)
  1195. if err := dec(in); err != nil {
  1196. return nil, err
  1197. }
  1198. if interceptor == nil {
  1199. return srv.(RtcServer).JoinChannel(ctx, in)
  1200. }
  1201. info := &grpc.UnaryServerInfo{
  1202. Server: srv,
  1203. FullMethod: "/live.rtc.v1.Rtc/JoinChannel",
  1204. }
  1205. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1206. return srv.(RtcServer).JoinChannel(ctx, req.(*JoinChannelRequest))
  1207. }
  1208. return interceptor(ctx, in, info, handler)
  1209. }
  1210. func _Rtc_LeaveChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1211. in := new(LeaveChannelRequest)
  1212. if err := dec(in); err != nil {
  1213. return nil, err
  1214. }
  1215. if interceptor == nil {
  1216. return srv.(RtcServer).LeaveChannel(ctx, in)
  1217. }
  1218. info := &grpc.UnaryServerInfo{
  1219. Server: srv,
  1220. FullMethod: "/live.rtc.v1.Rtc/LeaveChannel",
  1221. }
  1222. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1223. return srv.(RtcServer).LeaveChannel(ctx, req.(*LeaveChannelRequest))
  1224. }
  1225. return interceptor(ctx, in, info, handler)
  1226. }
  1227. func _Rtc_PublishStream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1228. in := new(PublishStreamRequest)
  1229. if err := dec(in); err != nil {
  1230. return nil, err
  1231. }
  1232. if interceptor == nil {
  1233. return srv.(RtcServer).PublishStream(ctx, in)
  1234. }
  1235. info := &grpc.UnaryServerInfo{
  1236. Server: srv,
  1237. FullMethod: "/live.rtc.v1.Rtc/PublishStream",
  1238. }
  1239. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1240. return srv.(RtcServer).PublishStream(ctx, req.(*PublishStreamRequest))
  1241. }
  1242. return interceptor(ctx, in, info, handler)
  1243. }
  1244. func _Rtc_TerminateStream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1245. in := new(TerminateStreamRequest)
  1246. if err := dec(in); err != nil {
  1247. return nil, err
  1248. }
  1249. if interceptor == nil {
  1250. return srv.(RtcServer).TerminateStream(ctx, in)
  1251. }
  1252. info := &grpc.UnaryServerInfo{
  1253. Server: srv,
  1254. FullMethod: "/live.rtc.v1.Rtc/TerminateStream",
  1255. }
  1256. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1257. return srv.(RtcServer).TerminateStream(ctx, req.(*TerminateStreamRequest))
  1258. }
  1259. return interceptor(ctx, in, info, handler)
  1260. }
  1261. func _Rtc_Channel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1262. in := new(ChannelRequest)
  1263. if err := dec(in); err != nil {
  1264. return nil, err
  1265. }
  1266. if interceptor == nil {
  1267. return srv.(RtcServer).Channel(ctx, in)
  1268. }
  1269. info := &grpc.UnaryServerInfo{
  1270. Server: srv,
  1271. FullMethod: "/live.rtc.v1.Rtc/Channel",
  1272. }
  1273. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1274. return srv.(RtcServer).Channel(ctx, req.(*ChannelRequest))
  1275. }
  1276. return interceptor(ctx, in, info, handler)
  1277. }
  1278. func _Rtc_Stream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1279. in := new(StreamRequest)
  1280. if err := dec(in); err != nil {
  1281. return nil, err
  1282. }
  1283. if interceptor == nil {
  1284. return srv.(RtcServer).Stream(ctx, in)
  1285. }
  1286. info := &grpc.UnaryServerInfo{
  1287. Server: srv,
  1288. FullMethod: "/live.rtc.v1.Rtc/Stream",
  1289. }
  1290. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1291. return srv.(RtcServer).Stream(ctx, req.(*StreamRequest))
  1292. }
  1293. return interceptor(ctx, in, info, handler)
  1294. }
  1295. func _Rtc_SetRtcConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1296. in := new(SetRtcConfigRequest)
  1297. if err := dec(in); err != nil {
  1298. return nil, err
  1299. }
  1300. if interceptor == nil {
  1301. return srv.(RtcServer).SetRtcConfig(ctx, in)
  1302. }
  1303. info := &grpc.UnaryServerInfo{
  1304. Server: srv,
  1305. FullMethod: "/live.rtc.v1.Rtc/SetRtcConfig",
  1306. }
  1307. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1308. return srv.(RtcServer).SetRtcConfig(ctx, req.(*SetRtcConfigRequest))
  1309. }
  1310. return interceptor(ctx, in, info, handler)
  1311. }
  1312. func _Rtc_VerifyToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1313. in := new(VerifyTokenRequest)
  1314. if err := dec(in); err != nil {
  1315. return nil, err
  1316. }
  1317. if interceptor == nil {
  1318. return srv.(RtcServer).VerifyToken(ctx, in)
  1319. }
  1320. info := &grpc.UnaryServerInfo{
  1321. Server: srv,
  1322. FullMethod: "/live.rtc.v1.Rtc/VerifyToken",
  1323. }
  1324. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1325. return srv.(RtcServer).VerifyToken(ctx, req.(*VerifyTokenRequest))
  1326. }
  1327. return interceptor(ctx, in, info, handler)
  1328. }
  1329. var _Rtc_serviceDesc = grpc.ServiceDesc{
  1330. ServiceName: "live.rtc.v1.Rtc",
  1331. HandlerType: (*RtcServer)(nil),
  1332. Methods: []grpc.MethodDesc{
  1333. {
  1334. MethodName: "JoinChannel",
  1335. Handler: _Rtc_JoinChannel_Handler,
  1336. },
  1337. {
  1338. MethodName: "LeaveChannel",
  1339. Handler: _Rtc_LeaveChannel_Handler,
  1340. },
  1341. {
  1342. MethodName: "PublishStream",
  1343. Handler: _Rtc_PublishStream_Handler,
  1344. },
  1345. {
  1346. MethodName: "TerminateStream",
  1347. Handler: _Rtc_TerminateStream_Handler,
  1348. },
  1349. {
  1350. MethodName: "Channel",
  1351. Handler: _Rtc_Channel_Handler,
  1352. },
  1353. {
  1354. MethodName: "Stream",
  1355. Handler: _Rtc_Stream_Handler,
  1356. },
  1357. {
  1358. MethodName: "SetRtcConfig",
  1359. Handler: _Rtc_SetRtcConfig_Handler,
  1360. },
  1361. {
  1362. MethodName: "VerifyToken",
  1363. Handler: _Rtc_VerifyToken_Handler,
  1364. },
  1365. },
  1366. Streams: []grpc.StreamDesc{},
  1367. Metadata: "app/service/live/rtc/api/v1/api.proto",
  1368. }
  1369. func (m *MediaSource) Marshal() (dAtA []byte, err error) {
  1370. size := m.Size()
  1371. dAtA = make([]byte, size)
  1372. n, err := m.MarshalTo(dAtA)
  1373. if err != nil {
  1374. return nil, err
  1375. }
  1376. return dAtA[:n], nil
  1377. }
  1378. func (m *MediaSource) MarshalTo(dAtA []byte) (int, error) {
  1379. var i int
  1380. _ = i
  1381. var l int
  1382. _ = l
  1383. if m.Type != 0 {
  1384. dAtA[i] = 0x8
  1385. i++
  1386. i = encodeVarintApi(dAtA, i, uint64(m.Type))
  1387. }
  1388. if len(m.Codec) > 0 {
  1389. dAtA[i] = 0x12
  1390. i++
  1391. i = encodeVarintApi(dAtA, i, uint64(len(m.Codec)))
  1392. i += copy(dAtA[i:], m.Codec)
  1393. }
  1394. if len(m.MediaSpecific) > 0 {
  1395. dAtA[i] = 0x1a
  1396. i++
  1397. i = encodeVarintApi(dAtA, i, uint64(len(m.MediaSpecific)))
  1398. i += copy(dAtA[i:], m.MediaSpecific)
  1399. }
  1400. if m.Ssrc != 0 {
  1401. dAtA[i] = 0x20
  1402. i++
  1403. i = encodeVarintApi(dAtA, i, uint64(m.Ssrc))
  1404. }
  1405. if m.UserId != 0 {
  1406. dAtA[i] = 0x28
  1407. i++
  1408. i = encodeVarintApi(dAtA, i, uint64(m.UserId))
  1409. }
  1410. if m.XXX_unrecognized != nil {
  1411. i += copy(dAtA[i:], m.XXX_unrecognized)
  1412. }
  1413. return i, nil
  1414. }
  1415. func (m *EncoderConfig) Marshal() (dAtA []byte, err error) {
  1416. size := m.Size()
  1417. dAtA = make([]byte, size)
  1418. n, err := m.MarshalTo(dAtA)
  1419. if err != nil {
  1420. return nil, err
  1421. }
  1422. return dAtA[:n], nil
  1423. }
  1424. func (m *EncoderConfig) MarshalTo(dAtA []byte) (int, error) {
  1425. var i int
  1426. _ = i
  1427. var l int
  1428. _ = l
  1429. if m.Width != 0 {
  1430. dAtA[i] = 0x8
  1431. i++
  1432. i = encodeVarintApi(dAtA, i, uint64(m.Width))
  1433. }
  1434. if m.Height != 0 {
  1435. dAtA[i] = 0x10
  1436. i++
  1437. i = encodeVarintApi(dAtA, i, uint64(m.Height))
  1438. }
  1439. if m.Bitrate != 0 {
  1440. dAtA[i] = 0x18
  1441. i++
  1442. i = encodeVarintApi(dAtA, i, uint64(m.Bitrate))
  1443. }
  1444. if m.FrameRate != 0 {
  1445. dAtA[i] = 0x20
  1446. i++
  1447. i = encodeVarintApi(dAtA, i, uint64(m.FrameRate))
  1448. }
  1449. if len(m.VideoCodec) > 0 {
  1450. dAtA[i] = 0x2a
  1451. i++
  1452. i = encodeVarintApi(dAtA, i, uint64(len(m.VideoCodec)))
  1453. i += copy(dAtA[i:], m.VideoCodec)
  1454. }
  1455. if len(m.VideoProfile) > 0 {
  1456. dAtA[i] = 0x32
  1457. i++
  1458. i = encodeVarintApi(dAtA, i, uint64(len(m.VideoProfile)))
  1459. i += copy(dAtA[i:], m.VideoProfile)
  1460. }
  1461. if m.Channel != 0 {
  1462. dAtA[i] = 0x98
  1463. i++
  1464. dAtA[i] = 0x1
  1465. i++
  1466. i = encodeVarintApi(dAtA, i, uint64(m.Channel))
  1467. }
  1468. if m.SampleRate != 0 {
  1469. dAtA[i] = 0xa0
  1470. i++
  1471. dAtA[i] = 0x1
  1472. i++
  1473. i = encodeVarintApi(dAtA, i, uint64(m.SampleRate))
  1474. }
  1475. if len(m.AudioCodec) > 0 {
  1476. dAtA[i] = 0xaa
  1477. i++
  1478. dAtA[i] = 0x1
  1479. i++
  1480. i = encodeVarintApi(dAtA, i, uint64(len(m.AudioCodec)))
  1481. i += copy(dAtA[i:], m.AudioCodec)
  1482. }
  1483. if m.XXX_unrecognized != nil {
  1484. i += copy(dAtA[i:], m.XXX_unrecognized)
  1485. }
  1486. return i, nil
  1487. }
  1488. func (m *JoinChannelRequest) Marshal() (dAtA []byte, err error) {
  1489. size := m.Size()
  1490. dAtA = make([]byte, size)
  1491. n, err := m.MarshalTo(dAtA)
  1492. if err != nil {
  1493. return nil, err
  1494. }
  1495. return dAtA[:n], nil
  1496. }
  1497. func (m *JoinChannelRequest) MarshalTo(dAtA []byte) (int, error) {
  1498. var i int
  1499. _ = i
  1500. var l int
  1501. _ = l
  1502. if m.ChannelId != 0 {
  1503. dAtA[i] = 0x8
  1504. i++
  1505. i = encodeVarintApi(dAtA, i, uint64(m.ChannelId))
  1506. }
  1507. if m.UserId != 0 {
  1508. dAtA[i] = 0x10
  1509. i++
  1510. i = encodeVarintApi(dAtA, i, uint64(m.UserId))
  1511. }
  1512. if m.ProtoVersion != 0 {
  1513. dAtA[i] = 0x18
  1514. i++
  1515. i = encodeVarintApi(dAtA, i, uint64(m.ProtoVersion))
  1516. }
  1517. if len(m.Source) > 0 {
  1518. for _, msg := range m.Source {
  1519. dAtA[i] = 0x22
  1520. i++
  1521. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  1522. n, err := msg.MarshalTo(dAtA[i:])
  1523. if err != nil {
  1524. return 0, err
  1525. }
  1526. i += n
  1527. }
  1528. }
  1529. if m.XXX_unrecognized != nil {
  1530. i += copy(dAtA[i:], m.XXX_unrecognized)
  1531. }
  1532. return i, nil
  1533. }
  1534. func (m *JoinChannelResponse) Marshal() (dAtA []byte, err error) {
  1535. size := m.Size()
  1536. dAtA = make([]byte, size)
  1537. n, err := m.MarshalTo(dAtA)
  1538. if err != nil {
  1539. return nil, err
  1540. }
  1541. return dAtA[:n], nil
  1542. }
  1543. func (m *JoinChannelResponse) MarshalTo(dAtA []byte) (int, error) {
  1544. var i int
  1545. _ = i
  1546. var l int
  1547. _ = l
  1548. if m.CallId != 0 {
  1549. dAtA[i] = 0x8
  1550. i++
  1551. i = encodeVarintApi(dAtA, i, uint64(m.CallId))
  1552. }
  1553. if len(m.Token) > 0 {
  1554. dAtA[i] = 0x12
  1555. i++
  1556. i = encodeVarintApi(dAtA, i, uint64(len(m.Token)))
  1557. i += copy(dAtA[i:], m.Token)
  1558. }
  1559. if len(m.Source) > 0 {
  1560. for _, msg := range m.Source {
  1561. dAtA[i] = 0x1a
  1562. i++
  1563. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  1564. n, err := msg.MarshalTo(dAtA[i:])
  1565. if err != nil {
  1566. return 0, err
  1567. }
  1568. i += n
  1569. }
  1570. }
  1571. if m.XXX_unrecognized != nil {
  1572. i += copy(dAtA[i:], m.XXX_unrecognized)
  1573. }
  1574. return i, nil
  1575. }
  1576. func (m *LeaveChannelRequest) Marshal() (dAtA []byte, err error) {
  1577. size := m.Size()
  1578. dAtA = make([]byte, size)
  1579. n, err := m.MarshalTo(dAtA)
  1580. if err != nil {
  1581. return nil, err
  1582. }
  1583. return dAtA[:n], nil
  1584. }
  1585. func (m *LeaveChannelRequest) MarshalTo(dAtA []byte) (int, error) {
  1586. var i int
  1587. _ = i
  1588. var l int
  1589. _ = l
  1590. if m.ChannelId != 0 {
  1591. dAtA[i] = 0x8
  1592. i++
  1593. i = encodeVarintApi(dAtA, i, uint64(m.ChannelId))
  1594. }
  1595. if m.UserId != 0 {
  1596. dAtA[i] = 0x10
  1597. i++
  1598. i = encodeVarintApi(dAtA, i, uint64(m.UserId))
  1599. }
  1600. if m.CallId != 0 {
  1601. dAtA[i] = 0x18
  1602. i++
  1603. i = encodeVarintApi(dAtA, i, uint64(m.CallId))
  1604. }
  1605. if m.XXX_unrecognized != nil {
  1606. i += copy(dAtA[i:], m.XXX_unrecognized)
  1607. }
  1608. return i, nil
  1609. }
  1610. func (m *LeaveChannelResponse) Marshal() (dAtA []byte, err error) {
  1611. size := m.Size()
  1612. dAtA = make([]byte, size)
  1613. n, err := m.MarshalTo(dAtA)
  1614. if err != nil {
  1615. return nil, err
  1616. }
  1617. return dAtA[:n], nil
  1618. }
  1619. func (m *LeaveChannelResponse) MarshalTo(dAtA []byte) (int, error) {
  1620. var i int
  1621. _ = i
  1622. var l int
  1623. _ = l
  1624. if m.XXX_unrecognized != nil {
  1625. i += copy(dAtA[i:], m.XXX_unrecognized)
  1626. }
  1627. return i, nil
  1628. }
  1629. func (m *PublishStreamRequest) Marshal() (dAtA []byte, err error) {
  1630. size := m.Size()
  1631. dAtA = make([]byte, size)
  1632. n, err := m.MarshalTo(dAtA)
  1633. if err != nil {
  1634. return nil, err
  1635. }
  1636. return dAtA[:n], nil
  1637. }
  1638. func (m *PublishStreamRequest) MarshalTo(dAtA []byte) (int, error) {
  1639. var i int
  1640. _ = i
  1641. var l int
  1642. _ = l
  1643. if m.ChannelId != 0 {
  1644. dAtA[i] = 0x8
  1645. i++
  1646. i = encodeVarintApi(dAtA, i, uint64(m.ChannelId))
  1647. }
  1648. if m.UserId != 0 {
  1649. dAtA[i] = 0x10
  1650. i++
  1651. i = encodeVarintApi(dAtA, i, uint64(m.UserId))
  1652. }
  1653. if m.CallId != 0 {
  1654. dAtA[i] = 0x18
  1655. i++
  1656. i = encodeVarintApi(dAtA, i, uint64(m.CallId))
  1657. }
  1658. if m.EncoderConfig != nil {
  1659. dAtA[i] = 0x22
  1660. i++
  1661. i = encodeVarintApi(dAtA, i, uint64(m.EncoderConfig.Size()))
  1662. n1, err := m.EncoderConfig.MarshalTo(dAtA[i:])
  1663. if err != nil {
  1664. return 0, err
  1665. }
  1666. i += n1
  1667. }
  1668. if len(m.MixConfig) > 0 {
  1669. dAtA[i] = 0x2a
  1670. i++
  1671. i = encodeVarintApi(dAtA, i, uint64(len(m.MixConfig)))
  1672. i += copy(dAtA[i:], m.MixConfig)
  1673. }
  1674. if m.XXX_unrecognized != nil {
  1675. i += copy(dAtA[i:], m.XXX_unrecognized)
  1676. }
  1677. return i, nil
  1678. }
  1679. func (m *PublishStreamResponse) Marshal() (dAtA []byte, err error) {
  1680. size := m.Size()
  1681. dAtA = make([]byte, size)
  1682. n, err := m.MarshalTo(dAtA)
  1683. if err != nil {
  1684. return nil, err
  1685. }
  1686. return dAtA[:n], nil
  1687. }
  1688. func (m *PublishStreamResponse) MarshalTo(dAtA []byte) (int, error) {
  1689. var i int
  1690. _ = i
  1691. var l int
  1692. _ = l
  1693. if m.XXX_unrecognized != nil {
  1694. i += copy(dAtA[i:], m.XXX_unrecognized)
  1695. }
  1696. return i, nil
  1697. }
  1698. func (m *TerminateStreamRequest) Marshal() (dAtA []byte, err error) {
  1699. size := m.Size()
  1700. dAtA = make([]byte, size)
  1701. n, err := m.MarshalTo(dAtA)
  1702. if err != nil {
  1703. return nil, err
  1704. }
  1705. return dAtA[:n], nil
  1706. }
  1707. func (m *TerminateStreamRequest) MarshalTo(dAtA []byte) (int, error) {
  1708. var i int
  1709. _ = i
  1710. var l int
  1711. _ = l
  1712. if m.ChannelId != 0 {
  1713. dAtA[i] = 0x8
  1714. i++
  1715. i = encodeVarintApi(dAtA, i, uint64(m.ChannelId))
  1716. }
  1717. if m.UserId != 0 {
  1718. dAtA[i] = 0x10
  1719. i++
  1720. i = encodeVarintApi(dAtA, i, uint64(m.UserId))
  1721. }
  1722. if m.CallId != 0 {
  1723. dAtA[i] = 0x18
  1724. i++
  1725. i = encodeVarintApi(dAtA, i, uint64(m.CallId))
  1726. }
  1727. if m.XXX_unrecognized != nil {
  1728. i += copy(dAtA[i:], m.XXX_unrecognized)
  1729. }
  1730. return i, nil
  1731. }
  1732. func (m *TerminateStreamResponse) Marshal() (dAtA []byte, err error) {
  1733. size := m.Size()
  1734. dAtA = make([]byte, size)
  1735. n, err := m.MarshalTo(dAtA)
  1736. if err != nil {
  1737. return nil, err
  1738. }
  1739. return dAtA[:n], nil
  1740. }
  1741. func (m *TerminateStreamResponse) MarshalTo(dAtA []byte) (int, error) {
  1742. var i int
  1743. _ = i
  1744. var l int
  1745. _ = l
  1746. if m.XXX_unrecognized != nil {
  1747. i += copy(dAtA[i:], m.XXX_unrecognized)
  1748. }
  1749. return i, nil
  1750. }
  1751. func (m *ChannelRequest) Marshal() (dAtA []byte, err error) {
  1752. size := m.Size()
  1753. dAtA = make([]byte, size)
  1754. n, err := m.MarshalTo(dAtA)
  1755. if err != nil {
  1756. return nil, err
  1757. }
  1758. return dAtA[:n], nil
  1759. }
  1760. func (m *ChannelRequest) MarshalTo(dAtA []byte) (int, error) {
  1761. var i int
  1762. _ = i
  1763. var l int
  1764. _ = l
  1765. if m.ChannelId != 0 {
  1766. dAtA[i] = 0x8
  1767. i++
  1768. i = encodeVarintApi(dAtA, i, uint64(m.ChannelId))
  1769. }
  1770. if m.XXX_unrecognized != nil {
  1771. i += copy(dAtA[i:], m.XXX_unrecognized)
  1772. }
  1773. return i, nil
  1774. }
  1775. func (m *ChannelResponse) Marshal() (dAtA []byte, err error) {
  1776. size := m.Size()
  1777. dAtA = make([]byte, size)
  1778. n, err := m.MarshalTo(dAtA)
  1779. if err != nil {
  1780. return nil, err
  1781. }
  1782. return dAtA[:n], nil
  1783. }
  1784. func (m *ChannelResponse) MarshalTo(dAtA []byte) (int, error) {
  1785. var i int
  1786. _ = i
  1787. var l int
  1788. _ = l
  1789. if len(m.MediaSource) > 0 {
  1790. for _, msg := range m.MediaSource {
  1791. dAtA[i] = 0xa
  1792. i++
  1793. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  1794. n, err := msg.MarshalTo(dAtA[i:])
  1795. if err != nil {
  1796. return 0, err
  1797. }
  1798. i += n
  1799. }
  1800. }
  1801. if len(m.Server) > 0 {
  1802. dAtA[i] = 0x12
  1803. i++
  1804. i = encodeVarintApi(dAtA, i, uint64(len(m.Server)))
  1805. i += copy(dAtA[i:], m.Server)
  1806. }
  1807. if m.TcpPort != 0 {
  1808. dAtA[i] = 0x18
  1809. i++
  1810. i = encodeVarintApi(dAtA, i, uint64(m.TcpPort))
  1811. }
  1812. if m.UdpPort != 0 {
  1813. dAtA[i] = 0x20
  1814. i++
  1815. i = encodeVarintApi(dAtA, i, uint64(m.UdpPort))
  1816. }
  1817. if m.XXX_unrecognized != nil {
  1818. i += copy(dAtA[i:], m.XXX_unrecognized)
  1819. }
  1820. return i, nil
  1821. }
  1822. func (m *StreamRequest) Marshal() (dAtA []byte, err error) {
  1823. size := m.Size()
  1824. dAtA = make([]byte, size)
  1825. n, err := m.MarshalTo(dAtA)
  1826. if err != nil {
  1827. return nil, err
  1828. }
  1829. return dAtA[:n], nil
  1830. }
  1831. func (m *StreamRequest) MarshalTo(dAtA []byte) (int, error) {
  1832. var i int
  1833. _ = i
  1834. var l int
  1835. _ = l
  1836. if m.ChannelId != 0 {
  1837. dAtA[i] = 0x8
  1838. i++
  1839. i = encodeVarintApi(dAtA, i, uint64(m.ChannelId))
  1840. }
  1841. if m.UserId != 0 {
  1842. dAtA[i] = 0x10
  1843. i++
  1844. i = encodeVarintApi(dAtA, i, uint64(m.UserId))
  1845. }
  1846. if m.CallId != 0 {
  1847. dAtA[i] = 0x18
  1848. i++
  1849. i = encodeVarintApi(dAtA, i, uint64(m.CallId))
  1850. }
  1851. if m.XXX_unrecognized != nil {
  1852. i += copy(dAtA[i:], m.XXX_unrecognized)
  1853. }
  1854. return i, nil
  1855. }
  1856. func (m *StreamResponse) Marshal() (dAtA []byte, err error) {
  1857. size := m.Size()
  1858. dAtA = make([]byte, size)
  1859. n, err := m.MarshalTo(dAtA)
  1860. if err != nil {
  1861. return nil, err
  1862. }
  1863. return dAtA[:n], nil
  1864. }
  1865. func (m *StreamResponse) MarshalTo(dAtA []byte) (int, error) {
  1866. var i int
  1867. _ = i
  1868. var l int
  1869. _ = l
  1870. if m.EncoderConfig != nil {
  1871. dAtA[i] = 0xa
  1872. i++
  1873. i = encodeVarintApi(dAtA, i, uint64(m.EncoderConfig.Size()))
  1874. n2, err := m.EncoderConfig.MarshalTo(dAtA[i:])
  1875. if err != nil {
  1876. return 0, err
  1877. }
  1878. i += n2
  1879. }
  1880. if len(m.MixConfig) > 0 {
  1881. dAtA[i] = 0x12
  1882. i++
  1883. i = encodeVarintApi(dAtA, i, uint64(len(m.MixConfig)))
  1884. i += copy(dAtA[i:], m.MixConfig)
  1885. }
  1886. if m.XXX_unrecognized != nil {
  1887. i += copy(dAtA[i:], m.XXX_unrecognized)
  1888. }
  1889. return i, nil
  1890. }
  1891. func (m *SetRtcConfigRequest) Marshal() (dAtA []byte, err error) {
  1892. size := m.Size()
  1893. dAtA = make([]byte, size)
  1894. n, err := m.MarshalTo(dAtA)
  1895. if err != nil {
  1896. return nil, err
  1897. }
  1898. return dAtA[:n], nil
  1899. }
  1900. func (m *SetRtcConfigRequest) MarshalTo(dAtA []byte) (int, error) {
  1901. var i int
  1902. _ = i
  1903. var l int
  1904. _ = l
  1905. if m.ChannelId != 0 {
  1906. dAtA[i] = 0x8
  1907. i++
  1908. i = encodeVarintApi(dAtA, i, uint64(m.ChannelId))
  1909. }
  1910. if m.UserId != 0 {
  1911. dAtA[i] = 0x10
  1912. i++
  1913. i = encodeVarintApi(dAtA, i, uint64(m.UserId))
  1914. }
  1915. if m.CallId != 0 {
  1916. dAtA[i] = 0x18
  1917. i++
  1918. i = encodeVarintApi(dAtA, i, uint64(m.CallId))
  1919. }
  1920. if len(m.Config) > 0 {
  1921. dAtA[i] = 0x22
  1922. i++
  1923. i = encodeVarintApi(dAtA, i, uint64(len(m.Config)))
  1924. i += copy(dAtA[i:], m.Config)
  1925. }
  1926. if m.XXX_unrecognized != nil {
  1927. i += copy(dAtA[i:], m.XXX_unrecognized)
  1928. }
  1929. return i, nil
  1930. }
  1931. func (m *SetRtcConfigResponse) Marshal() (dAtA []byte, err error) {
  1932. size := m.Size()
  1933. dAtA = make([]byte, size)
  1934. n, err := m.MarshalTo(dAtA)
  1935. if err != nil {
  1936. return nil, err
  1937. }
  1938. return dAtA[:n], nil
  1939. }
  1940. func (m *SetRtcConfigResponse) MarshalTo(dAtA []byte) (int, error) {
  1941. var i int
  1942. _ = i
  1943. var l int
  1944. _ = l
  1945. if m.XXX_unrecognized != nil {
  1946. i += copy(dAtA[i:], m.XXX_unrecognized)
  1947. }
  1948. return i, nil
  1949. }
  1950. func (m *VerifyTokenRequest) Marshal() (dAtA []byte, err error) {
  1951. size := m.Size()
  1952. dAtA = make([]byte, size)
  1953. n, err := m.MarshalTo(dAtA)
  1954. if err != nil {
  1955. return nil, err
  1956. }
  1957. return dAtA[:n], nil
  1958. }
  1959. func (m *VerifyTokenRequest) MarshalTo(dAtA []byte) (int, error) {
  1960. var i int
  1961. _ = i
  1962. var l int
  1963. _ = l
  1964. if m.ChannelId != 0 {
  1965. dAtA[i] = 0x8
  1966. i++
  1967. i = encodeVarintApi(dAtA, i, uint64(m.ChannelId))
  1968. }
  1969. if m.CallId != 0 {
  1970. dAtA[i] = 0x10
  1971. i++
  1972. i = encodeVarintApi(dAtA, i, uint64(m.CallId))
  1973. }
  1974. if len(m.Token) > 0 {
  1975. dAtA[i] = 0x1a
  1976. i++
  1977. i = encodeVarintApi(dAtA, i, uint64(len(m.Token)))
  1978. i += copy(dAtA[i:], m.Token)
  1979. }
  1980. if m.XXX_unrecognized != nil {
  1981. i += copy(dAtA[i:], m.XXX_unrecognized)
  1982. }
  1983. return i, nil
  1984. }
  1985. func (m *VerifyTokenResponse) Marshal() (dAtA []byte, err error) {
  1986. size := m.Size()
  1987. dAtA = make([]byte, size)
  1988. n, err := m.MarshalTo(dAtA)
  1989. if err != nil {
  1990. return nil, err
  1991. }
  1992. return dAtA[:n], nil
  1993. }
  1994. func (m *VerifyTokenResponse) MarshalTo(dAtA []byte) (int, error) {
  1995. var i int
  1996. _ = i
  1997. var l int
  1998. _ = l
  1999. if m.Pass {
  2000. dAtA[i] = 0x8
  2001. i++
  2002. if m.Pass {
  2003. dAtA[i] = 1
  2004. } else {
  2005. dAtA[i] = 0
  2006. }
  2007. i++
  2008. }
  2009. if m.XXX_unrecognized != nil {
  2010. i += copy(dAtA[i:], m.XXX_unrecognized)
  2011. }
  2012. return i, nil
  2013. }
  2014. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  2015. for v >= 1<<7 {
  2016. dAtA[offset] = uint8(v&0x7f | 0x80)
  2017. v >>= 7
  2018. offset++
  2019. }
  2020. dAtA[offset] = uint8(v)
  2021. return offset + 1
  2022. }
  2023. func (m *MediaSource) Size() (n int) {
  2024. if m == nil {
  2025. return 0
  2026. }
  2027. var l int
  2028. _ = l
  2029. if m.Type != 0 {
  2030. n += 1 + sovApi(uint64(m.Type))
  2031. }
  2032. l = len(m.Codec)
  2033. if l > 0 {
  2034. n += 1 + l + sovApi(uint64(l))
  2035. }
  2036. l = len(m.MediaSpecific)
  2037. if l > 0 {
  2038. n += 1 + l + sovApi(uint64(l))
  2039. }
  2040. if m.Ssrc != 0 {
  2041. n += 1 + sovApi(uint64(m.Ssrc))
  2042. }
  2043. if m.UserId != 0 {
  2044. n += 1 + sovApi(uint64(m.UserId))
  2045. }
  2046. if m.XXX_unrecognized != nil {
  2047. n += len(m.XXX_unrecognized)
  2048. }
  2049. return n
  2050. }
  2051. func (m *EncoderConfig) Size() (n int) {
  2052. if m == nil {
  2053. return 0
  2054. }
  2055. var l int
  2056. _ = l
  2057. if m.Width != 0 {
  2058. n += 1 + sovApi(uint64(m.Width))
  2059. }
  2060. if m.Height != 0 {
  2061. n += 1 + sovApi(uint64(m.Height))
  2062. }
  2063. if m.Bitrate != 0 {
  2064. n += 1 + sovApi(uint64(m.Bitrate))
  2065. }
  2066. if m.FrameRate != 0 {
  2067. n += 1 + sovApi(uint64(m.FrameRate))
  2068. }
  2069. l = len(m.VideoCodec)
  2070. if l > 0 {
  2071. n += 1 + l + sovApi(uint64(l))
  2072. }
  2073. l = len(m.VideoProfile)
  2074. if l > 0 {
  2075. n += 1 + l + sovApi(uint64(l))
  2076. }
  2077. if m.Channel != 0 {
  2078. n += 2 + sovApi(uint64(m.Channel))
  2079. }
  2080. if m.SampleRate != 0 {
  2081. n += 2 + sovApi(uint64(m.SampleRate))
  2082. }
  2083. l = len(m.AudioCodec)
  2084. if l > 0 {
  2085. n += 2 + l + sovApi(uint64(l))
  2086. }
  2087. if m.XXX_unrecognized != nil {
  2088. n += len(m.XXX_unrecognized)
  2089. }
  2090. return n
  2091. }
  2092. func (m *JoinChannelRequest) Size() (n int) {
  2093. if m == nil {
  2094. return 0
  2095. }
  2096. var l int
  2097. _ = l
  2098. if m.ChannelId != 0 {
  2099. n += 1 + sovApi(uint64(m.ChannelId))
  2100. }
  2101. if m.UserId != 0 {
  2102. n += 1 + sovApi(uint64(m.UserId))
  2103. }
  2104. if m.ProtoVersion != 0 {
  2105. n += 1 + sovApi(uint64(m.ProtoVersion))
  2106. }
  2107. if len(m.Source) > 0 {
  2108. for _, e := range m.Source {
  2109. l = e.Size()
  2110. n += 1 + l + sovApi(uint64(l))
  2111. }
  2112. }
  2113. if m.XXX_unrecognized != nil {
  2114. n += len(m.XXX_unrecognized)
  2115. }
  2116. return n
  2117. }
  2118. func (m *JoinChannelResponse) Size() (n int) {
  2119. if m == nil {
  2120. return 0
  2121. }
  2122. var l int
  2123. _ = l
  2124. if m.CallId != 0 {
  2125. n += 1 + sovApi(uint64(m.CallId))
  2126. }
  2127. l = len(m.Token)
  2128. if l > 0 {
  2129. n += 1 + l + sovApi(uint64(l))
  2130. }
  2131. if len(m.Source) > 0 {
  2132. for _, e := range m.Source {
  2133. l = e.Size()
  2134. n += 1 + l + sovApi(uint64(l))
  2135. }
  2136. }
  2137. if m.XXX_unrecognized != nil {
  2138. n += len(m.XXX_unrecognized)
  2139. }
  2140. return n
  2141. }
  2142. func (m *LeaveChannelRequest) Size() (n int) {
  2143. if m == nil {
  2144. return 0
  2145. }
  2146. var l int
  2147. _ = l
  2148. if m.ChannelId != 0 {
  2149. n += 1 + sovApi(uint64(m.ChannelId))
  2150. }
  2151. if m.UserId != 0 {
  2152. n += 1 + sovApi(uint64(m.UserId))
  2153. }
  2154. if m.CallId != 0 {
  2155. n += 1 + sovApi(uint64(m.CallId))
  2156. }
  2157. if m.XXX_unrecognized != nil {
  2158. n += len(m.XXX_unrecognized)
  2159. }
  2160. return n
  2161. }
  2162. func (m *LeaveChannelResponse) Size() (n int) {
  2163. if m == nil {
  2164. return 0
  2165. }
  2166. var l int
  2167. _ = l
  2168. if m.XXX_unrecognized != nil {
  2169. n += len(m.XXX_unrecognized)
  2170. }
  2171. return n
  2172. }
  2173. func (m *PublishStreamRequest) Size() (n int) {
  2174. if m == nil {
  2175. return 0
  2176. }
  2177. var l int
  2178. _ = l
  2179. if m.ChannelId != 0 {
  2180. n += 1 + sovApi(uint64(m.ChannelId))
  2181. }
  2182. if m.UserId != 0 {
  2183. n += 1 + sovApi(uint64(m.UserId))
  2184. }
  2185. if m.CallId != 0 {
  2186. n += 1 + sovApi(uint64(m.CallId))
  2187. }
  2188. if m.EncoderConfig != nil {
  2189. l = m.EncoderConfig.Size()
  2190. n += 1 + l + sovApi(uint64(l))
  2191. }
  2192. l = len(m.MixConfig)
  2193. if l > 0 {
  2194. n += 1 + l + sovApi(uint64(l))
  2195. }
  2196. if m.XXX_unrecognized != nil {
  2197. n += len(m.XXX_unrecognized)
  2198. }
  2199. return n
  2200. }
  2201. func (m *PublishStreamResponse) Size() (n int) {
  2202. if m == nil {
  2203. return 0
  2204. }
  2205. var l int
  2206. _ = l
  2207. if m.XXX_unrecognized != nil {
  2208. n += len(m.XXX_unrecognized)
  2209. }
  2210. return n
  2211. }
  2212. func (m *TerminateStreamRequest) Size() (n int) {
  2213. if m == nil {
  2214. return 0
  2215. }
  2216. var l int
  2217. _ = l
  2218. if m.ChannelId != 0 {
  2219. n += 1 + sovApi(uint64(m.ChannelId))
  2220. }
  2221. if m.UserId != 0 {
  2222. n += 1 + sovApi(uint64(m.UserId))
  2223. }
  2224. if m.CallId != 0 {
  2225. n += 1 + sovApi(uint64(m.CallId))
  2226. }
  2227. if m.XXX_unrecognized != nil {
  2228. n += len(m.XXX_unrecognized)
  2229. }
  2230. return n
  2231. }
  2232. func (m *TerminateStreamResponse) Size() (n int) {
  2233. if m == nil {
  2234. return 0
  2235. }
  2236. var l int
  2237. _ = l
  2238. if m.XXX_unrecognized != nil {
  2239. n += len(m.XXX_unrecognized)
  2240. }
  2241. return n
  2242. }
  2243. func (m *ChannelRequest) Size() (n int) {
  2244. if m == nil {
  2245. return 0
  2246. }
  2247. var l int
  2248. _ = l
  2249. if m.ChannelId != 0 {
  2250. n += 1 + sovApi(uint64(m.ChannelId))
  2251. }
  2252. if m.XXX_unrecognized != nil {
  2253. n += len(m.XXX_unrecognized)
  2254. }
  2255. return n
  2256. }
  2257. func (m *ChannelResponse) Size() (n int) {
  2258. if m == nil {
  2259. return 0
  2260. }
  2261. var l int
  2262. _ = l
  2263. if len(m.MediaSource) > 0 {
  2264. for _, e := range m.MediaSource {
  2265. l = e.Size()
  2266. n += 1 + l + sovApi(uint64(l))
  2267. }
  2268. }
  2269. l = len(m.Server)
  2270. if l > 0 {
  2271. n += 1 + l + sovApi(uint64(l))
  2272. }
  2273. if m.TcpPort != 0 {
  2274. n += 1 + sovApi(uint64(m.TcpPort))
  2275. }
  2276. if m.UdpPort != 0 {
  2277. n += 1 + sovApi(uint64(m.UdpPort))
  2278. }
  2279. if m.XXX_unrecognized != nil {
  2280. n += len(m.XXX_unrecognized)
  2281. }
  2282. return n
  2283. }
  2284. func (m *StreamRequest) Size() (n int) {
  2285. if m == nil {
  2286. return 0
  2287. }
  2288. var l int
  2289. _ = l
  2290. if m.ChannelId != 0 {
  2291. n += 1 + sovApi(uint64(m.ChannelId))
  2292. }
  2293. if m.UserId != 0 {
  2294. n += 1 + sovApi(uint64(m.UserId))
  2295. }
  2296. if m.CallId != 0 {
  2297. n += 1 + sovApi(uint64(m.CallId))
  2298. }
  2299. if m.XXX_unrecognized != nil {
  2300. n += len(m.XXX_unrecognized)
  2301. }
  2302. return n
  2303. }
  2304. func (m *StreamResponse) Size() (n int) {
  2305. if m == nil {
  2306. return 0
  2307. }
  2308. var l int
  2309. _ = l
  2310. if m.EncoderConfig != nil {
  2311. l = m.EncoderConfig.Size()
  2312. n += 1 + l + sovApi(uint64(l))
  2313. }
  2314. l = len(m.MixConfig)
  2315. if l > 0 {
  2316. n += 1 + l + sovApi(uint64(l))
  2317. }
  2318. if m.XXX_unrecognized != nil {
  2319. n += len(m.XXX_unrecognized)
  2320. }
  2321. return n
  2322. }
  2323. func (m *SetRtcConfigRequest) Size() (n int) {
  2324. if m == nil {
  2325. return 0
  2326. }
  2327. var l int
  2328. _ = l
  2329. if m.ChannelId != 0 {
  2330. n += 1 + sovApi(uint64(m.ChannelId))
  2331. }
  2332. if m.UserId != 0 {
  2333. n += 1 + sovApi(uint64(m.UserId))
  2334. }
  2335. if m.CallId != 0 {
  2336. n += 1 + sovApi(uint64(m.CallId))
  2337. }
  2338. l = len(m.Config)
  2339. if l > 0 {
  2340. n += 1 + l + sovApi(uint64(l))
  2341. }
  2342. if m.XXX_unrecognized != nil {
  2343. n += len(m.XXX_unrecognized)
  2344. }
  2345. return n
  2346. }
  2347. func (m *SetRtcConfigResponse) Size() (n int) {
  2348. if m == nil {
  2349. return 0
  2350. }
  2351. var l int
  2352. _ = l
  2353. if m.XXX_unrecognized != nil {
  2354. n += len(m.XXX_unrecognized)
  2355. }
  2356. return n
  2357. }
  2358. func (m *VerifyTokenRequest) Size() (n int) {
  2359. if m == nil {
  2360. return 0
  2361. }
  2362. var l int
  2363. _ = l
  2364. if m.ChannelId != 0 {
  2365. n += 1 + sovApi(uint64(m.ChannelId))
  2366. }
  2367. if m.CallId != 0 {
  2368. n += 1 + sovApi(uint64(m.CallId))
  2369. }
  2370. l = len(m.Token)
  2371. if l > 0 {
  2372. n += 1 + l + sovApi(uint64(l))
  2373. }
  2374. if m.XXX_unrecognized != nil {
  2375. n += len(m.XXX_unrecognized)
  2376. }
  2377. return n
  2378. }
  2379. func (m *VerifyTokenResponse) Size() (n int) {
  2380. if m == nil {
  2381. return 0
  2382. }
  2383. var l int
  2384. _ = l
  2385. if m.Pass {
  2386. n += 2
  2387. }
  2388. if m.XXX_unrecognized != nil {
  2389. n += len(m.XXX_unrecognized)
  2390. }
  2391. return n
  2392. }
  2393. func sovApi(x uint64) (n int) {
  2394. for {
  2395. n++
  2396. x >>= 7
  2397. if x == 0 {
  2398. break
  2399. }
  2400. }
  2401. return n
  2402. }
  2403. func sozApi(x uint64) (n int) {
  2404. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2405. }
  2406. func (m *MediaSource) Unmarshal(dAtA []byte) error {
  2407. l := len(dAtA)
  2408. iNdEx := 0
  2409. for iNdEx < l {
  2410. preIndex := iNdEx
  2411. var wire uint64
  2412. for shift := uint(0); ; shift += 7 {
  2413. if shift >= 64 {
  2414. return ErrIntOverflowApi
  2415. }
  2416. if iNdEx >= l {
  2417. return io.ErrUnexpectedEOF
  2418. }
  2419. b := dAtA[iNdEx]
  2420. iNdEx++
  2421. wire |= (uint64(b) & 0x7F) << shift
  2422. if b < 0x80 {
  2423. break
  2424. }
  2425. }
  2426. fieldNum := int32(wire >> 3)
  2427. wireType := int(wire & 0x7)
  2428. if wireType == 4 {
  2429. return fmt.Errorf("proto: MediaSource: wiretype end group for non-group")
  2430. }
  2431. if fieldNum <= 0 {
  2432. return fmt.Errorf("proto: MediaSource: illegal tag %d (wire type %d)", fieldNum, wire)
  2433. }
  2434. switch fieldNum {
  2435. case 1:
  2436. if wireType != 0 {
  2437. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2438. }
  2439. m.Type = 0
  2440. for shift := uint(0); ; shift += 7 {
  2441. if shift >= 64 {
  2442. return ErrIntOverflowApi
  2443. }
  2444. if iNdEx >= l {
  2445. return io.ErrUnexpectedEOF
  2446. }
  2447. b := dAtA[iNdEx]
  2448. iNdEx++
  2449. m.Type |= (MediaSource_MediaType(b) & 0x7F) << shift
  2450. if b < 0x80 {
  2451. break
  2452. }
  2453. }
  2454. case 2:
  2455. if wireType != 2 {
  2456. return fmt.Errorf("proto: wrong wireType = %d for field Codec", wireType)
  2457. }
  2458. var stringLen uint64
  2459. for shift := uint(0); ; shift += 7 {
  2460. if shift >= 64 {
  2461. return ErrIntOverflowApi
  2462. }
  2463. if iNdEx >= l {
  2464. return io.ErrUnexpectedEOF
  2465. }
  2466. b := dAtA[iNdEx]
  2467. iNdEx++
  2468. stringLen |= (uint64(b) & 0x7F) << shift
  2469. if b < 0x80 {
  2470. break
  2471. }
  2472. }
  2473. intStringLen := int(stringLen)
  2474. if intStringLen < 0 {
  2475. return ErrInvalidLengthApi
  2476. }
  2477. postIndex := iNdEx + intStringLen
  2478. if postIndex > l {
  2479. return io.ErrUnexpectedEOF
  2480. }
  2481. m.Codec = string(dAtA[iNdEx:postIndex])
  2482. iNdEx = postIndex
  2483. case 3:
  2484. if wireType != 2 {
  2485. return fmt.Errorf("proto: wrong wireType = %d for field MediaSpecific", wireType)
  2486. }
  2487. var stringLen uint64
  2488. for shift := uint(0); ; shift += 7 {
  2489. if shift >= 64 {
  2490. return ErrIntOverflowApi
  2491. }
  2492. if iNdEx >= l {
  2493. return io.ErrUnexpectedEOF
  2494. }
  2495. b := dAtA[iNdEx]
  2496. iNdEx++
  2497. stringLen |= (uint64(b) & 0x7F) << shift
  2498. if b < 0x80 {
  2499. break
  2500. }
  2501. }
  2502. intStringLen := int(stringLen)
  2503. if intStringLen < 0 {
  2504. return ErrInvalidLengthApi
  2505. }
  2506. postIndex := iNdEx + intStringLen
  2507. if postIndex > l {
  2508. return io.ErrUnexpectedEOF
  2509. }
  2510. m.MediaSpecific = string(dAtA[iNdEx:postIndex])
  2511. iNdEx = postIndex
  2512. case 4:
  2513. if wireType != 0 {
  2514. return fmt.Errorf("proto: wrong wireType = %d for field Ssrc", wireType)
  2515. }
  2516. m.Ssrc = 0
  2517. for shift := uint(0); ; shift += 7 {
  2518. if shift >= 64 {
  2519. return ErrIntOverflowApi
  2520. }
  2521. if iNdEx >= l {
  2522. return io.ErrUnexpectedEOF
  2523. }
  2524. b := dAtA[iNdEx]
  2525. iNdEx++
  2526. m.Ssrc |= (uint32(b) & 0x7F) << shift
  2527. if b < 0x80 {
  2528. break
  2529. }
  2530. }
  2531. case 5:
  2532. if wireType != 0 {
  2533. return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
  2534. }
  2535. m.UserId = 0
  2536. for shift := uint(0); ; shift += 7 {
  2537. if shift >= 64 {
  2538. return ErrIntOverflowApi
  2539. }
  2540. if iNdEx >= l {
  2541. return io.ErrUnexpectedEOF
  2542. }
  2543. b := dAtA[iNdEx]
  2544. iNdEx++
  2545. m.UserId |= (uint64(b) & 0x7F) << shift
  2546. if b < 0x80 {
  2547. break
  2548. }
  2549. }
  2550. default:
  2551. iNdEx = preIndex
  2552. skippy, err := skipApi(dAtA[iNdEx:])
  2553. if err != nil {
  2554. return err
  2555. }
  2556. if skippy < 0 {
  2557. return ErrInvalidLengthApi
  2558. }
  2559. if (iNdEx + skippy) > l {
  2560. return io.ErrUnexpectedEOF
  2561. }
  2562. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2563. iNdEx += skippy
  2564. }
  2565. }
  2566. if iNdEx > l {
  2567. return io.ErrUnexpectedEOF
  2568. }
  2569. return nil
  2570. }
  2571. func (m *EncoderConfig) Unmarshal(dAtA []byte) error {
  2572. l := len(dAtA)
  2573. iNdEx := 0
  2574. for iNdEx < l {
  2575. preIndex := iNdEx
  2576. var wire uint64
  2577. for shift := uint(0); ; shift += 7 {
  2578. if shift >= 64 {
  2579. return ErrIntOverflowApi
  2580. }
  2581. if iNdEx >= l {
  2582. return io.ErrUnexpectedEOF
  2583. }
  2584. b := dAtA[iNdEx]
  2585. iNdEx++
  2586. wire |= (uint64(b) & 0x7F) << shift
  2587. if b < 0x80 {
  2588. break
  2589. }
  2590. }
  2591. fieldNum := int32(wire >> 3)
  2592. wireType := int(wire & 0x7)
  2593. if wireType == 4 {
  2594. return fmt.Errorf("proto: EncoderConfig: wiretype end group for non-group")
  2595. }
  2596. if fieldNum <= 0 {
  2597. return fmt.Errorf("proto: EncoderConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  2598. }
  2599. switch fieldNum {
  2600. case 1:
  2601. if wireType != 0 {
  2602. return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType)
  2603. }
  2604. m.Width = 0
  2605. for shift := uint(0); ; shift += 7 {
  2606. if shift >= 64 {
  2607. return ErrIntOverflowApi
  2608. }
  2609. if iNdEx >= l {
  2610. return io.ErrUnexpectedEOF
  2611. }
  2612. b := dAtA[iNdEx]
  2613. iNdEx++
  2614. m.Width |= (uint32(b) & 0x7F) << shift
  2615. if b < 0x80 {
  2616. break
  2617. }
  2618. }
  2619. case 2:
  2620. if wireType != 0 {
  2621. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2622. }
  2623. m.Height = 0
  2624. for shift := uint(0); ; shift += 7 {
  2625. if shift >= 64 {
  2626. return ErrIntOverflowApi
  2627. }
  2628. if iNdEx >= l {
  2629. return io.ErrUnexpectedEOF
  2630. }
  2631. b := dAtA[iNdEx]
  2632. iNdEx++
  2633. m.Height |= (uint32(b) & 0x7F) << shift
  2634. if b < 0x80 {
  2635. break
  2636. }
  2637. }
  2638. case 3:
  2639. if wireType != 0 {
  2640. return fmt.Errorf("proto: wrong wireType = %d for field Bitrate", wireType)
  2641. }
  2642. m.Bitrate = 0
  2643. for shift := uint(0); ; shift += 7 {
  2644. if shift >= 64 {
  2645. return ErrIntOverflowApi
  2646. }
  2647. if iNdEx >= l {
  2648. return io.ErrUnexpectedEOF
  2649. }
  2650. b := dAtA[iNdEx]
  2651. iNdEx++
  2652. m.Bitrate |= (uint32(b) & 0x7F) << shift
  2653. if b < 0x80 {
  2654. break
  2655. }
  2656. }
  2657. case 4:
  2658. if wireType != 0 {
  2659. return fmt.Errorf("proto: wrong wireType = %d for field FrameRate", wireType)
  2660. }
  2661. m.FrameRate = 0
  2662. for shift := uint(0); ; shift += 7 {
  2663. if shift >= 64 {
  2664. return ErrIntOverflowApi
  2665. }
  2666. if iNdEx >= l {
  2667. return io.ErrUnexpectedEOF
  2668. }
  2669. b := dAtA[iNdEx]
  2670. iNdEx++
  2671. m.FrameRate |= (uint32(b) & 0x7F) << shift
  2672. if b < 0x80 {
  2673. break
  2674. }
  2675. }
  2676. case 5:
  2677. if wireType != 2 {
  2678. return fmt.Errorf("proto: wrong wireType = %d for field VideoCodec", wireType)
  2679. }
  2680. var stringLen uint64
  2681. for shift := uint(0); ; shift += 7 {
  2682. if shift >= 64 {
  2683. return ErrIntOverflowApi
  2684. }
  2685. if iNdEx >= l {
  2686. return io.ErrUnexpectedEOF
  2687. }
  2688. b := dAtA[iNdEx]
  2689. iNdEx++
  2690. stringLen |= (uint64(b) & 0x7F) << shift
  2691. if b < 0x80 {
  2692. break
  2693. }
  2694. }
  2695. intStringLen := int(stringLen)
  2696. if intStringLen < 0 {
  2697. return ErrInvalidLengthApi
  2698. }
  2699. postIndex := iNdEx + intStringLen
  2700. if postIndex > l {
  2701. return io.ErrUnexpectedEOF
  2702. }
  2703. m.VideoCodec = string(dAtA[iNdEx:postIndex])
  2704. iNdEx = postIndex
  2705. case 6:
  2706. if wireType != 2 {
  2707. return fmt.Errorf("proto: wrong wireType = %d for field VideoProfile", wireType)
  2708. }
  2709. var stringLen uint64
  2710. for shift := uint(0); ; shift += 7 {
  2711. if shift >= 64 {
  2712. return ErrIntOverflowApi
  2713. }
  2714. if iNdEx >= l {
  2715. return io.ErrUnexpectedEOF
  2716. }
  2717. b := dAtA[iNdEx]
  2718. iNdEx++
  2719. stringLen |= (uint64(b) & 0x7F) << shift
  2720. if b < 0x80 {
  2721. break
  2722. }
  2723. }
  2724. intStringLen := int(stringLen)
  2725. if intStringLen < 0 {
  2726. return ErrInvalidLengthApi
  2727. }
  2728. postIndex := iNdEx + intStringLen
  2729. if postIndex > l {
  2730. return io.ErrUnexpectedEOF
  2731. }
  2732. m.VideoProfile = string(dAtA[iNdEx:postIndex])
  2733. iNdEx = postIndex
  2734. case 19:
  2735. if wireType != 0 {
  2736. return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType)
  2737. }
  2738. m.Channel = 0
  2739. for shift := uint(0); ; shift += 7 {
  2740. if shift >= 64 {
  2741. return ErrIntOverflowApi
  2742. }
  2743. if iNdEx >= l {
  2744. return io.ErrUnexpectedEOF
  2745. }
  2746. b := dAtA[iNdEx]
  2747. iNdEx++
  2748. m.Channel |= (uint32(b) & 0x7F) << shift
  2749. if b < 0x80 {
  2750. break
  2751. }
  2752. }
  2753. case 20:
  2754. if wireType != 0 {
  2755. return fmt.Errorf("proto: wrong wireType = %d for field SampleRate", wireType)
  2756. }
  2757. m.SampleRate = 0
  2758. for shift := uint(0); ; shift += 7 {
  2759. if shift >= 64 {
  2760. return ErrIntOverflowApi
  2761. }
  2762. if iNdEx >= l {
  2763. return io.ErrUnexpectedEOF
  2764. }
  2765. b := dAtA[iNdEx]
  2766. iNdEx++
  2767. m.SampleRate |= (uint32(b) & 0x7F) << shift
  2768. if b < 0x80 {
  2769. break
  2770. }
  2771. }
  2772. case 21:
  2773. if wireType != 2 {
  2774. return fmt.Errorf("proto: wrong wireType = %d for field AudioCodec", wireType)
  2775. }
  2776. var stringLen uint64
  2777. for shift := uint(0); ; shift += 7 {
  2778. if shift >= 64 {
  2779. return ErrIntOverflowApi
  2780. }
  2781. if iNdEx >= l {
  2782. return io.ErrUnexpectedEOF
  2783. }
  2784. b := dAtA[iNdEx]
  2785. iNdEx++
  2786. stringLen |= (uint64(b) & 0x7F) << shift
  2787. if b < 0x80 {
  2788. break
  2789. }
  2790. }
  2791. intStringLen := int(stringLen)
  2792. if intStringLen < 0 {
  2793. return ErrInvalidLengthApi
  2794. }
  2795. postIndex := iNdEx + intStringLen
  2796. if postIndex > l {
  2797. return io.ErrUnexpectedEOF
  2798. }
  2799. m.AudioCodec = string(dAtA[iNdEx:postIndex])
  2800. iNdEx = postIndex
  2801. default:
  2802. iNdEx = preIndex
  2803. skippy, err := skipApi(dAtA[iNdEx:])
  2804. if err != nil {
  2805. return err
  2806. }
  2807. if skippy < 0 {
  2808. return ErrInvalidLengthApi
  2809. }
  2810. if (iNdEx + skippy) > l {
  2811. return io.ErrUnexpectedEOF
  2812. }
  2813. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2814. iNdEx += skippy
  2815. }
  2816. }
  2817. if iNdEx > l {
  2818. return io.ErrUnexpectedEOF
  2819. }
  2820. return nil
  2821. }
  2822. func (m *JoinChannelRequest) Unmarshal(dAtA []byte) error {
  2823. l := len(dAtA)
  2824. iNdEx := 0
  2825. for iNdEx < l {
  2826. preIndex := iNdEx
  2827. var wire uint64
  2828. for shift := uint(0); ; shift += 7 {
  2829. if shift >= 64 {
  2830. return ErrIntOverflowApi
  2831. }
  2832. if iNdEx >= l {
  2833. return io.ErrUnexpectedEOF
  2834. }
  2835. b := dAtA[iNdEx]
  2836. iNdEx++
  2837. wire |= (uint64(b) & 0x7F) << shift
  2838. if b < 0x80 {
  2839. break
  2840. }
  2841. }
  2842. fieldNum := int32(wire >> 3)
  2843. wireType := int(wire & 0x7)
  2844. if wireType == 4 {
  2845. return fmt.Errorf("proto: JoinChannelRequest: wiretype end group for non-group")
  2846. }
  2847. if fieldNum <= 0 {
  2848. return fmt.Errorf("proto: JoinChannelRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2849. }
  2850. switch fieldNum {
  2851. case 1:
  2852. if wireType != 0 {
  2853. return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
  2854. }
  2855. m.ChannelId = 0
  2856. for shift := uint(0); ; shift += 7 {
  2857. if shift >= 64 {
  2858. return ErrIntOverflowApi
  2859. }
  2860. if iNdEx >= l {
  2861. return io.ErrUnexpectedEOF
  2862. }
  2863. b := dAtA[iNdEx]
  2864. iNdEx++
  2865. m.ChannelId |= (uint64(b) & 0x7F) << shift
  2866. if b < 0x80 {
  2867. break
  2868. }
  2869. }
  2870. case 2:
  2871. if wireType != 0 {
  2872. return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
  2873. }
  2874. m.UserId = 0
  2875. for shift := uint(0); ; shift += 7 {
  2876. if shift >= 64 {
  2877. return ErrIntOverflowApi
  2878. }
  2879. if iNdEx >= l {
  2880. return io.ErrUnexpectedEOF
  2881. }
  2882. b := dAtA[iNdEx]
  2883. iNdEx++
  2884. m.UserId |= (uint64(b) & 0x7F) << shift
  2885. if b < 0x80 {
  2886. break
  2887. }
  2888. }
  2889. case 3:
  2890. if wireType != 0 {
  2891. return fmt.Errorf("proto: wrong wireType = %d for field ProtoVersion", wireType)
  2892. }
  2893. m.ProtoVersion = 0
  2894. for shift := uint(0); ; shift += 7 {
  2895. if shift >= 64 {
  2896. return ErrIntOverflowApi
  2897. }
  2898. if iNdEx >= l {
  2899. return io.ErrUnexpectedEOF
  2900. }
  2901. b := dAtA[iNdEx]
  2902. iNdEx++
  2903. m.ProtoVersion |= (uint32(b) & 0x7F) << shift
  2904. if b < 0x80 {
  2905. break
  2906. }
  2907. }
  2908. case 4:
  2909. if wireType != 2 {
  2910. return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
  2911. }
  2912. var msglen int
  2913. for shift := uint(0); ; shift += 7 {
  2914. if shift >= 64 {
  2915. return ErrIntOverflowApi
  2916. }
  2917. if iNdEx >= l {
  2918. return io.ErrUnexpectedEOF
  2919. }
  2920. b := dAtA[iNdEx]
  2921. iNdEx++
  2922. msglen |= (int(b) & 0x7F) << shift
  2923. if b < 0x80 {
  2924. break
  2925. }
  2926. }
  2927. if msglen < 0 {
  2928. return ErrInvalidLengthApi
  2929. }
  2930. postIndex := iNdEx + msglen
  2931. if postIndex > l {
  2932. return io.ErrUnexpectedEOF
  2933. }
  2934. m.Source = append(m.Source, &MediaSource{})
  2935. if err := m.Source[len(m.Source)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2936. return err
  2937. }
  2938. iNdEx = postIndex
  2939. default:
  2940. iNdEx = preIndex
  2941. skippy, err := skipApi(dAtA[iNdEx:])
  2942. if err != nil {
  2943. return err
  2944. }
  2945. if skippy < 0 {
  2946. return ErrInvalidLengthApi
  2947. }
  2948. if (iNdEx + skippy) > l {
  2949. return io.ErrUnexpectedEOF
  2950. }
  2951. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2952. iNdEx += skippy
  2953. }
  2954. }
  2955. if iNdEx > l {
  2956. return io.ErrUnexpectedEOF
  2957. }
  2958. return nil
  2959. }
  2960. func (m *JoinChannelResponse) Unmarshal(dAtA []byte) error {
  2961. l := len(dAtA)
  2962. iNdEx := 0
  2963. for iNdEx < l {
  2964. preIndex := iNdEx
  2965. var wire uint64
  2966. for shift := uint(0); ; shift += 7 {
  2967. if shift >= 64 {
  2968. return ErrIntOverflowApi
  2969. }
  2970. if iNdEx >= l {
  2971. return io.ErrUnexpectedEOF
  2972. }
  2973. b := dAtA[iNdEx]
  2974. iNdEx++
  2975. wire |= (uint64(b) & 0x7F) << shift
  2976. if b < 0x80 {
  2977. break
  2978. }
  2979. }
  2980. fieldNum := int32(wire >> 3)
  2981. wireType := int(wire & 0x7)
  2982. if wireType == 4 {
  2983. return fmt.Errorf("proto: JoinChannelResponse: wiretype end group for non-group")
  2984. }
  2985. if fieldNum <= 0 {
  2986. return fmt.Errorf("proto: JoinChannelResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2987. }
  2988. switch fieldNum {
  2989. case 1:
  2990. if wireType != 0 {
  2991. return fmt.Errorf("proto: wrong wireType = %d for field CallId", wireType)
  2992. }
  2993. m.CallId = 0
  2994. for shift := uint(0); ; shift += 7 {
  2995. if shift >= 64 {
  2996. return ErrIntOverflowApi
  2997. }
  2998. if iNdEx >= l {
  2999. return io.ErrUnexpectedEOF
  3000. }
  3001. b := dAtA[iNdEx]
  3002. iNdEx++
  3003. m.CallId |= (uint32(b) & 0x7F) << shift
  3004. if b < 0x80 {
  3005. break
  3006. }
  3007. }
  3008. case 2:
  3009. if wireType != 2 {
  3010. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  3011. }
  3012. var stringLen uint64
  3013. for shift := uint(0); ; shift += 7 {
  3014. if shift >= 64 {
  3015. return ErrIntOverflowApi
  3016. }
  3017. if iNdEx >= l {
  3018. return io.ErrUnexpectedEOF
  3019. }
  3020. b := dAtA[iNdEx]
  3021. iNdEx++
  3022. stringLen |= (uint64(b) & 0x7F) << shift
  3023. if b < 0x80 {
  3024. break
  3025. }
  3026. }
  3027. intStringLen := int(stringLen)
  3028. if intStringLen < 0 {
  3029. return ErrInvalidLengthApi
  3030. }
  3031. postIndex := iNdEx + intStringLen
  3032. if postIndex > l {
  3033. return io.ErrUnexpectedEOF
  3034. }
  3035. m.Token = string(dAtA[iNdEx:postIndex])
  3036. iNdEx = postIndex
  3037. case 3:
  3038. if wireType != 2 {
  3039. return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
  3040. }
  3041. var msglen int
  3042. for shift := uint(0); ; shift += 7 {
  3043. if shift >= 64 {
  3044. return ErrIntOverflowApi
  3045. }
  3046. if iNdEx >= l {
  3047. return io.ErrUnexpectedEOF
  3048. }
  3049. b := dAtA[iNdEx]
  3050. iNdEx++
  3051. msglen |= (int(b) & 0x7F) << shift
  3052. if b < 0x80 {
  3053. break
  3054. }
  3055. }
  3056. if msglen < 0 {
  3057. return ErrInvalidLengthApi
  3058. }
  3059. postIndex := iNdEx + msglen
  3060. if postIndex > l {
  3061. return io.ErrUnexpectedEOF
  3062. }
  3063. m.Source = append(m.Source, &MediaSource{})
  3064. if err := m.Source[len(m.Source)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3065. return err
  3066. }
  3067. iNdEx = postIndex
  3068. default:
  3069. iNdEx = preIndex
  3070. skippy, err := skipApi(dAtA[iNdEx:])
  3071. if err != nil {
  3072. return err
  3073. }
  3074. if skippy < 0 {
  3075. return ErrInvalidLengthApi
  3076. }
  3077. if (iNdEx + skippy) > l {
  3078. return io.ErrUnexpectedEOF
  3079. }
  3080. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3081. iNdEx += skippy
  3082. }
  3083. }
  3084. if iNdEx > l {
  3085. return io.ErrUnexpectedEOF
  3086. }
  3087. return nil
  3088. }
  3089. func (m *LeaveChannelRequest) Unmarshal(dAtA []byte) error {
  3090. l := len(dAtA)
  3091. iNdEx := 0
  3092. for iNdEx < l {
  3093. preIndex := iNdEx
  3094. var wire uint64
  3095. for shift := uint(0); ; shift += 7 {
  3096. if shift >= 64 {
  3097. return ErrIntOverflowApi
  3098. }
  3099. if iNdEx >= l {
  3100. return io.ErrUnexpectedEOF
  3101. }
  3102. b := dAtA[iNdEx]
  3103. iNdEx++
  3104. wire |= (uint64(b) & 0x7F) << shift
  3105. if b < 0x80 {
  3106. break
  3107. }
  3108. }
  3109. fieldNum := int32(wire >> 3)
  3110. wireType := int(wire & 0x7)
  3111. if wireType == 4 {
  3112. return fmt.Errorf("proto: LeaveChannelRequest: wiretype end group for non-group")
  3113. }
  3114. if fieldNum <= 0 {
  3115. return fmt.Errorf("proto: LeaveChannelRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3116. }
  3117. switch fieldNum {
  3118. case 1:
  3119. if wireType != 0 {
  3120. return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
  3121. }
  3122. m.ChannelId = 0
  3123. for shift := uint(0); ; shift += 7 {
  3124. if shift >= 64 {
  3125. return ErrIntOverflowApi
  3126. }
  3127. if iNdEx >= l {
  3128. return io.ErrUnexpectedEOF
  3129. }
  3130. b := dAtA[iNdEx]
  3131. iNdEx++
  3132. m.ChannelId |= (uint64(b) & 0x7F) << shift
  3133. if b < 0x80 {
  3134. break
  3135. }
  3136. }
  3137. case 2:
  3138. if wireType != 0 {
  3139. return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
  3140. }
  3141. m.UserId = 0
  3142. for shift := uint(0); ; shift += 7 {
  3143. if shift >= 64 {
  3144. return ErrIntOverflowApi
  3145. }
  3146. if iNdEx >= l {
  3147. return io.ErrUnexpectedEOF
  3148. }
  3149. b := dAtA[iNdEx]
  3150. iNdEx++
  3151. m.UserId |= (uint64(b) & 0x7F) << shift
  3152. if b < 0x80 {
  3153. break
  3154. }
  3155. }
  3156. case 3:
  3157. if wireType != 0 {
  3158. return fmt.Errorf("proto: wrong wireType = %d for field CallId", wireType)
  3159. }
  3160. m.CallId = 0
  3161. for shift := uint(0); ; shift += 7 {
  3162. if shift >= 64 {
  3163. return ErrIntOverflowApi
  3164. }
  3165. if iNdEx >= l {
  3166. return io.ErrUnexpectedEOF
  3167. }
  3168. b := dAtA[iNdEx]
  3169. iNdEx++
  3170. m.CallId |= (uint32(b) & 0x7F) << shift
  3171. if b < 0x80 {
  3172. break
  3173. }
  3174. }
  3175. default:
  3176. iNdEx = preIndex
  3177. skippy, err := skipApi(dAtA[iNdEx:])
  3178. if err != nil {
  3179. return err
  3180. }
  3181. if skippy < 0 {
  3182. return ErrInvalidLengthApi
  3183. }
  3184. if (iNdEx + skippy) > l {
  3185. return io.ErrUnexpectedEOF
  3186. }
  3187. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3188. iNdEx += skippy
  3189. }
  3190. }
  3191. if iNdEx > l {
  3192. return io.ErrUnexpectedEOF
  3193. }
  3194. return nil
  3195. }
  3196. func (m *LeaveChannelResponse) Unmarshal(dAtA []byte) error {
  3197. l := len(dAtA)
  3198. iNdEx := 0
  3199. for iNdEx < l {
  3200. preIndex := iNdEx
  3201. var wire uint64
  3202. for shift := uint(0); ; shift += 7 {
  3203. if shift >= 64 {
  3204. return ErrIntOverflowApi
  3205. }
  3206. if iNdEx >= l {
  3207. return io.ErrUnexpectedEOF
  3208. }
  3209. b := dAtA[iNdEx]
  3210. iNdEx++
  3211. wire |= (uint64(b) & 0x7F) << shift
  3212. if b < 0x80 {
  3213. break
  3214. }
  3215. }
  3216. fieldNum := int32(wire >> 3)
  3217. wireType := int(wire & 0x7)
  3218. if wireType == 4 {
  3219. return fmt.Errorf("proto: LeaveChannelResponse: wiretype end group for non-group")
  3220. }
  3221. if fieldNum <= 0 {
  3222. return fmt.Errorf("proto: LeaveChannelResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3223. }
  3224. switch fieldNum {
  3225. default:
  3226. iNdEx = preIndex
  3227. skippy, err := skipApi(dAtA[iNdEx:])
  3228. if err != nil {
  3229. return err
  3230. }
  3231. if skippy < 0 {
  3232. return ErrInvalidLengthApi
  3233. }
  3234. if (iNdEx + skippy) > l {
  3235. return io.ErrUnexpectedEOF
  3236. }
  3237. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3238. iNdEx += skippy
  3239. }
  3240. }
  3241. if iNdEx > l {
  3242. return io.ErrUnexpectedEOF
  3243. }
  3244. return nil
  3245. }
  3246. func (m *PublishStreamRequest) Unmarshal(dAtA []byte) error {
  3247. l := len(dAtA)
  3248. iNdEx := 0
  3249. for iNdEx < l {
  3250. preIndex := iNdEx
  3251. var wire uint64
  3252. for shift := uint(0); ; shift += 7 {
  3253. if shift >= 64 {
  3254. return ErrIntOverflowApi
  3255. }
  3256. if iNdEx >= l {
  3257. return io.ErrUnexpectedEOF
  3258. }
  3259. b := dAtA[iNdEx]
  3260. iNdEx++
  3261. wire |= (uint64(b) & 0x7F) << shift
  3262. if b < 0x80 {
  3263. break
  3264. }
  3265. }
  3266. fieldNum := int32(wire >> 3)
  3267. wireType := int(wire & 0x7)
  3268. if wireType == 4 {
  3269. return fmt.Errorf("proto: PublishStreamRequest: wiretype end group for non-group")
  3270. }
  3271. if fieldNum <= 0 {
  3272. return fmt.Errorf("proto: PublishStreamRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3273. }
  3274. switch fieldNum {
  3275. case 1:
  3276. if wireType != 0 {
  3277. return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
  3278. }
  3279. m.ChannelId = 0
  3280. for shift := uint(0); ; shift += 7 {
  3281. if shift >= 64 {
  3282. return ErrIntOverflowApi
  3283. }
  3284. if iNdEx >= l {
  3285. return io.ErrUnexpectedEOF
  3286. }
  3287. b := dAtA[iNdEx]
  3288. iNdEx++
  3289. m.ChannelId |= (uint64(b) & 0x7F) << shift
  3290. if b < 0x80 {
  3291. break
  3292. }
  3293. }
  3294. case 2:
  3295. if wireType != 0 {
  3296. return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
  3297. }
  3298. m.UserId = 0
  3299. for shift := uint(0); ; shift += 7 {
  3300. if shift >= 64 {
  3301. return ErrIntOverflowApi
  3302. }
  3303. if iNdEx >= l {
  3304. return io.ErrUnexpectedEOF
  3305. }
  3306. b := dAtA[iNdEx]
  3307. iNdEx++
  3308. m.UserId |= (uint64(b) & 0x7F) << shift
  3309. if b < 0x80 {
  3310. break
  3311. }
  3312. }
  3313. case 3:
  3314. if wireType != 0 {
  3315. return fmt.Errorf("proto: wrong wireType = %d for field CallId", wireType)
  3316. }
  3317. m.CallId = 0
  3318. for shift := uint(0); ; shift += 7 {
  3319. if shift >= 64 {
  3320. return ErrIntOverflowApi
  3321. }
  3322. if iNdEx >= l {
  3323. return io.ErrUnexpectedEOF
  3324. }
  3325. b := dAtA[iNdEx]
  3326. iNdEx++
  3327. m.CallId |= (uint32(b) & 0x7F) << shift
  3328. if b < 0x80 {
  3329. break
  3330. }
  3331. }
  3332. case 4:
  3333. if wireType != 2 {
  3334. return fmt.Errorf("proto: wrong wireType = %d for field EncoderConfig", wireType)
  3335. }
  3336. var msglen int
  3337. for shift := uint(0); ; shift += 7 {
  3338. if shift >= 64 {
  3339. return ErrIntOverflowApi
  3340. }
  3341. if iNdEx >= l {
  3342. return io.ErrUnexpectedEOF
  3343. }
  3344. b := dAtA[iNdEx]
  3345. iNdEx++
  3346. msglen |= (int(b) & 0x7F) << shift
  3347. if b < 0x80 {
  3348. break
  3349. }
  3350. }
  3351. if msglen < 0 {
  3352. return ErrInvalidLengthApi
  3353. }
  3354. postIndex := iNdEx + msglen
  3355. if postIndex > l {
  3356. return io.ErrUnexpectedEOF
  3357. }
  3358. if m.EncoderConfig == nil {
  3359. m.EncoderConfig = &EncoderConfig{}
  3360. }
  3361. if err := m.EncoderConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3362. return err
  3363. }
  3364. iNdEx = postIndex
  3365. case 5:
  3366. if wireType != 2 {
  3367. return fmt.Errorf("proto: wrong wireType = %d for field MixConfig", wireType)
  3368. }
  3369. var stringLen uint64
  3370. for shift := uint(0); ; shift += 7 {
  3371. if shift >= 64 {
  3372. return ErrIntOverflowApi
  3373. }
  3374. if iNdEx >= l {
  3375. return io.ErrUnexpectedEOF
  3376. }
  3377. b := dAtA[iNdEx]
  3378. iNdEx++
  3379. stringLen |= (uint64(b) & 0x7F) << shift
  3380. if b < 0x80 {
  3381. break
  3382. }
  3383. }
  3384. intStringLen := int(stringLen)
  3385. if intStringLen < 0 {
  3386. return ErrInvalidLengthApi
  3387. }
  3388. postIndex := iNdEx + intStringLen
  3389. if postIndex > l {
  3390. return io.ErrUnexpectedEOF
  3391. }
  3392. m.MixConfig = string(dAtA[iNdEx:postIndex])
  3393. iNdEx = postIndex
  3394. default:
  3395. iNdEx = preIndex
  3396. skippy, err := skipApi(dAtA[iNdEx:])
  3397. if err != nil {
  3398. return err
  3399. }
  3400. if skippy < 0 {
  3401. return ErrInvalidLengthApi
  3402. }
  3403. if (iNdEx + skippy) > l {
  3404. return io.ErrUnexpectedEOF
  3405. }
  3406. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3407. iNdEx += skippy
  3408. }
  3409. }
  3410. if iNdEx > l {
  3411. return io.ErrUnexpectedEOF
  3412. }
  3413. return nil
  3414. }
  3415. func (m *PublishStreamResponse) Unmarshal(dAtA []byte) error {
  3416. l := len(dAtA)
  3417. iNdEx := 0
  3418. for iNdEx < l {
  3419. preIndex := iNdEx
  3420. var wire uint64
  3421. for shift := uint(0); ; shift += 7 {
  3422. if shift >= 64 {
  3423. return ErrIntOverflowApi
  3424. }
  3425. if iNdEx >= l {
  3426. return io.ErrUnexpectedEOF
  3427. }
  3428. b := dAtA[iNdEx]
  3429. iNdEx++
  3430. wire |= (uint64(b) & 0x7F) << shift
  3431. if b < 0x80 {
  3432. break
  3433. }
  3434. }
  3435. fieldNum := int32(wire >> 3)
  3436. wireType := int(wire & 0x7)
  3437. if wireType == 4 {
  3438. return fmt.Errorf("proto: PublishStreamResponse: wiretype end group for non-group")
  3439. }
  3440. if fieldNum <= 0 {
  3441. return fmt.Errorf("proto: PublishStreamResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3442. }
  3443. switch fieldNum {
  3444. default:
  3445. iNdEx = preIndex
  3446. skippy, err := skipApi(dAtA[iNdEx:])
  3447. if err != nil {
  3448. return err
  3449. }
  3450. if skippy < 0 {
  3451. return ErrInvalidLengthApi
  3452. }
  3453. if (iNdEx + skippy) > l {
  3454. return io.ErrUnexpectedEOF
  3455. }
  3456. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3457. iNdEx += skippy
  3458. }
  3459. }
  3460. if iNdEx > l {
  3461. return io.ErrUnexpectedEOF
  3462. }
  3463. return nil
  3464. }
  3465. func (m *TerminateStreamRequest) Unmarshal(dAtA []byte) error {
  3466. l := len(dAtA)
  3467. iNdEx := 0
  3468. for iNdEx < l {
  3469. preIndex := iNdEx
  3470. var wire uint64
  3471. for shift := uint(0); ; shift += 7 {
  3472. if shift >= 64 {
  3473. return ErrIntOverflowApi
  3474. }
  3475. if iNdEx >= l {
  3476. return io.ErrUnexpectedEOF
  3477. }
  3478. b := dAtA[iNdEx]
  3479. iNdEx++
  3480. wire |= (uint64(b) & 0x7F) << shift
  3481. if b < 0x80 {
  3482. break
  3483. }
  3484. }
  3485. fieldNum := int32(wire >> 3)
  3486. wireType := int(wire & 0x7)
  3487. if wireType == 4 {
  3488. return fmt.Errorf("proto: TerminateStreamRequest: wiretype end group for non-group")
  3489. }
  3490. if fieldNum <= 0 {
  3491. return fmt.Errorf("proto: TerminateStreamRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3492. }
  3493. switch fieldNum {
  3494. case 1:
  3495. if wireType != 0 {
  3496. return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
  3497. }
  3498. m.ChannelId = 0
  3499. for shift := uint(0); ; shift += 7 {
  3500. if shift >= 64 {
  3501. return ErrIntOverflowApi
  3502. }
  3503. if iNdEx >= l {
  3504. return io.ErrUnexpectedEOF
  3505. }
  3506. b := dAtA[iNdEx]
  3507. iNdEx++
  3508. m.ChannelId |= (uint64(b) & 0x7F) << shift
  3509. if b < 0x80 {
  3510. break
  3511. }
  3512. }
  3513. case 2:
  3514. if wireType != 0 {
  3515. return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
  3516. }
  3517. m.UserId = 0
  3518. for shift := uint(0); ; shift += 7 {
  3519. if shift >= 64 {
  3520. return ErrIntOverflowApi
  3521. }
  3522. if iNdEx >= l {
  3523. return io.ErrUnexpectedEOF
  3524. }
  3525. b := dAtA[iNdEx]
  3526. iNdEx++
  3527. m.UserId |= (uint64(b) & 0x7F) << shift
  3528. if b < 0x80 {
  3529. break
  3530. }
  3531. }
  3532. case 3:
  3533. if wireType != 0 {
  3534. return fmt.Errorf("proto: wrong wireType = %d for field CallId", wireType)
  3535. }
  3536. m.CallId = 0
  3537. for shift := uint(0); ; shift += 7 {
  3538. if shift >= 64 {
  3539. return ErrIntOverflowApi
  3540. }
  3541. if iNdEx >= l {
  3542. return io.ErrUnexpectedEOF
  3543. }
  3544. b := dAtA[iNdEx]
  3545. iNdEx++
  3546. m.CallId |= (uint32(b) & 0x7F) << shift
  3547. if b < 0x80 {
  3548. break
  3549. }
  3550. }
  3551. default:
  3552. iNdEx = preIndex
  3553. skippy, err := skipApi(dAtA[iNdEx:])
  3554. if err != nil {
  3555. return err
  3556. }
  3557. if skippy < 0 {
  3558. return ErrInvalidLengthApi
  3559. }
  3560. if (iNdEx + skippy) > l {
  3561. return io.ErrUnexpectedEOF
  3562. }
  3563. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3564. iNdEx += skippy
  3565. }
  3566. }
  3567. if iNdEx > l {
  3568. return io.ErrUnexpectedEOF
  3569. }
  3570. return nil
  3571. }
  3572. func (m *TerminateStreamResponse) Unmarshal(dAtA []byte) error {
  3573. l := len(dAtA)
  3574. iNdEx := 0
  3575. for iNdEx < l {
  3576. preIndex := iNdEx
  3577. var wire uint64
  3578. for shift := uint(0); ; shift += 7 {
  3579. if shift >= 64 {
  3580. return ErrIntOverflowApi
  3581. }
  3582. if iNdEx >= l {
  3583. return io.ErrUnexpectedEOF
  3584. }
  3585. b := dAtA[iNdEx]
  3586. iNdEx++
  3587. wire |= (uint64(b) & 0x7F) << shift
  3588. if b < 0x80 {
  3589. break
  3590. }
  3591. }
  3592. fieldNum := int32(wire >> 3)
  3593. wireType := int(wire & 0x7)
  3594. if wireType == 4 {
  3595. return fmt.Errorf("proto: TerminateStreamResponse: wiretype end group for non-group")
  3596. }
  3597. if fieldNum <= 0 {
  3598. return fmt.Errorf("proto: TerminateStreamResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3599. }
  3600. switch fieldNum {
  3601. default:
  3602. iNdEx = preIndex
  3603. skippy, err := skipApi(dAtA[iNdEx:])
  3604. if err != nil {
  3605. return err
  3606. }
  3607. if skippy < 0 {
  3608. return ErrInvalidLengthApi
  3609. }
  3610. if (iNdEx + skippy) > l {
  3611. return io.ErrUnexpectedEOF
  3612. }
  3613. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3614. iNdEx += skippy
  3615. }
  3616. }
  3617. if iNdEx > l {
  3618. return io.ErrUnexpectedEOF
  3619. }
  3620. return nil
  3621. }
  3622. func (m *ChannelRequest) Unmarshal(dAtA []byte) error {
  3623. l := len(dAtA)
  3624. iNdEx := 0
  3625. for iNdEx < l {
  3626. preIndex := iNdEx
  3627. var wire uint64
  3628. for shift := uint(0); ; shift += 7 {
  3629. if shift >= 64 {
  3630. return ErrIntOverflowApi
  3631. }
  3632. if iNdEx >= l {
  3633. return io.ErrUnexpectedEOF
  3634. }
  3635. b := dAtA[iNdEx]
  3636. iNdEx++
  3637. wire |= (uint64(b) & 0x7F) << shift
  3638. if b < 0x80 {
  3639. break
  3640. }
  3641. }
  3642. fieldNum := int32(wire >> 3)
  3643. wireType := int(wire & 0x7)
  3644. if wireType == 4 {
  3645. return fmt.Errorf("proto: ChannelRequest: wiretype end group for non-group")
  3646. }
  3647. if fieldNum <= 0 {
  3648. return fmt.Errorf("proto: ChannelRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3649. }
  3650. switch fieldNum {
  3651. case 1:
  3652. if wireType != 0 {
  3653. return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
  3654. }
  3655. m.ChannelId = 0
  3656. for shift := uint(0); ; shift += 7 {
  3657. if shift >= 64 {
  3658. return ErrIntOverflowApi
  3659. }
  3660. if iNdEx >= l {
  3661. return io.ErrUnexpectedEOF
  3662. }
  3663. b := dAtA[iNdEx]
  3664. iNdEx++
  3665. m.ChannelId |= (uint64(b) & 0x7F) << shift
  3666. if b < 0x80 {
  3667. break
  3668. }
  3669. }
  3670. default:
  3671. iNdEx = preIndex
  3672. skippy, err := skipApi(dAtA[iNdEx:])
  3673. if err != nil {
  3674. return err
  3675. }
  3676. if skippy < 0 {
  3677. return ErrInvalidLengthApi
  3678. }
  3679. if (iNdEx + skippy) > l {
  3680. return io.ErrUnexpectedEOF
  3681. }
  3682. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3683. iNdEx += skippy
  3684. }
  3685. }
  3686. if iNdEx > l {
  3687. return io.ErrUnexpectedEOF
  3688. }
  3689. return nil
  3690. }
  3691. func (m *ChannelResponse) Unmarshal(dAtA []byte) error {
  3692. l := len(dAtA)
  3693. iNdEx := 0
  3694. for iNdEx < l {
  3695. preIndex := iNdEx
  3696. var wire uint64
  3697. for shift := uint(0); ; shift += 7 {
  3698. if shift >= 64 {
  3699. return ErrIntOverflowApi
  3700. }
  3701. if iNdEx >= l {
  3702. return io.ErrUnexpectedEOF
  3703. }
  3704. b := dAtA[iNdEx]
  3705. iNdEx++
  3706. wire |= (uint64(b) & 0x7F) << shift
  3707. if b < 0x80 {
  3708. break
  3709. }
  3710. }
  3711. fieldNum := int32(wire >> 3)
  3712. wireType := int(wire & 0x7)
  3713. if wireType == 4 {
  3714. return fmt.Errorf("proto: ChannelResponse: wiretype end group for non-group")
  3715. }
  3716. if fieldNum <= 0 {
  3717. return fmt.Errorf("proto: ChannelResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3718. }
  3719. switch fieldNum {
  3720. case 1:
  3721. if wireType != 2 {
  3722. return fmt.Errorf("proto: wrong wireType = %d for field MediaSource", wireType)
  3723. }
  3724. var msglen int
  3725. for shift := uint(0); ; shift += 7 {
  3726. if shift >= 64 {
  3727. return ErrIntOverflowApi
  3728. }
  3729. if iNdEx >= l {
  3730. return io.ErrUnexpectedEOF
  3731. }
  3732. b := dAtA[iNdEx]
  3733. iNdEx++
  3734. msglen |= (int(b) & 0x7F) << shift
  3735. if b < 0x80 {
  3736. break
  3737. }
  3738. }
  3739. if msglen < 0 {
  3740. return ErrInvalidLengthApi
  3741. }
  3742. postIndex := iNdEx + msglen
  3743. if postIndex > l {
  3744. return io.ErrUnexpectedEOF
  3745. }
  3746. m.MediaSource = append(m.MediaSource, &MediaSource{})
  3747. if err := m.MediaSource[len(m.MediaSource)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3748. return err
  3749. }
  3750. iNdEx = postIndex
  3751. case 2:
  3752. if wireType != 2 {
  3753. return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType)
  3754. }
  3755. var stringLen uint64
  3756. for shift := uint(0); ; shift += 7 {
  3757. if shift >= 64 {
  3758. return ErrIntOverflowApi
  3759. }
  3760. if iNdEx >= l {
  3761. return io.ErrUnexpectedEOF
  3762. }
  3763. b := dAtA[iNdEx]
  3764. iNdEx++
  3765. stringLen |= (uint64(b) & 0x7F) << shift
  3766. if b < 0x80 {
  3767. break
  3768. }
  3769. }
  3770. intStringLen := int(stringLen)
  3771. if intStringLen < 0 {
  3772. return ErrInvalidLengthApi
  3773. }
  3774. postIndex := iNdEx + intStringLen
  3775. if postIndex > l {
  3776. return io.ErrUnexpectedEOF
  3777. }
  3778. m.Server = string(dAtA[iNdEx:postIndex])
  3779. iNdEx = postIndex
  3780. case 3:
  3781. if wireType != 0 {
  3782. return fmt.Errorf("proto: wrong wireType = %d for field TcpPort", wireType)
  3783. }
  3784. m.TcpPort = 0
  3785. for shift := uint(0); ; shift += 7 {
  3786. if shift >= 64 {
  3787. return ErrIntOverflowApi
  3788. }
  3789. if iNdEx >= l {
  3790. return io.ErrUnexpectedEOF
  3791. }
  3792. b := dAtA[iNdEx]
  3793. iNdEx++
  3794. m.TcpPort |= (uint32(b) & 0x7F) << shift
  3795. if b < 0x80 {
  3796. break
  3797. }
  3798. }
  3799. case 4:
  3800. if wireType != 0 {
  3801. return fmt.Errorf("proto: wrong wireType = %d for field UdpPort", wireType)
  3802. }
  3803. m.UdpPort = 0
  3804. for shift := uint(0); ; shift += 7 {
  3805. if shift >= 64 {
  3806. return ErrIntOverflowApi
  3807. }
  3808. if iNdEx >= l {
  3809. return io.ErrUnexpectedEOF
  3810. }
  3811. b := dAtA[iNdEx]
  3812. iNdEx++
  3813. m.UdpPort |= (uint32(b) & 0x7F) << shift
  3814. if b < 0x80 {
  3815. break
  3816. }
  3817. }
  3818. default:
  3819. iNdEx = preIndex
  3820. skippy, err := skipApi(dAtA[iNdEx:])
  3821. if err != nil {
  3822. return err
  3823. }
  3824. if skippy < 0 {
  3825. return ErrInvalidLengthApi
  3826. }
  3827. if (iNdEx + skippy) > l {
  3828. return io.ErrUnexpectedEOF
  3829. }
  3830. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3831. iNdEx += skippy
  3832. }
  3833. }
  3834. if iNdEx > l {
  3835. return io.ErrUnexpectedEOF
  3836. }
  3837. return nil
  3838. }
  3839. func (m *StreamRequest) Unmarshal(dAtA []byte) error {
  3840. l := len(dAtA)
  3841. iNdEx := 0
  3842. for iNdEx < l {
  3843. preIndex := iNdEx
  3844. var wire uint64
  3845. for shift := uint(0); ; shift += 7 {
  3846. if shift >= 64 {
  3847. return ErrIntOverflowApi
  3848. }
  3849. if iNdEx >= l {
  3850. return io.ErrUnexpectedEOF
  3851. }
  3852. b := dAtA[iNdEx]
  3853. iNdEx++
  3854. wire |= (uint64(b) & 0x7F) << shift
  3855. if b < 0x80 {
  3856. break
  3857. }
  3858. }
  3859. fieldNum := int32(wire >> 3)
  3860. wireType := int(wire & 0x7)
  3861. if wireType == 4 {
  3862. return fmt.Errorf("proto: StreamRequest: wiretype end group for non-group")
  3863. }
  3864. if fieldNum <= 0 {
  3865. return fmt.Errorf("proto: StreamRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3866. }
  3867. switch fieldNum {
  3868. case 1:
  3869. if wireType != 0 {
  3870. return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
  3871. }
  3872. m.ChannelId = 0
  3873. for shift := uint(0); ; shift += 7 {
  3874. if shift >= 64 {
  3875. return ErrIntOverflowApi
  3876. }
  3877. if iNdEx >= l {
  3878. return io.ErrUnexpectedEOF
  3879. }
  3880. b := dAtA[iNdEx]
  3881. iNdEx++
  3882. m.ChannelId |= (uint64(b) & 0x7F) << shift
  3883. if b < 0x80 {
  3884. break
  3885. }
  3886. }
  3887. case 2:
  3888. if wireType != 0 {
  3889. return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
  3890. }
  3891. m.UserId = 0
  3892. for shift := uint(0); ; shift += 7 {
  3893. if shift >= 64 {
  3894. return ErrIntOverflowApi
  3895. }
  3896. if iNdEx >= l {
  3897. return io.ErrUnexpectedEOF
  3898. }
  3899. b := dAtA[iNdEx]
  3900. iNdEx++
  3901. m.UserId |= (uint64(b) & 0x7F) << shift
  3902. if b < 0x80 {
  3903. break
  3904. }
  3905. }
  3906. case 3:
  3907. if wireType != 0 {
  3908. return fmt.Errorf("proto: wrong wireType = %d for field CallId", wireType)
  3909. }
  3910. m.CallId = 0
  3911. for shift := uint(0); ; shift += 7 {
  3912. if shift >= 64 {
  3913. return ErrIntOverflowApi
  3914. }
  3915. if iNdEx >= l {
  3916. return io.ErrUnexpectedEOF
  3917. }
  3918. b := dAtA[iNdEx]
  3919. iNdEx++
  3920. m.CallId |= (uint32(b) & 0x7F) << shift
  3921. if b < 0x80 {
  3922. break
  3923. }
  3924. }
  3925. default:
  3926. iNdEx = preIndex
  3927. skippy, err := skipApi(dAtA[iNdEx:])
  3928. if err != nil {
  3929. return err
  3930. }
  3931. if skippy < 0 {
  3932. return ErrInvalidLengthApi
  3933. }
  3934. if (iNdEx + skippy) > l {
  3935. return io.ErrUnexpectedEOF
  3936. }
  3937. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3938. iNdEx += skippy
  3939. }
  3940. }
  3941. if iNdEx > l {
  3942. return io.ErrUnexpectedEOF
  3943. }
  3944. return nil
  3945. }
  3946. func (m *StreamResponse) Unmarshal(dAtA []byte) error {
  3947. l := len(dAtA)
  3948. iNdEx := 0
  3949. for iNdEx < l {
  3950. preIndex := iNdEx
  3951. var wire uint64
  3952. for shift := uint(0); ; shift += 7 {
  3953. if shift >= 64 {
  3954. return ErrIntOverflowApi
  3955. }
  3956. if iNdEx >= l {
  3957. return io.ErrUnexpectedEOF
  3958. }
  3959. b := dAtA[iNdEx]
  3960. iNdEx++
  3961. wire |= (uint64(b) & 0x7F) << shift
  3962. if b < 0x80 {
  3963. break
  3964. }
  3965. }
  3966. fieldNum := int32(wire >> 3)
  3967. wireType := int(wire & 0x7)
  3968. if wireType == 4 {
  3969. return fmt.Errorf("proto: StreamResponse: wiretype end group for non-group")
  3970. }
  3971. if fieldNum <= 0 {
  3972. return fmt.Errorf("proto: StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3973. }
  3974. switch fieldNum {
  3975. case 1:
  3976. if wireType != 2 {
  3977. return fmt.Errorf("proto: wrong wireType = %d for field EncoderConfig", wireType)
  3978. }
  3979. var msglen int
  3980. for shift := uint(0); ; shift += 7 {
  3981. if shift >= 64 {
  3982. return ErrIntOverflowApi
  3983. }
  3984. if iNdEx >= l {
  3985. return io.ErrUnexpectedEOF
  3986. }
  3987. b := dAtA[iNdEx]
  3988. iNdEx++
  3989. msglen |= (int(b) & 0x7F) << shift
  3990. if b < 0x80 {
  3991. break
  3992. }
  3993. }
  3994. if msglen < 0 {
  3995. return ErrInvalidLengthApi
  3996. }
  3997. postIndex := iNdEx + msglen
  3998. if postIndex > l {
  3999. return io.ErrUnexpectedEOF
  4000. }
  4001. if m.EncoderConfig == nil {
  4002. m.EncoderConfig = &EncoderConfig{}
  4003. }
  4004. if err := m.EncoderConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4005. return err
  4006. }
  4007. iNdEx = postIndex
  4008. case 2:
  4009. if wireType != 2 {
  4010. return fmt.Errorf("proto: wrong wireType = %d for field MixConfig", wireType)
  4011. }
  4012. var stringLen uint64
  4013. for shift := uint(0); ; shift += 7 {
  4014. if shift >= 64 {
  4015. return ErrIntOverflowApi
  4016. }
  4017. if iNdEx >= l {
  4018. return io.ErrUnexpectedEOF
  4019. }
  4020. b := dAtA[iNdEx]
  4021. iNdEx++
  4022. stringLen |= (uint64(b) & 0x7F) << shift
  4023. if b < 0x80 {
  4024. break
  4025. }
  4026. }
  4027. intStringLen := int(stringLen)
  4028. if intStringLen < 0 {
  4029. return ErrInvalidLengthApi
  4030. }
  4031. postIndex := iNdEx + intStringLen
  4032. if postIndex > l {
  4033. return io.ErrUnexpectedEOF
  4034. }
  4035. m.MixConfig = string(dAtA[iNdEx:postIndex])
  4036. iNdEx = postIndex
  4037. default:
  4038. iNdEx = preIndex
  4039. skippy, err := skipApi(dAtA[iNdEx:])
  4040. if err != nil {
  4041. return err
  4042. }
  4043. if skippy < 0 {
  4044. return ErrInvalidLengthApi
  4045. }
  4046. if (iNdEx + skippy) > l {
  4047. return io.ErrUnexpectedEOF
  4048. }
  4049. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4050. iNdEx += skippy
  4051. }
  4052. }
  4053. if iNdEx > l {
  4054. return io.ErrUnexpectedEOF
  4055. }
  4056. return nil
  4057. }
  4058. func (m *SetRtcConfigRequest) Unmarshal(dAtA []byte) error {
  4059. l := len(dAtA)
  4060. iNdEx := 0
  4061. for iNdEx < l {
  4062. preIndex := iNdEx
  4063. var wire uint64
  4064. for shift := uint(0); ; shift += 7 {
  4065. if shift >= 64 {
  4066. return ErrIntOverflowApi
  4067. }
  4068. if iNdEx >= l {
  4069. return io.ErrUnexpectedEOF
  4070. }
  4071. b := dAtA[iNdEx]
  4072. iNdEx++
  4073. wire |= (uint64(b) & 0x7F) << shift
  4074. if b < 0x80 {
  4075. break
  4076. }
  4077. }
  4078. fieldNum := int32(wire >> 3)
  4079. wireType := int(wire & 0x7)
  4080. if wireType == 4 {
  4081. return fmt.Errorf("proto: SetRtcConfigRequest: wiretype end group for non-group")
  4082. }
  4083. if fieldNum <= 0 {
  4084. return fmt.Errorf("proto: SetRtcConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4085. }
  4086. switch fieldNum {
  4087. case 1:
  4088. if wireType != 0 {
  4089. return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
  4090. }
  4091. m.ChannelId = 0
  4092. for shift := uint(0); ; shift += 7 {
  4093. if shift >= 64 {
  4094. return ErrIntOverflowApi
  4095. }
  4096. if iNdEx >= l {
  4097. return io.ErrUnexpectedEOF
  4098. }
  4099. b := dAtA[iNdEx]
  4100. iNdEx++
  4101. m.ChannelId |= (uint64(b) & 0x7F) << shift
  4102. if b < 0x80 {
  4103. break
  4104. }
  4105. }
  4106. case 2:
  4107. if wireType != 0 {
  4108. return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
  4109. }
  4110. m.UserId = 0
  4111. for shift := uint(0); ; shift += 7 {
  4112. if shift >= 64 {
  4113. return ErrIntOverflowApi
  4114. }
  4115. if iNdEx >= l {
  4116. return io.ErrUnexpectedEOF
  4117. }
  4118. b := dAtA[iNdEx]
  4119. iNdEx++
  4120. m.UserId |= (uint64(b) & 0x7F) << shift
  4121. if b < 0x80 {
  4122. break
  4123. }
  4124. }
  4125. case 3:
  4126. if wireType != 0 {
  4127. return fmt.Errorf("proto: wrong wireType = %d for field CallId", wireType)
  4128. }
  4129. m.CallId = 0
  4130. for shift := uint(0); ; shift += 7 {
  4131. if shift >= 64 {
  4132. return ErrIntOverflowApi
  4133. }
  4134. if iNdEx >= l {
  4135. return io.ErrUnexpectedEOF
  4136. }
  4137. b := dAtA[iNdEx]
  4138. iNdEx++
  4139. m.CallId |= (uint32(b) & 0x7F) << shift
  4140. if b < 0x80 {
  4141. break
  4142. }
  4143. }
  4144. case 4:
  4145. if wireType != 2 {
  4146. return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType)
  4147. }
  4148. var stringLen uint64
  4149. for shift := uint(0); ; shift += 7 {
  4150. if shift >= 64 {
  4151. return ErrIntOverflowApi
  4152. }
  4153. if iNdEx >= l {
  4154. return io.ErrUnexpectedEOF
  4155. }
  4156. b := dAtA[iNdEx]
  4157. iNdEx++
  4158. stringLen |= (uint64(b) & 0x7F) << shift
  4159. if b < 0x80 {
  4160. break
  4161. }
  4162. }
  4163. intStringLen := int(stringLen)
  4164. if intStringLen < 0 {
  4165. return ErrInvalidLengthApi
  4166. }
  4167. postIndex := iNdEx + intStringLen
  4168. if postIndex > l {
  4169. return io.ErrUnexpectedEOF
  4170. }
  4171. m.Config = string(dAtA[iNdEx:postIndex])
  4172. iNdEx = postIndex
  4173. default:
  4174. iNdEx = preIndex
  4175. skippy, err := skipApi(dAtA[iNdEx:])
  4176. if err != nil {
  4177. return err
  4178. }
  4179. if skippy < 0 {
  4180. return ErrInvalidLengthApi
  4181. }
  4182. if (iNdEx + skippy) > l {
  4183. return io.ErrUnexpectedEOF
  4184. }
  4185. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4186. iNdEx += skippy
  4187. }
  4188. }
  4189. if iNdEx > l {
  4190. return io.ErrUnexpectedEOF
  4191. }
  4192. return nil
  4193. }
  4194. func (m *SetRtcConfigResponse) Unmarshal(dAtA []byte) error {
  4195. l := len(dAtA)
  4196. iNdEx := 0
  4197. for iNdEx < l {
  4198. preIndex := iNdEx
  4199. var wire uint64
  4200. for shift := uint(0); ; shift += 7 {
  4201. if shift >= 64 {
  4202. return ErrIntOverflowApi
  4203. }
  4204. if iNdEx >= l {
  4205. return io.ErrUnexpectedEOF
  4206. }
  4207. b := dAtA[iNdEx]
  4208. iNdEx++
  4209. wire |= (uint64(b) & 0x7F) << shift
  4210. if b < 0x80 {
  4211. break
  4212. }
  4213. }
  4214. fieldNum := int32(wire >> 3)
  4215. wireType := int(wire & 0x7)
  4216. if wireType == 4 {
  4217. return fmt.Errorf("proto: SetRtcConfigResponse: wiretype end group for non-group")
  4218. }
  4219. if fieldNum <= 0 {
  4220. return fmt.Errorf("proto: SetRtcConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4221. }
  4222. switch fieldNum {
  4223. default:
  4224. iNdEx = preIndex
  4225. skippy, err := skipApi(dAtA[iNdEx:])
  4226. if err != nil {
  4227. return err
  4228. }
  4229. if skippy < 0 {
  4230. return ErrInvalidLengthApi
  4231. }
  4232. if (iNdEx + skippy) > l {
  4233. return io.ErrUnexpectedEOF
  4234. }
  4235. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4236. iNdEx += skippy
  4237. }
  4238. }
  4239. if iNdEx > l {
  4240. return io.ErrUnexpectedEOF
  4241. }
  4242. return nil
  4243. }
  4244. func (m *VerifyTokenRequest) Unmarshal(dAtA []byte) error {
  4245. l := len(dAtA)
  4246. iNdEx := 0
  4247. for iNdEx < l {
  4248. preIndex := iNdEx
  4249. var wire uint64
  4250. for shift := uint(0); ; shift += 7 {
  4251. if shift >= 64 {
  4252. return ErrIntOverflowApi
  4253. }
  4254. if iNdEx >= l {
  4255. return io.ErrUnexpectedEOF
  4256. }
  4257. b := dAtA[iNdEx]
  4258. iNdEx++
  4259. wire |= (uint64(b) & 0x7F) << shift
  4260. if b < 0x80 {
  4261. break
  4262. }
  4263. }
  4264. fieldNum := int32(wire >> 3)
  4265. wireType := int(wire & 0x7)
  4266. if wireType == 4 {
  4267. return fmt.Errorf("proto: VerifyTokenRequest: wiretype end group for non-group")
  4268. }
  4269. if fieldNum <= 0 {
  4270. return fmt.Errorf("proto: VerifyTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4271. }
  4272. switch fieldNum {
  4273. case 1:
  4274. if wireType != 0 {
  4275. return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
  4276. }
  4277. m.ChannelId = 0
  4278. for shift := uint(0); ; shift += 7 {
  4279. if shift >= 64 {
  4280. return ErrIntOverflowApi
  4281. }
  4282. if iNdEx >= l {
  4283. return io.ErrUnexpectedEOF
  4284. }
  4285. b := dAtA[iNdEx]
  4286. iNdEx++
  4287. m.ChannelId |= (uint64(b) & 0x7F) << shift
  4288. if b < 0x80 {
  4289. break
  4290. }
  4291. }
  4292. case 2:
  4293. if wireType != 0 {
  4294. return fmt.Errorf("proto: wrong wireType = %d for field CallId", wireType)
  4295. }
  4296. m.CallId = 0
  4297. for shift := uint(0); ; shift += 7 {
  4298. if shift >= 64 {
  4299. return ErrIntOverflowApi
  4300. }
  4301. if iNdEx >= l {
  4302. return io.ErrUnexpectedEOF
  4303. }
  4304. b := dAtA[iNdEx]
  4305. iNdEx++
  4306. m.CallId |= (uint32(b) & 0x7F) << shift
  4307. if b < 0x80 {
  4308. break
  4309. }
  4310. }
  4311. case 3:
  4312. if wireType != 2 {
  4313. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  4314. }
  4315. var stringLen uint64
  4316. for shift := uint(0); ; shift += 7 {
  4317. if shift >= 64 {
  4318. return ErrIntOverflowApi
  4319. }
  4320. if iNdEx >= l {
  4321. return io.ErrUnexpectedEOF
  4322. }
  4323. b := dAtA[iNdEx]
  4324. iNdEx++
  4325. stringLen |= (uint64(b) & 0x7F) << shift
  4326. if b < 0x80 {
  4327. break
  4328. }
  4329. }
  4330. intStringLen := int(stringLen)
  4331. if intStringLen < 0 {
  4332. return ErrInvalidLengthApi
  4333. }
  4334. postIndex := iNdEx + intStringLen
  4335. if postIndex > l {
  4336. return io.ErrUnexpectedEOF
  4337. }
  4338. m.Token = string(dAtA[iNdEx:postIndex])
  4339. iNdEx = postIndex
  4340. default:
  4341. iNdEx = preIndex
  4342. skippy, err := skipApi(dAtA[iNdEx:])
  4343. if err != nil {
  4344. return err
  4345. }
  4346. if skippy < 0 {
  4347. return ErrInvalidLengthApi
  4348. }
  4349. if (iNdEx + skippy) > l {
  4350. return io.ErrUnexpectedEOF
  4351. }
  4352. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4353. iNdEx += skippy
  4354. }
  4355. }
  4356. if iNdEx > l {
  4357. return io.ErrUnexpectedEOF
  4358. }
  4359. return nil
  4360. }
  4361. func (m *VerifyTokenResponse) Unmarshal(dAtA []byte) error {
  4362. l := len(dAtA)
  4363. iNdEx := 0
  4364. for iNdEx < l {
  4365. preIndex := iNdEx
  4366. var wire uint64
  4367. for shift := uint(0); ; shift += 7 {
  4368. if shift >= 64 {
  4369. return ErrIntOverflowApi
  4370. }
  4371. if iNdEx >= l {
  4372. return io.ErrUnexpectedEOF
  4373. }
  4374. b := dAtA[iNdEx]
  4375. iNdEx++
  4376. wire |= (uint64(b) & 0x7F) << shift
  4377. if b < 0x80 {
  4378. break
  4379. }
  4380. }
  4381. fieldNum := int32(wire >> 3)
  4382. wireType := int(wire & 0x7)
  4383. if wireType == 4 {
  4384. return fmt.Errorf("proto: VerifyTokenResponse: wiretype end group for non-group")
  4385. }
  4386. if fieldNum <= 0 {
  4387. return fmt.Errorf("proto: VerifyTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4388. }
  4389. switch fieldNum {
  4390. case 1:
  4391. if wireType != 0 {
  4392. return fmt.Errorf("proto: wrong wireType = %d for field Pass", wireType)
  4393. }
  4394. var v int
  4395. for shift := uint(0); ; shift += 7 {
  4396. if shift >= 64 {
  4397. return ErrIntOverflowApi
  4398. }
  4399. if iNdEx >= l {
  4400. return io.ErrUnexpectedEOF
  4401. }
  4402. b := dAtA[iNdEx]
  4403. iNdEx++
  4404. v |= (int(b) & 0x7F) << shift
  4405. if b < 0x80 {
  4406. break
  4407. }
  4408. }
  4409. m.Pass = bool(v != 0)
  4410. default:
  4411. iNdEx = preIndex
  4412. skippy, err := skipApi(dAtA[iNdEx:])
  4413. if err != nil {
  4414. return err
  4415. }
  4416. if skippy < 0 {
  4417. return ErrInvalidLengthApi
  4418. }
  4419. if (iNdEx + skippy) > l {
  4420. return io.ErrUnexpectedEOF
  4421. }
  4422. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4423. iNdEx += skippy
  4424. }
  4425. }
  4426. if iNdEx > l {
  4427. return io.ErrUnexpectedEOF
  4428. }
  4429. return nil
  4430. }
  4431. func skipApi(dAtA []byte) (n int, err error) {
  4432. l := len(dAtA)
  4433. iNdEx := 0
  4434. for iNdEx < l {
  4435. var wire uint64
  4436. for shift := uint(0); ; shift += 7 {
  4437. if shift >= 64 {
  4438. return 0, ErrIntOverflowApi
  4439. }
  4440. if iNdEx >= l {
  4441. return 0, io.ErrUnexpectedEOF
  4442. }
  4443. b := dAtA[iNdEx]
  4444. iNdEx++
  4445. wire |= (uint64(b) & 0x7F) << shift
  4446. if b < 0x80 {
  4447. break
  4448. }
  4449. }
  4450. wireType := int(wire & 0x7)
  4451. switch wireType {
  4452. case 0:
  4453. for shift := uint(0); ; shift += 7 {
  4454. if shift >= 64 {
  4455. return 0, ErrIntOverflowApi
  4456. }
  4457. if iNdEx >= l {
  4458. return 0, io.ErrUnexpectedEOF
  4459. }
  4460. iNdEx++
  4461. if dAtA[iNdEx-1] < 0x80 {
  4462. break
  4463. }
  4464. }
  4465. return iNdEx, nil
  4466. case 1:
  4467. iNdEx += 8
  4468. return iNdEx, nil
  4469. case 2:
  4470. var length int
  4471. for shift := uint(0); ; shift += 7 {
  4472. if shift >= 64 {
  4473. return 0, ErrIntOverflowApi
  4474. }
  4475. if iNdEx >= l {
  4476. return 0, io.ErrUnexpectedEOF
  4477. }
  4478. b := dAtA[iNdEx]
  4479. iNdEx++
  4480. length |= (int(b) & 0x7F) << shift
  4481. if b < 0x80 {
  4482. break
  4483. }
  4484. }
  4485. iNdEx += length
  4486. if length < 0 {
  4487. return 0, ErrInvalidLengthApi
  4488. }
  4489. return iNdEx, nil
  4490. case 3:
  4491. for {
  4492. var innerWire uint64
  4493. var start int = iNdEx
  4494. for shift := uint(0); ; shift += 7 {
  4495. if shift >= 64 {
  4496. return 0, ErrIntOverflowApi
  4497. }
  4498. if iNdEx >= l {
  4499. return 0, io.ErrUnexpectedEOF
  4500. }
  4501. b := dAtA[iNdEx]
  4502. iNdEx++
  4503. innerWire |= (uint64(b) & 0x7F) << shift
  4504. if b < 0x80 {
  4505. break
  4506. }
  4507. }
  4508. innerWireType := int(innerWire & 0x7)
  4509. if innerWireType == 4 {
  4510. break
  4511. }
  4512. next, err := skipApi(dAtA[start:])
  4513. if err != nil {
  4514. return 0, err
  4515. }
  4516. iNdEx = start + next
  4517. }
  4518. return iNdEx, nil
  4519. case 4:
  4520. return iNdEx, nil
  4521. case 5:
  4522. iNdEx += 4
  4523. return iNdEx, nil
  4524. default:
  4525. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4526. }
  4527. }
  4528. panic("unreachable")
  4529. }
  4530. var (
  4531. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  4532. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  4533. )
  4534. func init() {
  4535. proto.RegisterFile("app/service/live/rtc/api/v1/api.proto", fileDescriptor_api_cc75e2c1742b635b)
  4536. }
  4537. var fileDescriptor_api_cc75e2c1742b635b = []byte{
  4538. // 1116 bytes of a gzipped FileDescriptorProto
  4539. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x6e, 0x23, 0xc5,
  4540. 0x13, 0xff, 0xb7, 0xed, 0xd8, 0x71, 0x39, 0x76, 0xfc, 0x6f, 0x67, 0x77, 0x8d, 0x37, 0xca, 0x98,
  4541. 0x61, 0x57, 0xe4, 0x12, 0x9b, 0x64, 0x25, 0x24, 0x24, 0x24, 0xc8, 0x97, 0x20, 0xab, 0x44, 0x89,
  4542. 0xda, 0xd9, 0x1c, 0x10, 0x92, 0x35, 0x99, 0x69, 0xc7, 0x2d, 0x6c, 0xcf, 0x30, 0x33, 0x36, 0x9b,
  4543. 0x57, 0xd8, 0x13, 0x02, 0x09, 0x24, 0xee, 0xbc, 0x01, 0x07, 0x1e, 0x81, 0x23, 0x27, 0x8e, 0x06,
  4544. 0xe5, 0xe8, 0xa7, 0x40, 0x5d, 0xdd, 0x8e, 0x67, 0x9c, 0x49, 0x16, 0x2d, 0x08, 0x72, 0x99, 0xae,
  4545. 0xaa, 0xae, 0x6a, 0xff, 0xea, 0xdb, 0xf0, 0xd4, 0xf2, 0xbc, 0x66, 0xc0, 0xfd, 0x91, 0xb0, 0x79,
  4546. 0xb3, 0x27, 0x46, 0xbc, 0xe9, 0x87, 0x76, 0xd3, 0xf2, 0x44, 0x73, 0xb4, 0x29, 0x8f, 0x86, 0xe7,
  4547. 0xbb, 0xa1, 0x4b, 0x0b, 0xf2, 0xaa, 0xe1, 0x87, 0x76, 0x63, 0xb4, 0x59, 0xdb, 0xb8, 0x10, 0x61,
  4548. 0x77, 0x78, 0xde, 0xb0, 0xdd, 0x7e, 0xf3, 0xc2, 0xbd, 0x70, 0x9b, 0xa8, 0x73, 0x3e, 0xec, 0x20,
  4549. 0x87, 0x0c, 0x52, 0xca, 0xd6, 0xfc, 0x39, 0x05, 0x85, 0x23, 0xee, 0x08, 0xab, 0xe5, 0x0e, 0x7d,
  4550. 0x9b, 0xd3, 0x8f, 0x21, 0x13, 0x5e, 0x7a, 0xbc, 0x4a, 0xea, 0x64, 0xbd, 0xb4, 0x65, 0x36, 0x22,
  4551. 0x4f, 0x37, 0x22, 0x7a, 0x8a, 0x3e, 0xbd, 0xf4, 0xf8, 0xce, 0xe2, 0x64, 0x6c, 0xa0, 0x0d, 0xc3,
  4552. 0x2f, 0x35, 0x60, 0xc1, 0x76, 0x1d, 0x6e, 0x57, 0x53, 0x75, 0xb2, 0x9e, 0xdf, 0xc9, 0x4f, 0xc6,
  4553. 0x86, 0x12, 0x30, 0x75, 0xd0, 0x0f, 0xa0, 0xd4, 0x97, 0xd6, 0xed, 0xc0, 0xe3, 0xb6, 0xe8, 0x08,
  4554. 0xbb, 0x9a, 0x46, 0x4d, 0x3a, 0x19, 0x1b, 0x73, 0x37, 0xac, 0x88, 0x7c, 0x4b, 0xb3, 0x74, 0x15,
  4555. 0x32, 0x41, 0xe0, 0xdb, 0xd5, 0x4c, 0x9d, 0xac, 0x17, 0xd5, 0x2f, 0x4b, 0x9e, 0xe1, 0x97, 0x3e,
  4556. 0x81, 0xdc, 0x30, 0xe0, 0x7e, 0x5b, 0x38, 0xd5, 0x85, 0x3a, 0x59, 0xcf, 0xec, 0x14, 0x26, 0x63,
  4557. 0x63, 0x2a, 0x62, 0x59, 0x49, 0x1c, 0x38, 0xe6, 0x27, 0x90, 0xbf, 0x06, 0x4f, 0xf3, 0xb0, 0x70,
  4558. 0x7c, 0xfa, 0xe9, 0x3e, 0x2b, 0xff, 0x4f, 0x92, 0x67, 0x07, 0x7b, 0xfb, 0xc7, 0x65, 0x22, 0xc9,
  4559. 0xed, 0x17, 0x7b, 0x07, 0xc7, 0xe5, 0x14, 0x5d, 0x84, 0xcc, 0xde, 0xf6, 0xe9, 0x76, 0x39, 0x4d,
  4560. 0x97, 0xa1, 0xd0, 0x3a, 0xda, 0x3e, 0x3c, 0x6c, 0x2b, 0xad, 0x8c, 0xf9, 0x63, 0x1a, 0x8a, 0xfb,
  4561. 0x03, 0xe9, 0x93, 0xbf, 0xeb, 0x0e, 0x3a, 0xe2, 0x42, 0xba, 0xfe, 0x95, 0x70, 0xc2, 0x2e, 0x46,
  4562. 0xaf, 0xa8, 0x5c, 0x47, 0x01, 0x53, 0x07, 0x35, 0x21, 0xdb, 0xe5, 0xe2, 0xa2, 0x1b, 0x62, 0x70,
  4563. 0x8a, 0x3b, 0x30, 0x19, 0x1b, 0x5a, 0xc2, 0xf4, 0x49, 0x9f, 0x42, 0xee, 0x5c, 0x84, 0xbe, 0x15,
  4564. 0x72, 0x8c, 0x4b, 0x51, 0x79, 0xa1, 0x45, 0x6c, 0x4a, 0xd0, 0x0d, 0x80, 0x8e, 0x6f, 0xf5, 0x79,
  4565. 0x1b, 0x35, 0x55, 0x40, 0x4a, 0x93, 0xb1, 0x11, 0x91, 0xb2, 0x3c, 0xd2, 0x4c, 0xaa, 0xbf, 0x07,
  4566. 0x85, 0x91, 0x70, 0xb8, 0xdb, 0x56, 0xb9, 0x59, 0xc0, 0x88, 0x2f, 0x4f, 0xc6, 0x46, 0x54, 0xcc,
  4567. 0x00, 0x99, 0x5d, 0x4c, 0xd3, 0xfb, 0x50, 0x54, 0x57, 0x9e, 0xef, 0x76, 0x44, 0x8f, 0x57, 0xb3,
  4568. 0x68, 0xf3, 0xff, 0xc9, 0xd8, 0x88, 0x5f, 0xb0, 0x25, 0x64, 0x4f, 0x14, 0x27, 0xf1, 0xdb, 0x5d,
  4569. 0x6b, 0x30, 0xe0, 0xbd, 0x6a, 0x65, 0x86, 0x5f, 0x8b, 0xd8, 0x94, 0x90, 0x80, 0x02, 0xab, 0xef,
  4570. 0xf5, 0xb4, 0x03, 0x2b, 0xa8, 0x8a, 0x80, 0x22, 0x62, 0x06, 0x8a, 0x99, 0xba, 0x60, 0x0d, 0x1d,
  4571. 0x31, 0x75, 0xe1, 0xc1, 0xcc, 0x85, 0x88, 0x98, 0x01, 0x32, 0xe8, 0xc2, 0xf3, 0xcc, 0x62, 0xae,
  4572. 0x5c, 0x31, 0x7f, 0x27, 0x40, 0x9f, 0xbb, 0x62, 0xb0, 0xab, 0x21, 0xf0, 0x2f, 0x87, 0x3c, 0x08,
  4573. 0x65, 0x00, 0x35, 0x16, 0x59, 0x30, 0x04, 0x0b, 0x06, 0x03, 0x38, 0x93, 0xb2, 0xbc, 0xa6, 0x0f,
  4574. 0x9c, 0x68, 0x71, 0xa5, 0x6e, 0x2d, 0x2e, 0x19, 0x34, 0xec, 0xab, 0xf6, 0x88, 0xfb, 0x81, 0x70,
  4575. 0x07, 0x3a, 0x85, 0x18, 0xb4, 0xd8, 0x05, 0x5b, 0x42, 0xf6, 0x4c, 0x71, 0xf4, 0x43, 0xc8, 0x06,
  4576. 0xd8, 0x58, 0xd5, 0x4c, 0x3d, 0xbd, 0x5e, 0xd8, 0xaa, 0xde, 0xd6, 0x78, 0xaa, 0x64, 0x94, 0x2e,
  4577. 0xd3, 0xa7, 0xf9, 0x03, 0x81, 0x4a, 0xcc, 0xc3, 0xc0, 0x73, 0x07, 0x01, 0x97, 0x98, 0x6d, 0xab,
  4578. 0x77, 0xed, 0xdf, 0x34, 0x15, 0x4a, 0xc4, 0xb2, 0x92, 0x38, 0x70, 0x64, 0xd5, 0x86, 0xee, 0x17,
  4579. 0x7c, 0x10, 0x6d, 0x58, 0x14, 0x30, 0x75, 0x44, 0xc0, 0xa5, 0xdf, 0x00, 0xdc, 0xd7, 0x04, 0x2a,
  4580. 0x87, 0xdc, 0x1a, 0xf1, 0x7f, 0x23, 0xfe, 0x11, 0x8f, 0xd3, 0xb7, 0x7a, 0x6c, 0x3e, 0x84, 0x95,
  4581. 0x38, 0x22, 0x15, 0x2f, 0xf3, 0xfb, 0x14, 0xac, 0x9c, 0x0c, 0xcf, 0x7b, 0x22, 0xe8, 0xb6, 0x42,
  4582. 0x9f, 0x5b, 0xfd, 0xff, 0x1e, 0x2b, 0x7d, 0x01, 0x25, 0xae, 0x86, 0x4c, 0xdb, 0xc6, 0x29, 0x83,
  4583. 0xbd, 0x5e, 0xd8, 0xaa, 0xc5, 0x92, 0x10, 0x9b, 0x43, 0x6a, 0x92, 0xc6, 0xad, 0x58, 0x91, 0xc7,
  4584. 0x46, 0xd5, 0x06, 0x40, 0x5f, 0xbc, 0x9c, 0x3e, 0xa9, 0xc6, 0x01, 0x7a, 0x34, 0x93, 0xb2, 0x7c,
  4585. 0x5f, 0xbc, 0x54, 0xea, 0xe6, 0x23, 0x78, 0x30, 0x17, 0x18, 0x1d, 0xb2, 0x6f, 0x09, 0x3c, 0x3c,
  4586. 0xe5, 0x7e, 0x5f, 0x0c, 0xac, 0x90, 0xdf, 0x97, 0xa0, 0x99, 0x6f, 0xc1, 0xa3, 0x1b, 0xa0, 0x34,
  4587. 0xe0, 0x8f, 0xa0, 0xf4, 0xb7, 0x0a, 0xd1, 0xfc, 0x8d, 0xc0, 0xf2, 0x7c, 0xa3, 0x1d, 0xc1, 0x92,
  4588. 0x5e, 0x5c, 0xaa, 0x4f, 0xc8, 0x6b, 0xfa, 0xa4, 0x3c, 0x19, 0x1b, 0x31, 0x0b, 0x56, 0xe8, 0x47,
  4589. 0x96, 0xb0, 0x09, 0x59, 0xb9, 0xf5, 0xb9, 0xaf, 0x5b, 0x52, 0xb5, 0x15, 0x4a, 0x98, 0x3e, 0xe9,
  4590. 0xbb, 0xb0, 0x18, 0xda, 0x5e, 0xdb, 0x73, 0xfd, 0x50, 0x47, 0x62, 0x69, 0x32, 0x36, 0xae, 0x65,
  4591. 0x2c, 0x17, 0xda, 0xde, 0x89, 0xeb, 0x87, 0x52, 0x71, 0xe8, 0x68, 0xc5, 0xcc, 0x4c, 0x71, 0x2a,
  4592. 0x63, 0xb9, 0xa1, 0x83, 0x8a, 0xe6, 0x2b, 0x02, 0xc5, 0x7b, 0x93, 0xc1, 0xef, 0x08, 0x94, 0xe2,
  4593. 0x99, 0x4b, 0xe8, 0x04, 0xf2, 0xcf, 0x77, 0x42, 0xea, 0x75, 0x9d, 0xf0, 0x13, 0x81, 0x4a, 0x8b,
  4594. 0x87, 0x2c, 0xb4, 0x95, 0xe0, 0x1e, 0x8c, 0x08, 0x13, 0xb2, 0x91, 0xd1, 0xa0, 0xcb, 0x45, 0x23,
  4595. 0xd7, 0xa7, 0x1c, 0x79, 0x71, 0xd4, 0xba, 0x1d, 0x5e, 0x11, 0xa0, 0x67, 0xdc, 0x17, 0x9d, 0xcb,
  4596. 0x53, 0x1c, 0xf9, 0x6f, 0xec, 0xcd, 0x14, 0x67, 0xea, 0x2f, 0x2c, 0x9a, 0x74, 0xf2, 0xa2, 0x31,
  4597. 0x9f, 0x41, 0x25, 0x86, 0x45, 0x27, 0x7e, 0x15, 0x32, 0x9e, 0x15, 0x04, 0x08, 0x63, 0x51, 0xfd,
  4598. 0xeb, 0x93, 0x3c, 0xc3, 0xef, 0xd6, 0x37, 0x0b, 0x90, 0x66, 0xa1, 0x4d, 0x4f, 0xa0, 0x10, 0xd9,
  4599. 0x81, 0xd4, 0x88, 0x55, 0xc5, 0xcd, 0xfd, 0x5f, 0xab, 0xdf, 0xae, 0xa0, 0x7f, 0xb7, 0x05, 0x4b,
  4600. 0xd1, 0x35, 0x41, 0xe3, 0x16, 0x09, 0x3b, 0xad, 0xf6, 0xf6, 0x1d, 0x1a, 0xfa, 0xd1, 0x33, 0x28,
  4601. 0xc6, 0x26, 0x29, 0x8d, 0xdb, 0x24, 0xad, 0x9f, 0x9a, 0x79, 0x97, 0x8a, 0x7e, 0xf7, 0x73, 0x58,
  4602. 0x9e, 0x1b, 0x79, 0xf4, 0x9d, 0x98, 0x59, 0xf2, 0x94, 0xae, 0x3d, 0xb9, 0x5b, 0x49, 0xbf, 0xbe,
  4603. 0x07, 0xb9, 0x69, 0x14, 0x1e, 0xc7, 0x0c, 0xe6, 0x02, 0xb0, 0x9a, 0x7c, 0xa9, 0x5f, 0xd9, 0x86,
  4604. 0xac, 0x86, 0x16, 0xef, 0xd9, 0x38, 0xa2, 0xc7, 0x89, 0x77, 0xb3, 0x9c, 0x44, 0xeb, 0x78, 0x2e,
  4605. 0x27, 0x09, 0x8d, 0x39, 0x97, 0x93, 0xa4, 0x26, 0x90, 0xa5, 0x13, 0xa9, 0xbb, 0xb9, 0xd2, 0xb9,
  4606. 0xd9, 0x1d, 0x73, 0xa5, 0x93, 0x50, 0xb2, 0x3b, 0xe5, 0x5f, 0xae, 0xd6, 0xc8, 0xaf, 0x57, 0x6b,
  4607. 0xe4, 0x8f, 0xab, 0x35, 0xf2, 0x59, 0x6a, 0xb4, 0x79, 0x9e, 0xc5, 0xff, 0x7b, 0xcf, 0xfe, 0x0c,
  4608. 0x00, 0x00, 0xff, 0xff, 0x48, 0x5f, 0x3e, 0x7f, 0xd4, 0x0d, 0x00, 0x00,
  4609. }