Guard.pb.go 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/Guard.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 io "io"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  18. type GuardGetByUidTargetIdReq struct {
  19. // uid
  20. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  21. // 主播id
  22. TargetId int64 `protobuf:"varint,2,opt,name=target_id,json=targetId,proto3" json:"target_id"`
  23. // 是否只返回最高等级的守护,为1时会改变返回数据结构
  24. IsLimitOne int64 `protobuf:"varint,3,opt,name=is_limit_one,json=isLimitOne,proto3" json:"is_limit_one"`
  25. }
  26. func (m *GuardGetByUidTargetIdReq) Reset() { *m = GuardGetByUidTargetIdReq{} }
  27. func (m *GuardGetByUidTargetIdReq) String() string { return proto.CompactTextString(m) }
  28. func (*GuardGetByUidTargetIdReq) ProtoMessage() {}
  29. func (*GuardGetByUidTargetIdReq) Descriptor() ([]byte, []int) {
  30. return fileDescriptor_Guard_0e6e439e726db5d6, []int{0}
  31. }
  32. func (m *GuardGetByUidTargetIdReq) XXX_Unmarshal(b []byte) error {
  33. return m.Unmarshal(b)
  34. }
  35. func (m *GuardGetByUidTargetIdReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  36. if deterministic {
  37. return xxx_messageInfo_GuardGetByUidTargetIdReq.Marshal(b, m, deterministic)
  38. } else {
  39. b = b[:cap(b)]
  40. n, err := m.MarshalTo(b)
  41. if err != nil {
  42. return nil, err
  43. }
  44. return b[:n], nil
  45. }
  46. }
  47. func (dst *GuardGetByUidTargetIdReq) XXX_Merge(src proto.Message) {
  48. xxx_messageInfo_GuardGetByUidTargetIdReq.Merge(dst, src)
  49. }
  50. func (m *GuardGetByUidTargetIdReq) XXX_Size() int {
  51. return m.Size()
  52. }
  53. func (m *GuardGetByUidTargetIdReq) XXX_DiscardUnknown() {
  54. xxx_messageInfo_GuardGetByUidTargetIdReq.DiscardUnknown(m)
  55. }
  56. var xxx_messageInfo_GuardGetByUidTargetIdReq proto.InternalMessageInfo
  57. func (m *GuardGetByUidTargetIdReq) GetUid() int64 {
  58. if m != nil {
  59. return m.Uid
  60. }
  61. return 0
  62. }
  63. func (m *GuardGetByUidTargetIdReq) GetTargetId() int64 {
  64. if m != nil {
  65. return m.TargetId
  66. }
  67. return 0
  68. }
  69. func (m *GuardGetByUidTargetIdReq) GetIsLimitOne() int64 {
  70. if m != nil {
  71. return m.IsLimitOne
  72. }
  73. return 0
  74. }
  75. type GuardGetByUidTargetIdResp struct {
  76. //
  77. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  78. //
  79. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  80. //
  81. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message"`
  82. //
  83. Data []*GuardGetByUidTargetIdResp_Data `protobuf:"bytes,4,rep,name=data" json:"data"`
  84. }
  85. func (m *GuardGetByUidTargetIdResp) Reset() { *m = GuardGetByUidTargetIdResp{} }
  86. func (m *GuardGetByUidTargetIdResp) String() string { return proto.CompactTextString(m) }
  87. func (*GuardGetByUidTargetIdResp) ProtoMessage() {}
  88. func (*GuardGetByUidTargetIdResp) Descriptor() ([]byte, []int) {
  89. return fileDescriptor_Guard_0e6e439e726db5d6, []int{1}
  90. }
  91. func (m *GuardGetByUidTargetIdResp) XXX_Unmarshal(b []byte) error {
  92. return m.Unmarshal(b)
  93. }
  94. func (m *GuardGetByUidTargetIdResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  95. if deterministic {
  96. return xxx_messageInfo_GuardGetByUidTargetIdResp.Marshal(b, m, deterministic)
  97. } else {
  98. b = b[:cap(b)]
  99. n, err := m.MarshalTo(b)
  100. if err != nil {
  101. return nil, err
  102. }
  103. return b[:n], nil
  104. }
  105. }
  106. func (dst *GuardGetByUidTargetIdResp) XXX_Merge(src proto.Message) {
  107. xxx_messageInfo_GuardGetByUidTargetIdResp.Merge(dst, src)
  108. }
  109. func (m *GuardGetByUidTargetIdResp) XXX_Size() int {
  110. return m.Size()
  111. }
  112. func (m *GuardGetByUidTargetIdResp) XXX_DiscardUnknown() {
  113. xxx_messageInfo_GuardGetByUidTargetIdResp.DiscardUnknown(m)
  114. }
  115. var xxx_messageInfo_GuardGetByUidTargetIdResp proto.InternalMessageInfo
  116. func (m *GuardGetByUidTargetIdResp) GetCode() int64 {
  117. if m != nil {
  118. return m.Code
  119. }
  120. return 0
  121. }
  122. func (m *GuardGetByUidTargetIdResp) GetMsg() string {
  123. if m != nil {
  124. return m.Msg
  125. }
  126. return ""
  127. }
  128. func (m *GuardGetByUidTargetIdResp) GetMessage() string {
  129. if m != nil {
  130. return m.Message
  131. }
  132. return ""
  133. }
  134. func (m *GuardGetByUidTargetIdResp) GetData() []*GuardGetByUidTargetIdResp_Data {
  135. if m != nil {
  136. return m.Data
  137. }
  138. return nil
  139. }
  140. type GuardGetByUidTargetIdResp_Data struct {
  141. //
  142. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  143. //
  144. Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid"`
  145. // up主id
  146. TargetId int64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id"`
  147. // 1:总督,2:提督,3:舰长
  148. PrivilegeType int64 `protobuf:"varint,4,opt,name=privilege_type,json=privilegeType,proto3" json:"privilege_type"`
  149. // 开始时间
  150. StartTime string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time"`
  151. // 过期时间
  152. ExpiredTime string `protobuf:"bytes,6,opt,name=expired_time,json=expiredTime,proto3" json:"expired_time"`
  153. // 创建时间
  154. Ctime string `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime"`
  155. // 修改时间
  156. Utime string `protobuf:"bytes,8,opt,name=utime,proto3" json:"utime"`
  157. }
  158. func (m *GuardGetByUidTargetIdResp_Data) Reset() { *m = GuardGetByUidTargetIdResp_Data{} }
  159. func (m *GuardGetByUidTargetIdResp_Data) String() string { return proto.CompactTextString(m) }
  160. func (*GuardGetByUidTargetIdResp_Data) ProtoMessage() {}
  161. func (*GuardGetByUidTargetIdResp_Data) Descriptor() ([]byte, []int) {
  162. return fileDescriptor_Guard_0e6e439e726db5d6, []int{1, 0}
  163. }
  164. func (m *GuardGetByUidTargetIdResp_Data) XXX_Unmarshal(b []byte) error {
  165. return m.Unmarshal(b)
  166. }
  167. func (m *GuardGetByUidTargetIdResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  168. if deterministic {
  169. return xxx_messageInfo_GuardGetByUidTargetIdResp_Data.Marshal(b, m, deterministic)
  170. } else {
  171. b = b[:cap(b)]
  172. n, err := m.MarshalTo(b)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return b[:n], nil
  177. }
  178. }
  179. func (dst *GuardGetByUidTargetIdResp_Data) XXX_Merge(src proto.Message) {
  180. xxx_messageInfo_GuardGetByUidTargetIdResp_Data.Merge(dst, src)
  181. }
  182. func (m *GuardGetByUidTargetIdResp_Data) XXX_Size() int {
  183. return m.Size()
  184. }
  185. func (m *GuardGetByUidTargetIdResp_Data) XXX_DiscardUnknown() {
  186. xxx_messageInfo_GuardGetByUidTargetIdResp_Data.DiscardUnknown(m)
  187. }
  188. var xxx_messageInfo_GuardGetByUidTargetIdResp_Data proto.InternalMessageInfo
  189. func (m *GuardGetByUidTargetIdResp_Data) GetId() int64 {
  190. if m != nil {
  191. return m.Id
  192. }
  193. return 0
  194. }
  195. func (m *GuardGetByUidTargetIdResp_Data) GetUid() int64 {
  196. if m != nil {
  197. return m.Uid
  198. }
  199. return 0
  200. }
  201. func (m *GuardGetByUidTargetIdResp_Data) GetTargetId() int64 {
  202. if m != nil {
  203. return m.TargetId
  204. }
  205. return 0
  206. }
  207. func (m *GuardGetByUidTargetIdResp_Data) GetPrivilegeType() int64 {
  208. if m != nil {
  209. return m.PrivilegeType
  210. }
  211. return 0
  212. }
  213. func (m *GuardGetByUidTargetIdResp_Data) GetStartTime() string {
  214. if m != nil {
  215. return m.StartTime
  216. }
  217. return ""
  218. }
  219. func (m *GuardGetByUidTargetIdResp_Data) GetExpiredTime() string {
  220. if m != nil {
  221. return m.ExpiredTime
  222. }
  223. return ""
  224. }
  225. func (m *GuardGetByUidTargetIdResp_Data) GetCtime() string {
  226. if m != nil {
  227. return m.Ctime
  228. }
  229. return ""
  230. }
  231. func (m *GuardGetByUidTargetIdResp_Data) GetUtime() string {
  232. if m != nil {
  233. return m.Utime
  234. }
  235. return ""
  236. }
  237. type GuardGetByUidReq struct {
  238. // uid
  239. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  240. // 是否包含过期的守护,默认包含
  241. IncExpire int64 `protobuf:"varint,2,opt,name=inc_expire,json=incExpire,proto3" json:"inc_expire"`
  242. // 是否只返回等级最高的一条,默认0
  243. IsLimitOne int64 `protobuf:"varint,3,opt,name=is_limit_one,json=isLimitOne,proto3" json:"is_limit_one"`
  244. }
  245. func (m *GuardGetByUidReq) Reset() { *m = GuardGetByUidReq{} }
  246. func (m *GuardGetByUidReq) String() string { return proto.CompactTextString(m) }
  247. func (*GuardGetByUidReq) ProtoMessage() {}
  248. func (*GuardGetByUidReq) Descriptor() ([]byte, []int) {
  249. return fileDescriptor_Guard_0e6e439e726db5d6, []int{2}
  250. }
  251. func (m *GuardGetByUidReq) XXX_Unmarshal(b []byte) error {
  252. return m.Unmarshal(b)
  253. }
  254. func (m *GuardGetByUidReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  255. if deterministic {
  256. return xxx_messageInfo_GuardGetByUidReq.Marshal(b, m, deterministic)
  257. } else {
  258. b = b[:cap(b)]
  259. n, err := m.MarshalTo(b)
  260. if err != nil {
  261. return nil, err
  262. }
  263. return b[:n], nil
  264. }
  265. }
  266. func (dst *GuardGetByUidReq) XXX_Merge(src proto.Message) {
  267. xxx_messageInfo_GuardGetByUidReq.Merge(dst, src)
  268. }
  269. func (m *GuardGetByUidReq) XXX_Size() int {
  270. return m.Size()
  271. }
  272. func (m *GuardGetByUidReq) XXX_DiscardUnknown() {
  273. xxx_messageInfo_GuardGetByUidReq.DiscardUnknown(m)
  274. }
  275. var xxx_messageInfo_GuardGetByUidReq proto.InternalMessageInfo
  276. func (m *GuardGetByUidReq) GetUid() int64 {
  277. if m != nil {
  278. return m.Uid
  279. }
  280. return 0
  281. }
  282. func (m *GuardGetByUidReq) GetIncExpire() int64 {
  283. if m != nil {
  284. return m.IncExpire
  285. }
  286. return 0
  287. }
  288. func (m *GuardGetByUidReq) GetIsLimitOne() int64 {
  289. if m != nil {
  290. return m.IsLimitOne
  291. }
  292. return 0
  293. }
  294. type GuardGetByUidResp struct {
  295. //
  296. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  297. //
  298. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  299. //
  300. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message"`
  301. //
  302. Data []*GuardGetByUidResp_Data `protobuf:"bytes,4,rep,name=data" json:"data"`
  303. }
  304. func (m *GuardGetByUidResp) Reset() { *m = GuardGetByUidResp{} }
  305. func (m *GuardGetByUidResp) String() string { return proto.CompactTextString(m) }
  306. func (*GuardGetByUidResp) ProtoMessage() {}
  307. func (*GuardGetByUidResp) Descriptor() ([]byte, []int) {
  308. return fileDescriptor_Guard_0e6e439e726db5d6, []int{3}
  309. }
  310. func (m *GuardGetByUidResp) XXX_Unmarshal(b []byte) error {
  311. return m.Unmarshal(b)
  312. }
  313. func (m *GuardGetByUidResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  314. if deterministic {
  315. return xxx_messageInfo_GuardGetByUidResp.Marshal(b, m, deterministic)
  316. } else {
  317. b = b[:cap(b)]
  318. n, err := m.MarshalTo(b)
  319. if err != nil {
  320. return nil, err
  321. }
  322. return b[:n], nil
  323. }
  324. }
  325. func (dst *GuardGetByUidResp) XXX_Merge(src proto.Message) {
  326. xxx_messageInfo_GuardGetByUidResp.Merge(dst, src)
  327. }
  328. func (m *GuardGetByUidResp) XXX_Size() int {
  329. return m.Size()
  330. }
  331. func (m *GuardGetByUidResp) XXX_DiscardUnknown() {
  332. xxx_messageInfo_GuardGetByUidResp.DiscardUnknown(m)
  333. }
  334. var xxx_messageInfo_GuardGetByUidResp proto.InternalMessageInfo
  335. func (m *GuardGetByUidResp) GetCode() int64 {
  336. if m != nil {
  337. return m.Code
  338. }
  339. return 0
  340. }
  341. func (m *GuardGetByUidResp) GetMsg() string {
  342. if m != nil {
  343. return m.Msg
  344. }
  345. return ""
  346. }
  347. func (m *GuardGetByUidResp) GetMessage() string {
  348. if m != nil {
  349. return m.Message
  350. }
  351. return ""
  352. }
  353. func (m *GuardGetByUidResp) GetData() []*GuardGetByUidResp_Data {
  354. if m != nil {
  355. return m.Data
  356. }
  357. return nil
  358. }
  359. type GuardGetByUidResp_Data struct {
  360. //
  361. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  362. //
  363. Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid"`
  364. // up主id
  365. TargetId int64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id"`
  366. // 1:总督,2:提督,3:舰长
  367. PrivilegeType int64 `protobuf:"varint,4,opt,name=privilege_type,json=privilegeType,proto3" json:"privilege_type"`
  368. // 开始时间
  369. StartTime string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time"`
  370. // 过期时间
  371. ExpiredTime string `protobuf:"bytes,6,opt,name=expired_time,json=expiredTime,proto3" json:"expired_time"`
  372. // 创建时间
  373. Ctime string `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime"`
  374. // 修改时间
  375. Utime string `protobuf:"bytes,8,opt,name=utime,proto3" json:"utime"`
  376. }
  377. func (m *GuardGetByUidResp_Data) Reset() { *m = GuardGetByUidResp_Data{} }
  378. func (m *GuardGetByUidResp_Data) String() string { return proto.CompactTextString(m) }
  379. func (*GuardGetByUidResp_Data) ProtoMessage() {}
  380. func (*GuardGetByUidResp_Data) Descriptor() ([]byte, []int) {
  381. return fileDescriptor_Guard_0e6e439e726db5d6, []int{3, 0}
  382. }
  383. func (m *GuardGetByUidResp_Data) XXX_Unmarshal(b []byte) error {
  384. return m.Unmarshal(b)
  385. }
  386. func (m *GuardGetByUidResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  387. if deterministic {
  388. return xxx_messageInfo_GuardGetByUidResp_Data.Marshal(b, m, deterministic)
  389. } else {
  390. b = b[:cap(b)]
  391. n, err := m.MarshalTo(b)
  392. if err != nil {
  393. return nil, err
  394. }
  395. return b[:n], nil
  396. }
  397. }
  398. func (dst *GuardGetByUidResp_Data) XXX_Merge(src proto.Message) {
  399. xxx_messageInfo_GuardGetByUidResp_Data.Merge(dst, src)
  400. }
  401. func (m *GuardGetByUidResp_Data) XXX_Size() int {
  402. return m.Size()
  403. }
  404. func (m *GuardGetByUidResp_Data) XXX_DiscardUnknown() {
  405. xxx_messageInfo_GuardGetByUidResp_Data.DiscardUnknown(m)
  406. }
  407. var xxx_messageInfo_GuardGetByUidResp_Data proto.InternalMessageInfo
  408. func (m *GuardGetByUidResp_Data) GetId() int64 {
  409. if m != nil {
  410. return m.Id
  411. }
  412. return 0
  413. }
  414. func (m *GuardGetByUidResp_Data) GetUid() int64 {
  415. if m != nil {
  416. return m.Uid
  417. }
  418. return 0
  419. }
  420. func (m *GuardGetByUidResp_Data) GetTargetId() int64 {
  421. if m != nil {
  422. return m.TargetId
  423. }
  424. return 0
  425. }
  426. func (m *GuardGetByUidResp_Data) GetPrivilegeType() int64 {
  427. if m != nil {
  428. return m.PrivilegeType
  429. }
  430. return 0
  431. }
  432. func (m *GuardGetByUidResp_Data) GetStartTime() string {
  433. if m != nil {
  434. return m.StartTime
  435. }
  436. return ""
  437. }
  438. func (m *GuardGetByUidResp_Data) GetExpiredTime() string {
  439. if m != nil {
  440. return m.ExpiredTime
  441. }
  442. return ""
  443. }
  444. func (m *GuardGetByUidResp_Data) GetCtime() string {
  445. if m != nil {
  446. return m.Ctime
  447. }
  448. return ""
  449. }
  450. func (m *GuardGetByUidResp_Data) GetUtime() string {
  451. if m != nil {
  452. return m.Utime
  453. }
  454. return ""
  455. }
  456. func init() {
  457. proto.RegisterType((*GuardGetByUidTargetIdReq)(nil), "live_user.v1.GuardGetByUidTargetIdReq")
  458. proto.RegisterType((*GuardGetByUidTargetIdResp)(nil), "live_user.v1.GuardGetByUidTargetIdResp")
  459. proto.RegisterType((*GuardGetByUidTargetIdResp_Data)(nil), "live_user.v1.GuardGetByUidTargetIdResp.Data")
  460. proto.RegisterType((*GuardGetByUidReq)(nil), "live_user.v1.GuardGetByUidReq")
  461. proto.RegisterType((*GuardGetByUidResp)(nil), "live_user.v1.GuardGetByUidResp")
  462. proto.RegisterType((*GuardGetByUidResp_Data)(nil), "live_user.v1.GuardGetByUidResp.Data")
  463. }
  464. func (m *GuardGetByUidTargetIdReq) Marshal() (dAtA []byte, err error) {
  465. size := m.Size()
  466. dAtA = make([]byte, size)
  467. n, err := m.MarshalTo(dAtA)
  468. if err != nil {
  469. return nil, err
  470. }
  471. return dAtA[:n], nil
  472. }
  473. func (m *GuardGetByUidTargetIdReq) MarshalTo(dAtA []byte) (int, error) {
  474. var i int
  475. _ = i
  476. var l int
  477. _ = l
  478. if m.Uid != 0 {
  479. dAtA[i] = 0x8
  480. i++
  481. i = encodeVarintGuard(dAtA, i, uint64(m.Uid))
  482. }
  483. if m.TargetId != 0 {
  484. dAtA[i] = 0x10
  485. i++
  486. i = encodeVarintGuard(dAtA, i, uint64(m.TargetId))
  487. }
  488. if m.IsLimitOne != 0 {
  489. dAtA[i] = 0x18
  490. i++
  491. i = encodeVarintGuard(dAtA, i, uint64(m.IsLimitOne))
  492. }
  493. return i, nil
  494. }
  495. func (m *GuardGetByUidTargetIdResp) Marshal() (dAtA []byte, err error) {
  496. size := m.Size()
  497. dAtA = make([]byte, size)
  498. n, err := m.MarshalTo(dAtA)
  499. if err != nil {
  500. return nil, err
  501. }
  502. return dAtA[:n], nil
  503. }
  504. func (m *GuardGetByUidTargetIdResp) MarshalTo(dAtA []byte) (int, error) {
  505. var i int
  506. _ = i
  507. var l int
  508. _ = l
  509. if m.Code != 0 {
  510. dAtA[i] = 0x8
  511. i++
  512. i = encodeVarintGuard(dAtA, i, uint64(m.Code))
  513. }
  514. if len(m.Msg) > 0 {
  515. dAtA[i] = 0x12
  516. i++
  517. i = encodeVarintGuard(dAtA, i, uint64(len(m.Msg)))
  518. i += copy(dAtA[i:], m.Msg)
  519. }
  520. if len(m.Message) > 0 {
  521. dAtA[i] = 0x1a
  522. i++
  523. i = encodeVarintGuard(dAtA, i, uint64(len(m.Message)))
  524. i += copy(dAtA[i:], m.Message)
  525. }
  526. if len(m.Data) > 0 {
  527. for _, msg := range m.Data {
  528. dAtA[i] = 0x22
  529. i++
  530. i = encodeVarintGuard(dAtA, i, uint64(msg.Size()))
  531. n, err := msg.MarshalTo(dAtA[i:])
  532. if err != nil {
  533. return 0, err
  534. }
  535. i += n
  536. }
  537. }
  538. return i, nil
  539. }
  540. func (m *GuardGetByUidTargetIdResp_Data) Marshal() (dAtA []byte, err error) {
  541. size := m.Size()
  542. dAtA = make([]byte, size)
  543. n, err := m.MarshalTo(dAtA)
  544. if err != nil {
  545. return nil, err
  546. }
  547. return dAtA[:n], nil
  548. }
  549. func (m *GuardGetByUidTargetIdResp_Data) MarshalTo(dAtA []byte) (int, error) {
  550. var i int
  551. _ = i
  552. var l int
  553. _ = l
  554. if m.Id != 0 {
  555. dAtA[i] = 0x8
  556. i++
  557. i = encodeVarintGuard(dAtA, i, uint64(m.Id))
  558. }
  559. if m.Uid != 0 {
  560. dAtA[i] = 0x10
  561. i++
  562. i = encodeVarintGuard(dAtA, i, uint64(m.Uid))
  563. }
  564. if m.TargetId != 0 {
  565. dAtA[i] = 0x18
  566. i++
  567. i = encodeVarintGuard(dAtA, i, uint64(m.TargetId))
  568. }
  569. if m.PrivilegeType != 0 {
  570. dAtA[i] = 0x20
  571. i++
  572. i = encodeVarintGuard(dAtA, i, uint64(m.PrivilegeType))
  573. }
  574. if len(m.StartTime) > 0 {
  575. dAtA[i] = 0x2a
  576. i++
  577. i = encodeVarintGuard(dAtA, i, uint64(len(m.StartTime)))
  578. i += copy(dAtA[i:], m.StartTime)
  579. }
  580. if len(m.ExpiredTime) > 0 {
  581. dAtA[i] = 0x32
  582. i++
  583. i = encodeVarintGuard(dAtA, i, uint64(len(m.ExpiredTime)))
  584. i += copy(dAtA[i:], m.ExpiredTime)
  585. }
  586. if len(m.Ctime) > 0 {
  587. dAtA[i] = 0x3a
  588. i++
  589. i = encodeVarintGuard(dAtA, i, uint64(len(m.Ctime)))
  590. i += copy(dAtA[i:], m.Ctime)
  591. }
  592. if len(m.Utime) > 0 {
  593. dAtA[i] = 0x42
  594. i++
  595. i = encodeVarintGuard(dAtA, i, uint64(len(m.Utime)))
  596. i += copy(dAtA[i:], m.Utime)
  597. }
  598. return i, nil
  599. }
  600. func (m *GuardGetByUidReq) Marshal() (dAtA []byte, err error) {
  601. size := m.Size()
  602. dAtA = make([]byte, size)
  603. n, err := m.MarshalTo(dAtA)
  604. if err != nil {
  605. return nil, err
  606. }
  607. return dAtA[:n], nil
  608. }
  609. func (m *GuardGetByUidReq) MarshalTo(dAtA []byte) (int, error) {
  610. var i int
  611. _ = i
  612. var l int
  613. _ = l
  614. if m.Uid != 0 {
  615. dAtA[i] = 0x8
  616. i++
  617. i = encodeVarintGuard(dAtA, i, uint64(m.Uid))
  618. }
  619. if m.IncExpire != 0 {
  620. dAtA[i] = 0x10
  621. i++
  622. i = encodeVarintGuard(dAtA, i, uint64(m.IncExpire))
  623. }
  624. if m.IsLimitOne != 0 {
  625. dAtA[i] = 0x18
  626. i++
  627. i = encodeVarintGuard(dAtA, i, uint64(m.IsLimitOne))
  628. }
  629. return i, nil
  630. }
  631. func (m *GuardGetByUidResp) Marshal() (dAtA []byte, err error) {
  632. size := m.Size()
  633. dAtA = make([]byte, size)
  634. n, err := m.MarshalTo(dAtA)
  635. if err != nil {
  636. return nil, err
  637. }
  638. return dAtA[:n], nil
  639. }
  640. func (m *GuardGetByUidResp) MarshalTo(dAtA []byte) (int, error) {
  641. var i int
  642. _ = i
  643. var l int
  644. _ = l
  645. if m.Code != 0 {
  646. dAtA[i] = 0x8
  647. i++
  648. i = encodeVarintGuard(dAtA, i, uint64(m.Code))
  649. }
  650. if len(m.Msg) > 0 {
  651. dAtA[i] = 0x12
  652. i++
  653. i = encodeVarintGuard(dAtA, i, uint64(len(m.Msg)))
  654. i += copy(dAtA[i:], m.Msg)
  655. }
  656. if len(m.Message) > 0 {
  657. dAtA[i] = 0x1a
  658. i++
  659. i = encodeVarintGuard(dAtA, i, uint64(len(m.Message)))
  660. i += copy(dAtA[i:], m.Message)
  661. }
  662. if len(m.Data) > 0 {
  663. for _, msg := range m.Data {
  664. dAtA[i] = 0x22
  665. i++
  666. i = encodeVarintGuard(dAtA, i, uint64(msg.Size()))
  667. n, err := msg.MarshalTo(dAtA[i:])
  668. if err != nil {
  669. return 0, err
  670. }
  671. i += n
  672. }
  673. }
  674. return i, nil
  675. }
  676. func (m *GuardGetByUidResp_Data) Marshal() (dAtA []byte, err error) {
  677. size := m.Size()
  678. dAtA = make([]byte, size)
  679. n, err := m.MarshalTo(dAtA)
  680. if err != nil {
  681. return nil, err
  682. }
  683. return dAtA[:n], nil
  684. }
  685. func (m *GuardGetByUidResp_Data) MarshalTo(dAtA []byte) (int, error) {
  686. var i int
  687. _ = i
  688. var l int
  689. _ = l
  690. if m.Id != 0 {
  691. dAtA[i] = 0x8
  692. i++
  693. i = encodeVarintGuard(dAtA, i, uint64(m.Id))
  694. }
  695. if m.Uid != 0 {
  696. dAtA[i] = 0x10
  697. i++
  698. i = encodeVarintGuard(dAtA, i, uint64(m.Uid))
  699. }
  700. if m.TargetId != 0 {
  701. dAtA[i] = 0x18
  702. i++
  703. i = encodeVarintGuard(dAtA, i, uint64(m.TargetId))
  704. }
  705. if m.PrivilegeType != 0 {
  706. dAtA[i] = 0x20
  707. i++
  708. i = encodeVarintGuard(dAtA, i, uint64(m.PrivilegeType))
  709. }
  710. if len(m.StartTime) > 0 {
  711. dAtA[i] = 0x2a
  712. i++
  713. i = encodeVarintGuard(dAtA, i, uint64(len(m.StartTime)))
  714. i += copy(dAtA[i:], m.StartTime)
  715. }
  716. if len(m.ExpiredTime) > 0 {
  717. dAtA[i] = 0x32
  718. i++
  719. i = encodeVarintGuard(dAtA, i, uint64(len(m.ExpiredTime)))
  720. i += copy(dAtA[i:], m.ExpiredTime)
  721. }
  722. if len(m.Ctime) > 0 {
  723. dAtA[i] = 0x3a
  724. i++
  725. i = encodeVarintGuard(dAtA, i, uint64(len(m.Ctime)))
  726. i += copy(dAtA[i:], m.Ctime)
  727. }
  728. if len(m.Utime) > 0 {
  729. dAtA[i] = 0x42
  730. i++
  731. i = encodeVarintGuard(dAtA, i, uint64(len(m.Utime)))
  732. i += copy(dAtA[i:], m.Utime)
  733. }
  734. return i, nil
  735. }
  736. func encodeVarintGuard(dAtA []byte, offset int, v uint64) int {
  737. for v >= 1<<7 {
  738. dAtA[offset] = uint8(v&0x7f | 0x80)
  739. v >>= 7
  740. offset++
  741. }
  742. dAtA[offset] = uint8(v)
  743. return offset + 1
  744. }
  745. func (m *GuardGetByUidTargetIdReq) Size() (n int) {
  746. if m == nil {
  747. return 0
  748. }
  749. var l int
  750. _ = l
  751. if m.Uid != 0 {
  752. n += 1 + sovGuard(uint64(m.Uid))
  753. }
  754. if m.TargetId != 0 {
  755. n += 1 + sovGuard(uint64(m.TargetId))
  756. }
  757. if m.IsLimitOne != 0 {
  758. n += 1 + sovGuard(uint64(m.IsLimitOne))
  759. }
  760. return n
  761. }
  762. func (m *GuardGetByUidTargetIdResp) Size() (n int) {
  763. if m == nil {
  764. return 0
  765. }
  766. var l int
  767. _ = l
  768. if m.Code != 0 {
  769. n += 1 + sovGuard(uint64(m.Code))
  770. }
  771. l = len(m.Msg)
  772. if l > 0 {
  773. n += 1 + l + sovGuard(uint64(l))
  774. }
  775. l = len(m.Message)
  776. if l > 0 {
  777. n += 1 + l + sovGuard(uint64(l))
  778. }
  779. if len(m.Data) > 0 {
  780. for _, e := range m.Data {
  781. l = e.Size()
  782. n += 1 + l + sovGuard(uint64(l))
  783. }
  784. }
  785. return n
  786. }
  787. func (m *GuardGetByUidTargetIdResp_Data) Size() (n int) {
  788. if m == nil {
  789. return 0
  790. }
  791. var l int
  792. _ = l
  793. if m.Id != 0 {
  794. n += 1 + sovGuard(uint64(m.Id))
  795. }
  796. if m.Uid != 0 {
  797. n += 1 + sovGuard(uint64(m.Uid))
  798. }
  799. if m.TargetId != 0 {
  800. n += 1 + sovGuard(uint64(m.TargetId))
  801. }
  802. if m.PrivilegeType != 0 {
  803. n += 1 + sovGuard(uint64(m.PrivilegeType))
  804. }
  805. l = len(m.StartTime)
  806. if l > 0 {
  807. n += 1 + l + sovGuard(uint64(l))
  808. }
  809. l = len(m.ExpiredTime)
  810. if l > 0 {
  811. n += 1 + l + sovGuard(uint64(l))
  812. }
  813. l = len(m.Ctime)
  814. if l > 0 {
  815. n += 1 + l + sovGuard(uint64(l))
  816. }
  817. l = len(m.Utime)
  818. if l > 0 {
  819. n += 1 + l + sovGuard(uint64(l))
  820. }
  821. return n
  822. }
  823. func (m *GuardGetByUidReq) Size() (n int) {
  824. if m == nil {
  825. return 0
  826. }
  827. var l int
  828. _ = l
  829. if m.Uid != 0 {
  830. n += 1 + sovGuard(uint64(m.Uid))
  831. }
  832. if m.IncExpire != 0 {
  833. n += 1 + sovGuard(uint64(m.IncExpire))
  834. }
  835. if m.IsLimitOne != 0 {
  836. n += 1 + sovGuard(uint64(m.IsLimitOne))
  837. }
  838. return n
  839. }
  840. func (m *GuardGetByUidResp) Size() (n int) {
  841. if m == nil {
  842. return 0
  843. }
  844. var l int
  845. _ = l
  846. if m.Code != 0 {
  847. n += 1 + sovGuard(uint64(m.Code))
  848. }
  849. l = len(m.Msg)
  850. if l > 0 {
  851. n += 1 + l + sovGuard(uint64(l))
  852. }
  853. l = len(m.Message)
  854. if l > 0 {
  855. n += 1 + l + sovGuard(uint64(l))
  856. }
  857. if len(m.Data) > 0 {
  858. for _, e := range m.Data {
  859. l = e.Size()
  860. n += 1 + l + sovGuard(uint64(l))
  861. }
  862. }
  863. return n
  864. }
  865. func (m *GuardGetByUidResp_Data) Size() (n int) {
  866. if m == nil {
  867. return 0
  868. }
  869. var l int
  870. _ = l
  871. if m.Id != 0 {
  872. n += 1 + sovGuard(uint64(m.Id))
  873. }
  874. if m.Uid != 0 {
  875. n += 1 + sovGuard(uint64(m.Uid))
  876. }
  877. if m.TargetId != 0 {
  878. n += 1 + sovGuard(uint64(m.TargetId))
  879. }
  880. if m.PrivilegeType != 0 {
  881. n += 1 + sovGuard(uint64(m.PrivilegeType))
  882. }
  883. l = len(m.StartTime)
  884. if l > 0 {
  885. n += 1 + l + sovGuard(uint64(l))
  886. }
  887. l = len(m.ExpiredTime)
  888. if l > 0 {
  889. n += 1 + l + sovGuard(uint64(l))
  890. }
  891. l = len(m.Ctime)
  892. if l > 0 {
  893. n += 1 + l + sovGuard(uint64(l))
  894. }
  895. l = len(m.Utime)
  896. if l > 0 {
  897. n += 1 + l + sovGuard(uint64(l))
  898. }
  899. return n
  900. }
  901. func sovGuard(x uint64) (n int) {
  902. for {
  903. n++
  904. x >>= 7
  905. if x == 0 {
  906. break
  907. }
  908. }
  909. return n
  910. }
  911. func sozGuard(x uint64) (n int) {
  912. return sovGuard(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  913. }
  914. func (m *GuardGetByUidTargetIdReq) Unmarshal(dAtA []byte) error {
  915. l := len(dAtA)
  916. iNdEx := 0
  917. for iNdEx < l {
  918. preIndex := iNdEx
  919. var wire uint64
  920. for shift := uint(0); ; shift += 7 {
  921. if shift >= 64 {
  922. return ErrIntOverflowGuard
  923. }
  924. if iNdEx >= l {
  925. return io.ErrUnexpectedEOF
  926. }
  927. b := dAtA[iNdEx]
  928. iNdEx++
  929. wire |= (uint64(b) & 0x7F) << shift
  930. if b < 0x80 {
  931. break
  932. }
  933. }
  934. fieldNum := int32(wire >> 3)
  935. wireType := int(wire & 0x7)
  936. if wireType == 4 {
  937. return fmt.Errorf("proto: GuardGetByUidTargetIdReq: wiretype end group for non-group")
  938. }
  939. if fieldNum <= 0 {
  940. return fmt.Errorf("proto: GuardGetByUidTargetIdReq: illegal tag %d (wire type %d)", fieldNum, wire)
  941. }
  942. switch fieldNum {
  943. case 1:
  944. if wireType != 0 {
  945. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  946. }
  947. m.Uid = 0
  948. for shift := uint(0); ; shift += 7 {
  949. if shift >= 64 {
  950. return ErrIntOverflowGuard
  951. }
  952. if iNdEx >= l {
  953. return io.ErrUnexpectedEOF
  954. }
  955. b := dAtA[iNdEx]
  956. iNdEx++
  957. m.Uid |= (int64(b) & 0x7F) << shift
  958. if b < 0x80 {
  959. break
  960. }
  961. }
  962. case 2:
  963. if wireType != 0 {
  964. return fmt.Errorf("proto: wrong wireType = %d for field TargetId", wireType)
  965. }
  966. m.TargetId = 0
  967. for shift := uint(0); ; shift += 7 {
  968. if shift >= 64 {
  969. return ErrIntOverflowGuard
  970. }
  971. if iNdEx >= l {
  972. return io.ErrUnexpectedEOF
  973. }
  974. b := dAtA[iNdEx]
  975. iNdEx++
  976. m.TargetId |= (int64(b) & 0x7F) << shift
  977. if b < 0x80 {
  978. break
  979. }
  980. }
  981. case 3:
  982. if wireType != 0 {
  983. return fmt.Errorf("proto: wrong wireType = %d for field IsLimitOne", wireType)
  984. }
  985. m.IsLimitOne = 0
  986. for shift := uint(0); ; shift += 7 {
  987. if shift >= 64 {
  988. return ErrIntOverflowGuard
  989. }
  990. if iNdEx >= l {
  991. return io.ErrUnexpectedEOF
  992. }
  993. b := dAtA[iNdEx]
  994. iNdEx++
  995. m.IsLimitOne |= (int64(b) & 0x7F) << shift
  996. if b < 0x80 {
  997. break
  998. }
  999. }
  1000. default:
  1001. iNdEx = preIndex
  1002. skippy, err := skipGuard(dAtA[iNdEx:])
  1003. if err != nil {
  1004. return err
  1005. }
  1006. if skippy < 0 {
  1007. return ErrInvalidLengthGuard
  1008. }
  1009. if (iNdEx + skippy) > l {
  1010. return io.ErrUnexpectedEOF
  1011. }
  1012. iNdEx += skippy
  1013. }
  1014. }
  1015. if iNdEx > l {
  1016. return io.ErrUnexpectedEOF
  1017. }
  1018. return nil
  1019. }
  1020. func (m *GuardGetByUidTargetIdResp) Unmarshal(dAtA []byte) error {
  1021. l := len(dAtA)
  1022. iNdEx := 0
  1023. for iNdEx < l {
  1024. preIndex := iNdEx
  1025. var wire uint64
  1026. for shift := uint(0); ; shift += 7 {
  1027. if shift >= 64 {
  1028. return ErrIntOverflowGuard
  1029. }
  1030. if iNdEx >= l {
  1031. return io.ErrUnexpectedEOF
  1032. }
  1033. b := dAtA[iNdEx]
  1034. iNdEx++
  1035. wire |= (uint64(b) & 0x7F) << shift
  1036. if b < 0x80 {
  1037. break
  1038. }
  1039. }
  1040. fieldNum := int32(wire >> 3)
  1041. wireType := int(wire & 0x7)
  1042. if wireType == 4 {
  1043. return fmt.Errorf("proto: GuardGetByUidTargetIdResp: wiretype end group for non-group")
  1044. }
  1045. if fieldNum <= 0 {
  1046. return fmt.Errorf("proto: GuardGetByUidTargetIdResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1047. }
  1048. switch fieldNum {
  1049. case 1:
  1050. if wireType != 0 {
  1051. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  1052. }
  1053. m.Code = 0
  1054. for shift := uint(0); ; shift += 7 {
  1055. if shift >= 64 {
  1056. return ErrIntOverflowGuard
  1057. }
  1058. if iNdEx >= l {
  1059. return io.ErrUnexpectedEOF
  1060. }
  1061. b := dAtA[iNdEx]
  1062. iNdEx++
  1063. m.Code |= (int64(b) & 0x7F) << shift
  1064. if b < 0x80 {
  1065. break
  1066. }
  1067. }
  1068. case 2:
  1069. if wireType != 2 {
  1070. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  1071. }
  1072. var stringLen uint64
  1073. for shift := uint(0); ; shift += 7 {
  1074. if shift >= 64 {
  1075. return ErrIntOverflowGuard
  1076. }
  1077. if iNdEx >= l {
  1078. return io.ErrUnexpectedEOF
  1079. }
  1080. b := dAtA[iNdEx]
  1081. iNdEx++
  1082. stringLen |= (uint64(b) & 0x7F) << shift
  1083. if b < 0x80 {
  1084. break
  1085. }
  1086. }
  1087. intStringLen := int(stringLen)
  1088. if intStringLen < 0 {
  1089. return ErrInvalidLengthGuard
  1090. }
  1091. postIndex := iNdEx + intStringLen
  1092. if postIndex > l {
  1093. return io.ErrUnexpectedEOF
  1094. }
  1095. m.Msg = string(dAtA[iNdEx:postIndex])
  1096. iNdEx = postIndex
  1097. case 3:
  1098. if wireType != 2 {
  1099. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  1100. }
  1101. var stringLen uint64
  1102. for shift := uint(0); ; shift += 7 {
  1103. if shift >= 64 {
  1104. return ErrIntOverflowGuard
  1105. }
  1106. if iNdEx >= l {
  1107. return io.ErrUnexpectedEOF
  1108. }
  1109. b := dAtA[iNdEx]
  1110. iNdEx++
  1111. stringLen |= (uint64(b) & 0x7F) << shift
  1112. if b < 0x80 {
  1113. break
  1114. }
  1115. }
  1116. intStringLen := int(stringLen)
  1117. if intStringLen < 0 {
  1118. return ErrInvalidLengthGuard
  1119. }
  1120. postIndex := iNdEx + intStringLen
  1121. if postIndex > l {
  1122. return io.ErrUnexpectedEOF
  1123. }
  1124. m.Message = string(dAtA[iNdEx:postIndex])
  1125. iNdEx = postIndex
  1126. case 4:
  1127. if wireType != 2 {
  1128. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  1129. }
  1130. var msglen int
  1131. for shift := uint(0); ; shift += 7 {
  1132. if shift >= 64 {
  1133. return ErrIntOverflowGuard
  1134. }
  1135. if iNdEx >= l {
  1136. return io.ErrUnexpectedEOF
  1137. }
  1138. b := dAtA[iNdEx]
  1139. iNdEx++
  1140. msglen |= (int(b) & 0x7F) << shift
  1141. if b < 0x80 {
  1142. break
  1143. }
  1144. }
  1145. if msglen < 0 {
  1146. return ErrInvalidLengthGuard
  1147. }
  1148. postIndex := iNdEx + msglen
  1149. if postIndex > l {
  1150. return io.ErrUnexpectedEOF
  1151. }
  1152. m.Data = append(m.Data, &GuardGetByUidTargetIdResp_Data{})
  1153. if err := m.Data[len(m.Data)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1154. return err
  1155. }
  1156. iNdEx = postIndex
  1157. default:
  1158. iNdEx = preIndex
  1159. skippy, err := skipGuard(dAtA[iNdEx:])
  1160. if err != nil {
  1161. return err
  1162. }
  1163. if skippy < 0 {
  1164. return ErrInvalidLengthGuard
  1165. }
  1166. if (iNdEx + skippy) > l {
  1167. return io.ErrUnexpectedEOF
  1168. }
  1169. iNdEx += skippy
  1170. }
  1171. }
  1172. if iNdEx > l {
  1173. return io.ErrUnexpectedEOF
  1174. }
  1175. return nil
  1176. }
  1177. func (m *GuardGetByUidTargetIdResp_Data) Unmarshal(dAtA []byte) error {
  1178. l := len(dAtA)
  1179. iNdEx := 0
  1180. for iNdEx < l {
  1181. preIndex := iNdEx
  1182. var wire uint64
  1183. for shift := uint(0); ; shift += 7 {
  1184. if shift >= 64 {
  1185. return ErrIntOverflowGuard
  1186. }
  1187. if iNdEx >= l {
  1188. return io.ErrUnexpectedEOF
  1189. }
  1190. b := dAtA[iNdEx]
  1191. iNdEx++
  1192. wire |= (uint64(b) & 0x7F) << shift
  1193. if b < 0x80 {
  1194. break
  1195. }
  1196. }
  1197. fieldNum := int32(wire >> 3)
  1198. wireType := int(wire & 0x7)
  1199. if wireType == 4 {
  1200. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  1201. }
  1202. if fieldNum <= 0 {
  1203. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  1204. }
  1205. switch fieldNum {
  1206. case 1:
  1207. if wireType != 0 {
  1208. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  1209. }
  1210. m.Id = 0
  1211. for shift := uint(0); ; shift += 7 {
  1212. if shift >= 64 {
  1213. return ErrIntOverflowGuard
  1214. }
  1215. if iNdEx >= l {
  1216. return io.ErrUnexpectedEOF
  1217. }
  1218. b := dAtA[iNdEx]
  1219. iNdEx++
  1220. m.Id |= (int64(b) & 0x7F) << shift
  1221. if b < 0x80 {
  1222. break
  1223. }
  1224. }
  1225. case 2:
  1226. if wireType != 0 {
  1227. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  1228. }
  1229. m.Uid = 0
  1230. for shift := uint(0); ; shift += 7 {
  1231. if shift >= 64 {
  1232. return ErrIntOverflowGuard
  1233. }
  1234. if iNdEx >= l {
  1235. return io.ErrUnexpectedEOF
  1236. }
  1237. b := dAtA[iNdEx]
  1238. iNdEx++
  1239. m.Uid |= (int64(b) & 0x7F) << shift
  1240. if b < 0x80 {
  1241. break
  1242. }
  1243. }
  1244. case 3:
  1245. if wireType != 0 {
  1246. return fmt.Errorf("proto: wrong wireType = %d for field TargetId", wireType)
  1247. }
  1248. m.TargetId = 0
  1249. for shift := uint(0); ; shift += 7 {
  1250. if shift >= 64 {
  1251. return ErrIntOverflowGuard
  1252. }
  1253. if iNdEx >= l {
  1254. return io.ErrUnexpectedEOF
  1255. }
  1256. b := dAtA[iNdEx]
  1257. iNdEx++
  1258. m.TargetId |= (int64(b) & 0x7F) << shift
  1259. if b < 0x80 {
  1260. break
  1261. }
  1262. }
  1263. case 4:
  1264. if wireType != 0 {
  1265. return fmt.Errorf("proto: wrong wireType = %d for field PrivilegeType", wireType)
  1266. }
  1267. m.PrivilegeType = 0
  1268. for shift := uint(0); ; shift += 7 {
  1269. if shift >= 64 {
  1270. return ErrIntOverflowGuard
  1271. }
  1272. if iNdEx >= l {
  1273. return io.ErrUnexpectedEOF
  1274. }
  1275. b := dAtA[iNdEx]
  1276. iNdEx++
  1277. m.PrivilegeType |= (int64(b) & 0x7F) << shift
  1278. if b < 0x80 {
  1279. break
  1280. }
  1281. }
  1282. case 5:
  1283. if wireType != 2 {
  1284. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  1285. }
  1286. var stringLen uint64
  1287. for shift := uint(0); ; shift += 7 {
  1288. if shift >= 64 {
  1289. return ErrIntOverflowGuard
  1290. }
  1291. if iNdEx >= l {
  1292. return io.ErrUnexpectedEOF
  1293. }
  1294. b := dAtA[iNdEx]
  1295. iNdEx++
  1296. stringLen |= (uint64(b) & 0x7F) << shift
  1297. if b < 0x80 {
  1298. break
  1299. }
  1300. }
  1301. intStringLen := int(stringLen)
  1302. if intStringLen < 0 {
  1303. return ErrInvalidLengthGuard
  1304. }
  1305. postIndex := iNdEx + intStringLen
  1306. if postIndex > l {
  1307. return io.ErrUnexpectedEOF
  1308. }
  1309. m.StartTime = string(dAtA[iNdEx:postIndex])
  1310. iNdEx = postIndex
  1311. case 6:
  1312. if wireType != 2 {
  1313. return fmt.Errorf("proto: wrong wireType = %d for field ExpiredTime", wireType)
  1314. }
  1315. var stringLen uint64
  1316. for shift := uint(0); ; shift += 7 {
  1317. if shift >= 64 {
  1318. return ErrIntOverflowGuard
  1319. }
  1320. if iNdEx >= l {
  1321. return io.ErrUnexpectedEOF
  1322. }
  1323. b := dAtA[iNdEx]
  1324. iNdEx++
  1325. stringLen |= (uint64(b) & 0x7F) << shift
  1326. if b < 0x80 {
  1327. break
  1328. }
  1329. }
  1330. intStringLen := int(stringLen)
  1331. if intStringLen < 0 {
  1332. return ErrInvalidLengthGuard
  1333. }
  1334. postIndex := iNdEx + intStringLen
  1335. if postIndex > l {
  1336. return io.ErrUnexpectedEOF
  1337. }
  1338. m.ExpiredTime = string(dAtA[iNdEx:postIndex])
  1339. iNdEx = postIndex
  1340. case 7:
  1341. if wireType != 2 {
  1342. return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
  1343. }
  1344. var stringLen uint64
  1345. for shift := uint(0); ; shift += 7 {
  1346. if shift >= 64 {
  1347. return ErrIntOverflowGuard
  1348. }
  1349. if iNdEx >= l {
  1350. return io.ErrUnexpectedEOF
  1351. }
  1352. b := dAtA[iNdEx]
  1353. iNdEx++
  1354. stringLen |= (uint64(b) & 0x7F) << shift
  1355. if b < 0x80 {
  1356. break
  1357. }
  1358. }
  1359. intStringLen := int(stringLen)
  1360. if intStringLen < 0 {
  1361. return ErrInvalidLengthGuard
  1362. }
  1363. postIndex := iNdEx + intStringLen
  1364. if postIndex > l {
  1365. return io.ErrUnexpectedEOF
  1366. }
  1367. m.Ctime = string(dAtA[iNdEx:postIndex])
  1368. iNdEx = postIndex
  1369. case 8:
  1370. if wireType != 2 {
  1371. return fmt.Errorf("proto: wrong wireType = %d for field Utime", wireType)
  1372. }
  1373. var stringLen uint64
  1374. for shift := uint(0); ; shift += 7 {
  1375. if shift >= 64 {
  1376. return ErrIntOverflowGuard
  1377. }
  1378. if iNdEx >= l {
  1379. return io.ErrUnexpectedEOF
  1380. }
  1381. b := dAtA[iNdEx]
  1382. iNdEx++
  1383. stringLen |= (uint64(b) & 0x7F) << shift
  1384. if b < 0x80 {
  1385. break
  1386. }
  1387. }
  1388. intStringLen := int(stringLen)
  1389. if intStringLen < 0 {
  1390. return ErrInvalidLengthGuard
  1391. }
  1392. postIndex := iNdEx + intStringLen
  1393. if postIndex > l {
  1394. return io.ErrUnexpectedEOF
  1395. }
  1396. m.Utime = string(dAtA[iNdEx:postIndex])
  1397. iNdEx = postIndex
  1398. default:
  1399. iNdEx = preIndex
  1400. skippy, err := skipGuard(dAtA[iNdEx:])
  1401. if err != nil {
  1402. return err
  1403. }
  1404. if skippy < 0 {
  1405. return ErrInvalidLengthGuard
  1406. }
  1407. if (iNdEx + skippy) > l {
  1408. return io.ErrUnexpectedEOF
  1409. }
  1410. iNdEx += skippy
  1411. }
  1412. }
  1413. if iNdEx > l {
  1414. return io.ErrUnexpectedEOF
  1415. }
  1416. return nil
  1417. }
  1418. func (m *GuardGetByUidReq) Unmarshal(dAtA []byte) error {
  1419. l := len(dAtA)
  1420. iNdEx := 0
  1421. for iNdEx < l {
  1422. preIndex := iNdEx
  1423. var wire uint64
  1424. for shift := uint(0); ; shift += 7 {
  1425. if shift >= 64 {
  1426. return ErrIntOverflowGuard
  1427. }
  1428. if iNdEx >= l {
  1429. return io.ErrUnexpectedEOF
  1430. }
  1431. b := dAtA[iNdEx]
  1432. iNdEx++
  1433. wire |= (uint64(b) & 0x7F) << shift
  1434. if b < 0x80 {
  1435. break
  1436. }
  1437. }
  1438. fieldNum := int32(wire >> 3)
  1439. wireType := int(wire & 0x7)
  1440. if wireType == 4 {
  1441. return fmt.Errorf("proto: GuardGetByUidReq: wiretype end group for non-group")
  1442. }
  1443. if fieldNum <= 0 {
  1444. return fmt.Errorf("proto: GuardGetByUidReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1445. }
  1446. switch fieldNum {
  1447. case 1:
  1448. if wireType != 0 {
  1449. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  1450. }
  1451. m.Uid = 0
  1452. for shift := uint(0); ; shift += 7 {
  1453. if shift >= 64 {
  1454. return ErrIntOverflowGuard
  1455. }
  1456. if iNdEx >= l {
  1457. return io.ErrUnexpectedEOF
  1458. }
  1459. b := dAtA[iNdEx]
  1460. iNdEx++
  1461. m.Uid |= (int64(b) & 0x7F) << shift
  1462. if b < 0x80 {
  1463. break
  1464. }
  1465. }
  1466. case 2:
  1467. if wireType != 0 {
  1468. return fmt.Errorf("proto: wrong wireType = %d for field IncExpire", wireType)
  1469. }
  1470. m.IncExpire = 0
  1471. for shift := uint(0); ; shift += 7 {
  1472. if shift >= 64 {
  1473. return ErrIntOverflowGuard
  1474. }
  1475. if iNdEx >= l {
  1476. return io.ErrUnexpectedEOF
  1477. }
  1478. b := dAtA[iNdEx]
  1479. iNdEx++
  1480. m.IncExpire |= (int64(b) & 0x7F) << shift
  1481. if b < 0x80 {
  1482. break
  1483. }
  1484. }
  1485. case 3:
  1486. if wireType != 0 {
  1487. return fmt.Errorf("proto: wrong wireType = %d for field IsLimitOne", wireType)
  1488. }
  1489. m.IsLimitOne = 0
  1490. for shift := uint(0); ; shift += 7 {
  1491. if shift >= 64 {
  1492. return ErrIntOverflowGuard
  1493. }
  1494. if iNdEx >= l {
  1495. return io.ErrUnexpectedEOF
  1496. }
  1497. b := dAtA[iNdEx]
  1498. iNdEx++
  1499. m.IsLimitOne |= (int64(b) & 0x7F) << shift
  1500. if b < 0x80 {
  1501. break
  1502. }
  1503. }
  1504. default:
  1505. iNdEx = preIndex
  1506. skippy, err := skipGuard(dAtA[iNdEx:])
  1507. if err != nil {
  1508. return err
  1509. }
  1510. if skippy < 0 {
  1511. return ErrInvalidLengthGuard
  1512. }
  1513. if (iNdEx + skippy) > l {
  1514. return io.ErrUnexpectedEOF
  1515. }
  1516. iNdEx += skippy
  1517. }
  1518. }
  1519. if iNdEx > l {
  1520. return io.ErrUnexpectedEOF
  1521. }
  1522. return nil
  1523. }
  1524. func (m *GuardGetByUidResp) Unmarshal(dAtA []byte) error {
  1525. l := len(dAtA)
  1526. iNdEx := 0
  1527. for iNdEx < l {
  1528. preIndex := iNdEx
  1529. var wire uint64
  1530. for shift := uint(0); ; shift += 7 {
  1531. if shift >= 64 {
  1532. return ErrIntOverflowGuard
  1533. }
  1534. if iNdEx >= l {
  1535. return io.ErrUnexpectedEOF
  1536. }
  1537. b := dAtA[iNdEx]
  1538. iNdEx++
  1539. wire |= (uint64(b) & 0x7F) << shift
  1540. if b < 0x80 {
  1541. break
  1542. }
  1543. }
  1544. fieldNum := int32(wire >> 3)
  1545. wireType := int(wire & 0x7)
  1546. if wireType == 4 {
  1547. return fmt.Errorf("proto: GuardGetByUidResp: wiretype end group for non-group")
  1548. }
  1549. if fieldNum <= 0 {
  1550. return fmt.Errorf("proto: GuardGetByUidResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1551. }
  1552. switch fieldNum {
  1553. case 1:
  1554. if wireType != 0 {
  1555. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  1556. }
  1557. m.Code = 0
  1558. for shift := uint(0); ; shift += 7 {
  1559. if shift >= 64 {
  1560. return ErrIntOverflowGuard
  1561. }
  1562. if iNdEx >= l {
  1563. return io.ErrUnexpectedEOF
  1564. }
  1565. b := dAtA[iNdEx]
  1566. iNdEx++
  1567. m.Code |= (int64(b) & 0x7F) << shift
  1568. if b < 0x80 {
  1569. break
  1570. }
  1571. }
  1572. case 2:
  1573. if wireType != 2 {
  1574. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  1575. }
  1576. var stringLen uint64
  1577. for shift := uint(0); ; shift += 7 {
  1578. if shift >= 64 {
  1579. return ErrIntOverflowGuard
  1580. }
  1581. if iNdEx >= l {
  1582. return io.ErrUnexpectedEOF
  1583. }
  1584. b := dAtA[iNdEx]
  1585. iNdEx++
  1586. stringLen |= (uint64(b) & 0x7F) << shift
  1587. if b < 0x80 {
  1588. break
  1589. }
  1590. }
  1591. intStringLen := int(stringLen)
  1592. if intStringLen < 0 {
  1593. return ErrInvalidLengthGuard
  1594. }
  1595. postIndex := iNdEx + intStringLen
  1596. if postIndex > l {
  1597. return io.ErrUnexpectedEOF
  1598. }
  1599. m.Msg = string(dAtA[iNdEx:postIndex])
  1600. iNdEx = postIndex
  1601. case 3:
  1602. if wireType != 2 {
  1603. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  1604. }
  1605. var stringLen uint64
  1606. for shift := uint(0); ; shift += 7 {
  1607. if shift >= 64 {
  1608. return ErrIntOverflowGuard
  1609. }
  1610. if iNdEx >= l {
  1611. return io.ErrUnexpectedEOF
  1612. }
  1613. b := dAtA[iNdEx]
  1614. iNdEx++
  1615. stringLen |= (uint64(b) & 0x7F) << shift
  1616. if b < 0x80 {
  1617. break
  1618. }
  1619. }
  1620. intStringLen := int(stringLen)
  1621. if intStringLen < 0 {
  1622. return ErrInvalidLengthGuard
  1623. }
  1624. postIndex := iNdEx + intStringLen
  1625. if postIndex > l {
  1626. return io.ErrUnexpectedEOF
  1627. }
  1628. m.Message = string(dAtA[iNdEx:postIndex])
  1629. iNdEx = postIndex
  1630. case 4:
  1631. if wireType != 2 {
  1632. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  1633. }
  1634. var msglen int
  1635. for shift := uint(0); ; shift += 7 {
  1636. if shift >= 64 {
  1637. return ErrIntOverflowGuard
  1638. }
  1639. if iNdEx >= l {
  1640. return io.ErrUnexpectedEOF
  1641. }
  1642. b := dAtA[iNdEx]
  1643. iNdEx++
  1644. msglen |= (int(b) & 0x7F) << shift
  1645. if b < 0x80 {
  1646. break
  1647. }
  1648. }
  1649. if msglen < 0 {
  1650. return ErrInvalidLengthGuard
  1651. }
  1652. postIndex := iNdEx + msglen
  1653. if postIndex > l {
  1654. return io.ErrUnexpectedEOF
  1655. }
  1656. m.Data = append(m.Data, &GuardGetByUidResp_Data{})
  1657. if err := m.Data[len(m.Data)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1658. return err
  1659. }
  1660. iNdEx = postIndex
  1661. default:
  1662. iNdEx = preIndex
  1663. skippy, err := skipGuard(dAtA[iNdEx:])
  1664. if err != nil {
  1665. return err
  1666. }
  1667. if skippy < 0 {
  1668. return ErrInvalidLengthGuard
  1669. }
  1670. if (iNdEx + skippy) > l {
  1671. return io.ErrUnexpectedEOF
  1672. }
  1673. iNdEx += skippy
  1674. }
  1675. }
  1676. if iNdEx > l {
  1677. return io.ErrUnexpectedEOF
  1678. }
  1679. return nil
  1680. }
  1681. func (m *GuardGetByUidResp_Data) Unmarshal(dAtA []byte) error {
  1682. l := len(dAtA)
  1683. iNdEx := 0
  1684. for iNdEx < l {
  1685. preIndex := iNdEx
  1686. var wire uint64
  1687. for shift := uint(0); ; shift += 7 {
  1688. if shift >= 64 {
  1689. return ErrIntOverflowGuard
  1690. }
  1691. if iNdEx >= l {
  1692. return io.ErrUnexpectedEOF
  1693. }
  1694. b := dAtA[iNdEx]
  1695. iNdEx++
  1696. wire |= (uint64(b) & 0x7F) << shift
  1697. if b < 0x80 {
  1698. break
  1699. }
  1700. }
  1701. fieldNum := int32(wire >> 3)
  1702. wireType := int(wire & 0x7)
  1703. if wireType == 4 {
  1704. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  1705. }
  1706. if fieldNum <= 0 {
  1707. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  1708. }
  1709. switch fieldNum {
  1710. case 1:
  1711. if wireType != 0 {
  1712. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  1713. }
  1714. m.Id = 0
  1715. for shift := uint(0); ; shift += 7 {
  1716. if shift >= 64 {
  1717. return ErrIntOverflowGuard
  1718. }
  1719. if iNdEx >= l {
  1720. return io.ErrUnexpectedEOF
  1721. }
  1722. b := dAtA[iNdEx]
  1723. iNdEx++
  1724. m.Id |= (int64(b) & 0x7F) << shift
  1725. if b < 0x80 {
  1726. break
  1727. }
  1728. }
  1729. case 2:
  1730. if wireType != 0 {
  1731. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  1732. }
  1733. m.Uid = 0
  1734. for shift := uint(0); ; shift += 7 {
  1735. if shift >= 64 {
  1736. return ErrIntOverflowGuard
  1737. }
  1738. if iNdEx >= l {
  1739. return io.ErrUnexpectedEOF
  1740. }
  1741. b := dAtA[iNdEx]
  1742. iNdEx++
  1743. m.Uid |= (int64(b) & 0x7F) << shift
  1744. if b < 0x80 {
  1745. break
  1746. }
  1747. }
  1748. case 3:
  1749. if wireType != 0 {
  1750. return fmt.Errorf("proto: wrong wireType = %d for field TargetId", wireType)
  1751. }
  1752. m.TargetId = 0
  1753. for shift := uint(0); ; shift += 7 {
  1754. if shift >= 64 {
  1755. return ErrIntOverflowGuard
  1756. }
  1757. if iNdEx >= l {
  1758. return io.ErrUnexpectedEOF
  1759. }
  1760. b := dAtA[iNdEx]
  1761. iNdEx++
  1762. m.TargetId |= (int64(b) & 0x7F) << shift
  1763. if b < 0x80 {
  1764. break
  1765. }
  1766. }
  1767. case 4:
  1768. if wireType != 0 {
  1769. return fmt.Errorf("proto: wrong wireType = %d for field PrivilegeType", wireType)
  1770. }
  1771. m.PrivilegeType = 0
  1772. for shift := uint(0); ; shift += 7 {
  1773. if shift >= 64 {
  1774. return ErrIntOverflowGuard
  1775. }
  1776. if iNdEx >= l {
  1777. return io.ErrUnexpectedEOF
  1778. }
  1779. b := dAtA[iNdEx]
  1780. iNdEx++
  1781. m.PrivilegeType |= (int64(b) & 0x7F) << shift
  1782. if b < 0x80 {
  1783. break
  1784. }
  1785. }
  1786. case 5:
  1787. if wireType != 2 {
  1788. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  1789. }
  1790. var stringLen uint64
  1791. for shift := uint(0); ; shift += 7 {
  1792. if shift >= 64 {
  1793. return ErrIntOverflowGuard
  1794. }
  1795. if iNdEx >= l {
  1796. return io.ErrUnexpectedEOF
  1797. }
  1798. b := dAtA[iNdEx]
  1799. iNdEx++
  1800. stringLen |= (uint64(b) & 0x7F) << shift
  1801. if b < 0x80 {
  1802. break
  1803. }
  1804. }
  1805. intStringLen := int(stringLen)
  1806. if intStringLen < 0 {
  1807. return ErrInvalidLengthGuard
  1808. }
  1809. postIndex := iNdEx + intStringLen
  1810. if postIndex > l {
  1811. return io.ErrUnexpectedEOF
  1812. }
  1813. m.StartTime = string(dAtA[iNdEx:postIndex])
  1814. iNdEx = postIndex
  1815. case 6:
  1816. if wireType != 2 {
  1817. return fmt.Errorf("proto: wrong wireType = %d for field ExpiredTime", wireType)
  1818. }
  1819. var stringLen uint64
  1820. for shift := uint(0); ; shift += 7 {
  1821. if shift >= 64 {
  1822. return ErrIntOverflowGuard
  1823. }
  1824. if iNdEx >= l {
  1825. return io.ErrUnexpectedEOF
  1826. }
  1827. b := dAtA[iNdEx]
  1828. iNdEx++
  1829. stringLen |= (uint64(b) & 0x7F) << shift
  1830. if b < 0x80 {
  1831. break
  1832. }
  1833. }
  1834. intStringLen := int(stringLen)
  1835. if intStringLen < 0 {
  1836. return ErrInvalidLengthGuard
  1837. }
  1838. postIndex := iNdEx + intStringLen
  1839. if postIndex > l {
  1840. return io.ErrUnexpectedEOF
  1841. }
  1842. m.ExpiredTime = string(dAtA[iNdEx:postIndex])
  1843. iNdEx = postIndex
  1844. case 7:
  1845. if wireType != 2 {
  1846. return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
  1847. }
  1848. var stringLen uint64
  1849. for shift := uint(0); ; shift += 7 {
  1850. if shift >= 64 {
  1851. return ErrIntOverflowGuard
  1852. }
  1853. if iNdEx >= l {
  1854. return io.ErrUnexpectedEOF
  1855. }
  1856. b := dAtA[iNdEx]
  1857. iNdEx++
  1858. stringLen |= (uint64(b) & 0x7F) << shift
  1859. if b < 0x80 {
  1860. break
  1861. }
  1862. }
  1863. intStringLen := int(stringLen)
  1864. if intStringLen < 0 {
  1865. return ErrInvalidLengthGuard
  1866. }
  1867. postIndex := iNdEx + intStringLen
  1868. if postIndex > l {
  1869. return io.ErrUnexpectedEOF
  1870. }
  1871. m.Ctime = string(dAtA[iNdEx:postIndex])
  1872. iNdEx = postIndex
  1873. case 8:
  1874. if wireType != 2 {
  1875. return fmt.Errorf("proto: wrong wireType = %d for field Utime", wireType)
  1876. }
  1877. var stringLen uint64
  1878. for shift := uint(0); ; shift += 7 {
  1879. if shift >= 64 {
  1880. return ErrIntOverflowGuard
  1881. }
  1882. if iNdEx >= l {
  1883. return io.ErrUnexpectedEOF
  1884. }
  1885. b := dAtA[iNdEx]
  1886. iNdEx++
  1887. stringLen |= (uint64(b) & 0x7F) << shift
  1888. if b < 0x80 {
  1889. break
  1890. }
  1891. }
  1892. intStringLen := int(stringLen)
  1893. if intStringLen < 0 {
  1894. return ErrInvalidLengthGuard
  1895. }
  1896. postIndex := iNdEx + intStringLen
  1897. if postIndex > l {
  1898. return io.ErrUnexpectedEOF
  1899. }
  1900. m.Utime = string(dAtA[iNdEx:postIndex])
  1901. iNdEx = postIndex
  1902. default:
  1903. iNdEx = preIndex
  1904. skippy, err := skipGuard(dAtA[iNdEx:])
  1905. if err != nil {
  1906. return err
  1907. }
  1908. if skippy < 0 {
  1909. return ErrInvalidLengthGuard
  1910. }
  1911. if (iNdEx + skippy) > l {
  1912. return io.ErrUnexpectedEOF
  1913. }
  1914. iNdEx += skippy
  1915. }
  1916. }
  1917. if iNdEx > l {
  1918. return io.ErrUnexpectedEOF
  1919. }
  1920. return nil
  1921. }
  1922. func skipGuard(dAtA []byte) (n int, err error) {
  1923. l := len(dAtA)
  1924. iNdEx := 0
  1925. for iNdEx < l {
  1926. var wire uint64
  1927. for shift := uint(0); ; shift += 7 {
  1928. if shift >= 64 {
  1929. return 0, ErrIntOverflowGuard
  1930. }
  1931. if iNdEx >= l {
  1932. return 0, io.ErrUnexpectedEOF
  1933. }
  1934. b := dAtA[iNdEx]
  1935. iNdEx++
  1936. wire |= (uint64(b) & 0x7F) << shift
  1937. if b < 0x80 {
  1938. break
  1939. }
  1940. }
  1941. wireType := int(wire & 0x7)
  1942. switch wireType {
  1943. case 0:
  1944. for shift := uint(0); ; shift += 7 {
  1945. if shift >= 64 {
  1946. return 0, ErrIntOverflowGuard
  1947. }
  1948. if iNdEx >= l {
  1949. return 0, io.ErrUnexpectedEOF
  1950. }
  1951. iNdEx++
  1952. if dAtA[iNdEx-1] < 0x80 {
  1953. break
  1954. }
  1955. }
  1956. return iNdEx, nil
  1957. case 1:
  1958. iNdEx += 8
  1959. return iNdEx, nil
  1960. case 2:
  1961. var length int
  1962. for shift := uint(0); ; shift += 7 {
  1963. if shift >= 64 {
  1964. return 0, ErrIntOverflowGuard
  1965. }
  1966. if iNdEx >= l {
  1967. return 0, io.ErrUnexpectedEOF
  1968. }
  1969. b := dAtA[iNdEx]
  1970. iNdEx++
  1971. length |= (int(b) & 0x7F) << shift
  1972. if b < 0x80 {
  1973. break
  1974. }
  1975. }
  1976. iNdEx += length
  1977. if length < 0 {
  1978. return 0, ErrInvalidLengthGuard
  1979. }
  1980. return iNdEx, nil
  1981. case 3:
  1982. for {
  1983. var innerWire uint64
  1984. var start int = iNdEx
  1985. for shift := uint(0); ; shift += 7 {
  1986. if shift >= 64 {
  1987. return 0, ErrIntOverflowGuard
  1988. }
  1989. if iNdEx >= l {
  1990. return 0, io.ErrUnexpectedEOF
  1991. }
  1992. b := dAtA[iNdEx]
  1993. iNdEx++
  1994. innerWire |= (uint64(b) & 0x7F) << shift
  1995. if b < 0x80 {
  1996. break
  1997. }
  1998. }
  1999. innerWireType := int(innerWire & 0x7)
  2000. if innerWireType == 4 {
  2001. break
  2002. }
  2003. next, err := skipGuard(dAtA[start:])
  2004. if err != nil {
  2005. return 0, err
  2006. }
  2007. iNdEx = start + next
  2008. }
  2009. return iNdEx, nil
  2010. case 4:
  2011. return iNdEx, nil
  2012. case 5:
  2013. iNdEx += 4
  2014. return iNdEx, nil
  2015. default:
  2016. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2017. }
  2018. }
  2019. panic("unreachable")
  2020. }
  2021. var (
  2022. ErrInvalidLengthGuard = fmt.Errorf("proto: negative length found during unmarshaling")
  2023. ErrIntOverflowGuard = fmt.Errorf("proto: integer overflow")
  2024. )
  2025. func init() { proto.RegisterFile("v1/Guard.proto", fileDescriptor_Guard_0e6e439e726db5d6) }
  2026. var fileDescriptor_Guard_0e6e439e726db5d6 = []byte{
  2027. // 565 bytes of a gzipped FileDescriptorProto
  2028. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xcd, 0x6a, 0xdb, 0x4c,
  2029. 0x14, 0x8d, 0x64, 0x25, 0xb1, 0x6e, 0x1c, 0xe3, 0x6f, 0x16, 0x1f, 0x8a, 0x09, 0x52, 0x30, 0xfd,
  2030. 0x09, 0xa5, 0x96, 0xb1, 0xb3, 0xea, 0xd6, 0xb4, 0x84, 0xfe, 0x40, 0x61, 0x70, 0x37, 0xdd, 0x08,
  2031. 0x59, 0x9a, 0xaa, 0x03, 0x96, 0x25, 0x4b, 0x23, 0x53, 0xef, 0xfa, 0x08, 0xde, 0xf4, 0x61, 0xfa,
  2032. 0x02, 0xa5, 0xcb, 0x2c, 0xbb, 0x12, 0xc5, 0xde, 0xe9, 0x29, 0x8a, 0xae, 0xec, 0xf8, 0x07, 0x62,
  2033. 0x87, 0x42, 0xbb, 0xea, 0xe6, 0xce, 0xbd, 0x77, 0xce, 0x1d, 0x1f, 0x9f, 0x39, 0x8c, 0xa0, 0x3a,
  2034. 0x6e, 0xb7, 0xae, 0x13, 0x3b, 0x72, 0xcd, 0x30, 0x0a, 0x44, 0x40, 0x2a, 0x03, 0x3e, 0x66, 0x56,
  2035. 0x12, 0xb3, 0xc8, 0x1c, 0xb7, 0xeb, 0x4d, 0x8f, 0x8b, 0x8f, 0x49, 0xdf, 0x74, 0x02, 0xbf, 0xe5,
  2036. 0x05, 0x5e, 0xd0, 0x42, 0x50, 0x3f, 0xf9, 0x80, 0x15, 0x16, 0x98, 0x15, 0xc3, 0x8d, 0x2f, 0x12,
  2037. 0x68, 0x78, 0xd8, 0x35, 0x13, 0xdd, 0xc9, 0x3b, 0xee, 0xf6, 0xec, 0xc8, 0x63, 0xe2, 0xa5, 0x4b,
  2038. 0xd9, 0x88, 0x9c, 0x41, 0x29, 0xe1, 0xae, 0x26, 0x5d, 0x48, 0x97, 0xa5, 0xee, 0x71, 0x96, 0x1a,
  2039. 0x79, 0x49, 0xf3, 0x40, 0x9e, 0x80, 0x2a, 0x10, 0x69, 0x71, 0x57, 0x93, 0x11, 0x70, 0x9a, 0xa5,
  2040. 0xc6, 0xaa, 0x49, 0xcb, 0x62, 0x71, 0x12, 0xe9, 0x40, 0x85, 0xc7, 0xd6, 0x80, 0xfb, 0x5c, 0x58,
  2041. 0xc1, 0x90, 0x69, 0x25, 0x84, 0xd7, 0xb2, 0xd4, 0xd8, 0xe8, 0x53, 0xe0, 0xf1, 0x9b, 0xbc, 0x78,
  2042. 0x3b, 0x64, 0x8d, 0xa9, 0x02, 0x67, 0x77, 0xf0, 0x8a, 0x43, 0x72, 0x0e, 0x8a, 0x13, 0xb8, 0x6c,
  2043. 0xc1, 0xac, 0x9c, 0xa5, 0x06, 0xd6, 0x14, 0x63, 0x4e, 0xdb, 0x8f, 0x3d, 0x64, 0xa5, 0x16, 0xb4,
  2044. 0xfd, 0xd8, 0xa3, 0x79, 0x20, 0x0f, 0xe1, 0xd8, 0x67, 0x71, 0x6c, 0x7b, 0x05, 0x0b, 0xb5, 0x7b,
  2045. 0x92, 0xa5, 0xc6, 0xb2, 0x45, 0x97, 0x09, 0x79, 0x05, 0x8a, 0x6b, 0x0b, 0x5b, 0x53, 0x2e, 0x4a,
  2046. 0x97, 0x27, 0x9d, 0xa7, 0xe6, 0xba, 0xc2, 0xe6, 0x9d, 0xb4, 0xcc, 0xe7, 0xb6, 0xb0, 0x0b, 0x36,
  2047. 0xf9, 0x34, 0xc5, 0x58, 0xff, 0x26, 0x83, 0x92, 0x6f, 0x90, 0xff, 0x41, 0xbe, 0x15, 0xf3, 0x28,
  2048. 0x4b, 0x0d, 0x99, 0xbb, 0x54, 0xe6, 0xee, 0x52, 0x65, 0x79, 0x9f, 0xca, 0xa5, 0xdd, 0x2a, 0x3f,
  2049. 0x83, 0x6a, 0x18, 0xf1, 0x31, 0x1f, 0x30, 0x8f, 0x59, 0x62, 0x12, 0x32, 0x4d, 0xc1, 0x01, 0x92,
  2050. 0xa5, 0xc6, 0xd6, 0x0e, 0x3d, 0xbd, 0xad, 0x7b, 0x93, 0x90, 0x91, 0x26, 0x40, 0x2c, 0xec, 0x48,
  2051. 0x58, 0x82, 0xfb, 0x4c, 0x3b, 0x44, 0x61, 0xaa, 0x59, 0x6a, 0xac, 0x75, 0xa9, 0x8a, 0x79, 0x8f,
  2052. 0xfb, 0x8c, 0x5c, 0x41, 0x85, 0x7d, 0x0a, 0x79, 0xc4, 0xdc, 0x62, 0xe0, 0x08, 0x07, 0xf0, 0x3e,
  2053. 0xd7, 0xfb, 0xf4, 0x64, 0x51, 0xe1, 0x90, 0x01, 0x87, 0x0e, 0xa2, 0x8f, 0x11, 0xad, 0x66, 0xa9,
  2054. 0x51, 0x34, 0x68, 0xb1, 0xe4, 0x80, 0x04, 0x01, 0xe5, 0x15, 0x20, 0x29, 0x00, 0xb8, 0x34, 0xa6,
  2055. 0x12, 0xd4, 0x36, 0xb4, 0xdf, 0x63, 0xd1, 0x26, 0x00, 0x1f, 0x3a, 0x56, 0x41, 0x62, 0x21, 0x2f,
  2056. 0xfe, 0xab, 0x55, 0x97, 0xaa, 0x7c, 0xe8, 0xbc, 0xc0, 0xf4, 0xb7, 0x5c, 0xfa, 0x59, 0x81, 0xff,
  2057. 0xb6, 0x28, 0xfd, 0x05, 0x77, 0x76, 0x37, 0xdc, 0xf9, 0x60, 0x87, 0x3b, 0xff, 0xb9, 0xf2, 0x4f,
  2058. 0xbb, 0xb2, 0xf3, 0x55, 0x82, 0x43, 0xd4, 0x9c, 0x38, 0x50, 0xf3, 0xb6, 0x5e, 0x05, 0xf2, 0xe8,
  2059. 0x5e, 0x4f, 0xc7, 0xa8, 0xfe, 0xf8, 0x9e, 0x4f, 0x0c, 0x79, 0x0d, 0xe5, 0xe5, 0x8f, 0x10, 0x7d,
  2060. 0xe7, 0xcd, 0x8f, 0xea, 0xc6, 0x1e, 0x67, 0x74, 0xcf, 0xbf, 0xcf, 0x74, 0xe9, 0x66, 0xa6, 0x4b,
  2061. 0x3f, 0x67, 0xba, 0x34, 0x9d, 0xeb, 0x07, 0x37, 0x73, 0xfd, 0xe0, 0xc7, 0x5c, 0x3f, 0x78, 0x2f,
  2062. 0x8f, 0xdb, 0xfd, 0x23, 0xfc, 0x42, 0x5c, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x76, 0x92, 0x12,
  2063. 0x6a, 0x70, 0x06, 0x00, 0x00,
  2064. }