api.pb.go 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/bbq/push/api/grpc/v1/api.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 strings "strings"
  13. import reflect "reflect"
  14. import io "io"
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  24. type Device struct {
  25. RegisterID string `protobuf:"bytes,1,opt,name=register_id,json=registerId,proto3" json:"register_id" form:"register_id"`
  26. Platform int32 `protobuf:"varint,2,opt,name=platform,proto3" json:"platform" form:"platform"`
  27. SDK int32 `protobuf:"varint,3,opt,name=sdk,proto3" json:"sdk" form:"sdk"`
  28. SendNo int64 `protobuf:"varint,4,opt,name=send_no,json=sendNo,proto3" json:"send_no" form:"send_no"`
  29. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  30. XXX_unrecognized []byte `json:"-"`
  31. XXX_sizecache int32 `json:"-"`
  32. }
  33. func (m *Device) Reset() { *m = Device{} }
  34. func (*Device) ProtoMessage() {}
  35. func (*Device) Descriptor() ([]byte, []int) {
  36. return fileDescriptor_api_4b790079c5d995c4, []int{0}
  37. }
  38. func (m *Device) XXX_Unmarshal(b []byte) error {
  39. return m.Unmarshal(b)
  40. }
  41. func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  42. if deterministic {
  43. return xxx_messageInfo_Device.Marshal(b, m, deterministic)
  44. } else {
  45. b = b[:cap(b)]
  46. n, err := m.MarshalTo(b)
  47. if err != nil {
  48. return nil, err
  49. }
  50. return b[:n], nil
  51. }
  52. }
  53. func (dst *Device) XXX_Merge(src proto.Message) {
  54. xxx_messageInfo_Device.Merge(dst, src)
  55. }
  56. func (m *Device) XXX_Size() int {
  57. return m.Size()
  58. }
  59. func (m *Device) XXX_DiscardUnknown() {
  60. xxx_messageInfo_Device.DiscardUnknown(m)
  61. }
  62. var xxx_messageInfo_Device proto.InternalMessageInfo
  63. type Extra struct {
  64. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token" form:"token"`
  65. Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema" form:"schema"`
  66. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  67. XXX_unrecognized []byte `json:"-"`
  68. XXX_sizecache int32 `json:"-"`
  69. }
  70. func (m *Extra) Reset() { *m = Extra{} }
  71. func (*Extra) ProtoMessage() {}
  72. func (*Extra) Descriptor() ([]byte, []int) {
  73. return fileDescriptor_api_4b790079c5d995c4, []int{1}
  74. }
  75. func (m *Extra) XXX_Unmarshal(b []byte) error {
  76. return m.Unmarshal(b)
  77. }
  78. func (m *Extra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  79. if deterministic {
  80. return xxx_messageInfo_Extra.Marshal(b, m, deterministic)
  81. } else {
  82. b = b[:cap(b)]
  83. n, err := m.MarshalTo(b)
  84. if err != nil {
  85. return nil, err
  86. }
  87. return b[:n], nil
  88. }
  89. }
  90. func (dst *Extra) XXX_Merge(src proto.Message) {
  91. xxx_messageInfo_Extra.Merge(dst, src)
  92. }
  93. func (m *Extra) XXX_Size() int {
  94. return m.Size()
  95. }
  96. func (m *Extra) XXX_DiscardUnknown() {
  97. xxx_messageInfo_Extra.DiscardUnknown(m)
  98. }
  99. var xxx_messageInfo_Extra proto.InternalMessageInfo
  100. type NotificationBody struct {
  101. Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title" form:"title"`
  102. Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content" form:"content"`
  103. Sound string `protobuf:"bytes,3,opt,name=sound,proto3" json:"sound" form:"sound"`
  104. Badge int32 `protobuf:"varint,4,opt,name=badge,proto3" json:"badge" form:"badge"`
  105. Extra string `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra" form:"extra"`
  106. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  107. XXX_unrecognized []byte `json:"-"`
  108. XXX_sizecache int32 `json:"-"`
  109. }
  110. func (m *NotificationBody) Reset() { *m = NotificationBody{} }
  111. func (*NotificationBody) ProtoMessage() {}
  112. func (*NotificationBody) Descriptor() ([]byte, []int) {
  113. return fileDescriptor_api_4b790079c5d995c4, []int{2}
  114. }
  115. func (m *NotificationBody) XXX_Unmarshal(b []byte) error {
  116. return m.Unmarshal(b)
  117. }
  118. func (m *NotificationBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  119. if deterministic {
  120. return xxx_messageInfo_NotificationBody.Marshal(b, m, deterministic)
  121. } else {
  122. b = b[:cap(b)]
  123. n, err := m.MarshalTo(b)
  124. if err != nil {
  125. return nil, err
  126. }
  127. return b[:n], nil
  128. }
  129. }
  130. func (dst *NotificationBody) XXX_Merge(src proto.Message) {
  131. xxx_messageInfo_NotificationBody.Merge(dst, src)
  132. }
  133. func (m *NotificationBody) XXX_Size() int {
  134. return m.Size()
  135. }
  136. func (m *NotificationBody) XXX_DiscardUnknown() {
  137. xxx_messageInfo_NotificationBody.DiscardUnknown(m)
  138. }
  139. var xxx_messageInfo_NotificationBody proto.InternalMessageInfo
  140. type MessageBody struct {
  141. Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title" form:"title"`
  142. Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content" form:"content"`
  143. ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type" form:"content_type"`
  144. Extra string `protobuf:"bytes,4,opt,name=extra,proto3" json:"extra" form:"extra"`
  145. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  146. XXX_unrecognized []byte `json:"-"`
  147. XXX_sizecache int32 `json:"-"`
  148. }
  149. func (m *MessageBody) Reset() { *m = MessageBody{} }
  150. func (*MessageBody) ProtoMessage() {}
  151. func (*MessageBody) Descriptor() ([]byte, []int) {
  152. return fileDescriptor_api_4b790079c5d995c4, []int{3}
  153. }
  154. func (m *MessageBody) XXX_Unmarshal(b []byte) error {
  155. return m.Unmarshal(b)
  156. }
  157. func (m *MessageBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  158. if deterministic {
  159. return xxx_messageInfo_MessageBody.Marshal(b, m, deterministic)
  160. } else {
  161. b = b[:cap(b)]
  162. n, err := m.MarshalTo(b)
  163. if err != nil {
  164. return nil, err
  165. }
  166. return b[:n], nil
  167. }
  168. }
  169. func (dst *MessageBody) XXX_Merge(src proto.Message) {
  170. xxx_messageInfo_MessageBody.Merge(dst, src)
  171. }
  172. func (m *MessageBody) XXX_Size() int {
  173. return m.Size()
  174. }
  175. func (m *MessageBody) XXX_DiscardUnknown() {
  176. xxx_messageInfo_MessageBody.DiscardUnknown(m)
  177. }
  178. var xxx_messageInfo_MessageBody proto.InternalMessageInfo
  179. type NotificationRequest struct {
  180. Dev []*Device `protobuf:"bytes,1,rep,name=dev" json:"dev" form:"dev"`
  181. Body *NotificationBody `protobuf:"bytes,2,opt,name=body" json:"body" form:"body"`
  182. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  183. XXX_unrecognized []byte `json:"-"`
  184. XXX_sizecache int32 `json:"-"`
  185. }
  186. func (m *NotificationRequest) Reset() { *m = NotificationRequest{} }
  187. func (*NotificationRequest) ProtoMessage() {}
  188. func (*NotificationRequest) Descriptor() ([]byte, []int) {
  189. return fileDescriptor_api_4b790079c5d995c4, []int{4}
  190. }
  191. func (m *NotificationRequest) XXX_Unmarshal(b []byte) error {
  192. return m.Unmarshal(b)
  193. }
  194. func (m *NotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  195. if deterministic {
  196. return xxx_messageInfo_NotificationRequest.Marshal(b, m, deterministic)
  197. } else {
  198. b = b[:cap(b)]
  199. n, err := m.MarshalTo(b)
  200. if err != nil {
  201. return nil, err
  202. }
  203. return b[:n], nil
  204. }
  205. }
  206. func (dst *NotificationRequest) XXX_Merge(src proto.Message) {
  207. xxx_messageInfo_NotificationRequest.Merge(dst, src)
  208. }
  209. func (m *NotificationRequest) XXX_Size() int {
  210. return m.Size()
  211. }
  212. func (m *NotificationRequest) XXX_DiscardUnknown() {
  213. xxx_messageInfo_NotificationRequest.DiscardUnknown(m)
  214. }
  215. var xxx_messageInfo_NotificationRequest proto.InternalMessageInfo
  216. type PushResult struct {
  217. SendNo string `protobuf:"bytes,1,opt,name=send_no,json=sendNo,proto3" json:"sendno,omitempty" form:"sendno"`
  218. MsgID string `protobuf:"bytes,2,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty" form:"msg_id"`
  219. Error *PushError `protobuf:"bytes,3,opt,name=err" json:"error,omitempty" form:"error"`
  220. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  221. XXX_unrecognized []byte `json:"-"`
  222. XXX_sizecache int32 `json:"-"`
  223. }
  224. func (m *PushResult) Reset() { *m = PushResult{} }
  225. func (*PushResult) ProtoMessage() {}
  226. func (*PushResult) Descriptor() ([]byte, []int) {
  227. return fileDescriptor_api_4b790079c5d995c4, []int{5}
  228. }
  229. func (m *PushResult) XXX_Unmarshal(b []byte) error {
  230. return m.Unmarshal(b)
  231. }
  232. func (m *PushResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  233. if deterministic {
  234. return xxx_messageInfo_PushResult.Marshal(b, m, deterministic)
  235. } else {
  236. b = b[:cap(b)]
  237. n, err := m.MarshalTo(b)
  238. if err != nil {
  239. return nil, err
  240. }
  241. return b[:n], nil
  242. }
  243. }
  244. func (dst *PushResult) XXX_Merge(src proto.Message) {
  245. xxx_messageInfo_PushResult.Merge(dst, src)
  246. }
  247. func (m *PushResult) XXX_Size() int {
  248. return m.Size()
  249. }
  250. func (m *PushResult) XXX_DiscardUnknown() {
  251. xxx_messageInfo_PushResult.DiscardUnknown(m)
  252. }
  253. var xxx_messageInfo_PushResult proto.InternalMessageInfo
  254. type PushError struct {
  255. Message string `protobuf:"bytes,1,opt,name=msg,proto3" json:"message" form:"message"`
  256. Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code" form:"code"`
  257. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  258. XXX_unrecognized []byte `json:"-"`
  259. XXX_sizecache int32 `json:"-"`
  260. }
  261. func (m *PushError) Reset() { *m = PushError{} }
  262. func (*PushError) ProtoMessage() {}
  263. func (*PushError) Descriptor() ([]byte, []int) {
  264. return fileDescriptor_api_4b790079c5d995c4, []int{6}
  265. }
  266. func (m *PushError) XXX_Unmarshal(b []byte) error {
  267. return m.Unmarshal(b)
  268. }
  269. func (m *PushError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  270. if deterministic {
  271. return xxx_messageInfo_PushError.Marshal(b, m, deterministic)
  272. } else {
  273. b = b[:cap(b)]
  274. n, err := m.MarshalTo(b)
  275. if err != nil {
  276. return nil, err
  277. }
  278. return b[:n], nil
  279. }
  280. }
  281. func (dst *PushError) XXX_Merge(src proto.Message) {
  282. xxx_messageInfo_PushError.Merge(dst, src)
  283. }
  284. func (m *PushError) XXX_Size() int {
  285. return m.Size()
  286. }
  287. func (m *PushError) XXX_DiscardUnknown() {
  288. xxx_messageInfo_PushError.DiscardUnknown(m)
  289. }
  290. var xxx_messageInfo_PushError proto.InternalMessageInfo
  291. type NotificationResponse struct {
  292. Result []*PushResult `protobuf:"bytes,1,rep,name=result" json:"result" form:"result"`
  293. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  294. XXX_unrecognized []byte `json:"-"`
  295. XXX_sizecache int32 `json:"-"`
  296. }
  297. func (m *NotificationResponse) Reset() { *m = NotificationResponse{} }
  298. func (*NotificationResponse) ProtoMessage() {}
  299. func (*NotificationResponse) Descriptor() ([]byte, []int) {
  300. return fileDescriptor_api_4b790079c5d995c4, []int{7}
  301. }
  302. func (m *NotificationResponse) XXX_Unmarshal(b []byte) error {
  303. return m.Unmarshal(b)
  304. }
  305. func (m *NotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  306. if deterministic {
  307. return xxx_messageInfo_NotificationResponse.Marshal(b, m, deterministic)
  308. } else {
  309. b = b[:cap(b)]
  310. n, err := m.MarshalTo(b)
  311. if err != nil {
  312. return nil, err
  313. }
  314. return b[:n], nil
  315. }
  316. }
  317. func (dst *NotificationResponse) XXX_Merge(src proto.Message) {
  318. xxx_messageInfo_NotificationResponse.Merge(dst, src)
  319. }
  320. func (m *NotificationResponse) XXX_Size() int {
  321. return m.Size()
  322. }
  323. func (m *NotificationResponse) XXX_DiscardUnknown() {
  324. xxx_messageInfo_NotificationResponse.DiscardUnknown(m)
  325. }
  326. var xxx_messageInfo_NotificationResponse proto.InternalMessageInfo
  327. type MessageRequest struct {
  328. Dev []*Device `protobuf:"bytes,1,rep,name=dev" json:"dev" form:"dev"`
  329. Body *MessageBody `protobuf:"bytes,2,opt,name=body" json:"body" form:"body"`
  330. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  331. XXX_unrecognized []byte `json:"-"`
  332. XXX_sizecache int32 `json:"-"`
  333. }
  334. func (m *MessageRequest) Reset() { *m = MessageRequest{} }
  335. func (*MessageRequest) ProtoMessage() {}
  336. func (*MessageRequest) Descriptor() ([]byte, []int) {
  337. return fileDescriptor_api_4b790079c5d995c4, []int{8}
  338. }
  339. func (m *MessageRequest) XXX_Unmarshal(b []byte) error {
  340. return m.Unmarshal(b)
  341. }
  342. func (m *MessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  343. if deterministic {
  344. return xxx_messageInfo_MessageRequest.Marshal(b, m, deterministic)
  345. } else {
  346. b = b[:cap(b)]
  347. n, err := m.MarshalTo(b)
  348. if err != nil {
  349. return nil, err
  350. }
  351. return b[:n], nil
  352. }
  353. }
  354. func (dst *MessageRequest) XXX_Merge(src proto.Message) {
  355. xxx_messageInfo_MessageRequest.Merge(dst, src)
  356. }
  357. func (m *MessageRequest) XXX_Size() int {
  358. return m.Size()
  359. }
  360. func (m *MessageRequest) XXX_DiscardUnknown() {
  361. xxx_messageInfo_MessageRequest.DiscardUnknown(m)
  362. }
  363. var xxx_messageInfo_MessageRequest proto.InternalMessageInfo
  364. type MessageResponse struct {
  365. Result []*PushResult `protobuf:"bytes,1,rep,name=result" json:"result" form:"result"`
  366. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  367. XXX_unrecognized []byte `json:"-"`
  368. XXX_sizecache int32 `json:"-"`
  369. }
  370. func (m *MessageResponse) Reset() { *m = MessageResponse{} }
  371. func (*MessageResponse) ProtoMessage() {}
  372. func (*MessageResponse) Descriptor() ([]byte, []int) {
  373. return fileDescriptor_api_4b790079c5d995c4, []int{9}
  374. }
  375. func (m *MessageResponse) XXX_Unmarshal(b []byte) error {
  376. return m.Unmarshal(b)
  377. }
  378. func (m *MessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  379. if deterministic {
  380. return xxx_messageInfo_MessageResponse.Marshal(b, m, deterministic)
  381. } else {
  382. b = b[:cap(b)]
  383. n, err := m.MarshalTo(b)
  384. if err != nil {
  385. return nil, err
  386. }
  387. return b[:n], nil
  388. }
  389. }
  390. func (dst *MessageResponse) XXX_Merge(src proto.Message) {
  391. xxx_messageInfo_MessageResponse.Merge(dst, src)
  392. }
  393. func (m *MessageResponse) XXX_Size() int {
  394. return m.Size()
  395. }
  396. func (m *MessageResponse) XXX_DiscardUnknown() {
  397. xxx_messageInfo_MessageResponse.DiscardUnknown(m)
  398. }
  399. var xxx_messageInfo_MessageResponse proto.InternalMessageInfo
  400. func init() {
  401. proto.RegisterType((*Device)(nil), "bbq.service.push.v1.Device")
  402. proto.RegisterType((*Extra)(nil), "bbq.service.push.v1.Extra")
  403. proto.RegisterType((*NotificationBody)(nil), "bbq.service.push.v1.NotificationBody")
  404. proto.RegisterType((*MessageBody)(nil), "bbq.service.push.v1.MessageBody")
  405. proto.RegisterType((*NotificationRequest)(nil), "bbq.service.push.v1.NotificationRequest")
  406. proto.RegisterType((*PushResult)(nil), "bbq.service.push.v1.PushResult")
  407. proto.RegisterType((*PushError)(nil), "bbq.service.push.v1.PushError")
  408. proto.RegisterType((*NotificationResponse)(nil), "bbq.service.push.v1.NotificationResponse")
  409. proto.RegisterType((*MessageRequest)(nil), "bbq.service.push.v1.MessageRequest")
  410. proto.RegisterType((*MessageResponse)(nil), "bbq.service.push.v1.MessageResponse")
  411. }
  412. // Reference imports to suppress errors if they are not otherwise used.
  413. var _ context.Context
  414. var _ grpc.ClientConn
  415. // This is a compile-time assertion to ensure that this generated file
  416. // is compatible with the grpc package it is being compiled against.
  417. const _ = grpc.SupportPackageIsVersion4
  418. // PushClient is the client API for Push service.
  419. //
  420. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  421. type PushClient interface {
  422. Notification(ctx context.Context, in *NotificationRequest, opts ...grpc.CallOption) (*NotificationResponse, error)
  423. Message(ctx context.Context, in *MessageRequest, opts ...grpc.CallOption) (*MessageResponse, error)
  424. AsyncNotification(ctx context.Context, in *NotificationRequest, opts ...grpc.CallOption) (*NotificationResponse, error)
  425. AsyncMessage(ctx context.Context, in *MessageRequest, opts ...grpc.CallOption) (*MessageResponse, error)
  426. }
  427. type pushClient struct {
  428. cc *grpc.ClientConn
  429. }
  430. func NewPushClient(cc *grpc.ClientConn) PushClient {
  431. return &pushClient{cc}
  432. }
  433. func (c *pushClient) Notification(ctx context.Context, in *NotificationRequest, opts ...grpc.CallOption) (*NotificationResponse, error) {
  434. out := new(NotificationResponse)
  435. err := c.cc.Invoke(ctx, "/bbq.service.push.v1.Push/Notification", in, out, opts...)
  436. if err != nil {
  437. return nil, err
  438. }
  439. return out, nil
  440. }
  441. func (c *pushClient) Message(ctx context.Context, in *MessageRequest, opts ...grpc.CallOption) (*MessageResponse, error) {
  442. out := new(MessageResponse)
  443. err := c.cc.Invoke(ctx, "/bbq.service.push.v1.Push/Message", in, out, opts...)
  444. if err != nil {
  445. return nil, err
  446. }
  447. return out, nil
  448. }
  449. func (c *pushClient) AsyncNotification(ctx context.Context, in *NotificationRequest, opts ...grpc.CallOption) (*NotificationResponse, error) {
  450. out := new(NotificationResponse)
  451. err := c.cc.Invoke(ctx, "/bbq.service.push.v1.Push/AsyncNotification", in, out, opts...)
  452. if err != nil {
  453. return nil, err
  454. }
  455. return out, nil
  456. }
  457. func (c *pushClient) AsyncMessage(ctx context.Context, in *MessageRequest, opts ...grpc.CallOption) (*MessageResponse, error) {
  458. out := new(MessageResponse)
  459. err := c.cc.Invoke(ctx, "/bbq.service.push.v1.Push/AsyncMessage", in, out, opts...)
  460. if err != nil {
  461. return nil, err
  462. }
  463. return out, nil
  464. }
  465. // PushServer is the server API for Push service.
  466. type PushServer interface {
  467. Notification(context.Context, *NotificationRequest) (*NotificationResponse, error)
  468. Message(context.Context, *MessageRequest) (*MessageResponse, error)
  469. AsyncNotification(context.Context, *NotificationRequest) (*NotificationResponse, error)
  470. AsyncMessage(context.Context, *MessageRequest) (*MessageResponse, error)
  471. }
  472. func RegisterPushServer(s *grpc.Server, srv PushServer) {
  473. s.RegisterService(&_Push_serviceDesc, srv)
  474. }
  475. func _Push_Notification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  476. in := new(NotificationRequest)
  477. if err := dec(in); err != nil {
  478. return nil, err
  479. }
  480. if interceptor == nil {
  481. return srv.(PushServer).Notification(ctx, in)
  482. }
  483. info := &grpc.UnaryServerInfo{
  484. Server: srv,
  485. FullMethod: "/bbq.service.push.v1.Push/Notification",
  486. }
  487. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  488. return srv.(PushServer).Notification(ctx, req.(*NotificationRequest))
  489. }
  490. return interceptor(ctx, in, info, handler)
  491. }
  492. func _Push_Message_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  493. in := new(MessageRequest)
  494. if err := dec(in); err != nil {
  495. return nil, err
  496. }
  497. if interceptor == nil {
  498. return srv.(PushServer).Message(ctx, in)
  499. }
  500. info := &grpc.UnaryServerInfo{
  501. Server: srv,
  502. FullMethod: "/bbq.service.push.v1.Push/Message",
  503. }
  504. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  505. return srv.(PushServer).Message(ctx, req.(*MessageRequest))
  506. }
  507. return interceptor(ctx, in, info, handler)
  508. }
  509. func _Push_AsyncNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  510. in := new(NotificationRequest)
  511. if err := dec(in); err != nil {
  512. return nil, err
  513. }
  514. if interceptor == nil {
  515. return srv.(PushServer).AsyncNotification(ctx, in)
  516. }
  517. info := &grpc.UnaryServerInfo{
  518. Server: srv,
  519. FullMethod: "/bbq.service.push.v1.Push/AsyncNotification",
  520. }
  521. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  522. return srv.(PushServer).AsyncNotification(ctx, req.(*NotificationRequest))
  523. }
  524. return interceptor(ctx, in, info, handler)
  525. }
  526. func _Push_AsyncMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  527. in := new(MessageRequest)
  528. if err := dec(in); err != nil {
  529. return nil, err
  530. }
  531. if interceptor == nil {
  532. return srv.(PushServer).AsyncMessage(ctx, in)
  533. }
  534. info := &grpc.UnaryServerInfo{
  535. Server: srv,
  536. FullMethod: "/bbq.service.push.v1.Push/AsyncMessage",
  537. }
  538. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  539. return srv.(PushServer).AsyncMessage(ctx, req.(*MessageRequest))
  540. }
  541. return interceptor(ctx, in, info, handler)
  542. }
  543. var _Push_serviceDesc = grpc.ServiceDesc{
  544. ServiceName: "bbq.service.push.v1.Push",
  545. HandlerType: (*PushServer)(nil),
  546. Methods: []grpc.MethodDesc{
  547. {
  548. MethodName: "Notification",
  549. Handler: _Push_Notification_Handler,
  550. },
  551. {
  552. MethodName: "Message",
  553. Handler: _Push_Message_Handler,
  554. },
  555. {
  556. MethodName: "AsyncNotification",
  557. Handler: _Push_AsyncNotification_Handler,
  558. },
  559. {
  560. MethodName: "AsyncMessage",
  561. Handler: _Push_AsyncMessage_Handler,
  562. },
  563. },
  564. Streams: []grpc.StreamDesc{},
  565. Metadata: "app/service/bbq/push/api/grpc/v1/api.proto",
  566. }
  567. func (m *Device) Marshal() (dAtA []byte, err error) {
  568. size := m.Size()
  569. dAtA = make([]byte, size)
  570. n, err := m.MarshalTo(dAtA)
  571. if err != nil {
  572. return nil, err
  573. }
  574. return dAtA[:n], nil
  575. }
  576. func (m *Device) MarshalTo(dAtA []byte) (int, error) {
  577. var i int
  578. _ = i
  579. var l int
  580. _ = l
  581. if len(m.RegisterID) > 0 {
  582. dAtA[i] = 0xa
  583. i++
  584. i = encodeVarintApi(dAtA, i, uint64(len(m.RegisterID)))
  585. i += copy(dAtA[i:], m.RegisterID)
  586. }
  587. if m.Platform != 0 {
  588. dAtA[i] = 0x10
  589. i++
  590. i = encodeVarintApi(dAtA, i, uint64(m.Platform))
  591. }
  592. if m.SDK != 0 {
  593. dAtA[i] = 0x18
  594. i++
  595. i = encodeVarintApi(dAtA, i, uint64(m.SDK))
  596. }
  597. if m.SendNo != 0 {
  598. dAtA[i] = 0x20
  599. i++
  600. i = encodeVarintApi(dAtA, i, uint64(m.SendNo))
  601. }
  602. if m.XXX_unrecognized != nil {
  603. i += copy(dAtA[i:], m.XXX_unrecognized)
  604. }
  605. return i, nil
  606. }
  607. func (m *Extra) Marshal() (dAtA []byte, err error) {
  608. size := m.Size()
  609. dAtA = make([]byte, size)
  610. n, err := m.MarshalTo(dAtA)
  611. if err != nil {
  612. return nil, err
  613. }
  614. return dAtA[:n], nil
  615. }
  616. func (m *Extra) MarshalTo(dAtA []byte) (int, error) {
  617. var i int
  618. _ = i
  619. var l int
  620. _ = l
  621. if len(m.Token) > 0 {
  622. dAtA[i] = 0xa
  623. i++
  624. i = encodeVarintApi(dAtA, i, uint64(len(m.Token)))
  625. i += copy(dAtA[i:], m.Token)
  626. }
  627. if len(m.Schema) > 0 {
  628. dAtA[i] = 0x12
  629. i++
  630. i = encodeVarintApi(dAtA, i, uint64(len(m.Schema)))
  631. i += copy(dAtA[i:], m.Schema)
  632. }
  633. if m.XXX_unrecognized != nil {
  634. i += copy(dAtA[i:], m.XXX_unrecognized)
  635. }
  636. return i, nil
  637. }
  638. func (m *NotificationBody) Marshal() (dAtA []byte, err error) {
  639. size := m.Size()
  640. dAtA = make([]byte, size)
  641. n, err := m.MarshalTo(dAtA)
  642. if err != nil {
  643. return nil, err
  644. }
  645. return dAtA[:n], nil
  646. }
  647. func (m *NotificationBody) MarshalTo(dAtA []byte) (int, error) {
  648. var i int
  649. _ = i
  650. var l int
  651. _ = l
  652. if len(m.Title) > 0 {
  653. dAtA[i] = 0xa
  654. i++
  655. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  656. i += copy(dAtA[i:], m.Title)
  657. }
  658. if len(m.Content) > 0 {
  659. dAtA[i] = 0x12
  660. i++
  661. i = encodeVarintApi(dAtA, i, uint64(len(m.Content)))
  662. i += copy(dAtA[i:], m.Content)
  663. }
  664. if len(m.Sound) > 0 {
  665. dAtA[i] = 0x1a
  666. i++
  667. i = encodeVarintApi(dAtA, i, uint64(len(m.Sound)))
  668. i += copy(dAtA[i:], m.Sound)
  669. }
  670. if m.Badge != 0 {
  671. dAtA[i] = 0x20
  672. i++
  673. i = encodeVarintApi(dAtA, i, uint64(m.Badge))
  674. }
  675. if len(m.Extra) > 0 {
  676. dAtA[i] = 0x2a
  677. i++
  678. i = encodeVarintApi(dAtA, i, uint64(len(m.Extra)))
  679. i += copy(dAtA[i:], m.Extra)
  680. }
  681. if m.XXX_unrecognized != nil {
  682. i += copy(dAtA[i:], m.XXX_unrecognized)
  683. }
  684. return i, nil
  685. }
  686. func (m *MessageBody) Marshal() (dAtA []byte, err error) {
  687. size := m.Size()
  688. dAtA = make([]byte, size)
  689. n, err := m.MarshalTo(dAtA)
  690. if err != nil {
  691. return nil, err
  692. }
  693. return dAtA[:n], nil
  694. }
  695. func (m *MessageBody) MarshalTo(dAtA []byte) (int, error) {
  696. var i int
  697. _ = i
  698. var l int
  699. _ = l
  700. if len(m.Title) > 0 {
  701. dAtA[i] = 0xa
  702. i++
  703. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  704. i += copy(dAtA[i:], m.Title)
  705. }
  706. if len(m.Content) > 0 {
  707. dAtA[i] = 0x12
  708. i++
  709. i = encodeVarintApi(dAtA, i, uint64(len(m.Content)))
  710. i += copy(dAtA[i:], m.Content)
  711. }
  712. if len(m.ContentType) > 0 {
  713. dAtA[i] = 0x1a
  714. i++
  715. i = encodeVarintApi(dAtA, i, uint64(len(m.ContentType)))
  716. i += copy(dAtA[i:], m.ContentType)
  717. }
  718. if len(m.Extra) > 0 {
  719. dAtA[i] = 0x22
  720. i++
  721. i = encodeVarintApi(dAtA, i, uint64(len(m.Extra)))
  722. i += copy(dAtA[i:], m.Extra)
  723. }
  724. if m.XXX_unrecognized != nil {
  725. i += copy(dAtA[i:], m.XXX_unrecognized)
  726. }
  727. return i, nil
  728. }
  729. func (m *NotificationRequest) Marshal() (dAtA []byte, err error) {
  730. size := m.Size()
  731. dAtA = make([]byte, size)
  732. n, err := m.MarshalTo(dAtA)
  733. if err != nil {
  734. return nil, err
  735. }
  736. return dAtA[:n], nil
  737. }
  738. func (m *NotificationRequest) MarshalTo(dAtA []byte) (int, error) {
  739. var i int
  740. _ = i
  741. var l int
  742. _ = l
  743. if len(m.Dev) > 0 {
  744. for _, msg := range m.Dev {
  745. dAtA[i] = 0xa
  746. i++
  747. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  748. n, err := msg.MarshalTo(dAtA[i:])
  749. if err != nil {
  750. return 0, err
  751. }
  752. i += n
  753. }
  754. }
  755. if m.Body != nil {
  756. dAtA[i] = 0x12
  757. i++
  758. i = encodeVarintApi(dAtA, i, uint64(m.Body.Size()))
  759. n1, err := m.Body.MarshalTo(dAtA[i:])
  760. if err != nil {
  761. return 0, err
  762. }
  763. i += n1
  764. }
  765. if m.XXX_unrecognized != nil {
  766. i += copy(dAtA[i:], m.XXX_unrecognized)
  767. }
  768. return i, nil
  769. }
  770. func (m *PushResult) Marshal() (dAtA []byte, err error) {
  771. size := m.Size()
  772. dAtA = make([]byte, size)
  773. n, err := m.MarshalTo(dAtA)
  774. if err != nil {
  775. return nil, err
  776. }
  777. return dAtA[:n], nil
  778. }
  779. func (m *PushResult) MarshalTo(dAtA []byte) (int, error) {
  780. var i int
  781. _ = i
  782. var l int
  783. _ = l
  784. if len(m.SendNo) > 0 {
  785. dAtA[i] = 0xa
  786. i++
  787. i = encodeVarintApi(dAtA, i, uint64(len(m.SendNo)))
  788. i += copy(dAtA[i:], m.SendNo)
  789. }
  790. if len(m.MsgID) > 0 {
  791. dAtA[i] = 0x12
  792. i++
  793. i = encodeVarintApi(dAtA, i, uint64(len(m.MsgID)))
  794. i += copy(dAtA[i:], m.MsgID)
  795. }
  796. if m.Error != nil {
  797. dAtA[i] = 0x1a
  798. i++
  799. i = encodeVarintApi(dAtA, i, uint64(m.Error.Size()))
  800. n2, err := m.Error.MarshalTo(dAtA[i:])
  801. if err != nil {
  802. return 0, err
  803. }
  804. i += n2
  805. }
  806. if m.XXX_unrecognized != nil {
  807. i += copy(dAtA[i:], m.XXX_unrecognized)
  808. }
  809. return i, nil
  810. }
  811. func (m *PushError) Marshal() (dAtA []byte, err error) {
  812. size := m.Size()
  813. dAtA = make([]byte, size)
  814. n, err := m.MarshalTo(dAtA)
  815. if err != nil {
  816. return nil, err
  817. }
  818. return dAtA[:n], nil
  819. }
  820. func (m *PushError) MarshalTo(dAtA []byte) (int, error) {
  821. var i int
  822. _ = i
  823. var l int
  824. _ = l
  825. if len(m.Message) > 0 {
  826. dAtA[i] = 0xa
  827. i++
  828. i = encodeVarintApi(dAtA, i, uint64(len(m.Message)))
  829. i += copy(dAtA[i:], m.Message)
  830. }
  831. if m.Code != 0 {
  832. dAtA[i] = 0x10
  833. i++
  834. i = encodeVarintApi(dAtA, i, uint64(m.Code))
  835. }
  836. if m.XXX_unrecognized != nil {
  837. i += copy(dAtA[i:], m.XXX_unrecognized)
  838. }
  839. return i, nil
  840. }
  841. func (m *NotificationResponse) Marshal() (dAtA []byte, err error) {
  842. size := m.Size()
  843. dAtA = make([]byte, size)
  844. n, err := m.MarshalTo(dAtA)
  845. if err != nil {
  846. return nil, err
  847. }
  848. return dAtA[:n], nil
  849. }
  850. func (m *NotificationResponse) MarshalTo(dAtA []byte) (int, error) {
  851. var i int
  852. _ = i
  853. var l int
  854. _ = l
  855. if len(m.Result) > 0 {
  856. for _, msg := range m.Result {
  857. dAtA[i] = 0xa
  858. i++
  859. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  860. n, err := msg.MarshalTo(dAtA[i:])
  861. if err != nil {
  862. return 0, err
  863. }
  864. i += n
  865. }
  866. }
  867. if m.XXX_unrecognized != nil {
  868. i += copy(dAtA[i:], m.XXX_unrecognized)
  869. }
  870. return i, nil
  871. }
  872. func (m *MessageRequest) Marshal() (dAtA []byte, err error) {
  873. size := m.Size()
  874. dAtA = make([]byte, size)
  875. n, err := m.MarshalTo(dAtA)
  876. if err != nil {
  877. return nil, err
  878. }
  879. return dAtA[:n], nil
  880. }
  881. func (m *MessageRequest) MarshalTo(dAtA []byte) (int, error) {
  882. var i int
  883. _ = i
  884. var l int
  885. _ = l
  886. if len(m.Dev) > 0 {
  887. for _, msg := range m.Dev {
  888. dAtA[i] = 0xa
  889. i++
  890. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  891. n, err := msg.MarshalTo(dAtA[i:])
  892. if err != nil {
  893. return 0, err
  894. }
  895. i += n
  896. }
  897. }
  898. if m.Body != nil {
  899. dAtA[i] = 0x12
  900. i++
  901. i = encodeVarintApi(dAtA, i, uint64(m.Body.Size()))
  902. n3, err := m.Body.MarshalTo(dAtA[i:])
  903. if err != nil {
  904. return 0, err
  905. }
  906. i += n3
  907. }
  908. if m.XXX_unrecognized != nil {
  909. i += copy(dAtA[i:], m.XXX_unrecognized)
  910. }
  911. return i, nil
  912. }
  913. func (m *MessageResponse) Marshal() (dAtA []byte, err error) {
  914. size := m.Size()
  915. dAtA = make([]byte, size)
  916. n, err := m.MarshalTo(dAtA)
  917. if err != nil {
  918. return nil, err
  919. }
  920. return dAtA[:n], nil
  921. }
  922. func (m *MessageResponse) MarshalTo(dAtA []byte) (int, error) {
  923. var i int
  924. _ = i
  925. var l int
  926. _ = l
  927. if len(m.Result) > 0 {
  928. for _, msg := range m.Result {
  929. dAtA[i] = 0xa
  930. i++
  931. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  932. n, err := msg.MarshalTo(dAtA[i:])
  933. if err != nil {
  934. return 0, err
  935. }
  936. i += n
  937. }
  938. }
  939. if m.XXX_unrecognized != nil {
  940. i += copy(dAtA[i:], m.XXX_unrecognized)
  941. }
  942. return i, nil
  943. }
  944. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  945. for v >= 1<<7 {
  946. dAtA[offset] = uint8(v&0x7f | 0x80)
  947. v >>= 7
  948. offset++
  949. }
  950. dAtA[offset] = uint8(v)
  951. return offset + 1
  952. }
  953. func (m *Device) Size() (n int) {
  954. if m == nil {
  955. return 0
  956. }
  957. var l int
  958. _ = l
  959. l = len(m.RegisterID)
  960. if l > 0 {
  961. n += 1 + l + sovApi(uint64(l))
  962. }
  963. if m.Platform != 0 {
  964. n += 1 + sovApi(uint64(m.Platform))
  965. }
  966. if m.SDK != 0 {
  967. n += 1 + sovApi(uint64(m.SDK))
  968. }
  969. if m.SendNo != 0 {
  970. n += 1 + sovApi(uint64(m.SendNo))
  971. }
  972. if m.XXX_unrecognized != nil {
  973. n += len(m.XXX_unrecognized)
  974. }
  975. return n
  976. }
  977. func (m *Extra) Size() (n int) {
  978. if m == nil {
  979. return 0
  980. }
  981. var l int
  982. _ = l
  983. l = len(m.Token)
  984. if l > 0 {
  985. n += 1 + l + sovApi(uint64(l))
  986. }
  987. l = len(m.Schema)
  988. if l > 0 {
  989. n += 1 + l + sovApi(uint64(l))
  990. }
  991. if m.XXX_unrecognized != nil {
  992. n += len(m.XXX_unrecognized)
  993. }
  994. return n
  995. }
  996. func (m *NotificationBody) Size() (n int) {
  997. if m == nil {
  998. return 0
  999. }
  1000. var l int
  1001. _ = l
  1002. l = len(m.Title)
  1003. if l > 0 {
  1004. n += 1 + l + sovApi(uint64(l))
  1005. }
  1006. l = len(m.Content)
  1007. if l > 0 {
  1008. n += 1 + l + sovApi(uint64(l))
  1009. }
  1010. l = len(m.Sound)
  1011. if l > 0 {
  1012. n += 1 + l + sovApi(uint64(l))
  1013. }
  1014. if m.Badge != 0 {
  1015. n += 1 + sovApi(uint64(m.Badge))
  1016. }
  1017. l = len(m.Extra)
  1018. if l > 0 {
  1019. n += 1 + l + sovApi(uint64(l))
  1020. }
  1021. if m.XXX_unrecognized != nil {
  1022. n += len(m.XXX_unrecognized)
  1023. }
  1024. return n
  1025. }
  1026. func (m *MessageBody) Size() (n int) {
  1027. if m == nil {
  1028. return 0
  1029. }
  1030. var l int
  1031. _ = l
  1032. l = len(m.Title)
  1033. if l > 0 {
  1034. n += 1 + l + sovApi(uint64(l))
  1035. }
  1036. l = len(m.Content)
  1037. if l > 0 {
  1038. n += 1 + l + sovApi(uint64(l))
  1039. }
  1040. l = len(m.ContentType)
  1041. if l > 0 {
  1042. n += 1 + l + sovApi(uint64(l))
  1043. }
  1044. l = len(m.Extra)
  1045. if l > 0 {
  1046. n += 1 + l + sovApi(uint64(l))
  1047. }
  1048. if m.XXX_unrecognized != nil {
  1049. n += len(m.XXX_unrecognized)
  1050. }
  1051. return n
  1052. }
  1053. func (m *NotificationRequest) Size() (n int) {
  1054. if m == nil {
  1055. return 0
  1056. }
  1057. var l int
  1058. _ = l
  1059. if len(m.Dev) > 0 {
  1060. for _, e := range m.Dev {
  1061. l = e.Size()
  1062. n += 1 + l + sovApi(uint64(l))
  1063. }
  1064. }
  1065. if m.Body != nil {
  1066. l = m.Body.Size()
  1067. n += 1 + l + sovApi(uint64(l))
  1068. }
  1069. if m.XXX_unrecognized != nil {
  1070. n += len(m.XXX_unrecognized)
  1071. }
  1072. return n
  1073. }
  1074. func (m *PushResult) Size() (n int) {
  1075. if m == nil {
  1076. return 0
  1077. }
  1078. var l int
  1079. _ = l
  1080. l = len(m.SendNo)
  1081. if l > 0 {
  1082. n += 1 + l + sovApi(uint64(l))
  1083. }
  1084. l = len(m.MsgID)
  1085. if l > 0 {
  1086. n += 1 + l + sovApi(uint64(l))
  1087. }
  1088. if m.Error != nil {
  1089. l = m.Error.Size()
  1090. n += 1 + l + sovApi(uint64(l))
  1091. }
  1092. if m.XXX_unrecognized != nil {
  1093. n += len(m.XXX_unrecognized)
  1094. }
  1095. return n
  1096. }
  1097. func (m *PushError) Size() (n int) {
  1098. if m == nil {
  1099. return 0
  1100. }
  1101. var l int
  1102. _ = l
  1103. l = len(m.Message)
  1104. if l > 0 {
  1105. n += 1 + l + sovApi(uint64(l))
  1106. }
  1107. if m.Code != 0 {
  1108. n += 1 + sovApi(uint64(m.Code))
  1109. }
  1110. if m.XXX_unrecognized != nil {
  1111. n += len(m.XXX_unrecognized)
  1112. }
  1113. return n
  1114. }
  1115. func (m *NotificationResponse) Size() (n int) {
  1116. if m == nil {
  1117. return 0
  1118. }
  1119. var l int
  1120. _ = l
  1121. if len(m.Result) > 0 {
  1122. for _, e := range m.Result {
  1123. l = e.Size()
  1124. n += 1 + l + sovApi(uint64(l))
  1125. }
  1126. }
  1127. if m.XXX_unrecognized != nil {
  1128. n += len(m.XXX_unrecognized)
  1129. }
  1130. return n
  1131. }
  1132. func (m *MessageRequest) Size() (n int) {
  1133. if m == nil {
  1134. return 0
  1135. }
  1136. var l int
  1137. _ = l
  1138. if len(m.Dev) > 0 {
  1139. for _, e := range m.Dev {
  1140. l = e.Size()
  1141. n += 1 + l + sovApi(uint64(l))
  1142. }
  1143. }
  1144. if m.Body != nil {
  1145. l = m.Body.Size()
  1146. n += 1 + l + sovApi(uint64(l))
  1147. }
  1148. if m.XXX_unrecognized != nil {
  1149. n += len(m.XXX_unrecognized)
  1150. }
  1151. return n
  1152. }
  1153. func (m *MessageResponse) Size() (n int) {
  1154. if m == nil {
  1155. return 0
  1156. }
  1157. var l int
  1158. _ = l
  1159. if len(m.Result) > 0 {
  1160. for _, e := range m.Result {
  1161. l = e.Size()
  1162. n += 1 + l + sovApi(uint64(l))
  1163. }
  1164. }
  1165. if m.XXX_unrecognized != nil {
  1166. n += len(m.XXX_unrecognized)
  1167. }
  1168. return n
  1169. }
  1170. func sovApi(x uint64) (n int) {
  1171. for {
  1172. n++
  1173. x >>= 7
  1174. if x == 0 {
  1175. break
  1176. }
  1177. }
  1178. return n
  1179. }
  1180. func sozApi(x uint64) (n int) {
  1181. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1182. }
  1183. func (this *Device) String() string {
  1184. if this == nil {
  1185. return "nil"
  1186. }
  1187. s := strings.Join([]string{`&Device{`,
  1188. `RegisterID:` + fmt.Sprintf("%v", this.RegisterID) + `,`,
  1189. `Platform:` + fmt.Sprintf("%v", this.Platform) + `,`,
  1190. `SDK:` + fmt.Sprintf("%v", this.SDK) + `,`,
  1191. `SendNo:` + fmt.Sprintf("%v", this.SendNo) + `,`,
  1192. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1193. `}`,
  1194. }, "")
  1195. return s
  1196. }
  1197. func (this *Extra) String() string {
  1198. if this == nil {
  1199. return "nil"
  1200. }
  1201. s := strings.Join([]string{`&Extra{`,
  1202. `Token:` + fmt.Sprintf("%v", this.Token) + `,`,
  1203. `Schema:` + fmt.Sprintf("%v", this.Schema) + `,`,
  1204. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1205. `}`,
  1206. }, "")
  1207. return s
  1208. }
  1209. func (this *NotificationBody) String() string {
  1210. if this == nil {
  1211. return "nil"
  1212. }
  1213. s := strings.Join([]string{`&NotificationBody{`,
  1214. `Title:` + fmt.Sprintf("%v", this.Title) + `,`,
  1215. `Content:` + fmt.Sprintf("%v", this.Content) + `,`,
  1216. `Sound:` + fmt.Sprintf("%v", this.Sound) + `,`,
  1217. `Badge:` + fmt.Sprintf("%v", this.Badge) + `,`,
  1218. `Extra:` + fmt.Sprintf("%v", this.Extra) + `,`,
  1219. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1220. `}`,
  1221. }, "")
  1222. return s
  1223. }
  1224. func (this *MessageBody) String() string {
  1225. if this == nil {
  1226. return "nil"
  1227. }
  1228. s := strings.Join([]string{`&MessageBody{`,
  1229. `Title:` + fmt.Sprintf("%v", this.Title) + `,`,
  1230. `Content:` + fmt.Sprintf("%v", this.Content) + `,`,
  1231. `ContentType:` + fmt.Sprintf("%v", this.ContentType) + `,`,
  1232. `Extra:` + fmt.Sprintf("%v", this.Extra) + `,`,
  1233. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1234. `}`,
  1235. }, "")
  1236. return s
  1237. }
  1238. func (this *NotificationRequest) String() string {
  1239. if this == nil {
  1240. return "nil"
  1241. }
  1242. s := strings.Join([]string{`&NotificationRequest{`,
  1243. `Dev:` + strings.Replace(fmt.Sprintf("%v", this.Dev), "Device", "Device", 1) + `,`,
  1244. `Body:` + strings.Replace(fmt.Sprintf("%v", this.Body), "NotificationBody", "NotificationBody", 1) + `,`,
  1245. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1246. `}`,
  1247. }, "")
  1248. return s
  1249. }
  1250. func (this *PushResult) String() string {
  1251. if this == nil {
  1252. return "nil"
  1253. }
  1254. s := strings.Join([]string{`&PushResult{`,
  1255. `SendNo:` + fmt.Sprintf("%v", this.SendNo) + `,`,
  1256. `MsgID:` + fmt.Sprintf("%v", this.MsgID) + `,`,
  1257. `Error:` + strings.Replace(fmt.Sprintf("%v", this.Error), "PushError", "PushError", 1) + `,`,
  1258. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1259. `}`,
  1260. }, "")
  1261. return s
  1262. }
  1263. func (this *PushError) String() string {
  1264. if this == nil {
  1265. return "nil"
  1266. }
  1267. s := strings.Join([]string{`&PushError{`,
  1268. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  1269. `Code:` + fmt.Sprintf("%v", this.Code) + `,`,
  1270. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1271. `}`,
  1272. }, "")
  1273. return s
  1274. }
  1275. func (this *NotificationResponse) String() string {
  1276. if this == nil {
  1277. return "nil"
  1278. }
  1279. s := strings.Join([]string{`&NotificationResponse{`,
  1280. `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "PushResult", "PushResult", 1) + `,`,
  1281. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1282. `}`,
  1283. }, "")
  1284. return s
  1285. }
  1286. func (this *MessageRequest) String() string {
  1287. if this == nil {
  1288. return "nil"
  1289. }
  1290. s := strings.Join([]string{`&MessageRequest{`,
  1291. `Dev:` + strings.Replace(fmt.Sprintf("%v", this.Dev), "Device", "Device", 1) + `,`,
  1292. `Body:` + strings.Replace(fmt.Sprintf("%v", this.Body), "MessageBody", "MessageBody", 1) + `,`,
  1293. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1294. `}`,
  1295. }, "")
  1296. return s
  1297. }
  1298. func (this *MessageResponse) String() string {
  1299. if this == nil {
  1300. return "nil"
  1301. }
  1302. s := strings.Join([]string{`&MessageResponse{`,
  1303. `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "PushResult", "PushResult", 1) + `,`,
  1304. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1305. `}`,
  1306. }, "")
  1307. return s
  1308. }
  1309. func valueToStringApi(v interface{}) string {
  1310. rv := reflect.ValueOf(v)
  1311. if rv.IsNil() {
  1312. return "nil"
  1313. }
  1314. pv := reflect.Indirect(rv).Interface()
  1315. return fmt.Sprintf("*%v", pv)
  1316. }
  1317. func (m *Device) Unmarshal(dAtA []byte) error {
  1318. l := len(dAtA)
  1319. iNdEx := 0
  1320. for iNdEx < l {
  1321. preIndex := iNdEx
  1322. var wire uint64
  1323. for shift := uint(0); ; shift += 7 {
  1324. if shift >= 64 {
  1325. return ErrIntOverflowApi
  1326. }
  1327. if iNdEx >= l {
  1328. return io.ErrUnexpectedEOF
  1329. }
  1330. b := dAtA[iNdEx]
  1331. iNdEx++
  1332. wire |= (uint64(b) & 0x7F) << shift
  1333. if b < 0x80 {
  1334. break
  1335. }
  1336. }
  1337. fieldNum := int32(wire >> 3)
  1338. wireType := int(wire & 0x7)
  1339. if wireType == 4 {
  1340. return fmt.Errorf("proto: Device: wiretype end group for non-group")
  1341. }
  1342. if fieldNum <= 0 {
  1343. return fmt.Errorf("proto: Device: illegal tag %d (wire type %d)", fieldNum, wire)
  1344. }
  1345. switch fieldNum {
  1346. case 1:
  1347. if wireType != 2 {
  1348. return fmt.Errorf("proto: wrong wireType = %d for field RegisterID", wireType)
  1349. }
  1350. var stringLen uint64
  1351. for shift := uint(0); ; shift += 7 {
  1352. if shift >= 64 {
  1353. return ErrIntOverflowApi
  1354. }
  1355. if iNdEx >= l {
  1356. return io.ErrUnexpectedEOF
  1357. }
  1358. b := dAtA[iNdEx]
  1359. iNdEx++
  1360. stringLen |= (uint64(b) & 0x7F) << shift
  1361. if b < 0x80 {
  1362. break
  1363. }
  1364. }
  1365. intStringLen := int(stringLen)
  1366. if intStringLen < 0 {
  1367. return ErrInvalidLengthApi
  1368. }
  1369. postIndex := iNdEx + intStringLen
  1370. if postIndex > l {
  1371. return io.ErrUnexpectedEOF
  1372. }
  1373. m.RegisterID = string(dAtA[iNdEx:postIndex])
  1374. iNdEx = postIndex
  1375. case 2:
  1376. if wireType != 0 {
  1377. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  1378. }
  1379. m.Platform = 0
  1380. for shift := uint(0); ; shift += 7 {
  1381. if shift >= 64 {
  1382. return ErrIntOverflowApi
  1383. }
  1384. if iNdEx >= l {
  1385. return io.ErrUnexpectedEOF
  1386. }
  1387. b := dAtA[iNdEx]
  1388. iNdEx++
  1389. m.Platform |= (int32(b) & 0x7F) << shift
  1390. if b < 0x80 {
  1391. break
  1392. }
  1393. }
  1394. case 3:
  1395. if wireType != 0 {
  1396. return fmt.Errorf("proto: wrong wireType = %d for field SDK", wireType)
  1397. }
  1398. m.SDK = 0
  1399. for shift := uint(0); ; shift += 7 {
  1400. if shift >= 64 {
  1401. return ErrIntOverflowApi
  1402. }
  1403. if iNdEx >= l {
  1404. return io.ErrUnexpectedEOF
  1405. }
  1406. b := dAtA[iNdEx]
  1407. iNdEx++
  1408. m.SDK |= (int32(b) & 0x7F) << shift
  1409. if b < 0x80 {
  1410. break
  1411. }
  1412. }
  1413. case 4:
  1414. if wireType != 0 {
  1415. return fmt.Errorf("proto: wrong wireType = %d for field SendNo", wireType)
  1416. }
  1417. m.SendNo = 0
  1418. for shift := uint(0); ; shift += 7 {
  1419. if shift >= 64 {
  1420. return ErrIntOverflowApi
  1421. }
  1422. if iNdEx >= l {
  1423. return io.ErrUnexpectedEOF
  1424. }
  1425. b := dAtA[iNdEx]
  1426. iNdEx++
  1427. m.SendNo |= (int64(b) & 0x7F) << shift
  1428. if b < 0x80 {
  1429. break
  1430. }
  1431. }
  1432. default:
  1433. iNdEx = preIndex
  1434. skippy, err := skipApi(dAtA[iNdEx:])
  1435. if err != nil {
  1436. return err
  1437. }
  1438. if skippy < 0 {
  1439. return ErrInvalidLengthApi
  1440. }
  1441. if (iNdEx + skippy) > l {
  1442. return io.ErrUnexpectedEOF
  1443. }
  1444. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1445. iNdEx += skippy
  1446. }
  1447. }
  1448. if iNdEx > l {
  1449. return io.ErrUnexpectedEOF
  1450. }
  1451. return nil
  1452. }
  1453. func (m *Extra) Unmarshal(dAtA []byte) error {
  1454. l := len(dAtA)
  1455. iNdEx := 0
  1456. for iNdEx < l {
  1457. preIndex := iNdEx
  1458. var wire uint64
  1459. for shift := uint(0); ; shift += 7 {
  1460. if shift >= 64 {
  1461. return ErrIntOverflowApi
  1462. }
  1463. if iNdEx >= l {
  1464. return io.ErrUnexpectedEOF
  1465. }
  1466. b := dAtA[iNdEx]
  1467. iNdEx++
  1468. wire |= (uint64(b) & 0x7F) << shift
  1469. if b < 0x80 {
  1470. break
  1471. }
  1472. }
  1473. fieldNum := int32(wire >> 3)
  1474. wireType := int(wire & 0x7)
  1475. if wireType == 4 {
  1476. return fmt.Errorf("proto: Extra: wiretype end group for non-group")
  1477. }
  1478. if fieldNum <= 0 {
  1479. return fmt.Errorf("proto: Extra: illegal tag %d (wire type %d)", fieldNum, wire)
  1480. }
  1481. switch fieldNum {
  1482. case 1:
  1483. if wireType != 2 {
  1484. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  1485. }
  1486. var stringLen uint64
  1487. for shift := uint(0); ; shift += 7 {
  1488. if shift >= 64 {
  1489. return ErrIntOverflowApi
  1490. }
  1491. if iNdEx >= l {
  1492. return io.ErrUnexpectedEOF
  1493. }
  1494. b := dAtA[iNdEx]
  1495. iNdEx++
  1496. stringLen |= (uint64(b) & 0x7F) << shift
  1497. if b < 0x80 {
  1498. break
  1499. }
  1500. }
  1501. intStringLen := int(stringLen)
  1502. if intStringLen < 0 {
  1503. return ErrInvalidLengthApi
  1504. }
  1505. postIndex := iNdEx + intStringLen
  1506. if postIndex > l {
  1507. return io.ErrUnexpectedEOF
  1508. }
  1509. m.Token = string(dAtA[iNdEx:postIndex])
  1510. iNdEx = postIndex
  1511. case 2:
  1512. if wireType != 2 {
  1513. return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType)
  1514. }
  1515. var stringLen uint64
  1516. for shift := uint(0); ; shift += 7 {
  1517. if shift >= 64 {
  1518. return ErrIntOverflowApi
  1519. }
  1520. if iNdEx >= l {
  1521. return io.ErrUnexpectedEOF
  1522. }
  1523. b := dAtA[iNdEx]
  1524. iNdEx++
  1525. stringLen |= (uint64(b) & 0x7F) << shift
  1526. if b < 0x80 {
  1527. break
  1528. }
  1529. }
  1530. intStringLen := int(stringLen)
  1531. if intStringLen < 0 {
  1532. return ErrInvalidLengthApi
  1533. }
  1534. postIndex := iNdEx + intStringLen
  1535. if postIndex > l {
  1536. return io.ErrUnexpectedEOF
  1537. }
  1538. m.Schema = string(dAtA[iNdEx:postIndex])
  1539. iNdEx = postIndex
  1540. default:
  1541. iNdEx = preIndex
  1542. skippy, err := skipApi(dAtA[iNdEx:])
  1543. if err != nil {
  1544. return err
  1545. }
  1546. if skippy < 0 {
  1547. return ErrInvalidLengthApi
  1548. }
  1549. if (iNdEx + skippy) > l {
  1550. return io.ErrUnexpectedEOF
  1551. }
  1552. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1553. iNdEx += skippy
  1554. }
  1555. }
  1556. if iNdEx > l {
  1557. return io.ErrUnexpectedEOF
  1558. }
  1559. return nil
  1560. }
  1561. func (m *NotificationBody) Unmarshal(dAtA []byte) error {
  1562. l := len(dAtA)
  1563. iNdEx := 0
  1564. for iNdEx < l {
  1565. preIndex := iNdEx
  1566. var wire uint64
  1567. for shift := uint(0); ; shift += 7 {
  1568. if shift >= 64 {
  1569. return ErrIntOverflowApi
  1570. }
  1571. if iNdEx >= l {
  1572. return io.ErrUnexpectedEOF
  1573. }
  1574. b := dAtA[iNdEx]
  1575. iNdEx++
  1576. wire |= (uint64(b) & 0x7F) << shift
  1577. if b < 0x80 {
  1578. break
  1579. }
  1580. }
  1581. fieldNum := int32(wire >> 3)
  1582. wireType := int(wire & 0x7)
  1583. if wireType == 4 {
  1584. return fmt.Errorf("proto: NotificationBody: wiretype end group for non-group")
  1585. }
  1586. if fieldNum <= 0 {
  1587. return fmt.Errorf("proto: NotificationBody: illegal tag %d (wire type %d)", fieldNum, wire)
  1588. }
  1589. switch fieldNum {
  1590. case 1:
  1591. if wireType != 2 {
  1592. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  1593. }
  1594. var stringLen uint64
  1595. for shift := uint(0); ; shift += 7 {
  1596. if shift >= 64 {
  1597. return ErrIntOverflowApi
  1598. }
  1599. if iNdEx >= l {
  1600. return io.ErrUnexpectedEOF
  1601. }
  1602. b := dAtA[iNdEx]
  1603. iNdEx++
  1604. stringLen |= (uint64(b) & 0x7F) << shift
  1605. if b < 0x80 {
  1606. break
  1607. }
  1608. }
  1609. intStringLen := int(stringLen)
  1610. if intStringLen < 0 {
  1611. return ErrInvalidLengthApi
  1612. }
  1613. postIndex := iNdEx + intStringLen
  1614. if postIndex > l {
  1615. return io.ErrUnexpectedEOF
  1616. }
  1617. m.Title = string(dAtA[iNdEx:postIndex])
  1618. iNdEx = postIndex
  1619. case 2:
  1620. if wireType != 2 {
  1621. return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
  1622. }
  1623. var stringLen uint64
  1624. for shift := uint(0); ; shift += 7 {
  1625. if shift >= 64 {
  1626. return ErrIntOverflowApi
  1627. }
  1628. if iNdEx >= l {
  1629. return io.ErrUnexpectedEOF
  1630. }
  1631. b := dAtA[iNdEx]
  1632. iNdEx++
  1633. stringLen |= (uint64(b) & 0x7F) << shift
  1634. if b < 0x80 {
  1635. break
  1636. }
  1637. }
  1638. intStringLen := int(stringLen)
  1639. if intStringLen < 0 {
  1640. return ErrInvalidLengthApi
  1641. }
  1642. postIndex := iNdEx + intStringLen
  1643. if postIndex > l {
  1644. return io.ErrUnexpectedEOF
  1645. }
  1646. m.Content = string(dAtA[iNdEx:postIndex])
  1647. iNdEx = postIndex
  1648. case 3:
  1649. if wireType != 2 {
  1650. return fmt.Errorf("proto: wrong wireType = %d for field Sound", wireType)
  1651. }
  1652. var stringLen uint64
  1653. for shift := uint(0); ; shift += 7 {
  1654. if shift >= 64 {
  1655. return ErrIntOverflowApi
  1656. }
  1657. if iNdEx >= l {
  1658. return io.ErrUnexpectedEOF
  1659. }
  1660. b := dAtA[iNdEx]
  1661. iNdEx++
  1662. stringLen |= (uint64(b) & 0x7F) << shift
  1663. if b < 0x80 {
  1664. break
  1665. }
  1666. }
  1667. intStringLen := int(stringLen)
  1668. if intStringLen < 0 {
  1669. return ErrInvalidLengthApi
  1670. }
  1671. postIndex := iNdEx + intStringLen
  1672. if postIndex > l {
  1673. return io.ErrUnexpectedEOF
  1674. }
  1675. m.Sound = string(dAtA[iNdEx:postIndex])
  1676. iNdEx = postIndex
  1677. case 4:
  1678. if wireType != 0 {
  1679. return fmt.Errorf("proto: wrong wireType = %d for field Badge", wireType)
  1680. }
  1681. m.Badge = 0
  1682. for shift := uint(0); ; shift += 7 {
  1683. if shift >= 64 {
  1684. return ErrIntOverflowApi
  1685. }
  1686. if iNdEx >= l {
  1687. return io.ErrUnexpectedEOF
  1688. }
  1689. b := dAtA[iNdEx]
  1690. iNdEx++
  1691. m.Badge |= (int32(b) & 0x7F) << shift
  1692. if b < 0x80 {
  1693. break
  1694. }
  1695. }
  1696. case 5:
  1697. if wireType != 2 {
  1698. return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
  1699. }
  1700. var stringLen uint64
  1701. for shift := uint(0); ; shift += 7 {
  1702. if shift >= 64 {
  1703. return ErrIntOverflowApi
  1704. }
  1705. if iNdEx >= l {
  1706. return io.ErrUnexpectedEOF
  1707. }
  1708. b := dAtA[iNdEx]
  1709. iNdEx++
  1710. stringLen |= (uint64(b) & 0x7F) << shift
  1711. if b < 0x80 {
  1712. break
  1713. }
  1714. }
  1715. intStringLen := int(stringLen)
  1716. if intStringLen < 0 {
  1717. return ErrInvalidLengthApi
  1718. }
  1719. postIndex := iNdEx + intStringLen
  1720. if postIndex > l {
  1721. return io.ErrUnexpectedEOF
  1722. }
  1723. m.Extra = string(dAtA[iNdEx:postIndex])
  1724. iNdEx = postIndex
  1725. default:
  1726. iNdEx = preIndex
  1727. skippy, err := skipApi(dAtA[iNdEx:])
  1728. if err != nil {
  1729. return err
  1730. }
  1731. if skippy < 0 {
  1732. return ErrInvalidLengthApi
  1733. }
  1734. if (iNdEx + skippy) > l {
  1735. return io.ErrUnexpectedEOF
  1736. }
  1737. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1738. iNdEx += skippy
  1739. }
  1740. }
  1741. if iNdEx > l {
  1742. return io.ErrUnexpectedEOF
  1743. }
  1744. return nil
  1745. }
  1746. func (m *MessageBody) Unmarshal(dAtA []byte) error {
  1747. l := len(dAtA)
  1748. iNdEx := 0
  1749. for iNdEx < l {
  1750. preIndex := iNdEx
  1751. var wire uint64
  1752. for shift := uint(0); ; shift += 7 {
  1753. if shift >= 64 {
  1754. return ErrIntOverflowApi
  1755. }
  1756. if iNdEx >= l {
  1757. return io.ErrUnexpectedEOF
  1758. }
  1759. b := dAtA[iNdEx]
  1760. iNdEx++
  1761. wire |= (uint64(b) & 0x7F) << shift
  1762. if b < 0x80 {
  1763. break
  1764. }
  1765. }
  1766. fieldNum := int32(wire >> 3)
  1767. wireType := int(wire & 0x7)
  1768. if wireType == 4 {
  1769. return fmt.Errorf("proto: MessageBody: wiretype end group for non-group")
  1770. }
  1771. if fieldNum <= 0 {
  1772. return fmt.Errorf("proto: MessageBody: illegal tag %d (wire type %d)", fieldNum, wire)
  1773. }
  1774. switch fieldNum {
  1775. case 1:
  1776. if wireType != 2 {
  1777. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  1778. }
  1779. var stringLen uint64
  1780. for shift := uint(0); ; shift += 7 {
  1781. if shift >= 64 {
  1782. return ErrIntOverflowApi
  1783. }
  1784. if iNdEx >= l {
  1785. return io.ErrUnexpectedEOF
  1786. }
  1787. b := dAtA[iNdEx]
  1788. iNdEx++
  1789. stringLen |= (uint64(b) & 0x7F) << shift
  1790. if b < 0x80 {
  1791. break
  1792. }
  1793. }
  1794. intStringLen := int(stringLen)
  1795. if intStringLen < 0 {
  1796. return ErrInvalidLengthApi
  1797. }
  1798. postIndex := iNdEx + intStringLen
  1799. if postIndex > l {
  1800. return io.ErrUnexpectedEOF
  1801. }
  1802. m.Title = string(dAtA[iNdEx:postIndex])
  1803. iNdEx = postIndex
  1804. case 2:
  1805. if wireType != 2 {
  1806. return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
  1807. }
  1808. var stringLen uint64
  1809. for shift := uint(0); ; shift += 7 {
  1810. if shift >= 64 {
  1811. return ErrIntOverflowApi
  1812. }
  1813. if iNdEx >= l {
  1814. return io.ErrUnexpectedEOF
  1815. }
  1816. b := dAtA[iNdEx]
  1817. iNdEx++
  1818. stringLen |= (uint64(b) & 0x7F) << shift
  1819. if b < 0x80 {
  1820. break
  1821. }
  1822. }
  1823. intStringLen := int(stringLen)
  1824. if intStringLen < 0 {
  1825. return ErrInvalidLengthApi
  1826. }
  1827. postIndex := iNdEx + intStringLen
  1828. if postIndex > l {
  1829. return io.ErrUnexpectedEOF
  1830. }
  1831. m.Content = string(dAtA[iNdEx:postIndex])
  1832. iNdEx = postIndex
  1833. case 3:
  1834. if wireType != 2 {
  1835. return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType)
  1836. }
  1837. var stringLen uint64
  1838. for shift := uint(0); ; shift += 7 {
  1839. if shift >= 64 {
  1840. return ErrIntOverflowApi
  1841. }
  1842. if iNdEx >= l {
  1843. return io.ErrUnexpectedEOF
  1844. }
  1845. b := dAtA[iNdEx]
  1846. iNdEx++
  1847. stringLen |= (uint64(b) & 0x7F) << shift
  1848. if b < 0x80 {
  1849. break
  1850. }
  1851. }
  1852. intStringLen := int(stringLen)
  1853. if intStringLen < 0 {
  1854. return ErrInvalidLengthApi
  1855. }
  1856. postIndex := iNdEx + intStringLen
  1857. if postIndex > l {
  1858. return io.ErrUnexpectedEOF
  1859. }
  1860. m.ContentType = string(dAtA[iNdEx:postIndex])
  1861. iNdEx = postIndex
  1862. case 4:
  1863. if wireType != 2 {
  1864. return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
  1865. }
  1866. var stringLen uint64
  1867. for shift := uint(0); ; shift += 7 {
  1868. if shift >= 64 {
  1869. return ErrIntOverflowApi
  1870. }
  1871. if iNdEx >= l {
  1872. return io.ErrUnexpectedEOF
  1873. }
  1874. b := dAtA[iNdEx]
  1875. iNdEx++
  1876. stringLen |= (uint64(b) & 0x7F) << shift
  1877. if b < 0x80 {
  1878. break
  1879. }
  1880. }
  1881. intStringLen := int(stringLen)
  1882. if intStringLen < 0 {
  1883. return ErrInvalidLengthApi
  1884. }
  1885. postIndex := iNdEx + intStringLen
  1886. if postIndex > l {
  1887. return io.ErrUnexpectedEOF
  1888. }
  1889. m.Extra = string(dAtA[iNdEx:postIndex])
  1890. iNdEx = postIndex
  1891. default:
  1892. iNdEx = preIndex
  1893. skippy, err := skipApi(dAtA[iNdEx:])
  1894. if err != nil {
  1895. return err
  1896. }
  1897. if skippy < 0 {
  1898. return ErrInvalidLengthApi
  1899. }
  1900. if (iNdEx + skippy) > l {
  1901. return io.ErrUnexpectedEOF
  1902. }
  1903. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1904. iNdEx += skippy
  1905. }
  1906. }
  1907. if iNdEx > l {
  1908. return io.ErrUnexpectedEOF
  1909. }
  1910. return nil
  1911. }
  1912. func (m *NotificationRequest) Unmarshal(dAtA []byte) error {
  1913. l := len(dAtA)
  1914. iNdEx := 0
  1915. for iNdEx < l {
  1916. preIndex := iNdEx
  1917. var wire uint64
  1918. for shift := uint(0); ; shift += 7 {
  1919. if shift >= 64 {
  1920. return ErrIntOverflowApi
  1921. }
  1922. if iNdEx >= l {
  1923. return io.ErrUnexpectedEOF
  1924. }
  1925. b := dAtA[iNdEx]
  1926. iNdEx++
  1927. wire |= (uint64(b) & 0x7F) << shift
  1928. if b < 0x80 {
  1929. break
  1930. }
  1931. }
  1932. fieldNum := int32(wire >> 3)
  1933. wireType := int(wire & 0x7)
  1934. if wireType == 4 {
  1935. return fmt.Errorf("proto: NotificationRequest: wiretype end group for non-group")
  1936. }
  1937. if fieldNum <= 0 {
  1938. return fmt.Errorf("proto: NotificationRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1939. }
  1940. switch fieldNum {
  1941. case 1:
  1942. if wireType != 2 {
  1943. return fmt.Errorf("proto: wrong wireType = %d for field Dev", wireType)
  1944. }
  1945. var msglen int
  1946. for shift := uint(0); ; shift += 7 {
  1947. if shift >= 64 {
  1948. return ErrIntOverflowApi
  1949. }
  1950. if iNdEx >= l {
  1951. return io.ErrUnexpectedEOF
  1952. }
  1953. b := dAtA[iNdEx]
  1954. iNdEx++
  1955. msglen |= (int(b) & 0x7F) << shift
  1956. if b < 0x80 {
  1957. break
  1958. }
  1959. }
  1960. if msglen < 0 {
  1961. return ErrInvalidLengthApi
  1962. }
  1963. postIndex := iNdEx + msglen
  1964. if postIndex > l {
  1965. return io.ErrUnexpectedEOF
  1966. }
  1967. m.Dev = append(m.Dev, &Device{})
  1968. if err := m.Dev[len(m.Dev)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1969. return err
  1970. }
  1971. iNdEx = postIndex
  1972. case 2:
  1973. if wireType != 2 {
  1974. return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType)
  1975. }
  1976. var msglen int
  1977. for shift := uint(0); ; shift += 7 {
  1978. if shift >= 64 {
  1979. return ErrIntOverflowApi
  1980. }
  1981. if iNdEx >= l {
  1982. return io.ErrUnexpectedEOF
  1983. }
  1984. b := dAtA[iNdEx]
  1985. iNdEx++
  1986. msglen |= (int(b) & 0x7F) << shift
  1987. if b < 0x80 {
  1988. break
  1989. }
  1990. }
  1991. if msglen < 0 {
  1992. return ErrInvalidLengthApi
  1993. }
  1994. postIndex := iNdEx + msglen
  1995. if postIndex > l {
  1996. return io.ErrUnexpectedEOF
  1997. }
  1998. if m.Body == nil {
  1999. m.Body = &NotificationBody{}
  2000. }
  2001. if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2002. return err
  2003. }
  2004. iNdEx = postIndex
  2005. default:
  2006. iNdEx = preIndex
  2007. skippy, err := skipApi(dAtA[iNdEx:])
  2008. if err != nil {
  2009. return err
  2010. }
  2011. if skippy < 0 {
  2012. return ErrInvalidLengthApi
  2013. }
  2014. if (iNdEx + skippy) > l {
  2015. return io.ErrUnexpectedEOF
  2016. }
  2017. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2018. iNdEx += skippy
  2019. }
  2020. }
  2021. if iNdEx > l {
  2022. return io.ErrUnexpectedEOF
  2023. }
  2024. return nil
  2025. }
  2026. func (m *PushResult) Unmarshal(dAtA []byte) error {
  2027. l := len(dAtA)
  2028. iNdEx := 0
  2029. for iNdEx < l {
  2030. preIndex := iNdEx
  2031. var wire uint64
  2032. for shift := uint(0); ; shift += 7 {
  2033. if shift >= 64 {
  2034. return ErrIntOverflowApi
  2035. }
  2036. if iNdEx >= l {
  2037. return io.ErrUnexpectedEOF
  2038. }
  2039. b := dAtA[iNdEx]
  2040. iNdEx++
  2041. wire |= (uint64(b) & 0x7F) << shift
  2042. if b < 0x80 {
  2043. break
  2044. }
  2045. }
  2046. fieldNum := int32(wire >> 3)
  2047. wireType := int(wire & 0x7)
  2048. if wireType == 4 {
  2049. return fmt.Errorf("proto: PushResult: wiretype end group for non-group")
  2050. }
  2051. if fieldNum <= 0 {
  2052. return fmt.Errorf("proto: PushResult: illegal tag %d (wire type %d)", fieldNum, wire)
  2053. }
  2054. switch fieldNum {
  2055. case 1:
  2056. if wireType != 2 {
  2057. return fmt.Errorf("proto: wrong wireType = %d for field SendNo", wireType)
  2058. }
  2059. var stringLen uint64
  2060. for shift := uint(0); ; shift += 7 {
  2061. if shift >= 64 {
  2062. return ErrIntOverflowApi
  2063. }
  2064. if iNdEx >= l {
  2065. return io.ErrUnexpectedEOF
  2066. }
  2067. b := dAtA[iNdEx]
  2068. iNdEx++
  2069. stringLen |= (uint64(b) & 0x7F) << shift
  2070. if b < 0x80 {
  2071. break
  2072. }
  2073. }
  2074. intStringLen := int(stringLen)
  2075. if intStringLen < 0 {
  2076. return ErrInvalidLengthApi
  2077. }
  2078. postIndex := iNdEx + intStringLen
  2079. if postIndex > l {
  2080. return io.ErrUnexpectedEOF
  2081. }
  2082. m.SendNo = string(dAtA[iNdEx:postIndex])
  2083. iNdEx = postIndex
  2084. case 2:
  2085. if wireType != 2 {
  2086. return fmt.Errorf("proto: wrong wireType = %d for field MsgID", wireType)
  2087. }
  2088. var stringLen uint64
  2089. for shift := uint(0); ; shift += 7 {
  2090. if shift >= 64 {
  2091. return ErrIntOverflowApi
  2092. }
  2093. if iNdEx >= l {
  2094. return io.ErrUnexpectedEOF
  2095. }
  2096. b := dAtA[iNdEx]
  2097. iNdEx++
  2098. stringLen |= (uint64(b) & 0x7F) << shift
  2099. if b < 0x80 {
  2100. break
  2101. }
  2102. }
  2103. intStringLen := int(stringLen)
  2104. if intStringLen < 0 {
  2105. return ErrInvalidLengthApi
  2106. }
  2107. postIndex := iNdEx + intStringLen
  2108. if postIndex > l {
  2109. return io.ErrUnexpectedEOF
  2110. }
  2111. m.MsgID = string(dAtA[iNdEx:postIndex])
  2112. iNdEx = postIndex
  2113. case 3:
  2114. if wireType != 2 {
  2115. return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  2116. }
  2117. var msglen int
  2118. for shift := uint(0); ; shift += 7 {
  2119. if shift >= 64 {
  2120. return ErrIntOverflowApi
  2121. }
  2122. if iNdEx >= l {
  2123. return io.ErrUnexpectedEOF
  2124. }
  2125. b := dAtA[iNdEx]
  2126. iNdEx++
  2127. msglen |= (int(b) & 0x7F) << shift
  2128. if b < 0x80 {
  2129. break
  2130. }
  2131. }
  2132. if msglen < 0 {
  2133. return ErrInvalidLengthApi
  2134. }
  2135. postIndex := iNdEx + msglen
  2136. if postIndex > l {
  2137. return io.ErrUnexpectedEOF
  2138. }
  2139. if m.Error == nil {
  2140. m.Error = &PushError{}
  2141. }
  2142. if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2143. return err
  2144. }
  2145. iNdEx = postIndex
  2146. default:
  2147. iNdEx = preIndex
  2148. skippy, err := skipApi(dAtA[iNdEx:])
  2149. if err != nil {
  2150. return err
  2151. }
  2152. if skippy < 0 {
  2153. return ErrInvalidLengthApi
  2154. }
  2155. if (iNdEx + skippy) > l {
  2156. return io.ErrUnexpectedEOF
  2157. }
  2158. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2159. iNdEx += skippy
  2160. }
  2161. }
  2162. if iNdEx > l {
  2163. return io.ErrUnexpectedEOF
  2164. }
  2165. return nil
  2166. }
  2167. func (m *PushError) Unmarshal(dAtA []byte) error {
  2168. l := len(dAtA)
  2169. iNdEx := 0
  2170. for iNdEx < l {
  2171. preIndex := iNdEx
  2172. var wire uint64
  2173. for shift := uint(0); ; shift += 7 {
  2174. if shift >= 64 {
  2175. return ErrIntOverflowApi
  2176. }
  2177. if iNdEx >= l {
  2178. return io.ErrUnexpectedEOF
  2179. }
  2180. b := dAtA[iNdEx]
  2181. iNdEx++
  2182. wire |= (uint64(b) & 0x7F) << shift
  2183. if b < 0x80 {
  2184. break
  2185. }
  2186. }
  2187. fieldNum := int32(wire >> 3)
  2188. wireType := int(wire & 0x7)
  2189. if wireType == 4 {
  2190. return fmt.Errorf("proto: PushError: wiretype end group for non-group")
  2191. }
  2192. if fieldNum <= 0 {
  2193. return fmt.Errorf("proto: PushError: illegal tag %d (wire type %d)", fieldNum, wire)
  2194. }
  2195. switch fieldNum {
  2196. case 1:
  2197. if wireType != 2 {
  2198. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  2199. }
  2200. var stringLen uint64
  2201. for shift := uint(0); ; shift += 7 {
  2202. if shift >= 64 {
  2203. return ErrIntOverflowApi
  2204. }
  2205. if iNdEx >= l {
  2206. return io.ErrUnexpectedEOF
  2207. }
  2208. b := dAtA[iNdEx]
  2209. iNdEx++
  2210. stringLen |= (uint64(b) & 0x7F) << shift
  2211. if b < 0x80 {
  2212. break
  2213. }
  2214. }
  2215. intStringLen := int(stringLen)
  2216. if intStringLen < 0 {
  2217. return ErrInvalidLengthApi
  2218. }
  2219. postIndex := iNdEx + intStringLen
  2220. if postIndex > l {
  2221. return io.ErrUnexpectedEOF
  2222. }
  2223. m.Message = string(dAtA[iNdEx:postIndex])
  2224. iNdEx = postIndex
  2225. case 2:
  2226. if wireType != 0 {
  2227. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2228. }
  2229. m.Code = 0
  2230. for shift := uint(0); ; shift += 7 {
  2231. if shift >= 64 {
  2232. return ErrIntOverflowApi
  2233. }
  2234. if iNdEx >= l {
  2235. return io.ErrUnexpectedEOF
  2236. }
  2237. b := dAtA[iNdEx]
  2238. iNdEx++
  2239. m.Code |= (int32(b) & 0x7F) << shift
  2240. if b < 0x80 {
  2241. break
  2242. }
  2243. }
  2244. default:
  2245. iNdEx = preIndex
  2246. skippy, err := skipApi(dAtA[iNdEx:])
  2247. if err != nil {
  2248. return err
  2249. }
  2250. if skippy < 0 {
  2251. return ErrInvalidLengthApi
  2252. }
  2253. if (iNdEx + skippy) > l {
  2254. return io.ErrUnexpectedEOF
  2255. }
  2256. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2257. iNdEx += skippy
  2258. }
  2259. }
  2260. if iNdEx > l {
  2261. return io.ErrUnexpectedEOF
  2262. }
  2263. return nil
  2264. }
  2265. func (m *NotificationResponse) Unmarshal(dAtA []byte) error {
  2266. l := len(dAtA)
  2267. iNdEx := 0
  2268. for iNdEx < l {
  2269. preIndex := iNdEx
  2270. var wire uint64
  2271. for shift := uint(0); ; shift += 7 {
  2272. if shift >= 64 {
  2273. return ErrIntOverflowApi
  2274. }
  2275. if iNdEx >= l {
  2276. return io.ErrUnexpectedEOF
  2277. }
  2278. b := dAtA[iNdEx]
  2279. iNdEx++
  2280. wire |= (uint64(b) & 0x7F) << shift
  2281. if b < 0x80 {
  2282. break
  2283. }
  2284. }
  2285. fieldNum := int32(wire >> 3)
  2286. wireType := int(wire & 0x7)
  2287. if wireType == 4 {
  2288. return fmt.Errorf("proto: NotificationResponse: wiretype end group for non-group")
  2289. }
  2290. if fieldNum <= 0 {
  2291. return fmt.Errorf("proto: NotificationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2292. }
  2293. switch fieldNum {
  2294. case 1:
  2295. if wireType != 2 {
  2296. return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  2297. }
  2298. var msglen int
  2299. for shift := uint(0); ; shift += 7 {
  2300. if shift >= 64 {
  2301. return ErrIntOverflowApi
  2302. }
  2303. if iNdEx >= l {
  2304. return io.ErrUnexpectedEOF
  2305. }
  2306. b := dAtA[iNdEx]
  2307. iNdEx++
  2308. msglen |= (int(b) & 0x7F) << shift
  2309. if b < 0x80 {
  2310. break
  2311. }
  2312. }
  2313. if msglen < 0 {
  2314. return ErrInvalidLengthApi
  2315. }
  2316. postIndex := iNdEx + msglen
  2317. if postIndex > l {
  2318. return io.ErrUnexpectedEOF
  2319. }
  2320. m.Result = append(m.Result, &PushResult{})
  2321. if err := m.Result[len(m.Result)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2322. return err
  2323. }
  2324. iNdEx = postIndex
  2325. default:
  2326. iNdEx = preIndex
  2327. skippy, err := skipApi(dAtA[iNdEx:])
  2328. if err != nil {
  2329. return err
  2330. }
  2331. if skippy < 0 {
  2332. return ErrInvalidLengthApi
  2333. }
  2334. if (iNdEx + skippy) > l {
  2335. return io.ErrUnexpectedEOF
  2336. }
  2337. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2338. iNdEx += skippy
  2339. }
  2340. }
  2341. if iNdEx > l {
  2342. return io.ErrUnexpectedEOF
  2343. }
  2344. return nil
  2345. }
  2346. func (m *MessageRequest) Unmarshal(dAtA []byte) error {
  2347. l := len(dAtA)
  2348. iNdEx := 0
  2349. for iNdEx < l {
  2350. preIndex := iNdEx
  2351. var wire uint64
  2352. for shift := uint(0); ; shift += 7 {
  2353. if shift >= 64 {
  2354. return ErrIntOverflowApi
  2355. }
  2356. if iNdEx >= l {
  2357. return io.ErrUnexpectedEOF
  2358. }
  2359. b := dAtA[iNdEx]
  2360. iNdEx++
  2361. wire |= (uint64(b) & 0x7F) << shift
  2362. if b < 0x80 {
  2363. break
  2364. }
  2365. }
  2366. fieldNum := int32(wire >> 3)
  2367. wireType := int(wire & 0x7)
  2368. if wireType == 4 {
  2369. return fmt.Errorf("proto: MessageRequest: wiretype end group for non-group")
  2370. }
  2371. if fieldNum <= 0 {
  2372. return fmt.Errorf("proto: MessageRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2373. }
  2374. switch fieldNum {
  2375. case 1:
  2376. if wireType != 2 {
  2377. return fmt.Errorf("proto: wrong wireType = %d for field Dev", wireType)
  2378. }
  2379. var msglen int
  2380. for shift := uint(0); ; shift += 7 {
  2381. if shift >= 64 {
  2382. return ErrIntOverflowApi
  2383. }
  2384. if iNdEx >= l {
  2385. return io.ErrUnexpectedEOF
  2386. }
  2387. b := dAtA[iNdEx]
  2388. iNdEx++
  2389. msglen |= (int(b) & 0x7F) << shift
  2390. if b < 0x80 {
  2391. break
  2392. }
  2393. }
  2394. if msglen < 0 {
  2395. return ErrInvalidLengthApi
  2396. }
  2397. postIndex := iNdEx + msglen
  2398. if postIndex > l {
  2399. return io.ErrUnexpectedEOF
  2400. }
  2401. m.Dev = append(m.Dev, &Device{})
  2402. if err := m.Dev[len(m.Dev)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2403. return err
  2404. }
  2405. iNdEx = postIndex
  2406. case 2:
  2407. if wireType != 2 {
  2408. return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType)
  2409. }
  2410. var msglen int
  2411. for shift := uint(0); ; shift += 7 {
  2412. if shift >= 64 {
  2413. return ErrIntOverflowApi
  2414. }
  2415. if iNdEx >= l {
  2416. return io.ErrUnexpectedEOF
  2417. }
  2418. b := dAtA[iNdEx]
  2419. iNdEx++
  2420. msglen |= (int(b) & 0x7F) << shift
  2421. if b < 0x80 {
  2422. break
  2423. }
  2424. }
  2425. if msglen < 0 {
  2426. return ErrInvalidLengthApi
  2427. }
  2428. postIndex := iNdEx + msglen
  2429. if postIndex > l {
  2430. return io.ErrUnexpectedEOF
  2431. }
  2432. if m.Body == nil {
  2433. m.Body = &MessageBody{}
  2434. }
  2435. if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2436. return err
  2437. }
  2438. iNdEx = postIndex
  2439. default:
  2440. iNdEx = preIndex
  2441. skippy, err := skipApi(dAtA[iNdEx:])
  2442. if err != nil {
  2443. return err
  2444. }
  2445. if skippy < 0 {
  2446. return ErrInvalidLengthApi
  2447. }
  2448. if (iNdEx + skippy) > l {
  2449. return io.ErrUnexpectedEOF
  2450. }
  2451. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2452. iNdEx += skippy
  2453. }
  2454. }
  2455. if iNdEx > l {
  2456. return io.ErrUnexpectedEOF
  2457. }
  2458. return nil
  2459. }
  2460. func (m *MessageResponse) Unmarshal(dAtA []byte) error {
  2461. l := len(dAtA)
  2462. iNdEx := 0
  2463. for iNdEx < l {
  2464. preIndex := iNdEx
  2465. var wire uint64
  2466. for shift := uint(0); ; shift += 7 {
  2467. if shift >= 64 {
  2468. return ErrIntOverflowApi
  2469. }
  2470. if iNdEx >= l {
  2471. return io.ErrUnexpectedEOF
  2472. }
  2473. b := dAtA[iNdEx]
  2474. iNdEx++
  2475. wire |= (uint64(b) & 0x7F) << shift
  2476. if b < 0x80 {
  2477. break
  2478. }
  2479. }
  2480. fieldNum := int32(wire >> 3)
  2481. wireType := int(wire & 0x7)
  2482. if wireType == 4 {
  2483. return fmt.Errorf("proto: MessageResponse: wiretype end group for non-group")
  2484. }
  2485. if fieldNum <= 0 {
  2486. return fmt.Errorf("proto: MessageResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2487. }
  2488. switch fieldNum {
  2489. case 1:
  2490. if wireType != 2 {
  2491. return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  2492. }
  2493. var msglen int
  2494. for shift := uint(0); ; shift += 7 {
  2495. if shift >= 64 {
  2496. return ErrIntOverflowApi
  2497. }
  2498. if iNdEx >= l {
  2499. return io.ErrUnexpectedEOF
  2500. }
  2501. b := dAtA[iNdEx]
  2502. iNdEx++
  2503. msglen |= (int(b) & 0x7F) << shift
  2504. if b < 0x80 {
  2505. break
  2506. }
  2507. }
  2508. if msglen < 0 {
  2509. return ErrInvalidLengthApi
  2510. }
  2511. postIndex := iNdEx + msglen
  2512. if postIndex > l {
  2513. return io.ErrUnexpectedEOF
  2514. }
  2515. m.Result = append(m.Result, &PushResult{})
  2516. if err := m.Result[len(m.Result)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2517. return err
  2518. }
  2519. iNdEx = postIndex
  2520. default:
  2521. iNdEx = preIndex
  2522. skippy, err := skipApi(dAtA[iNdEx:])
  2523. if err != nil {
  2524. return err
  2525. }
  2526. if skippy < 0 {
  2527. return ErrInvalidLengthApi
  2528. }
  2529. if (iNdEx + skippy) > l {
  2530. return io.ErrUnexpectedEOF
  2531. }
  2532. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2533. iNdEx += skippy
  2534. }
  2535. }
  2536. if iNdEx > l {
  2537. return io.ErrUnexpectedEOF
  2538. }
  2539. return nil
  2540. }
  2541. func skipApi(dAtA []byte) (n int, err error) {
  2542. l := len(dAtA)
  2543. iNdEx := 0
  2544. for iNdEx < l {
  2545. var wire uint64
  2546. for shift := uint(0); ; shift += 7 {
  2547. if shift >= 64 {
  2548. return 0, ErrIntOverflowApi
  2549. }
  2550. if iNdEx >= l {
  2551. return 0, io.ErrUnexpectedEOF
  2552. }
  2553. b := dAtA[iNdEx]
  2554. iNdEx++
  2555. wire |= (uint64(b) & 0x7F) << shift
  2556. if b < 0x80 {
  2557. break
  2558. }
  2559. }
  2560. wireType := int(wire & 0x7)
  2561. switch wireType {
  2562. case 0:
  2563. for shift := uint(0); ; shift += 7 {
  2564. if shift >= 64 {
  2565. return 0, ErrIntOverflowApi
  2566. }
  2567. if iNdEx >= l {
  2568. return 0, io.ErrUnexpectedEOF
  2569. }
  2570. iNdEx++
  2571. if dAtA[iNdEx-1] < 0x80 {
  2572. break
  2573. }
  2574. }
  2575. return iNdEx, nil
  2576. case 1:
  2577. iNdEx += 8
  2578. return iNdEx, nil
  2579. case 2:
  2580. var length int
  2581. for shift := uint(0); ; shift += 7 {
  2582. if shift >= 64 {
  2583. return 0, ErrIntOverflowApi
  2584. }
  2585. if iNdEx >= l {
  2586. return 0, io.ErrUnexpectedEOF
  2587. }
  2588. b := dAtA[iNdEx]
  2589. iNdEx++
  2590. length |= (int(b) & 0x7F) << shift
  2591. if b < 0x80 {
  2592. break
  2593. }
  2594. }
  2595. iNdEx += length
  2596. if length < 0 {
  2597. return 0, ErrInvalidLengthApi
  2598. }
  2599. return iNdEx, nil
  2600. case 3:
  2601. for {
  2602. var innerWire uint64
  2603. var start int = iNdEx
  2604. for shift := uint(0); ; shift += 7 {
  2605. if shift >= 64 {
  2606. return 0, ErrIntOverflowApi
  2607. }
  2608. if iNdEx >= l {
  2609. return 0, io.ErrUnexpectedEOF
  2610. }
  2611. b := dAtA[iNdEx]
  2612. iNdEx++
  2613. innerWire |= (uint64(b) & 0x7F) << shift
  2614. if b < 0x80 {
  2615. break
  2616. }
  2617. }
  2618. innerWireType := int(innerWire & 0x7)
  2619. if innerWireType == 4 {
  2620. break
  2621. }
  2622. next, err := skipApi(dAtA[start:])
  2623. if err != nil {
  2624. return 0, err
  2625. }
  2626. iNdEx = start + next
  2627. }
  2628. return iNdEx, nil
  2629. case 4:
  2630. return iNdEx, nil
  2631. case 5:
  2632. iNdEx += 4
  2633. return iNdEx, nil
  2634. default:
  2635. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2636. }
  2637. }
  2638. panic("unreachable")
  2639. }
  2640. var (
  2641. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  2642. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  2643. )
  2644. func init() {
  2645. proto.RegisterFile("app/service/bbq/push/api/grpc/v1/api.proto", fileDescriptor_api_4b790079c5d995c4)
  2646. }
  2647. var fileDescriptor_api_4b790079c5d995c4 = []byte{
  2648. // 972 bytes of a gzipped FileDescriptorProto
  2649. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4f, 0x6f, 0x1b, 0x45,
  2650. 0x14, 0xef, 0xfa, 0x5f, 0x9a, 0x71, 0x68, 0xc2, 0x84, 0x83, 0x55, 0x2a, 0x8f, 0x35, 0x50, 0x61,
  2651. 0xa0, 0xd8, 0x4a, 0x22, 0x21, 0x54, 0x09, 0x09, 0xb6, 0x89, 0x20, 0xaa, 0x5a, 0x55, 0x93, 0x70,
  2652. 0x68, 0x0f, 0x8d, 0xec, 0xdd, 0xc9, 0x7a, 0x95, 0xec, 0xce, 0x66, 0x67, 0xbd, 0xc2, 0x12, 0x87,
  2653. 0x9e, 0xf8, 0x0e, 0xdc, 0xf8, 0x10, 0x9c, 0x7b, 0xee, 0x91, 0x23, 0xa7, 0x11, 0xdd, 0xa3, 0x8f,
  2654. 0xbe, 0x23, 0xa1, 0x37, 0x33, 0xf6, 0xda, 0xc8, 0x94, 0x22, 0x51, 0xd4, 0xd3, 0xbe, 0xf7, 0x7b,
  2655. 0xef, 0xf7, 0xe6, 0xcd, 0x7b, 0x6f, 0x9e, 0x16, 0x7d, 0x32, 0x48, 0x92, 0xbe, 0xe4, 0x69, 0x1e,
  2656. 0x7a, 0xbc, 0x3f, 0x1c, 0x5e, 0xf5, 0x93, 0xb1, 0x1c, 0xf5, 0x07, 0x49, 0xd8, 0x0f, 0xd2, 0xc4,
  2657. 0xeb, 0xe7, 0x7b, 0x20, 0xf7, 0x92, 0x54, 0x64, 0x02, 0xef, 0x0e, 0x87, 0x57, 0x3d, 0xeb, 0xdb,
  2658. 0x03, 0xbf, 0x5e, 0xbe, 0x77, 0xf3, 0xb3, 0x20, 0xcc, 0x46, 0xe3, 0x61, 0xcf, 0x13, 0x51, 0x3f,
  2659. 0x10, 0x81, 0xe8, 0x6b, 0xdf, 0xe1, 0xf8, 0x5c, 0x6b, 0x5a, 0xd1, 0x92, 0x89, 0x41, 0x7f, 0xaa,
  2660. 0xa0, 0xc6, 0x21, 0x87, 0x08, 0xf8, 0x14, 0x35, 0x53, 0x1e, 0x84, 0x32, 0xe3, 0xe9, 0x59, 0xe8,
  2661. 0xb7, 0x9c, 0x8e, 0xd3, 0xdd, 0x74, 0x0f, 0x0a, 0x45, 0x10, 0xb3, 0xf0, 0xf1, 0xe1, 0x54, 0x91,
  2662. 0x65, 0xa7, 0x99, 0x22, 0xf8, 0x5c, 0xa4, 0xd1, 0x5d, 0xba, 0x04, 0x52, 0x86, 0xe6, 0xda, 0xb1,
  2663. 0x8f, 0xbf, 0x41, 0xd7, 0x93, 0xcb, 0x41, 0x06, 0x5e, 0xad, 0x4a, 0xc7, 0xe9, 0xd6, 0xdd, 0x4f,
  2664. 0x0b, 0x45, 0xae, 0x3f, 0xb2, 0xd8, 0x54, 0x91, 0x85, 0x7d, 0xa6, 0xc8, 0xb6, 0x89, 0x36, 0x47,
  2665. 0x28, 0x5b, 0x18, 0x71, 0x0f, 0x55, 0xa5, 0x7f, 0xd1, 0xaa, 0xea, 0x18, 0xb7, 0x0a, 0x45, 0xaa,
  2666. 0x27, 0x87, 0xf7, 0xa7, 0x8a, 0x00, 0x3a, 0x53, 0x04, 0x19, 0xa6, 0xf4, 0x2f, 0x28, 0x03, 0x08,
  2667. 0x7f, 0x85, 0x36, 0x24, 0x8f, 0xfd, 0xb3, 0x58, 0xb4, 0x6a, 0x1d, 0xa7, 0x5b, 0x75, 0x3f, 0x2a,
  2668. 0x14, 0x69, 0x9c, 0xf0, 0xd8, 0x7f, 0x28, 0xa6, 0x8a, 0xcc, 0x8d, 0x33, 0x45, 0x6e, 0x58, 0xaa,
  2669. 0x01, 0x28, 0x6b, 0x48, 0xed, 0x44, 0x9f, 0x39, 0xa8, 0x7e, 0xf4, 0x7d, 0x96, 0x0e, 0xf0, 0x17,
  2670. 0xa8, 0x9e, 0x89, 0x0b, 0x1e, 0xdb, 0xa2, 0xd0, 0x42, 0x91, 0xfa, 0x29, 0x00, 0x53, 0x45, 0x8c,
  2671. 0x65, 0xa6, 0xc8, 0x96, 0x09, 0xa3, 0x55, 0xca, 0x0c, 0x8c, 0xbf, 0x44, 0x0d, 0xe9, 0x8d, 0x78,
  2672. 0x34, 0xd0, 0x97, 0xdf, 0x74, 0x6f, 0xeb, 0x24, 0x34, 0x32, 0x55, 0xc4, 0xda, 0x66, 0x8a, 0xbc,
  2673. 0x63, 0x73, 0xd0, 0x3a, 0xa4, 0x60, 0x84, 0xe7, 0x15, 0xb4, 0xf3, 0x50, 0x64, 0xe1, 0x79, 0xe8,
  2674. 0x0d, 0xb2, 0x50, 0xc4, 0xae, 0xf0, 0x27, 0x3a, 0x9b, 0x30, 0xbb, 0xe4, 0x2b, 0xd9, 0x00, 0xa0,
  2675. 0xb3, 0x01, 0x61, 0x29, 0x1b, 0x50, 0x21, 0x1b, 0xf8, 0x62, 0x17, 0x6d, 0x78, 0x22, 0xce, 0x78,
  2676. 0x9c, 0xd9, 0x74, 0xba, 0x85, 0x22, 0x1b, 0xf7, 0x0c, 0x04, 0x45, 0xb1, 0xd6, 0xb2, 0x28, 0x16,
  2677. 0xa0, 0x6c, 0x6e, 0x82, 0xd3, 0xa5, 0x18, 0xc7, 0xbe, 0xee, 0x84, 0x3d, 0xfd, 0x04, 0x00, 0x38,
  2678. 0x5d, 0x5b, 0xca, 0xd3, 0xb5, 0x4a, 0x99, 0x81, 0x81, 0x39, 0x1c, 0xf8, 0x01, 0xd7, 0xfd, 0xa8,
  2679. 0x1b, 0xa6, 0x0b, 0x00, 0x30, 0xb5, 0xa5, 0x64, 0x6a, 0x95, 0x32, 0x03, 0x03, 0x93, 0x43, 0x23,
  2680. 0x5a, 0xf5, 0xf2, 0x4c, 0xdd, 0x19, 0x60, 0x6a, 0x4b, 0xc9, 0xd4, 0x2a, 0x65, 0x06, 0xa6, 0x3f,
  2681. 0x57, 0x50, 0xf3, 0x01, 0x97, 0x72, 0x10, 0xf0, 0xb7, 0xa0, 0x76, 0x8f, 0xd1, 0x96, 0x15, 0xcf,
  2682. 0xb2, 0x49, 0xc2, 0x6d, 0x09, 0x3f, 0x2f, 0x14, 0x69, 0xda, 0x40, 0xa7, 0x93, 0x04, 0x52, 0x59,
  2683. 0x71, 0x9b, 0x29, 0xb2, 0xbb, 0x12, 0x51, 0xa3, 0x94, 0x35, 0xbd, 0x92, 0x53, 0x96, 0xa8, 0xf6,
  2684. 0x6f, 0x4b, 0xf4, 0xdc, 0x41, 0xbb, 0xcb, 0x33, 0xc6, 0xf8, 0xd5, 0x98, 0xcb, 0x0c, 0xdf, 0x47,
  2685. 0x55, 0x9f, 0xe7, 0x2d, 0xa7, 0x53, 0xed, 0x36, 0xf7, 0xdf, 0xef, 0xad, 0x59, 0x36, 0x3d, 0xb3,
  2686. 0x39, 0xcc, 0x6b, 0x3c, 0xe4, 0x39, 0xbc, 0x46, 0x9f, 0xe7, 0xe5, 0x6b, 0xf4, 0x79, 0x4e, 0x19,
  2687. 0x40, 0xf8, 0x09, 0xaa, 0x0d, 0x85, 0x3f, 0xd1, 0xa5, 0x6b, 0xee, 0xdf, 0x5e, 0x1b, 0xed, 0xaf,
  2688. 0x83, 0xee, 0x92, 0x42, 0x91, 0x1a, 0x48, 0x53, 0x45, 0x34, 0x7d, 0xa6, 0x48, 0xd3, 0xce, 0x87,
  2689. 0xf0, 0x27, 0x94, 0x69, 0x90, 0xfe, 0xe1, 0x20, 0xf4, 0x68, 0x2c, 0x47, 0x8c, 0xcb, 0xf1, 0x65,
  2690. 0x86, 0xbf, 0x2d, 0x1f, 0xbe, 0x69, 0x72, 0x7f, 0xe5, 0xe1, 0xef, 0x80, 0x31, 0x16, 0x77, 0x44,
  2691. 0x14, 0x66, 0x3c, 0x4a, 0xb2, 0xc9, 0xd2, 0xeb, 0xd3, 0x96, 0xc5, 0x02, 0xc0, 0x47, 0xa8, 0x11,
  2692. 0xc9, 0x00, 0x96, 0xa1, 0xe9, 0x78, 0x0f, 0x8a, 0xfa, 0x40, 0x06, 0x7a, 0x0f, 0xee, 0x18, 0xd3,
  2693. 0xba, 0x38, 0xc6, 0x42, 0x59, 0x3d, 0x92, 0xc1, 0xb1, 0x8f, 0x9f, 0xa2, 0x2a, 0x4f, 0x53, 0xdd,
  2694. 0xec, 0xe6, 0x7e, 0x7b, 0xed, 0xd5, 0x21, 0xfd, 0xa3, 0x34, 0x15, 0xa9, 0x7b, 0x47, 0x37, 0x0e,
  2695. 0xc4, 0xa9, 0x22, 0xdb, 0x1c, 0x84, 0x95, 0x23, 0xe6, 0x2d, 0x04, 0x03, 0x65, 0x10, 0x98, 0xfe,
  2696. 0x80, 0x36, 0x17, 0x7c, 0x7c, 0x17, 0x55, 0x23, 0x19, 0xd8, 0x9b, 0xeb, 0x11, 0xb5, 0xe3, 0x0f,
  2697. 0x23, 0x1a, 0x19, 0xb1, 0x1c, 0x51, 0x0b, 0x50, 0x06, 0x24, 0x7c, 0x80, 0x6a, 0x9e, 0xf0, 0xb9,
  2698. 0xdd, 0xd3, 0xba, 0xfa, 0xf7, 0x84, 0x0f, 0x4c, 0x8d, 0x97, 0xd5, 0x07, 0x8d, 0x32, 0x0d, 0xd2,
  2699. 0x1c, 0xbd, 0xb7, 0x3a, 0x3d, 0x32, 0x11, 0xb1, 0xe4, 0xf8, 0x29, 0x6a, 0xa4, 0xba, 0x21, 0x76,
  2700. 0x82, 0xc8, 0xdf, 0x5e, 0xdc, 0xf4, 0xcd, 0xac, 0x46, 0x23, 0xc3, 0x6a, 0x34, 0xe4, 0xb2, 0xa8,
  2701. 0x46, 0xa7, 0xcc, 0x1a, 0xe8, 0x2f, 0x0e, 0xba, 0x61, 0xaf, 0xf6, 0x46, 0x26, 0xf6, 0xbb, 0x95,
  2702. 0x89, 0xed, 0xac, 0x8d, 0xb6, 0xb4, 0x59, 0x5e, 0x77, 0x58, 0xaf, 0xd0, 0xf6, 0x22, 0xeb, 0xff,
  2703. 0xa7, 0x52, 0xfb, 0x3f, 0x56, 0x51, 0x0d, 0xd8, 0xd8, 0x43, 0x5b, 0xcb, 0xad, 0xc2, 0xdd, 0x7f,
  2704. 0x7c, 0x86, 0xb6, 0xb2, 0x37, 0x3f, 0x7e, 0x0d, 0x4f, 0x7b, 0x9b, 0x53, 0x34, 0x9f, 0x38, 0xfc,
  2705. 0xc1, 0xab, 0x8a, 0x36, 0x0f, 0xfd, 0xe1, 0xab, 0x9d, 0x6c, 0xd4, 0x11, 0x7a, 0xf7, 0x6b, 0x39,
  2706. 0x89, 0xbd, 0x37, 0x9f, 0xff, 0x63, 0xb4, 0xa5, 0x4f, 0xfa, 0xef, 0x2f, 0xe1, 0xde, 0x7a, 0xf1,
  2707. 0xb2, 0x7d, 0xed, 0xb7, 0x97, 0xed, 0x6b, 0xcf, 0x8a, 0xb6, 0xf3, 0xa2, 0x68, 0x3b, 0xbf, 0x16,
  2708. 0x6d, 0xe7, 0xf7, 0xa2, 0xed, 0x3c, 0xa9, 0xe4, 0x7b, 0xc3, 0x86, 0xfe, 0x23, 0x3b, 0xf8, 0x33,
  2709. 0x00, 0x00, 0xff, 0xff, 0xc7, 0x98, 0x0b, 0x5f, 0x03, 0x0a, 0x00, 0x00,
  2710. }