Conf.pb.go 37 KB

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