Area.pb.go 40 KB

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