livecheck.pb.go 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: api/grpc/v1/livecheck.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. import io "io"
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  22. // LiveCheck 移动端请求接口
  23. type LiveCheckReq struct {
  24. // 平台
  25. Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty" form:"platform" validate:"required"`
  26. // 操作系统
  27. System string `protobuf:"bytes,2,opt,name=system,proto3" json:"system,omitempty" form:"system" validate:"required"`
  28. // 设备
  29. Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty" form:"mobile" validate:"required"`
  30. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  31. XXX_unrecognized []byte `json:"-"`
  32. XXX_sizecache int32 `json:"-"`
  33. }
  34. func (m *LiveCheckReq) Reset() { *m = LiveCheckReq{} }
  35. func (m *LiveCheckReq) String() string { return proto.CompactTextString(m) }
  36. func (*LiveCheckReq) ProtoMessage() {}
  37. func (*LiveCheckReq) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_livecheck_926d699b974ee39d, []int{0}
  39. }
  40. func (m *LiveCheckReq) XXX_Unmarshal(b []byte) error {
  41. return m.Unmarshal(b)
  42. }
  43. func (m *LiveCheckReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. if deterministic {
  45. return xxx_messageInfo_LiveCheckReq.Marshal(b, m, deterministic)
  46. } else {
  47. b = b[:cap(b)]
  48. n, err := m.MarshalTo(b)
  49. if err != nil {
  50. return nil, err
  51. }
  52. return b[:n], nil
  53. }
  54. }
  55. func (dst *LiveCheckReq) XXX_Merge(src proto.Message) {
  56. xxx_messageInfo_LiveCheckReq.Merge(dst, src)
  57. }
  58. func (m *LiveCheckReq) XXX_Size() int {
  59. return m.Size()
  60. }
  61. func (m *LiveCheckReq) XXX_DiscardUnknown() {
  62. xxx_messageInfo_LiveCheckReq.DiscardUnknown(m)
  63. }
  64. var xxx_messageInfo_LiveCheckReq proto.InternalMessageInfo
  65. func (m *LiveCheckReq) GetPlatform() string {
  66. if m != nil {
  67. return m.Platform
  68. }
  69. return ""
  70. }
  71. func (m *LiveCheckReq) GetSystem() string {
  72. if m != nil {
  73. return m.System
  74. }
  75. return ""
  76. }
  77. func (m *LiveCheckReq) GetMobile() string {
  78. if m != nil {
  79. return m.Mobile
  80. }
  81. return ""
  82. }
  83. type LiveCheckResp struct {
  84. IsLive int64 `protobuf:"varint,1,opt,name=is_live,json=isLive,proto3" json:"is_live"`
  85. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  86. XXX_unrecognized []byte `json:"-"`
  87. XXX_sizecache int32 `json:"-"`
  88. }
  89. func (m *LiveCheckResp) Reset() { *m = LiveCheckResp{} }
  90. func (m *LiveCheckResp) String() string { return proto.CompactTextString(m) }
  91. func (*LiveCheckResp) ProtoMessage() {}
  92. func (*LiveCheckResp) Descriptor() ([]byte, []int) {
  93. return fileDescriptor_livecheck_926d699b974ee39d, []int{1}
  94. }
  95. func (m *LiveCheckResp) XXX_Unmarshal(b []byte) error {
  96. return m.Unmarshal(b)
  97. }
  98. func (m *LiveCheckResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  99. if deterministic {
  100. return xxx_messageInfo_LiveCheckResp.Marshal(b, m, deterministic)
  101. } else {
  102. b = b[:cap(b)]
  103. n, err := m.MarshalTo(b)
  104. if err != nil {
  105. return nil, err
  106. }
  107. return b[:n], nil
  108. }
  109. }
  110. func (dst *LiveCheckResp) XXX_Merge(src proto.Message) {
  111. xxx_messageInfo_LiveCheckResp.Merge(dst, src)
  112. }
  113. func (m *LiveCheckResp) XXX_Size() int {
  114. return m.Size()
  115. }
  116. func (m *LiveCheckResp) XXX_DiscardUnknown() {
  117. xxx_messageInfo_LiveCheckResp.DiscardUnknown(m)
  118. }
  119. var xxx_messageInfo_LiveCheckResp proto.InternalMessageInfo
  120. func (m *LiveCheckResp) GetIsLive() int64 {
  121. if m != nil {
  122. return m.IsLive
  123. }
  124. return 0
  125. }
  126. // 提供给后台查询开播设备黑名单
  127. type GetLiveCheckListReq struct {
  128. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  129. XXX_unrecognized []byte `json:"-"`
  130. XXX_sizecache int32 `json:"-"`
  131. }
  132. func (m *GetLiveCheckListReq) Reset() { *m = GetLiveCheckListReq{} }
  133. func (m *GetLiveCheckListReq) String() string { return proto.CompactTextString(m) }
  134. func (*GetLiveCheckListReq) ProtoMessage() {}
  135. func (*GetLiveCheckListReq) Descriptor() ([]byte, []int) {
  136. return fileDescriptor_livecheck_926d699b974ee39d, []int{2}
  137. }
  138. func (m *GetLiveCheckListReq) XXX_Unmarshal(b []byte) error {
  139. return m.Unmarshal(b)
  140. }
  141. func (m *GetLiveCheckListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  142. if deterministic {
  143. return xxx_messageInfo_GetLiveCheckListReq.Marshal(b, m, deterministic)
  144. } else {
  145. b = b[:cap(b)]
  146. n, err := m.MarshalTo(b)
  147. if err != nil {
  148. return nil, err
  149. }
  150. return b[:n], nil
  151. }
  152. }
  153. func (dst *GetLiveCheckListReq) XXX_Merge(src proto.Message) {
  154. xxx_messageInfo_GetLiveCheckListReq.Merge(dst, src)
  155. }
  156. func (m *GetLiveCheckListReq) XXX_Size() int {
  157. return m.Size()
  158. }
  159. func (m *GetLiveCheckListReq) XXX_DiscardUnknown() {
  160. xxx_messageInfo_GetLiveCheckListReq.DiscardUnknown(m)
  161. }
  162. var xxx_messageInfo_GetLiveCheckListReq proto.InternalMessageInfo
  163. type GetLiveCheckListResp struct {
  164. // android
  165. Android []*GetLiveCheckListResp_Platform `protobuf:"bytes,1,rep,name=android" json:"android"`
  166. // ios
  167. Ios []*GetLiveCheckListResp_Platform `protobuf:"bytes,2,rep,name=ios" json:"ios"`
  168. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  169. XXX_unrecognized []byte `json:"-"`
  170. XXX_sizecache int32 `json:"-"`
  171. }
  172. func (m *GetLiveCheckListResp) Reset() { *m = GetLiveCheckListResp{} }
  173. func (m *GetLiveCheckListResp) String() string { return proto.CompactTextString(m) }
  174. func (*GetLiveCheckListResp) ProtoMessage() {}
  175. func (*GetLiveCheckListResp) Descriptor() ([]byte, []int) {
  176. return fileDescriptor_livecheck_926d699b974ee39d, []int{3}
  177. }
  178. func (m *GetLiveCheckListResp) XXX_Unmarshal(b []byte) error {
  179. return m.Unmarshal(b)
  180. }
  181. func (m *GetLiveCheckListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  182. if deterministic {
  183. return xxx_messageInfo_GetLiveCheckListResp.Marshal(b, m, deterministic)
  184. } else {
  185. b = b[:cap(b)]
  186. n, err := m.MarshalTo(b)
  187. if err != nil {
  188. return nil, err
  189. }
  190. return b[:n], nil
  191. }
  192. }
  193. func (dst *GetLiveCheckListResp) XXX_Merge(src proto.Message) {
  194. xxx_messageInfo_GetLiveCheckListResp.Merge(dst, src)
  195. }
  196. func (m *GetLiveCheckListResp) XXX_Size() int {
  197. return m.Size()
  198. }
  199. func (m *GetLiveCheckListResp) XXX_DiscardUnknown() {
  200. xxx_messageInfo_GetLiveCheckListResp.DiscardUnknown(m)
  201. }
  202. var xxx_messageInfo_GetLiveCheckListResp proto.InternalMessageInfo
  203. func (m *GetLiveCheckListResp) GetAndroid() []*GetLiveCheckListResp_Platform {
  204. if m != nil {
  205. return m.Android
  206. }
  207. return nil
  208. }
  209. func (m *GetLiveCheckListResp) GetIos() []*GetLiveCheckListResp_Platform {
  210. if m != nil {
  211. return m.Ios
  212. }
  213. return nil
  214. }
  215. type GetLiveCheckListResp_Platform struct {
  216. // os
  217. System string `protobuf:"bytes,1,opt,name=system,proto3" json:"system"`
  218. // device
  219. Mobile []string `protobuf:"bytes,2,rep,name=mobile" json:"mobile"`
  220. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  221. XXX_unrecognized []byte `json:"-"`
  222. XXX_sizecache int32 `json:"-"`
  223. }
  224. func (m *GetLiveCheckListResp_Platform) Reset() { *m = GetLiveCheckListResp_Platform{} }
  225. func (m *GetLiveCheckListResp_Platform) String() string { return proto.CompactTextString(m) }
  226. func (*GetLiveCheckListResp_Platform) ProtoMessage() {}
  227. func (*GetLiveCheckListResp_Platform) Descriptor() ([]byte, []int) {
  228. return fileDescriptor_livecheck_926d699b974ee39d, []int{3, 0}
  229. }
  230. func (m *GetLiveCheckListResp_Platform) XXX_Unmarshal(b []byte) error {
  231. return m.Unmarshal(b)
  232. }
  233. func (m *GetLiveCheckListResp_Platform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  234. if deterministic {
  235. return xxx_messageInfo_GetLiveCheckListResp_Platform.Marshal(b, m, deterministic)
  236. } else {
  237. b = b[:cap(b)]
  238. n, err := m.MarshalTo(b)
  239. if err != nil {
  240. return nil, err
  241. }
  242. return b[:n], nil
  243. }
  244. }
  245. func (dst *GetLiveCheckListResp_Platform) XXX_Merge(src proto.Message) {
  246. xxx_messageInfo_GetLiveCheckListResp_Platform.Merge(dst, src)
  247. }
  248. func (m *GetLiveCheckListResp_Platform) XXX_Size() int {
  249. return m.Size()
  250. }
  251. func (m *GetLiveCheckListResp_Platform) XXX_DiscardUnknown() {
  252. xxx_messageInfo_GetLiveCheckListResp_Platform.DiscardUnknown(m)
  253. }
  254. var xxx_messageInfo_GetLiveCheckListResp_Platform proto.InternalMessageInfo
  255. func (m *GetLiveCheckListResp_Platform) GetSystem() string {
  256. if m != nil {
  257. return m.System
  258. }
  259. return ""
  260. }
  261. func (m *GetLiveCheckListResp_Platform) GetMobile() []string {
  262. if m != nil {
  263. return m.Mobile
  264. }
  265. return nil
  266. }
  267. // 提供给后台新增live_check添加黑名单
  268. type AddLiveCheckReq struct {
  269. LiveCheck string `protobuf:"bytes,1,opt,name=live_check,json=liveCheck,proto3" json:"live_check,omitempty" form:"live_check" validate:"required"`
  270. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  271. XXX_unrecognized []byte `json:"-"`
  272. XXX_sizecache int32 `json:"-"`
  273. }
  274. func (m *AddLiveCheckReq) Reset() { *m = AddLiveCheckReq{} }
  275. func (m *AddLiveCheckReq) String() string { return proto.CompactTextString(m) }
  276. func (*AddLiveCheckReq) ProtoMessage() {}
  277. func (*AddLiveCheckReq) Descriptor() ([]byte, []int) {
  278. return fileDescriptor_livecheck_926d699b974ee39d, []int{4}
  279. }
  280. func (m *AddLiveCheckReq) XXX_Unmarshal(b []byte) error {
  281. return m.Unmarshal(b)
  282. }
  283. func (m *AddLiveCheckReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  284. if deterministic {
  285. return xxx_messageInfo_AddLiveCheckReq.Marshal(b, m, deterministic)
  286. } else {
  287. b = b[:cap(b)]
  288. n, err := m.MarshalTo(b)
  289. if err != nil {
  290. return nil, err
  291. }
  292. return b[:n], nil
  293. }
  294. }
  295. func (dst *AddLiveCheckReq) XXX_Merge(src proto.Message) {
  296. xxx_messageInfo_AddLiveCheckReq.Merge(dst, src)
  297. }
  298. func (m *AddLiveCheckReq) XXX_Size() int {
  299. return m.Size()
  300. }
  301. func (m *AddLiveCheckReq) XXX_DiscardUnknown() {
  302. xxx_messageInfo_AddLiveCheckReq.DiscardUnknown(m)
  303. }
  304. var xxx_messageInfo_AddLiveCheckReq proto.InternalMessageInfo
  305. func (m *AddLiveCheckReq) GetLiveCheck() string {
  306. if m != nil {
  307. return m.LiveCheck
  308. }
  309. return ""
  310. }
  311. type AddLiveCheckResp struct {
  312. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  313. XXX_unrecognized []byte `json:"-"`
  314. XXX_sizecache int32 `json:"-"`
  315. }
  316. func (m *AddLiveCheckResp) Reset() { *m = AddLiveCheckResp{} }
  317. func (m *AddLiveCheckResp) String() string { return proto.CompactTextString(m) }
  318. func (*AddLiveCheckResp) ProtoMessage() {}
  319. func (*AddLiveCheckResp) Descriptor() ([]byte, []int) {
  320. return fileDescriptor_livecheck_926d699b974ee39d, []int{5}
  321. }
  322. func (m *AddLiveCheckResp) XXX_Unmarshal(b []byte) error {
  323. return m.Unmarshal(b)
  324. }
  325. func (m *AddLiveCheckResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  326. if deterministic {
  327. return xxx_messageInfo_AddLiveCheckResp.Marshal(b, m, deterministic)
  328. } else {
  329. b = b[:cap(b)]
  330. n, err := m.MarshalTo(b)
  331. if err != nil {
  332. return nil, err
  333. }
  334. return b[:n], nil
  335. }
  336. }
  337. func (dst *AddLiveCheckResp) XXX_Merge(src proto.Message) {
  338. xxx_messageInfo_AddLiveCheckResp.Merge(dst, src)
  339. }
  340. func (m *AddLiveCheckResp) XXX_Size() int {
  341. return m.Size()
  342. }
  343. func (m *AddLiveCheckResp) XXX_DiscardUnknown() {
  344. xxx_messageInfo_AddLiveCheckResp.DiscardUnknown(m)
  345. }
  346. var xxx_messageInfo_AddLiveCheckResp proto.InternalMessageInfo
  347. func init() {
  348. proto.RegisterType((*LiveCheckReq)(nil), "live.resource.v1.LiveCheckReq")
  349. proto.RegisterType((*LiveCheckResp)(nil), "live.resource.v1.LiveCheckResp")
  350. proto.RegisterType((*GetLiveCheckListReq)(nil), "live.resource.v1.GetLiveCheckListReq")
  351. proto.RegisterType((*GetLiveCheckListResp)(nil), "live.resource.v1.GetLiveCheckListResp")
  352. proto.RegisterType((*GetLiveCheckListResp_Platform)(nil), "live.resource.v1.GetLiveCheckListResp.Platform")
  353. proto.RegisterType((*AddLiveCheckReq)(nil), "live.resource.v1.AddLiveCheckReq")
  354. proto.RegisterType((*AddLiveCheckResp)(nil), "live.resource.v1.AddLiveCheckResp")
  355. }
  356. // Reference imports to suppress errors if they are not otherwise used.
  357. var _ context.Context
  358. var _ grpc.ClientConn
  359. // This is a compile-time assertion to ensure that this generated file
  360. // is compatible with the grpc package it is being compiled against.
  361. const _ = grpc.SupportPackageIsVersion4
  362. // LiveCheckClient is the client API for LiveCheck service.
  363. //
  364. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  365. type LiveCheckClient interface {
  366. // 客户端获取能否直播接口
  367. LiveCheck(ctx context.Context, in *LiveCheckReq, opts ...grpc.CallOption) (*LiveCheckResp, error)
  368. // 后台查询所有配置设备黑名单
  369. GetLiveCheckList(ctx context.Context, in *GetLiveCheckListReq, opts ...grpc.CallOption) (*GetLiveCheckListResp, error)
  370. // 后台添加能否直播设备黑名单
  371. AddLiveCheck(ctx context.Context, in *AddLiveCheckReq, opts ...grpc.CallOption) (*AddLiveCheckResp, error)
  372. }
  373. type liveCheckClient struct {
  374. cc *grpc.ClientConn
  375. }
  376. func NewLiveCheckClient(cc *grpc.ClientConn) LiveCheckClient {
  377. return &liveCheckClient{cc}
  378. }
  379. func (c *liveCheckClient) LiveCheck(ctx context.Context, in *LiveCheckReq, opts ...grpc.CallOption) (*LiveCheckResp, error) {
  380. out := new(LiveCheckResp)
  381. err := c.cc.Invoke(ctx, "/live.resource.v1.LiveCheck/LiveCheck", in, out, opts...)
  382. if err != nil {
  383. return nil, err
  384. }
  385. return out, nil
  386. }
  387. func (c *liveCheckClient) GetLiveCheckList(ctx context.Context, in *GetLiveCheckListReq, opts ...grpc.CallOption) (*GetLiveCheckListResp, error) {
  388. out := new(GetLiveCheckListResp)
  389. err := c.cc.Invoke(ctx, "/live.resource.v1.LiveCheck/GetLiveCheckList", in, out, opts...)
  390. if err != nil {
  391. return nil, err
  392. }
  393. return out, nil
  394. }
  395. func (c *liveCheckClient) AddLiveCheck(ctx context.Context, in *AddLiveCheckReq, opts ...grpc.CallOption) (*AddLiveCheckResp, error) {
  396. out := new(AddLiveCheckResp)
  397. err := c.cc.Invoke(ctx, "/live.resource.v1.LiveCheck/AddLiveCheck", in, out, opts...)
  398. if err != nil {
  399. return nil, err
  400. }
  401. return out, nil
  402. }
  403. // LiveCheckServer is the server API for LiveCheck service.
  404. type LiveCheckServer interface {
  405. // 客户端获取能否直播接口
  406. LiveCheck(context.Context, *LiveCheckReq) (*LiveCheckResp, error)
  407. // 后台查询所有配置设备黑名单
  408. GetLiveCheckList(context.Context, *GetLiveCheckListReq) (*GetLiveCheckListResp, error)
  409. // 后台添加能否直播设备黑名单
  410. AddLiveCheck(context.Context, *AddLiveCheckReq) (*AddLiveCheckResp, error)
  411. }
  412. func RegisterLiveCheckServer(s *grpc.Server, srv LiveCheckServer) {
  413. s.RegisterService(&_LiveCheck_serviceDesc, srv)
  414. }
  415. func _LiveCheck_LiveCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  416. in := new(LiveCheckReq)
  417. if err := dec(in); err != nil {
  418. return nil, err
  419. }
  420. if interceptor == nil {
  421. return srv.(LiveCheckServer).LiveCheck(ctx, in)
  422. }
  423. info := &grpc.UnaryServerInfo{
  424. Server: srv,
  425. FullMethod: "/live.resource.v1.LiveCheck/LiveCheck",
  426. }
  427. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  428. return srv.(LiveCheckServer).LiveCheck(ctx, req.(*LiveCheckReq))
  429. }
  430. return interceptor(ctx, in, info, handler)
  431. }
  432. func _LiveCheck_GetLiveCheckList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  433. in := new(GetLiveCheckListReq)
  434. if err := dec(in); err != nil {
  435. return nil, err
  436. }
  437. if interceptor == nil {
  438. return srv.(LiveCheckServer).GetLiveCheckList(ctx, in)
  439. }
  440. info := &grpc.UnaryServerInfo{
  441. Server: srv,
  442. FullMethod: "/live.resource.v1.LiveCheck/GetLiveCheckList",
  443. }
  444. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  445. return srv.(LiveCheckServer).GetLiveCheckList(ctx, req.(*GetLiveCheckListReq))
  446. }
  447. return interceptor(ctx, in, info, handler)
  448. }
  449. func _LiveCheck_AddLiveCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  450. in := new(AddLiveCheckReq)
  451. if err := dec(in); err != nil {
  452. return nil, err
  453. }
  454. if interceptor == nil {
  455. return srv.(LiveCheckServer).AddLiveCheck(ctx, in)
  456. }
  457. info := &grpc.UnaryServerInfo{
  458. Server: srv,
  459. FullMethod: "/live.resource.v1.LiveCheck/AddLiveCheck",
  460. }
  461. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  462. return srv.(LiveCheckServer).AddLiveCheck(ctx, req.(*AddLiveCheckReq))
  463. }
  464. return interceptor(ctx, in, info, handler)
  465. }
  466. var _LiveCheck_serviceDesc = grpc.ServiceDesc{
  467. ServiceName: "live.resource.v1.LiveCheck",
  468. HandlerType: (*LiveCheckServer)(nil),
  469. Methods: []grpc.MethodDesc{
  470. {
  471. MethodName: "LiveCheck",
  472. Handler: _LiveCheck_LiveCheck_Handler,
  473. },
  474. {
  475. MethodName: "GetLiveCheckList",
  476. Handler: _LiveCheck_GetLiveCheckList_Handler,
  477. },
  478. {
  479. MethodName: "AddLiveCheck",
  480. Handler: _LiveCheck_AddLiveCheck_Handler,
  481. },
  482. },
  483. Streams: []grpc.StreamDesc{},
  484. Metadata: "api/grpc/v1/livecheck.proto",
  485. }
  486. func (m *LiveCheckReq) Marshal() (dAtA []byte, err error) {
  487. size := m.Size()
  488. dAtA = make([]byte, size)
  489. n, err := m.MarshalTo(dAtA)
  490. if err != nil {
  491. return nil, err
  492. }
  493. return dAtA[:n], nil
  494. }
  495. func (m *LiveCheckReq) MarshalTo(dAtA []byte) (int, error) {
  496. var i int
  497. _ = i
  498. var l int
  499. _ = l
  500. if len(m.Platform) > 0 {
  501. dAtA[i] = 0xa
  502. i++
  503. i = encodeVarintLivecheck(dAtA, i, uint64(len(m.Platform)))
  504. i += copy(dAtA[i:], m.Platform)
  505. }
  506. if len(m.System) > 0 {
  507. dAtA[i] = 0x12
  508. i++
  509. i = encodeVarintLivecheck(dAtA, i, uint64(len(m.System)))
  510. i += copy(dAtA[i:], m.System)
  511. }
  512. if len(m.Mobile) > 0 {
  513. dAtA[i] = 0x1a
  514. i++
  515. i = encodeVarintLivecheck(dAtA, i, uint64(len(m.Mobile)))
  516. i += copy(dAtA[i:], m.Mobile)
  517. }
  518. if m.XXX_unrecognized != nil {
  519. i += copy(dAtA[i:], m.XXX_unrecognized)
  520. }
  521. return i, nil
  522. }
  523. func (m *LiveCheckResp) Marshal() (dAtA []byte, err error) {
  524. size := m.Size()
  525. dAtA = make([]byte, size)
  526. n, err := m.MarshalTo(dAtA)
  527. if err != nil {
  528. return nil, err
  529. }
  530. return dAtA[:n], nil
  531. }
  532. func (m *LiveCheckResp) MarshalTo(dAtA []byte) (int, error) {
  533. var i int
  534. _ = i
  535. var l int
  536. _ = l
  537. if m.IsLive != 0 {
  538. dAtA[i] = 0x8
  539. i++
  540. i = encodeVarintLivecheck(dAtA, i, uint64(m.IsLive))
  541. }
  542. if m.XXX_unrecognized != nil {
  543. i += copy(dAtA[i:], m.XXX_unrecognized)
  544. }
  545. return i, nil
  546. }
  547. func (m *GetLiveCheckListReq) Marshal() (dAtA []byte, err error) {
  548. size := m.Size()
  549. dAtA = make([]byte, size)
  550. n, err := m.MarshalTo(dAtA)
  551. if err != nil {
  552. return nil, err
  553. }
  554. return dAtA[:n], nil
  555. }
  556. func (m *GetLiveCheckListReq) MarshalTo(dAtA []byte) (int, error) {
  557. var i int
  558. _ = i
  559. var l int
  560. _ = l
  561. if m.XXX_unrecognized != nil {
  562. i += copy(dAtA[i:], m.XXX_unrecognized)
  563. }
  564. return i, nil
  565. }
  566. func (m *GetLiveCheckListResp) Marshal() (dAtA []byte, err error) {
  567. size := m.Size()
  568. dAtA = make([]byte, size)
  569. n, err := m.MarshalTo(dAtA)
  570. if err != nil {
  571. return nil, err
  572. }
  573. return dAtA[:n], nil
  574. }
  575. func (m *GetLiveCheckListResp) MarshalTo(dAtA []byte) (int, error) {
  576. var i int
  577. _ = i
  578. var l int
  579. _ = l
  580. if len(m.Android) > 0 {
  581. for _, msg := range m.Android {
  582. dAtA[i] = 0xa
  583. i++
  584. i = encodeVarintLivecheck(dAtA, i, uint64(msg.Size()))
  585. n, err := msg.MarshalTo(dAtA[i:])
  586. if err != nil {
  587. return 0, err
  588. }
  589. i += n
  590. }
  591. }
  592. if len(m.Ios) > 0 {
  593. for _, msg := range m.Ios {
  594. dAtA[i] = 0x12
  595. i++
  596. i = encodeVarintLivecheck(dAtA, i, uint64(msg.Size()))
  597. n, err := msg.MarshalTo(dAtA[i:])
  598. if err != nil {
  599. return 0, err
  600. }
  601. i += n
  602. }
  603. }
  604. if m.XXX_unrecognized != nil {
  605. i += copy(dAtA[i:], m.XXX_unrecognized)
  606. }
  607. return i, nil
  608. }
  609. func (m *GetLiveCheckListResp_Platform) Marshal() (dAtA []byte, err error) {
  610. size := m.Size()
  611. dAtA = make([]byte, size)
  612. n, err := m.MarshalTo(dAtA)
  613. if err != nil {
  614. return nil, err
  615. }
  616. return dAtA[:n], nil
  617. }
  618. func (m *GetLiveCheckListResp_Platform) MarshalTo(dAtA []byte) (int, error) {
  619. var i int
  620. _ = i
  621. var l int
  622. _ = l
  623. if len(m.System) > 0 {
  624. dAtA[i] = 0xa
  625. i++
  626. i = encodeVarintLivecheck(dAtA, i, uint64(len(m.System)))
  627. i += copy(dAtA[i:], m.System)
  628. }
  629. if len(m.Mobile) > 0 {
  630. for _, s := range m.Mobile {
  631. dAtA[i] = 0x12
  632. i++
  633. l = len(s)
  634. for l >= 1<<7 {
  635. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  636. l >>= 7
  637. i++
  638. }
  639. dAtA[i] = uint8(l)
  640. i++
  641. i += copy(dAtA[i:], s)
  642. }
  643. }
  644. if m.XXX_unrecognized != nil {
  645. i += copy(dAtA[i:], m.XXX_unrecognized)
  646. }
  647. return i, nil
  648. }
  649. func (m *AddLiveCheckReq) Marshal() (dAtA []byte, err error) {
  650. size := m.Size()
  651. dAtA = make([]byte, size)
  652. n, err := m.MarshalTo(dAtA)
  653. if err != nil {
  654. return nil, err
  655. }
  656. return dAtA[:n], nil
  657. }
  658. func (m *AddLiveCheckReq) MarshalTo(dAtA []byte) (int, error) {
  659. var i int
  660. _ = i
  661. var l int
  662. _ = l
  663. if len(m.LiveCheck) > 0 {
  664. dAtA[i] = 0xa
  665. i++
  666. i = encodeVarintLivecheck(dAtA, i, uint64(len(m.LiveCheck)))
  667. i += copy(dAtA[i:], m.LiveCheck)
  668. }
  669. if m.XXX_unrecognized != nil {
  670. i += copy(dAtA[i:], m.XXX_unrecognized)
  671. }
  672. return i, nil
  673. }
  674. func (m *AddLiveCheckResp) Marshal() (dAtA []byte, err error) {
  675. size := m.Size()
  676. dAtA = make([]byte, size)
  677. n, err := m.MarshalTo(dAtA)
  678. if err != nil {
  679. return nil, err
  680. }
  681. return dAtA[:n], nil
  682. }
  683. func (m *AddLiveCheckResp) MarshalTo(dAtA []byte) (int, error) {
  684. var i int
  685. _ = i
  686. var l int
  687. _ = l
  688. if m.XXX_unrecognized != nil {
  689. i += copy(dAtA[i:], m.XXX_unrecognized)
  690. }
  691. return i, nil
  692. }
  693. func encodeVarintLivecheck(dAtA []byte, offset int, v uint64) int {
  694. for v >= 1<<7 {
  695. dAtA[offset] = uint8(v&0x7f | 0x80)
  696. v >>= 7
  697. offset++
  698. }
  699. dAtA[offset] = uint8(v)
  700. return offset + 1
  701. }
  702. func (m *LiveCheckReq) Size() (n int) {
  703. if m == nil {
  704. return 0
  705. }
  706. var l int
  707. _ = l
  708. l = len(m.Platform)
  709. if l > 0 {
  710. n += 1 + l + sovLivecheck(uint64(l))
  711. }
  712. l = len(m.System)
  713. if l > 0 {
  714. n += 1 + l + sovLivecheck(uint64(l))
  715. }
  716. l = len(m.Mobile)
  717. if l > 0 {
  718. n += 1 + l + sovLivecheck(uint64(l))
  719. }
  720. if m.XXX_unrecognized != nil {
  721. n += len(m.XXX_unrecognized)
  722. }
  723. return n
  724. }
  725. func (m *LiveCheckResp) Size() (n int) {
  726. if m == nil {
  727. return 0
  728. }
  729. var l int
  730. _ = l
  731. if m.IsLive != 0 {
  732. n += 1 + sovLivecheck(uint64(m.IsLive))
  733. }
  734. if m.XXX_unrecognized != nil {
  735. n += len(m.XXX_unrecognized)
  736. }
  737. return n
  738. }
  739. func (m *GetLiveCheckListReq) Size() (n int) {
  740. if m == nil {
  741. return 0
  742. }
  743. var l int
  744. _ = l
  745. if m.XXX_unrecognized != nil {
  746. n += len(m.XXX_unrecognized)
  747. }
  748. return n
  749. }
  750. func (m *GetLiveCheckListResp) Size() (n int) {
  751. if m == nil {
  752. return 0
  753. }
  754. var l int
  755. _ = l
  756. if len(m.Android) > 0 {
  757. for _, e := range m.Android {
  758. l = e.Size()
  759. n += 1 + l + sovLivecheck(uint64(l))
  760. }
  761. }
  762. if len(m.Ios) > 0 {
  763. for _, e := range m.Ios {
  764. l = e.Size()
  765. n += 1 + l + sovLivecheck(uint64(l))
  766. }
  767. }
  768. if m.XXX_unrecognized != nil {
  769. n += len(m.XXX_unrecognized)
  770. }
  771. return n
  772. }
  773. func (m *GetLiveCheckListResp_Platform) Size() (n int) {
  774. if m == nil {
  775. return 0
  776. }
  777. var l int
  778. _ = l
  779. l = len(m.System)
  780. if l > 0 {
  781. n += 1 + l + sovLivecheck(uint64(l))
  782. }
  783. if len(m.Mobile) > 0 {
  784. for _, s := range m.Mobile {
  785. l = len(s)
  786. n += 1 + l + sovLivecheck(uint64(l))
  787. }
  788. }
  789. if m.XXX_unrecognized != nil {
  790. n += len(m.XXX_unrecognized)
  791. }
  792. return n
  793. }
  794. func (m *AddLiveCheckReq) Size() (n int) {
  795. if m == nil {
  796. return 0
  797. }
  798. var l int
  799. _ = l
  800. l = len(m.LiveCheck)
  801. if l > 0 {
  802. n += 1 + l + sovLivecheck(uint64(l))
  803. }
  804. if m.XXX_unrecognized != nil {
  805. n += len(m.XXX_unrecognized)
  806. }
  807. return n
  808. }
  809. func (m *AddLiveCheckResp) Size() (n int) {
  810. if m == nil {
  811. return 0
  812. }
  813. var l int
  814. _ = l
  815. if m.XXX_unrecognized != nil {
  816. n += len(m.XXX_unrecognized)
  817. }
  818. return n
  819. }
  820. func sovLivecheck(x uint64) (n int) {
  821. for {
  822. n++
  823. x >>= 7
  824. if x == 0 {
  825. break
  826. }
  827. }
  828. return n
  829. }
  830. func sozLivecheck(x uint64) (n int) {
  831. return sovLivecheck(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  832. }
  833. func (m *LiveCheckReq) Unmarshal(dAtA []byte) error {
  834. l := len(dAtA)
  835. iNdEx := 0
  836. for iNdEx < l {
  837. preIndex := iNdEx
  838. var wire uint64
  839. for shift := uint(0); ; shift += 7 {
  840. if shift >= 64 {
  841. return ErrIntOverflowLivecheck
  842. }
  843. if iNdEx >= l {
  844. return io.ErrUnexpectedEOF
  845. }
  846. b := dAtA[iNdEx]
  847. iNdEx++
  848. wire |= (uint64(b) & 0x7F) << shift
  849. if b < 0x80 {
  850. break
  851. }
  852. }
  853. fieldNum := int32(wire >> 3)
  854. wireType := int(wire & 0x7)
  855. if wireType == 4 {
  856. return fmt.Errorf("proto: LiveCheckReq: wiretype end group for non-group")
  857. }
  858. if fieldNum <= 0 {
  859. return fmt.Errorf("proto: LiveCheckReq: illegal tag %d (wire type %d)", fieldNum, wire)
  860. }
  861. switch fieldNum {
  862. case 1:
  863. if wireType != 2 {
  864. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  865. }
  866. var stringLen uint64
  867. for shift := uint(0); ; shift += 7 {
  868. if shift >= 64 {
  869. return ErrIntOverflowLivecheck
  870. }
  871. if iNdEx >= l {
  872. return io.ErrUnexpectedEOF
  873. }
  874. b := dAtA[iNdEx]
  875. iNdEx++
  876. stringLen |= (uint64(b) & 0x7F) << shift
  877. if b < 0x80 {
  878. break
  879. }
  880. }
  881. intStringLen := int(stringLen)
  882. if intStringLen < 0 {
  883. return ErrInvalidLengthLivecheck
  884. }
  885. postIndex := iNdEx + intStringLen
  886. if postIndex > l {
  887. return io.ErrUnexpectedEOF
  888. }
  889. m.Platform = string(dAtA[iNdEx:postIndex])
  890. iNdEx = postIndex
  891. case 2:
  892. if wireType != 2 {
  893. return fmt.Errorf("proto: wrong wireType = %d for field System", wireType)
  894. }
  895. var stringLen uint64
  896. for shift := uint(0); ; shift += 7 {
  897. if shift >= 64 {
  898. return ErrIntOverflowLivecheck
  899. }
  900. if iNdEx >= l {
  901. return io.ErrUnexpectedEOF
  902. }
  903. b := dAtA[iNdEx]
  904. iNdEx++
  905. stringLen |= (uint64(b) & 0x7F) << shift
  906. if b < 0x80 {
  907. break
  908. }
  909. }
  910. intStringLen := int(stringLen)
  911. if intStringLen < 0 {
  912. return ErrInvalidLengthLivecheck
  913. }
  914. postIndex := iNdEx + intStringLen
  915. if postIndex > l {
  916. return io.ErrUnexpectedEOF
  917. }
  918. m.System = string(dAtA[iNdEx:postIndex])
  919. iNdEx = postIndex
  920. case 3:
  921. if wireType != 2 {
  922. return fmt.Errorf("proto: wrong wireType = %d for field Mobile", wireType)
  923. }
  924. var stringLen uint64
  925. for shift := uint(0); ; shift += 7 {
  926. if shift >= 64 {
  927. return ErrIntOverflowLivecheck
  928. }
  929. if iNdEx >= l {
  930. return io.ErrUnexpectedEOF
  931. }
  932. b := dAtA[iNdEx]
  933. iNdEx++
  934. stringLen |= (uint64(b) & 0x7F) << shift
  935. if b < 0x80 {
  936. break
  937. }
  938. }
  939. intStringLen := int(stringLen)
  940. if intStringLen < 0 {
  941. return ErrInvalidLengthLivecheck
  942. }
  943. postIndex := iNdEx + intStringLen
  944. if postIndex > l {
  945. return io.ErrUnexpectedEOF
  946. }
  947. m.Mobile = string(dAtA[iNdEx:postIndex])
  948. iNdEx = postIndex
  949. default:
  950. iNdEx = preIndex
  951. skippy, err := skipLivecheck(dAtA[iNdEx:])
  952. if err != nil {
  953. return err
  954. }
  955. if skippy < 0 {
  956. return ErrInvalidLengthLivecheck
  957. }
  958. if (iNdEx + skippy) > l {
  959. return io.ErrUnexpectedEOF
  960. }
  961. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  962. iNdEx += skippy
  963. }
  964. }
  965. if iNdEx > l {
  966. return io.ErrUnexpectedEOF
  967. }
  968. return nil
  969. }
  970. func (m *LiveCheckResp) Unmarshal(dAtA []byte) error {
  971. l := len(dAtA)
  972. iNdEx := 0
  973. for iNdEx < l {
  974. preIndex := iNdEx
  975. var wire uint64
  976. for shift := uint(0); ; shift += 7 {
  977. if shift >= 64 {
  978. return ErrIntOverflowLivecheck
  979. }
  980. if iNdEx >= l {
  981. return io.ErrUnexpectedEOF
  982. }
  983. b := dAtA[iNdEx]
  984. iNdEx++
  985. wire |= (uint64(b) & 0x7F) << shift
  986. if b < 0x80 {
  987. break
  988. }
  989. }
  990. fieldNum := int32(wire >> 3)
  991. wireType := int(wire & 0x7)
  992. if wireType == 4 {
  993. return fmt.Errorf("proto: LiveCheckResp: wiretype end group for non-group")
  994. }
  995. if fieldNum <= 0 {
  996. return fmt.Errorf("proto: LiveCheckResp: illegal tag %d (wire type %d)", fieldNum, wire)
  997. }
  998. switch fieldNum {
  999. case 1:
  1000. if wireType != 0 {
  1001. return fmt.Errorf("proto: wrong wireType = %d for field IsLive", wireType)
  1002. }
  1003. m.IsLive = 0
  1004. for shift := uint(0); ; shift += 7 {
  1005. if shift >= 64 {
  1006. return ErrIntOverflowLivecheck
  1007. }
  1008. if iNdEx >= l {
  1009. return io.ErrUnexpectedEOF
  1010. }
  1011. b := dAtA[iNdEx]
  1012. iNdEx++
  1013. m.IsLive |= (int64(b) & 0x7F) << shift
  1014. if b < 0x80 {
  1015. break
  1016. }
  1017. }
  1018. default:
  1019. iNdEx = preIndex
  1020. skippy, err := skipLivecheck(dAtA[iNdEx:])
  1021. if err != nil {
  1022. return err
  1023. }
  1024. if skippy < 0 {
  1025. return ErrInvalidLengthLivecheck
  1026. }
  1027. if (iNdEx + skippy) > l {
  1028. return io.ErrUnexpectedEOF
  1029. }
  1030. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1031. iNdEx += skippy
  1032. }
  1033. }
  1034. if iNdEx > l {
  1035. return io.ErrUnexpectedEOF
  1036. }
  1037. return nil
  1038. }
  1039. func (m *GetLiveCheckListReq) Unmarshal(dAtA []byte) error {
  1040. l := len(dAtA)
  1041. iNdEx := 0
  1042. for iNdEx < l {
  1043. preIndex := iNdEx
  1044. var wire uint64
  1045. for shift := uint(0); ; shift += 7 {
  1046. if shift >= 64 {
  1047. return ErrIntOverflowLivecheck
  1048. }
  1049. if iNdEx >= l {
  1050. return io.ErrUnexpectedEOF
  1051. }
  1052. b := dAtA[iNdEx]
  1053. iNdEx++
  1054. wire |= (uint64(b) & 0x7F) << shift
  1055. if b < 0x80 {
  1056. break
  1057. }
  1058. }
  1059. fieldNum := int32(wire >> 3)
  1060. wireType := int(wire & 0x7)
  1061. if wireType == 4 {
  1062. return fmt.Errorf("proto: GetLiveCheckListReq: wiretype end group for non-group")
  1063. }
  1064. if fieldNum <= 0 {
  1065. return fmt.Errorf("proto: GetLiveCheckListReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1066. }
  1067. switch fieldNum {
  1068. default:
  1069. iNdEx = preIndex
  1070. skippy, err := skipLivecheck(dAtA[iNdEx:])
  1071. if err != nil {
  1072. return err
  1073. }
  1074. if skippy < 0 {
  1075. return ErrInvalidLengthLivecheck
  1076. }
  1077. if (iNdEx + skippy) > l {
  1078. return io.ErrUnexpectedEOF
  1079. }
  1080. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1081. iNdEx += skippy
  1082. }
  1083. }
  1084. if iNdEx > l {
  1085. return io.ErrUnexpectedEOF
  1086. }
  1087. return nil
  1088. }
  1089. func (m *GetLiveCheckListResp) Unmarshal(dAtA []byte) error {
  1090. l := len(dAtA)
  1091. iNdEx := 0
  1092. for iNdEx < l {
  1093. preIndex := iNdEx
  1094. var wire uint64
  1095. for shift := uint(0); ; shift += 7 {
  1096. if shift >= 64 {
  1097. return ErrIntOverflowLivecheck
  1098. }
  1099. if iNdEx >= l {
  1100. return io.ErrUnexpectedEOF
  1101. }
  1102. b := dAtA[iNdEx]
  1103. iNdEx++
  1104. wire |= (uint64(b) & 0x7F) << shift
  1105. if b < 0x80 {
  1106. break
  1107. }
  1108. }
  1109. fieldNum := int32(wire >> 3)
  1110. wireType := int(wire & 0x7)
  1111. if wireType == 4 {
  1112. return fmt.Errorf("proto: GetLiveCheckListResp: wiretype end group for non-group")
  1113. }
  1114. if fieldNum <= 0 {
  1115. return fmt.Errorf("proto: GetLiveCheckListResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1116. }
  1117. switch fieldNum {
  1118. case 1:
  1119. if wireType != 2 {
  1120. return fmt.Errorf("proto: wrong wireType = %d for field Android", wireType)
  1121. }
  1122. var msglen int
  1123. for shift := uint(0); ; shift += 7 {
  1124. if shift >= 64 {
  1125. return ErrIntOverflowLivecheck
  1126. }
  1127. if iNdEx >= l {
  1128. return io.ErrUnexpectedEOF
  1129. }
  1130. b := dAtA[iNdEx]
  1131. iNdEx++
  1132. msglen |= (int(b) & 0x7F) << shift
  1133. if b < 0x80 {
  1134. break
  1135. }
  1136. }
  1137. if msglen < 0 {
  1138. return ErrInvalidLengthLivecheck
  1139. }
  1140. postIndex := iNdEx + msglen
  1141. if postIndex > l {
  1142. return io.ErrUnexpectedEOF
  1143. }
  1144. m.Android = append(m.Android, &GetLiveCheckListResp_Platform{})
  1145. if err := m.Android[len(m.Android)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1146. return err
  1147. }
  1148. iNdEx = postIndex
  1149. case 2:
  1150. if wireType != 2 {
  1151. return fmt.Errorf("proto: wrong wireType = %d for field Ios", wireType)
  1152. }
  1153. var msglen int
  1154. for shift := uint(0); ; shift += 7 {
  1155. if shift >= 64 {
  1156. return ErrIntOverflowLivecheck
  1157. }
  1158. if iNdEx >= l {
  1159. return io.ErrUnexpectedEOF
  1160. }
  1161. b := dAtA[iNdEx]
  1162. iNdEx++
  1163. msglen |= (int(b) & 0x7F) << shift
  1164. if b < 0x80 {
  1165. break
  1166. }
  1167. }
  1168. if msglen < 0 {
  1169. return ErrInvalidLengthLivecheck
  1170. }
  1171. postIndex := iNdEx + msglen
  1172. if postIndex > l {
  1173. return io.ErrUnexpectedEOF
  1174. }
  1175. m.Ios = append(m.Ios, &GetLiveCheckListResp_Platform{})
  1176. if err := m.Ios[len(m.Ios)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1177. return err
  1178. }
  1179. iNdEx = postIndex
  1180. default:
  1181. iNdEx = preIndex
  1182. skippy, err := skipLivecheck(dAtA[iNdEx:])
  1183. if err != nil {
  1184. return err
  1185. }
  1186. if skippy < 0 {
  1187. return ErrInvalidLengthLivecheck
  1188. }
  1189. if (iNdEx + skippy) > l {
  1190. return io.ErrUnexpectedEOF
  1191. }
  1192. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1193. iNdEx += skippy
  1194. }
  1195. }
  1196. if iNdEx > l {
  1197. return io.ErrUnexpectedEOF
  1198. }
  1199. return nil
  1200. }
  1201. func (m *GetLiveCheckListResp_Platform) Unmarshal(dAtA []byte) error {
  1202. l := len(dAtA)
  1203. iNdEx := 0
  1204. for iNdEx < l {
  1205. preIndex := iNdEx
  1206. var wire uint64
  1207. for shift := uint(0); ; shift += 7 {
  1208. if shift >= 64 {
  1209. return ErrIntOverflowLivecheck
  1210. }
  1211. if iNdEx >= l {
  1212. return io.ErrUnexpectedEOF
  1213. }
  1214. b := dAtA[iNdEx]
  1215. iNdEx++
  1216. wire |= (uint64(b) & 0x7F) << shift
  1217. if b < 0x80 {
  1218. break
  1219. }
  1220. }
  1221. fieldNum := int32(wire >> 3)
  1222. wireType := int(wire & 0x7)
  1223. if wireType == 4 {
  1224. return fmt.Errorf("proto: Platform: wiretype end group for non-group")
  1225. }
  1226. if fieldNum <= 0 {
  1227. return fmt.Errorf("proto: Platform: illegal tag %d (wire type %d)", fieldNum, wire)
  1228. }
  1229. switch fieldNum {
  1230. case 1:
  1231. if wireType != 2 {
  1232. return fmt.Errorf("proto: wrong wireType = %d for field System", wireType)
  1233. }
  1234. var stringLen uint64
  1235. for shift := uint(0); ; shift += 7 {
  1236. if shift >= 64 {
  1237. return ErrIntOverflowLivecheck
  1238. }
  1239. if iNdEx >= l {
  1240. return io.ErrUnexpectedEOF
  1241. }
  1242. b := dAtA[iNdEx]
  1243. iNdEx++
  1244. stringLen |= (uint64(b) & 0x7F) << shift
  1245. if b < 0x80 {
  1246. break
  1247. }
  1248. }
  1249. intStringLen := int(stringLen)
  1250. if intStringLen < 0 {
  1251. return ErrInvalidLengthLivecheck
  1252. }
  1253. postIndex := iNdEx + intStringLen
  1254. if postIndex > l {
  1255. return io.ErrUnexpectedEOF
  1256. }
  1257. m.System = string(dAtA[iNdEx:postIndex])
  1258. iNdEx = postIndex
  1259. case 2:
  1260. if wireType != 2 {
  1261. return fmt.Errorf("proto: wrong wireType = %d for field Mobile", wireType)
  1262. }
  1263. var stringLen uint64
  1264. for shift := uint(0); ; shift += 7 {
  1265. if shift >= 64 {
  1266. return ErrIntOverflowLivecheck
  1267. }
  1268. if iNdEx >= l {
  1269. return io.ErrUnexpectedEOF
  1270. }
  1271. b := dAtA[iNdEx]
  1272. iNdEx++
  1273. stringLen |= (uint64(b) & 0x7F) << shift
  1274. if b < 0x80 {
  1275. break
  1276. }
  1277. }
  1278. intStringLen := int(stringLen)
  1279. if intStringLen < 0 {
  1280. return ErrInvalidLengthLivecheck
  1281. }
  1282. postIndex := iNdEx + intStringLen
  1283. if postIndex > l {
  1284. return io.ErrUnexpectedEOF
  1285. }
  1286. m.Mobile = append(m.Mobile, string(dAtA[iNdEx:postIndex]))
  1287. iNdEx = postIndex
  1288. default:
  1289. iNdEx = preIndex
  1290. skippy, err := skipLivecheck(dAtA[iNdEx:])
  1291. if err != nil {
  1292. return err
  1293. }
  1294. if skippy < 0 {
  1295. return ErrInvalidLengthLivecheck
  1296. }
  1297. if (iNdEx + skippy) > l {
  1298. return io.ErrUnexpectedEOF
  1299. }
  1300. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1301. iNdEx += skippy
  1302. }
  1303. }
  1304. if iNdEx > l {
  1305. return io.ErrUnexpectedEOF
  1306. }
  1307. return nil
  1308. }
  1309. func (m *AddLiveCheckReq) Unmarshal(dAtA []byte) error {
  1310. l := len(dAtA)
  1311. iNdEx := 0
  1312. for iNdEx < l {
  1313. preIndex := iNdEx
  1314. var wire uint64
  1315. for shift := uint(0); ; shift += 7 {
  1316. if shift >= 64 {
  1317. return ErrIntOverflowLivecheck
  1318. }
  1319. if iNdEx >= l {
  1320. return io.ErrUnexpectedEOF
  1321. }
  1322. b := dAtA[iNdEx]
  1323. iNdEx++
  1324. wire |= (uint64(b) & 0x7F) << shift
  1325. if b < 0x80 {
  1326. break
  1327. }
  1328. }
  1329. fieldNum := int32(wire >> 3)
  1330. wireType := int(wire & 0x7)
  1331. if wireType == 4 {
  1332. return fmt.Errorf("proto: AddLiveCheckReq: wiretype end group for non-group")
  1333. }
  1334. if fieldNum <= 0 {
  1335. return fmt.Errorf("proto: AddLiveCheckReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1336. }
  1337. switch fieldNum {
  1338. case 1:
  1339. if wireType != 2 {
  1340. return fmt.Errorf("proto: wrong wireType = %d for field LiveCheck", wireType)
  1341. }
  1342. var stringLen uint64
  1343. for shift := uint(0); ; shift += 7 {
  1344. if shift >= 64 {
  1345. return ErrIntOverflowLivecheck
  1346. }
  1347. if iNdEx >= l {
  1348. return io.ErrUnexpectedEOF
  1349. }
  1350. b := dAtA[iNdEx]
  1351. iNdEx++
  1352. stringLen |= (uint64(b) & 0x7F) << shift
  1353. if b < 0x80 {
  1354. break
  1355. }
  1356. }
  1357. intStringLen := int(stringLen)
  1358. if intStringLen < 0 {
  1359. return ErrInvalidLengthLivecheck
  1360. }
  1361. postIndex := iNdEx + intStringLen
  1362. if postIndex > l {
  1363. return io.ErrUnexpectedEOF
  1364. }
  1365. m.LiveCheck = string(dAtA[iNdEx:postIndex])
  1366. iNdEx = postIndex
  1367. default:
  1368. iNdEx = preIndex
  1369. skippy, err := skipLivecheck(dAtA[iNdEx:])
  1370. if err != nil {
  1371. return err
  1372. }
  1373. if skippy < 0 {
  1374. return ErrInvalidLengthLivecheck
  1375. }
  1376. if (iNdEx + skippy) > l {
  1377. return io.ErrUnexpectedEOF
  1378. }
  1379. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1380. iNdEx += skippy
  1381. }
  1382. }
  1383. if iNdEx > l {
  1384. return io.ErrUnexpectedEOF
  1385. }
  1386. return nil
  1387. }
  1388. func (m *AddLiveCheckResp) Unmarshal(dAtA []byte) error {
  1389. l := len(dAtA)
  1390. iNdEx := 0
  1391. for iNdEx < l {
  1392. preIndex := iNdEx
  1393. var wire uint64
  1394. for shift := uint(0); ; shift += 7 {
  1395. if shift >= 64 {
  1396. return ErrIntOverflowLivecheck
  1397. }
  1398. if iNdEx >= l {
  1399. return io.ErrUnexpectedEOF
  1400. }
  1401. b := dAtA[iNdEx]
  1402. iNdEx++
  1403. wire |= (uint64(b) & 0x7F) << shift
  1404. if b < 0x80 {
  1405. break
  1406. }
  1407. }
  1408. fieldNum := int32(wire >> 3)
  1409. wireType := int(wire & 0x7)
  1410. if wireType == 4 {
  1411. return fmt.Errorf("proto: AddLiveCheckResp: wiretype end group for non-group")
  1412. }
  1413. if fieldNum <= 0 {
  1414. return fmt.Errorf("proto: AddLiveCheckResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1415. }
  1416. switch fieldNum {
  1417. default:
  1418. iNdEx = preIndex
  1419. skippy, err := skipLivecheck(dAtA[iNdEx:])
  1420. if err != nil {
  1421. return err
  1422. }
  1423. if skippy < 0 {
  1424. return ErrInvalidLengthLivecheck
  1425. }
  1426. if (iNdEx + skippy) > l {
  1427. return io.ErrUnexpectedEOF
  1428. }
  1429. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1430. iNdEx += skippy
  1431. }
  1432. }
  1433. if iNdEx > l {
  1434. return io.ErrUnexpectedEOF
  1435. }
  1436. return nil
  1437. }
  1438. func skipLivecheck(dAtA []byte) (n int, err error) {
  1439. l := len(dAtA)
  1440. iNdEx := 0
  1441. for iNdEx < l {
  1442. var wire uint64
  1443. for shift := uint(0); ; shift += 7 {
  1444. if shift >= 64 {
  1445. return 0, ErrIntOverflowLivecheck
  1446. }
  1447. if iNdEx >= l {
  1448. return 0, io.ErrUnexpectedEOF
  1449. }
  1450. b := dAtA[iNdEx]
  1451. iNdEx++
  1452. wire |= (uint64(b) & 0x7F) << shift
  1453. if b < 0x80 {
  1454. break
  1455. }
  1456. }
  1457. wireType := int(wire & 0x7)
  1458. switch wireType {
  1459. case 0:
  1460. for shift := uint(0); ; shift += 7 {
  1461. if shift >= 64 {
  1462. return 0, ErrIntOverflowLivecheck
  1463. }
  1464. if iNdEx >= l {
  1465. return 0, io.ErrUnexpectedEOF
  1466. }
  1467. iNdEx++
  1468. if dAtA[iNdEx-1] < 0x80 {
  1469. break
  1470. }
  1471. }
  1472. return iNdEx, nil
  1473. case 1:
  1474. iNdEx += 8
  1475. return iNdEx, nil
  1476. case 2:
  1477. var length int
  1478. for shift := uint(0); ; shift += 7 {
  1479. if shift >= 64 {
  1480. return 0, ErrIntOverflowLivecheck
  1481. }
  1482. if iNdEx >= l {
  1483. return 0, io.ErrUnexpectedEOF
  1484. }
  1485. b := dAtA[iNdEx]
  1486. iNdEx++
  1487. length |= (int(b) & 0x7F) << shift
  1488. if b < 0x80 {
  1489. break
  1490. }
  1491. }
  1492. iNdEx += length
  1493. if length < 0 {
  1494. return 0, ErrInvalidLengthLivecheck
  1495. }
  1496. return iNdEx, nil
  1497. case 3:
  1498. for {
  1499. var innerWire uint64
  1500. var start int = iNdEx
  1501. for shift := uint(0); ; shift += 7 {
  1502. if shift >= 64 {
  1503. return 0, ErrIntOverflowLivecheck
  1504. }
  1505. if iNdEx >= l {
  1506. return 0, io.ErrUnexpectedEOF
  1507. }
  1508. b := dAtA[iNdEx]
  1509. iNdEx++
  1510. innerWire |= (uint64(b) & 0x7F) << shift
  1511. if b < 0x80 {
  1512. break
  1513. }
  1514. }
  1515. innerWireType := int(innerWire & 0x7)
  1516. if innerWireType == 4 {
  1517. break
  1518. }
  1519. next, err := skipLivecheck(dAtA[start:])
  1520. if err != nil {
  1521. return 0, err
  1522. }
  1523. iNdEx = start + next
  1524. }
  1525. return iNdEx, nil
  1526. case 4:
  1527. return iNdEx, nil
  1528. case 5:
  1529. iNdEx += 4
  1530. return iNdEx, nil
  1531. default:
  1532. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1533. }
  1534. }
  1535. panic("unreachable")
  1536. }
  1537. var (
  1538. ErrInvalidLengthLivecheck = fmt.Errorf("proto: negative length found during unmarshaling")
  1539. ErrIntOverflowLivecheck = fmt.Errorf("proto: integer overflow")
  1540. )
  1541. func init() {
  1542. proto.RegisterFile("api/grpc/v1/livecheck.proto", fileDescriptor_livecheck_926d699b974ee39d)
  1543. }
  1544. var fileDescriptor_livecheck_926d699b974ee39d = []byte{
  1545. // 477 bytes of a gzipped FileDescriptorProto
  1546. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x41, 0x8b, 0xd3, 0x40,
  1547. 0x14, 0x26, 0x29, 0xb4, 0xdb, 0xb7, 0x2b, 0x96, 0x51, 0x21, 0x44, 0x68, 0xba, 0xa3, 0xd5, 0xf5,
  1548. 0x60, 0x42, 0x57, 0xbc, 0x2c, 0x78, 0xb0, 0x7b, 0x50, 0xa4, 0x07, 0x09, 0xe8, 0x41, 0x0f, 0x4b,
  1549. 0x9a, 0xcc, 0x76, 0x07, 0x53, 0x67, 0x3a, 0x93, 0x06, 0xfc, 0x13, 0x5e, 0xfc, 0x53, 0x1e, 0xf5,
  1550. 0x0f, 0x04, 0xe9, 0xb1, 0xc7, 0xfe, 0x02, 0x99, 0x99, 0x24, 0x76, 0xdb, 0xaa, 0x65, 0x2f, 0x65,
  1551. 0xde, 0xf7, 0xde, 0xf7, 0x75, 0xde, 0xf7, 0x4d, 0xe0, 0x7e, 0xc4, 0x69, 0x30, 0x11, 0x3c, 0x0e,
  1552. 0xf2, 0x41, 0x90, 0xd2, 0x9c, 0xc4, 0x57, 0x24, 0xfe, 0xe4, 0x73, 0xc1, 0x32, 0x86, 0x3a, 0x0a,
  1553. 0xf0, 0x05, 0x91, 0x6c, 0x2e, 0x62, 0xe2, 0xe7, 0x03, 0xf7, 0xe9, 0x84, 0x66, 0x57, 0xf3, 0xb1,
  1554. 0x1f, 0xb3, 0x69, 0x30, 0x61, 0x13, 0x16, 0xe8, 0xc1, 0xf1, 0xfc, 0x52, 0x57, 0xba, 0xd0, 0x27,
  1555. 0x23, 0x80, 0x7f, 0x5a, 0x70, 0x34, 0xa2, 0x39, 0x39, 0x57, 0xa2, 0x21, 0x99, 0xa1, 0x73, 0x38,
  1556. 0xe0, 0x69, 0x94, 0x5d, 0x32, 0x31, 0x75, 0xac, 0x9e, 0x75, 0xd2, 0x1e, 0x3e, 0x5e, 0x15, 0xde,
  1557. 0x03, 0x55, 0x9f, 0xe1, 0xaa, 0x83, 0x7b, 0x79, 0x94, 0xd2, 0x24, 0xca, 0xc8, 0x19, 0x16, 0x64,
  1558. 0x36, 0xa7, 0x82, 0x24, 0x38, 0xac, 0x89, 0xe8, 0x05, 0x34, 0xe5, 0x17, 0x99, 0x91, 0xa9, 0x63,
  1559. 0x6b, 0x89, 0xfe, 0xaa, 0xf0, 0x8e, 0x8d, 0x84, 0xc1, 0x77, 0x0b, 0x94, 0x24, 0x45, 0x9f, 0xb2,
  1560. 0x31, 0x4d, 0x89, 0xd3, 0xd8, 0xa4, 0x1b, 0xfc, 0x2f, 0xf4, 0xb2, 0xf9, 0x1c, 0x6e, 0xad, 0xad,
  1561. 0x24, 0x39, 0x7a, 0x08, 0x2d, 0x2a, 0x2f, 0x94, 0x55, 0x7a, 0xa5, 0xc6, 0xf0, 0x70, 0x59, 0x78,
  1562. 0x15, 0x14, 0x36, 0xa9, 0x54, 0xe3, 0xf8, 0x1e, 0xdc, 0x79, 0x45, 0xb2, 0x9a, 0x39, 0xa2, 0x32,
  1563. 0x0b, 0xc9, 0x0c, 0x7f, 0xb5, 0xe1, 0xee, 0x36, 0x2e, 0x39, 0x7a, 0x0f, 0xad, 0xe8, 0x73, 0x22,
  1564. 0x18, 0x4d, 0x1c, 0xab, 0xd7, 0x38, 0x39, 0x3c, 0x0d, 0xfc, 0xcd, 0x34, 0xfc, 0x5d, 0x44, 0xff,
  1565. 0x6d, 0x69, 0x93, 0xb9, 0x46, 0xa9, 0x11, 0x56, 0x07, 0xf4, 0x06, 0x1a, 0x94, 0x49, 0xc7, 0xbe,
  1566. 0x99, 0x66, 0x6b, 0x59, 0x78, 0x8a, 0x1f, 0xaa, 0x1f, 0x37, 0x84, 0x83, 0xaa, 0x83, 0x70, 0x1d,
  1567. 0x8a, 0xc9, 0x15, 0x96, 0x85, 0x57, 0x22, 0xb5, 0xf3, 0xb8, 0x76, 0x5e, 0xfd, 0x7d, 0x39, 0x63,
  1568. 0x90, 0xda, 0xde, 0x8f, 0x70, 0xfb, 0x65, 0x92, 0x5c, 0x7b, 0x34, 0xaf, 0x01, 0xd4, 0x35, 0x2f,
  1569. 0xf4, 0xd3, 0x2c, 0xe5, 0x9f, 0xac, 0x0a, 0xaf, 0x6f, 0x42, 0xfb, 0xd3, 0xdb, 0x1d, 0x5c, 0x3b,
  1570. 0xad, 0xc4, 0x30, 0x82, 0xce, 0x75, 0x71, 0xc9, 0x4f, 0xbf, 0xd9, 0xd0, 0xae, 0x11, 0x34, 0x5a,
  1571. 0x2f, 0xba, 0xdb, 0xf6, 0xac, 0x5f, 0xcc, 0xf5, 0xfe, 0xd9, 0x97, 0x1c, 0x45, 0xd0, 0xd9, 0xf4,
  1572. 0x13, 0xf5, 0xf7, 0xf1, 0x7c, 0xe6, 0x3e, 0xda, 0x2f, 0x1a, 0xf4, 0x0e, 0x8e, 0xd6, 0x57, 0x42,
  1573. 0xc7, 0xdb, 0xbc, 0x0d, 0x3f, 0x5d, 0xfc, 0xbf, 0x11, 0xc9, 0x87, 0x9d, 0xef, 0x8b, 0xae, 0xf5,
  1574. 0x63, 0xd1, 0xb5, 0x7e, 0x2d, 0xba, 0xd6, 0x07, 0x3b, 0x1f, 0x8c, 0x9b, 0xfa, 0x93, 0x7e, 0xf6,
  1575. 0x3b, 0x00, 0x00, 0xff, 0xff, 0x46, 0x71, 0xad, 0x98, 0x32, 0x04, 0x00, 0x00,
  1576. }