app_conf.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app_conf.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 GetConfReq struct {
  19. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty" form:"key" validate:"required"`
  20. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  21. XXX_unrecognized []byte `json:"-"`
  22. XXX_sizecache int32 `json:"-"`
  23. }
  24. func (m *GetConfReq) Reset() { *m = GetConfReq{} }
  25. func (m *GetConfReq) String() string { return proto.CompactTextString(m) }
  26. func (*GetConfReq) ProtoMessage() {}
  27. func (*GetConfReq) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_app_conf_3aa11f6a51d393db, []int{0}
  29. }
  30. func (m *GetConfReq) XXX_Unmarshal(b []byte) error {
  31. return m.Unmarshal(b)
  32. }
  33. func (m *GetConfReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. if deterministic {
  35. return xxx_messageInfo_GetConfReq.Marshal(b, m, deterministic)
  36. } else {
  37. b = b[:cap(b)]
  38. n, err := m.MarshalTo(b)
  39. if err != nil {
  40. return nil, err
  41. }
  42. return b[:n], nil
  43. }
  44. }
  45. func (dst *GetConfReq) XXX_Merge(src proto.Message) {
  46. xxx_messageInfo_GetConfReq.Merge(dst, src)
  47. }
  48. func (m *GetConfReq) XXX_Size() int {
  49. return m.Size()
  50. }
  51. func (m *GetConfReq) XXX_DiscardUnknown() {
  52. xxx_messageInfo_GetConfReq.DiscardUnknown(m)
  53. }
  54. var xxx_messageInfo_GetConfReq proto.InternalMessageInfo
  55. func (m *GetConfReq) GetKey() string {
  56. if m != nil {
  57. return m.Key
  58. }
  59. return ""
  60. }
  61. type GetConfResp struct {
  62. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty" form:"value"`
  63. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  64. XXX_unrecognized []byte `json:"-"`
  65. XXX_sizecache int32 `json:"-"`
  66. }
  67. func (m *GetConfResp) Reset() { *m = GetConfResp{} }
  68. func (m *GetConfResp) String() string { return proto.CompactTextString(m) }
  69. func (*GetConfResp) ProtoMessage() {}
  70. func (*GetConfResp) Descriptor() ([]byte, []int) {
  71. return fileDescriptor_app_conf_3aa11f6a51d393db, []int{1}
  72. }
  73. func (m *GetConfResp) XXX_Unmarshal(b []byte) error {
  74. return m.Unmarshal(b)
  75. }
  76. func (m *GetConfResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  77. if deterministic {
  78. return xxx_messageInfo_GetConfResp.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 *GetConfResp) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_GetConfResp.Merge(dst, src)
  90. }
  91. func (m *GetConfResp) XXX_Size() int {
  92. return m.Size()
  93. }
  94. func (m *GetConfResp) XXX_DiscardUnknown() {
  95. xxx_messageInfo_GetConfResp.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_GetConfResp proto.InternalMessageInfo
  98. func (m *GetConfResp) GetValue() string {
  99. if m != nil {
  100. return m.Value
  101. }
  102. return ""
  103. }
  104. func init() {
  105. proto.RegisterType((*GetConfReq)(nil), "live.appinterface.v1.GetConfReq")
  106. proto.RegisterType((*GetConfResp)(nil), "live.appinterface.v1.GetConfResp")
  107. }
  108. func (m *GetConfReq) Marshal() (dAtA []byte, err error) {
  109. size := m.Size()
  110. dAtA = make([]byte, size)
  111. n, err := m.MarshalTo(dAtA)
  112. if err != nil {
  113. return nil, err
  114. }
  115. return dAtA[:n], nil
  116. }
  117. func (m *GetConfReq) MarshalTo(dAtA []byte) (int, error) {
  118. var i int
  119. _ = i
  120. var l int
  121. _ = l
  122. if len(m.Key) > 0 {
  123. dAtA[i] = 0xa
  124. i++
  125. i = encodeVarintAppConf(dAtA, i, uint64(len(m.Key)))
  126. i += copy(dAtA[i:], m.Key)
  127. }
  128. if m.XXX_unrecognized != nil {
  129. i += copy(dAtA[i:], m.XXX_unrecognized)
  130. }
  131. return i, nil
  132. }
  133. func (m *GetConfResp) Marshal() (dAtA []byte, err error) {
  134. size := m.Size()
  135. dAtA = make([]byte, size)
  136. n, err := m.MarshalTo(dAtA)
  137. if err != nil {
  138. return nil, err
  139. }
  140. return dAtA[:n], nil
  141. }
  142. func (m *GetConfResp) MarshalTo(dAtA []byte) (int, error) {
  143. var i int
  144. _ = i
  145. var l int
  146. _ = l
  147. if len(m.Value) > 0 {
  148. dAtA[i] = 0xa
  149. i++
  150. i = encodeVarintAppConf(dAtA, i, uint64(len(m.Value)))
  151. i += copy(dAtA[i:], m.Value)
  152. }
  153. if m.XXX_unrecognized != nil {
  154. i += copy(dAtA[i:], m.XXX_unrecognized)
  155. }
  156. return i, nil
  157. }
  158. func encodeVarintAppConf(dAtA []byte, offset int, v uint64) int {
  159. for v >= 1<<7 {
  160. dAtA[offset] = uint8(v&0x7f | 0x80)
  161. v >>= 7
  162. offset++
  163. }
  164. dAtA[offset] = uint8(v)
  165. return offset + 1
  166. }
  167. func (m *GetConfReq) Size() (n int) {
  168. if m == nil {
  169. return 0
  170. }
  171. var l int
  172. _ = l
  173. l = len(m.Key)
  174. if l > 0 {
  175. n += 1 + l + sovAppConf(uint64(l))
  176. }
  177. if m.XXX_unrecognized != nil {
  178. n += len(m.XXX_unrecognized)
  179. }
  180. return n
  181. }
  182. func (m *GetConfResp) Size() (n int) {
  183. if m == nil {
  184. return 0
  185. }
  186. var l int
  187. _ = l
  188. l = len(m.Value)
  189. if l > 0 {
  190. n += 1 + l + sovAppConf(uint64(l))
  191. }
  192. if m.XXX_unrecognized != nil {
  193. n += len(m.XXX_unrecognized)
  194. }
  195. return n
  196. }
  197. func sovAppConf(x uint64) (n int) {
  198. for {
  199. n++
  200. x >>= 7
  201. if x == 0 {
  202. break
  203. }
  204. }
  205. return n
  206. }
  207. func sozAppConf(x uint64) (n int) {
  208. return sovAppConf(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  209. }
  210. func (m *GetConfReq) Unmarshal(dAtA []byte) error {
  211. l := len(dAtA)
  212. iNdEx := 0
  213. for iNdEx < l {
  214. preIndex := iNdEx
  215. var wire uint64
  216. for shift := uint(0); ; shift += 7 {
  217. if shift >= 64 {
  218. return ErrIntOverflowAppConf
  219. }
  220. if iNdEx >= l {
  221. return io.ErrUnexpectedEOF
  222. }
  223. b := dAtA[iNdEx]
  224. iNdEx++
  225. wire |= (uint64(b) & 0x7F) << shift
  226. if b < 0x80 {
  227. break
  228. }
  229. }
  230. fieldNum := int32(wire >> 3)
  231. wireType := int(wire & 0x7)
  232. if wireType == 4 {
  233. return fmt.Errorf("proto: GetConfReq: wiretype end group for non-group")
  234. }
  235. if fieldNum <= 0 {
  236. return fmt.Errorf("proto: GetConfReq: illegal tag %d (wire type %d)", fieldNum, wire)
  237. }
  238. switch fieldNum {
  239. case 1:
  240. if wireType != 2 {
  241. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  242. }
  243. var stringLen uint64
  244. for shift := uint(0); ; shift += 7 {
  245. if shift >= 64 {
  246. return ErrIntOverflowAppConf
  247. }
  248. if iNdEx >= l {
  249. return io.ErrUnexpectedEOF
  250. }
  251. b := dAtA[iNdEx]
  252. iNdEx++
  253. stringLen |= (uint64(b) & 0x7F) << shift
  254. if b < 0x80 {
  255. break
  256. }
  257. }
  258. intStringLen := int(stringLen)
  259. if intStringLen < 0 {
  260. return ErrInvalidLengthAppConf
  261. }
  262. postIndex := iNdEx + intStringLen
  263. if postIndex > l {
  264. return io.ErrUnexpectedEOF
  265. }
  266. m.Key = string(dAtA[iNdEx:postIndex])
  267. iNdEx = postIndex
  268. default:
  269. iNdEx = preIndex
  270. skippy, err := skipAppConf(dAtA[iNdEx:])
  271. if err != nil {
  272. return err
  273. }
  274. if skippy < 0 {
  275. return ErrInvalidLengthAppConf
  276. }
  277. if (iNdEx + skippy) > l {
  278. return io.ErrUnexpectedEOF
  279. }
  280. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  281. iNdEx += skippy
  282. }
  283. }
  284. if iNdEx > l {
  285. return io.ErrUnexpectedEOF
  286. }
  287. return nil
  288. }
  289. func (m *GetConfResp) Unmarshal(dAtA []byte) error {
  290. l := len(dAtA)
  291. iNdEx := 0
  292. for iNdEx < l {
  293. preIndex := iNdEx
  294. var wire uint64
  295. for shift := uint(0); ; shift += 7 {
  296. if shift >= 64 {
  297. return ErrIntOverflowAppConf
  298. }
  299. if iNdEx >= l {
  300. return io.ErrUnexpectedEOF
  301. }
  302. b := dAtA[iNdEx]
  303. iNdEx++
  304. wire |= (uint64(b) & 0x7F) << shift
  305. if b < 0x80 {
  306. break
  307. }
  308. }
  309. fieldNum := int32(wire >> 3)
  310. wireType := int(wire & 0x7)
  311. if wireType == 4 {
  312. return fmt.Errorf("proto: GetConfResp: wiretype end group for non-group")
  313. }
  314. if fieldNum <= 0 {
  315. return fmt.Errorf("proto: GetConfResp: illegal tag %d (wire type %d)", fieldNum, wire)
  316. }
  317. switch fieldNum {
  318. case 1:
  319. if wireType != 2 {
  320. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  321. }
  322. var stringLen uint64
  323. for shift := uint(0); ; shift += 7 {
  324. if shift >= 64 {
  325. return ErrIntOverflowAppConf
  326. }
  327. if iNdEx >= l {
  328. return io.ErrUnexpectedEOF
  329. }
  330. b := dAtA[iNdEx]
  331. iNdEx++
  332. stringLen |= (uint64(b) & 0x7F) << shift
  333. if b < 0x80 {
  334. break
  335. }
  336. }
  337. intStringLen := int(stringLen)
  338. if intStringLen < 0 {
  339. return ErrInvalidLengthAppConf
  340. }
  341. postIndex := iNdEx + intStringLen
  342. if postIndex > l {
  343. return io.ErrUnexpectedEOF
  344. }
  345. m.Value = string(dAtA[iNdEx:postIndex])
  346. iNdEx = postIndex
  347. default:
  348. iNdEx = preIndex
  349. skippy, err := skipAppConf(dAtA[iNdEx:])
  350. if err != nil {
  351. return err
  352. }
  353. if skippy < 0 {
  354. return ErrInvalidLengthAppConf
  355. }
  356. if (iNdEx + skippy) > l {
  357. return io.ErrUnexpectedEOF
  358. }
  359. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  360. iNdEx += skippy
  361. }
  362. }
  363. if iNdEx > l {
  364. return io.ErrUnexpectedEOF
  365. }
  366. return nil
  367. }
  368. func skipAppConf(dAtA []byte) (n int, err error) {
  369. l := len(dAtA)
  370. iNdEx := 0
  371. for iNdEx < l {
  372. var wire uint64
  373. for shift := uint(0); ; shift += 7 {
  374. if shift >= 64 {
  375. return 0, ErrIntOverflowAppConf
  376. }
  377. if iNdEx >= l {
  378. return 0, io.ErrUnexpectedEOF
  379. }
  380. b := dAtA[iNdEx]
  381. iNdEx++
  382. wire |= (uint64(b) & 0x7F) << shift
  383. if b < 0x80 {
  384. break
  385. }
  386. }
  387. wireType := int(wire & 0x7)
  388. switch wireType {
  389. case 0:
  390. for shift := uint(0); ; shift += 7 {
  391. if shift >= 64 {
  392. return 0, ErrIntOverflowAppConf
  393. }
  394. if iNdEx >= l {
  395. return 0, io.ErrUnexpectedEOF
  396. }
  397. iNdEx++
  398. if dAtA[iNdEx-1] < 0x80 {
  399. break
  400. }
  401. }
  402. return iNdEx, nil
  403. case 1:
  404. iNdEx += 8
  405. return iNdEx, nil
  406. case 2:
  407. var length int
  408. for shift := uint(0); ; shift += 7 {
  409. if shift >= 64 {
  410. return 0, ErrIntOverflowAppConf
  411. }
  412. if iNdEx >= l {
  413. return 0, io.ErrUnexpectedEOF
  414. }
  415. b := dAtA[iNdEx]
  416. iNdEx++
  417. length |= (int(b) & 0x7F) << shift
  418. if b < 0x80 {
  419. break
  420. }
  421. }
  422. iNdEx += length
  423. if length < 0 {
  424. return 0, ErrInvalidLengthAppConf
  425. }
  426. return iNdEx, nil
  427. case 3:
  428. for {
  429. var innerWire uint64
  430. var start int = iNdEx
  431. for shift := uint(0); ; shift += 7 {
  432. if shift >= 64 {
  433. return 0, ErrIntOverflowAppConf
  434. }
  435. if iNdEx >= l {
  436. return 0, io.ErrUnexpectedEOF
  437. }
  438. b := dAtA[iNdEx]
  439. iNdEx++
  440. innerWire |= (uint64(b) & 0x7F) << shift
  441. if b < 0x80 {
  442. break
  443. }
  444. }
  445. innerWireType := int(innerWire & 0x7)
  446. if innerWireType == 4 {
  447. break
  448. }
  449. next, err := skipAppConf(dAtA[start:])
  450. if err != nil {
  451. return 0, err
  452. }
  453. iNdEx = start + next
  454. }
  455. return iNdEx, nil
  456. case 4:
  457. return iNdEx, nil
  458. case 5:
  459. iNdEx += 4
  460. return iNdEx, nil
  461. default:
  462. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  463. }
  464. }
  465. panic("unreachable")
  466. }
  467. var (
  468. ErrInvalidLengthAppConf = fmt.Errorf("proto: negative length found during unmarshaling")
  469. ErrIntOverflowAppConf = fmt.Errorf("proto: integer overflow")
  470. )
  471. func init() { proto.RegisterFile("app_conf.proto", fileDescriptor_app_conf_3aa11f6a51d393db) }
  472. var fileDescriptor_app_conf_3aa11f6a51d393db = []byte{
  473. // 245 bytes of a gzipped FileDescriptorProto
  474. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4b, 0x2c, 0x28, 0x88,
  475. 0x4f, 0xce, 0xcf, 0x4b, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xc9, 0xc9, 0x2c, 0x4b,
  476. 0xd5, 0x4b, 0x2c, 0x28, 0xc8, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x2b, 0x33,
  477. 0x94, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f,
  478. 0xcf, 0xd7, 0x07, 0x2b, 0x4e, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0x62, 0x88, 0x92,
  479. 0x13, 0x17, 0x97, 0x7b, 0x6a, 0x89, 0x73, 0x7e, 0x5e, 0x5a, 0x50, 0x6a, 0xa1, 0x90, 0x09, 0x17,
  480. 0x73, 0x76, 0x6a, 0xa5, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xa7, 0x93, 0xd2, 0xa7, 0x7b, 0xf2, 0x72,
  481. 0x69, 0xf9, 0x45, 0xb9, 0x56, 0x4a, 0xd9, 0xa9, 0x95, 0x4a, 0x0a, 0x65, 0x89, 0x39, 0x99, 0x29,
  482. 0x89, 0x25, 0xa9, 0x56, 0x4a, 0x45, 0xa9, 0x85, 0xa5, 0x99, 0x45, 0xa9, 0x29, 0x4a, 0x41, 0x20,
  483. 0xe5, 0x4a, 0xa6, 0x5c, 0xdc, 0x70, 0x33, 0x8a, 0x0b, 0x84, 0xd4, 0xb8, 0x58, 0xcb, 0x12, 0x73,
  484. 0x4a, 0x53, 0xa1, 0xc6, 0x08, 0x7c, 0xba, 0x27, 0xcf, 0x03, 0x31, 0x06, 0x2c, 0xac, 0x14, 0x04,
  485. 0x91, 0x36, 0x8a, 0xe0, 0x62, 0x03, 0xf9, 0x26, 0x33, 0x5d, 0xc8, 0x8f, 0x8b, 0x3d, 0x1d, 0x62,
  486. 0x80, 0x90, 0x82, 0x1e, 0x36, 0x5f, 0xe9, 0x21, 0xdc, 0x28, 0xa5, 0x48, 0x40, 0x45, 0x71, 0x81,
  487. 0x93, 0xc0, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x18, 0xc5,
  488. 0x54, 0x66, 0x98, 0xc4, 0x06, 0xf6, 0xad, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x86, 0xd3, 0x42,
  489. 0x4e, 0x44, 0x01, 0x00, 0x00,
  490. }