api.pb.go 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/open/api/grpc/v1/api.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import (
  8. context "golang.org/x/net/context"
  9. grpc "google.golang.org/grpc"
  10. )
  11. import io "io"
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. // This is a compile-time assertion to ensure that this generated file
  17. // is compatible with the proto package it is being compiled against.
  18. // A compilation error at this line likely means your copy of the
  19. // proto package needs to be updated.
  20. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  21. type AppIDReply struct {
  22. AppId int64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
  23. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  24. XXX_unrecognized []byte `json:"-"`
  25. XXX_sizecache int32 `json:"-"`
  26. }
  27. func (m *AppIDReply) Reset() { *m = AppIDReply{} }
  28. func (m *AppIDReply) String() string { return proto.CompactTextString(m) }
  29. func (*AppIDReply) ProtoMessage() {}
  30. func (*AppIDReply) Descriptor() ([]byte, []int) {
  31. return fileDescriptor_api_f5c7f1ae9578a514, []int{0}
  32. }
  33. func (m *AppIDReply) XXX_Unmarshal(b []byte) error {
  34. return m.Unmarshal(b)
  35. }
  36. func (m *AppIDReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  37. if deterministic {
  38. return xxx_messageInfo_AppIDReply.Marshal(b, m, deterministic)
  39. } else {
  40. b = b[:cap(b)]
  41. n, err := m.MarshalTo(b)
  42. if err != nil {
  43. return nil, err
  44. }
  45. return b[:n], nil
  46. }
  47. }
  48. func (dst *AppIDReply) XXX_Merge(src proto.Message) {
  49. xxx_messageInfo_AppIDReply.Merge(dst, src)
  50. }
  51. func (m *AppIDReply) XXX_Size() int {
  52. return m.Size()
  53. }
  54. func (m *AppIDReply) XXX_DiscardUnknown() {
  55. xxx_messageInfo_AppIDReply.DiscardUnknown(m)
  56. }
  57. var xxx_messageInfo_AppIDReply proto.InternalMessageInfo
  58. func (m *AppIDReply) GetAppId() int64 {
  59. if m != nil {
  60. return m.AppId
  61. }
  62. return 0
  63. }
  64. type AppIDReq struct {
  65. AppKey string `protobuf:"bytes,2,opt,name=app_key,json=appKey,proto3" json:"app_key,omitempty"`
  66. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  67. XXX_unrecognized []byte `json:"-"`
  68. XXX_sizecache int32 `json:"-"`
  69. }
  70. func (m *AppIDReq) Reset() { *m = AppIDReq{} }
  71. func (m *AppIDReq) String() string { return proto.CompactTextString(m) }
  72. func (*AppIDReq) ProtoMessage() {}
  73. func (*AppIDReq) Descriptor() ([]byte, []int) {
  74. return fileDescriptor_api_f5c7f1ae9578a514, []int{1}
  75. }
  76. func (m *AppIDReq) XXX_Unmarshal(b []byte) error {
  77. return m.Unmarshal(b)
  78. }
  79. func (m *AppIDReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  80. if deterministic {
  81. return xxx_messageInfo_AppIDReq.Marshal(b, m, deterministic)
  82. } else {
  83. b = b[:cap(b)]
  84. n, err := m.MarshalTo(b)
  85. if err != nil {
  86. return nil, err
  87. }
  88. return b[:n], nil
  89. }
  90. }
  91. func (dst *AppIDReq) XXX_Merge(src proto.Message) {
  92. xxx_messageInfo_AppIDReq.Merge(dst, src)
  93. }
  94. func (m *AppIDReq) XXX_Size() int {
  95. return m.Size()
  96. }
  97. func (m *AppIDReq) XXX_DiscardUnknown() {
  98. xxx_messageInfo_AppIDReq.DiscardUnknown(m)
  99. }
  100. var xxx_messageInfo_AppIDReq proto.InternalMessageInfo
  101. func (m *AppIDReq) GetAppKey() string {
  102. if m != nil {
  103. return m.AppKey
  104. }
  105. return ""
  106. }
  107. type CloseReply struct {
  108. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  109. XXX_unrecognized []byte `json:"-"`
  110. XXX_sizecache int32 `json:"-"`
  111. }
  112. func (m *CloseReply) Reset() { *m = CloseReply{} }
  113. func (m *CloseReply) String() string { return proto.CompactTextString(m) }
  114. func (*CloseReply) ProtoMessage() {}
  115. func (*CloseReply) Descriptor() ([]byte, []int) {
  116. return fileDescriptor_api_f5c7f1ae9578a514, []int{2}
  117. }
  118. func (m *CloseReply) XXX_Unmarshal(b []byte) error {
  119. return m.Unmarshal(b)
  120. }
  121. func (m *CloseReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  122. if deterministic {
  123. return xxx_messageInfo_CloseReply.Marshal(b, m, deterministic)
  124. } else {
  125. b = b[:cap(b)]
  126. n, err := m.MarshalTo(b)
  127. if err != nil {
  128. return nil, err
  129. }
  130. return b[:n], nil
  131. }
  132. }
  133. func (dst *CloseReply) XXX_Merge(src proto.Message) {
  134. xxx_messageInfo_CloseReply.Merge(dst, src)
  135. }
  136. func (m *CloseReply) XXX_Size() int {
  137. return m.Size()
  138. }
  139. func (m *CloseReply) XXX_DiscardUnknown() {
  140. xxx_messageInfo_CloseReply.DiscardUnknown(m)
  141. }
  142. var xxx_messageInfo_CloseReply proto.InternalMessageInfo
  143. type CloseReq struct {
  144. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  145. XXX_unrecognized []byte `json:"-"`
  146. XXX_sizecache int32 `json:"-"`
  147. }
  148. func (m *CloseReq) Reset() { *m = CloseReq{} }
  149. func (m *CloseReq) String() string { return proto.CompactTextString(m) }
  150. func (*CloseReq) ProtoMessage() {}
  151. func (*CloseReq) Descriptor() ([]byte, []int) {
  152. return fileDescriptor_api_f5c7f1ae9578a514, []int{3}
  153. }
  154. func (m *CloseReq) XXX_Unmarshal(b []byte) error {
  155. return m.Unmarshal(b)
  156. }
  157. func (m *CloseReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  158. if deterministic {
  159. return xxx_messageInfo_CloseReq.Marshal(b, m, deterministic)
  160. } else {
  161. b = b[:cap(b)]
  162. n, err := m.MarshalTo(b)
  163. if err != nil {
  164. return nil, err
  165. }
  166. return b[:n], nil
  167. }
  168. }
  169. func (dst *CloseReq) XXX_Merge(src proto.Message) {
  170. xxx_messageInfo_CloseReq.Merge(dst, src)
  171. }
  172. func (m *CloseReq) XXX_Size() int {
  173. return m.Size()
  174. }
  175. func (m *CloseReq) XXX_DiscardUnknown() {
  176. xxx_messageInfo_CloseReq.DiscardUnknown(m)
  177. }
  178. var xxx_messageInfo_CloseReq proto.InternalMessageInfo
  179. type PingReply struct {
  180. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  181. XXX_unrecognized []byte `json:"-"`
  182. XXX_sizecache int32 `json:"-"`
  183. }
  184. func (m *PingReply) Reset() { *m = PingReply{} }
  185. func (m *PingReply) String() string { return proto.CompactTextString(m) }
  186. func (*PingReply) ProtoMessage() {}
  187. func (*PingReply) Descriptor() ([]byte, []int) {
  188. return fileDescriptor_api_f5c7f1ae9578a514, []int{4}
  189. }
  190. func (m *PingReply) XXX_Unmarshal(b []byte) error {
  191. return m.Unmarshal(b)
  192. }
  193. func (m *PingReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  194. if deterministic {
  195. return xxx_messageInfo_PingReply.Marshal(b, m, deterministic)
  196. } else {
  197. b = b[:cap(b)]
  198. n, err := m.MarshalTo(b)
  199. if err != nil {
  200. return nil, err
  201. }
  202. return b[:n], nil
  203. }
  204. }
  205. func (dst *PingReply) XXX_Merge(src proto.Message) {
  206. xxx_messageInfo_PingReply.Merge(dst, src)
  207. }
  208. func (m *PingReply) XXX_Size() int {
  209. return m.Size()
  210. }
  211. func (m *PingReply) XXX_DiscardUnknown() {
  212. xxx_messageInfo_PingReply.DiscardUnknown(m)
  213. }
  214. var xxx_messageInfo_PingReply proto.InternalMessageInfo
  215. type PingReq struct {
  216. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  217. XXX_unrecognized []byte `json:"-"`
  218. XXX_sizecache int32 `json:"-"`
  219. }
  220. func (m *PingReq) Reset() { *m = PingReq{} }
  221. func (m *PingReq) String() string { return proto.CompactTextString(m) }
  222. func (*PingReq) ProtoMessage() {}
  223. func (*PingReq) Descriptor() ([]byte, []int) {
  224. return fileDescriptor_api_f5c7f1ae9578a514, []int{5}
  225. }
  226. func (m *PingReq) XXX_Unmarshal(b []byte) error {
  227. return m.Unmarshal(b)
  228. }
  229. func (m *PingReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  230. if deterministic {
  231. return xxx_messageInfo_PingReq.Marshal(b, m, deterministic)
  232. } else {
  233. b = b[:cap(b)]
  234. n, err := m.MarshalTo(b)
  235. if err != nil {
  236. return nil, err
  237. }
  238. return b[:n], nil
  239. }
  240. }
  241. func (dst *PingReq) XXX_Merge(src proto.Message) {
  242. xxx_messageInfo_PingReq.Merge(dst, src)
  243. }
  244. func (m *PingReq) XXX_Size() int {
  245. return m.Size()
  246. }
  247. func (m *PingReq) XXX_DiscardUnknown() {
  248. xxx_messageInfo_PingReq.DiscardUnknown(m)
  249. }
  250. var xxx_messageInfo_PingReq proto.InternalMessageInfo
  251. type SecretReply struct {
  252. Res string `protobuf:"bytes,1,opt,name=res,proto3" json:"res,omitempty"`
  253. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  254. XXX_unrecognized []byte `json:"-"`
  255. XXX_sizecache int32 `json:"-"`
  256. }
  257. func (m *SecretReply) Reset() { *m = SecretReply{} }
  258. func (m *SecretReply) String() string { return proto.CompactTextString(m) }
  259. func (*SecretReply) ProtoMessage() {}
  260. func (*SecretReply) Descriptor() ([]byte, []int) {
  261. return fileDescriptor_api_f5c7f1ae9578a514, []int{6}
  262. }
  263. func (m *SecretReply) XXX_Unmarshal(b []byte) error {
  264. return m.Unmarshal(b)
  265. }
  266. func (m *SecretReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  267. if deterministic {
  268. return xxx_messageInfo_SecretReply.Marshal(b, m, deterministic)
  269. } else {
  270. b = b[:cap(b)]
  271. n, err := m.MarshalTo(b)
  272. if err != nil {
  273. return nil, err
  274. }
  275. return b[:n], nil
  276. }
  277. }
  278. func (dst *SecretReply) XXX_Merge(src proto.Message) {
  279. xxx_messageInfo_SecretReply.Merge(dst, src)
  280. }
  281. func (m *SecretReply) XXX_Size() int {
  282. return m.Size()
  283. }
  284. func (m *SecretReply) XXX_DiscardUnknown() {
  285. xxx_messageInfo_SecretReply.DiscardUnknown(m)
  286. }
  287. var xxx_messageInfo_SecretReply proto.InternalMessageInfo
  288. func (m *SecretReply) GetRes() string {
  289. if m != nil {
  290. return m.Res
  291. }
  292. return ""
  293. }
  294. type SecretReq struct {
  295. SappKey string `protobuf:"bytes,2,opt,name=sapp_key,json=sappKey,proto3" json:"sapp_key,omitempty"`
  296. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  297. XXX_unrecognized []byte `json:"-"`
  298. XXX_sizecache int32 `json:"-"`
  299. }
  300. func (m *SecretReq) Reset() { *m = SecretReq{} }
  301. func (m *SecretReq) String() string { return proto.CompactTextString(m) }
  302. func (*SecretReq) ProtoMessage() {}
  303. func (*SecretReq) Descriptor() ([]byte, []int) {
  304. return fileDescriptor_api_f5c7f1ae9578a514, []int{7}
  305. }
  306. func (m *SecretReq) XXX_Unmarshal(b []byte) error {
  307. return m.Unmarshal(b)
  308. }
  309. func (m *SecretReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  310. if deterministic {
  311. return xxx_messageInfo_SecretReq.Marshal(b, m, deterministic)
  312. } else {
  313. b = b[:cap(b)]
  314. n, err := m.MarshalTo(b)
  315. if err != nil {
  316. return nil, err
  317. }
  318. return b[:n], nil
  319. }
  320. }
  321. func (dst *SecretReq) XXX_Merge(src proto.Message) {
  322. xxx_messageInfo_SecretReq.Merge(dst, src)
  323. }
  324. func (m *SecretReq) XXX_Size() int {
  325. return m.Size()
  326. }
  327. func (m *SecretReq) XXX_DiscardUnknown() {
  328. xxx_messageInfo_SecretReq.DiscardUnknown(m)
  329. }
  330. var xxx_messageInfo_SecretReq proto.InternalMessageInfo
  331. func (m *SecretReq) GetSappKey() string {
  332. if m != nil {
  333. return m.SappKey
  334. }
  335. return ""
  336. }
  337. func init() {
  338. proto.RegisterType((*AppIDReply)(nil), "manager.service.open.AppIDReply")
  339. proto.RegisterType((*AppIDReq)(nil), "manager.service.open.AppIDReq")
  340. proto.RegisterType((*CloseReply)(nil), "manager.service.open.CloseReply")
  341. proto.RegisterType((*CloseReq)(nil), "manager.service.open.CloseReq")
  342. proto.RegisterType((*PingReply)(nil), "manager.service.open.PingReply")
  343. proto.RegisterType((*PingReq)(nil), "manager.service.open.PingReq")
  344. proto.RegisterType((*SecretReply)(nil), "manager.service.open.SecretReply")
  345. proto.RegisterType((*SecretReq)(nil), "manager.service.open.SecretReq")
  346. }
  347. // Reference imports to suppress errors if they are not otherwise used.
  348. var _ context.Context
  349. var _ grpc.ClientConn
  350. // This is a compile-time assertion to ensure that this generated file
  351. // is compatible with the grpc package it is being compiled against.
  352. const _ = grpc.SupportPackageIsVersion4
  353. // OpenClient is the client API for Open service.
  354. //
  355. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  356. type OpenClient interface {
  357. // Ping check dao health.
  358. Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingReply, error)
  359. // Close close all dao.
  360. Close(ctx context.Context, in *CloseReq, opts ...grpc.CallOption) (*CloseReply, error)
  361. // Secret .
  362. Secret(ctx context.Context, in *SecretReq, opts ...grpc.CallOption) (*SecretReply, error)
  363. // AppID .
  364. AppID(ctx context.Context, in *AppIDReq, opts ...grpc.CallOption) (*AppIDReply, error)
  365. }
  366. type openClient struct {
  367. cc *grpc.ClientConn
  368. }
  369. func NewOpenClient(cc *grpc.ClientConn) OpenClient {
  370. return &openClient{cc}
  371. }
  372. func (c *openClient) Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingReply, error) {
  373. out := new(PingReply)
  374. err := c.cc.Invoke(ctx, "/manager.service.open.Open/Ping", in, out, opts...)
  375. if err != nil {
  376. return nil, err
  377. }
  378. return out, nil
  379. }
  380. func (c *openClient) Close(ctx context.Context, in *CloseReq, opts ...grpc.CallOption) (*CloseReply, error) {
  381. out := new(CloseReply)
  382. err := c.cc.Invoke(ctx, "/manager.service.open.Open/Close", in, out, opts...)
  383. if err != nil {
  384. return nil, err
  385. }
  386. return out, nil
  387. }
  388. func (c *openClient) Secret(ctx context.Context, in *SecretReq, opts ...grpc.CallOption) (*SecretReply, error) {
  389. out := new(SecretReply)
  390. err := c.cc.Invoke(ctx, "/manager.service.open.Open/Secret", in, out, opts...)
  391. if err != nil {
  392. return nil, err
  393. }
  394. return out, nil
  395. }
  396. func (c *openClient) AppID(ctx context.Context, in *AppIDReq, opts ...grpc.CallOption) (*AppIDReply, error) {
  397. out := new(AppIDReply)
  398. err := c.cc.Invoke(ctx, "/manager.service.open.Open/AppID", in, out, opts...)
  399. if err != nil {
  400. return nil, err
  401. }
  402. return out, nil
  403. }
  404. // OpenServer is the server API for Open service.
  405. type OpenServer interface {
  406. // Ping check dao health.
  407. Ping(context.Context, *PingReq) (*PingReply, error)
  408. // Close close all dao.
  409. Close(context.Context, *CloseReq) (*CloseReply, error)
  410. // Secret .
  411. Secret(context.Context, *SecretReq) (*SecretReply, error)
  412. // AppID .
  413. AppID(context.Context, *AppIDReq) (*AppIDReply, error)
  414. }
  415. func RegisterOpenServer(s *grpc.Server, srv OpenServer) {
  416. s.RegisterService(&_Open_serviceDesc, srv)
  417. }
  418. func _Open_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  419. in := new(PingReq)
  420. if err := dec(in); err != nil {
  421. return nil, err
  422. }
  423. if interceptor == nil {
  424. return srv.(OpenServer).Ping(ctx, in)
  425. }
  426. info := &grpc.UnaryServerInfo{
  427. Server: srv,
  428. FullMethod: "/manager.service.open.Open/Ping",
  429. }
  430. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  431. return srv.(OpenServer).Ping(ctx, req.(*PingReq))
  432. }
  433. return interceptor(ctx, in, info, handler)
  434. }
  435. func _Open_Close_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  436. in := new(CloseReq)
  437. if err := dec(in); err != nil {
  438. return nil, err
  439. }
  440. if interceptor == nil {
  441. return srv.(OpenServer).Close(ctx, in)
  442. }
  443. info := &grpc.UnaryServerInfo{
  444. Server: srv,
  445. FullMethod: "/manager.service.open.Open/Close",
  446. }
  447. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  448. return srv.(OpenServer).Close(ctx, req.(*CloseReq))
  449. }
  450. return interceptor(ctx, in, info, handler)
  451. }
  452. func _Open_Secret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  453. in := new(SecretReq)
  454. if err := dec(in); err != nil {
  455. return nil, err
  456. }
  457. if interceptor == nil {
  458. return srv.(OpenServer).Secret(ctx, in)
  459. }
  460. info := &grpc.UnaryServerInfo{
  461. Server: srv,
  462. FullMethod: "/manager.service.open.Open/Secret",
  463. }
  464. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  465. return srv.(OpenServer).Secret(ctx, req.(*SecretReq))
  466. }
  467. return interceptor(ctx, in, info, handler)
  468. }
  469. func _Open_AppID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  470. in := new(AppIDReq)
  471. if err := dec(in); err != nil {
  472. return nil, err
  473. }
  474. if interceptor == nil {
  475. return srv.(OpenServer).AppID(ctx, in)
  476. }
  477. info := &grpc.UnaryServerInfo{
  478. Server: srv,
  479. FullMethod: "/manager.service.open.Open/AppID",
  480. }
  481. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  482. return srv.(OpenServer).AppID(ctx, req.(*AppIDReq))
  483. }
  484. return interceptor(ctx, in, info, handler)
  485. }
  486. var _Open_serviceDesc = grpc.ServiceDesc{
  487. ServiceName: "manager.service.open.Open",
  488. HandlerType: (*OpenServer)(nil),
  489. Methods: []grpc.MethodDesc{
  490. {
  491. MethodName: "Ping",
  492. Handler: _Open_Ping_Handler,
  493. },
  494. {
  495. MethodName: "Close",
  496. Handler: _Open_Close_Handler,
  497. },
  498. {
  499. MethodName: "Secret",
  500. Handler: _Open_Secret_Handler,
  501. },
  502. {
  503. MethodName: "AppID",
  504. Handler: _Open_AppID_Handler,
  505. },
  506. },
  507. Streams: []grpc.StreamDesc{},
  508. Metadata: "app/service/main/open/api/grpc/v1/api.proto",
  509. }
  510. func (m *AppIDReply) Marshal() (dAtA []byte, err error) {
  511. size := m.Size()
  512. dAtA = make([]byte, size)
  513. n, err := m.MarshalTo(dAtA)
  514. if err != nil {
  515. return nil, err
  516. }
  517. return dAtA[:n], nil
  518. }
  519. func (m *AppIDReply) MarshalTo(dAtA []byte) (int, error) {
  520. var i int
  521. _ = i
  522. var l int
  523. _ = l
  524. if m.AppId != 0 {
  525. dAtA[i] = 0x8
  526. i++
  527. i = encodeVarintApi(dAtA, i, uint64(m.AppId))
  528. }
  529. if m.XXX_unrecognized != nil {
  530. i += copy(dAtA[i:], m.XXX_unrecognized)
  531. }
  532. return i, nil
  533. }
  534. func (m *AppIDReq) Marshal() (dAtA []byte, err error) {
  535. size := m.Size()
  536. dAtA = make([]byte, size)
  537. n, err := m.MarshalTo(dAtA)
  538. if err != nil {
  539. return nil, err
  540. }
  541. return dAtA[:n], nil
  542. }
  543. func (m *AppIDReq) MarshalTo(dAtA []byte) (int, error) {
  544. var i int
  545. _ = i
  546. var l int
  547. _ = l
  548. if len(m.AppKey) > 0 {
  549. dAtA[i] = 0x12
  550. i++
  551. i = encodeVarintApi(dAtA, i, uint64(len(m.AppKey)))
  552. i += copy(dAtA[i:], m.AppKey)
  553. }
  554. if m.XXX_unrecognized != nil {
  555. i += copy(dAtA[i:], m.XXX_unrecognized)
  556. }
  557. return i, nil
  558. }
  559. func (m *CloseReply) Marshal() (dAtA []byte, err error) {
  560. size := m.Size()
  561. dAtA = make([]byte, size)
  562. n, err := m.MarshalTo(dAtA)
  563. if err != nil {
  564. return nil, err
  565. }
  566. return dAtA[:n], nil
  567. }
  568. func (m *CloseReply) MarshalTo(dAtA []byte) (int, error) {
  569. var i int
  570. _ = i
  571. var l int
  572. _ = l
  573. if m.XXX_unrecognized != nil {
  574. i += copy(dAtA[i:], m.XXX_unrecognized)
  575. }
  576. return i, nil
  577. }
  578. func (m *CloseReq) Marshal() (dAtA []byte, err error) {
  579. size := m.Size()
  580. dAtA = make([]byte, size)
  581. n, err := m.MarshalTo(dAtA)
  582. if err != nil {
  583. return nil, err
  584. }
  585. return dAtA[:n], nil
  586. }
  587. func (m *CloseReq) MarshalTo(dAtA []byte) (int, error) {
  588. var i int
  589. _ = i
  590. var l int
  591. _ = l
  592. if m.XXX_unrecognized != nil {
  593. i += copy(dAtA[i:], m.XXX_unrecognized)
  594. }
  595. return i, nil
  596. }
  597. func (m *PingReply) Marshal() (dAtA []byte, err error) {
  598. size := m.Size()
  599. dAtA = make([]byte, size)
  600. n, err := m.MarshalTo(dAtA)
  601. if err != nil {
  602. return nil, err
  603. }
  604. return dAtA[:n], nil
  605. }
  606. func (m *PingReply) MarshalTo(dAtA []byte) (int, error) {
  607. var i int
  608. _ = i
  609. var l int
  610. _ = l
  611. if m.XXX_unrecognized != nil {
  612. i += copy(dAtA[i:], m.XXX_unrecognized)
  613. }
  614. return i, nil
  615. }
  616. func (m *PingReq) Marshal() (dAtA []byte, err error) {
  617. size := m.Size()
  618. dAtA = make([]byte, size)
  619. n, err := m.MarshalTo(dAtA)
  620. if err != nil {
  621. return nil, err
  622. }
  623. return dAtA[:n], nil
  624. }
  625. func (m *PingReq) MarshalTo(dAtA []byte) (int, error) {
  626. var i int
  627. _ = i
  628. var l int
  629. _ = l
  630. if m.XXX_unrecognized != nil {
  631. i += copy(dAtA[i:], m.XXX_unrecognized)
  632. }
  633. return i, nil
  634. }
  635. func (m *SecretReply) Marshal() (dAtA []byte, err error) {
  636. size := m.Size()
  637. dAtA = make([]byte, size)
  638. n, err := m.MarshalTo(dAtA)
  639. if err != nil {
  640. return nil, err
  641. }
  642. return dAtA[:n], nil
  643. }
  644. func (m *SecretReply) MarshalTo(dAtA []byte) (int, error) {
  645. var i int
  646. _ = i
  647. var l int
  648. _ = l
  649. if len(m.Res) > 0 {
  650. dAtA[i] = 0xa
  651. i++
  652. i = encodeVarintApi(dAtA, i, uint64(len(m.Res)))
  653. i += copy(dAtA[i:], m.Res)
  654. }
  655. if m.XXX_unrecognized != nil {
  656. i += copy(dAtA[i:], m.XXX_unrecognized)
  657. }
  658. return i, nil
  659. }
  660. func (m *SecretReq) Marshal() (dAtA []byte, err error) {
  661. size := m.Size()
  662. dAtA = make([]byte, size)
  663. n, err := m.MarshalTo(dAtA)
  664. if err != nil {
  665. return nil, err
  666. }
  667. return dAtA[:n], nil
  668. }
  669. func (m *SecretReq) MarshalTo(dAtA []byte) (int, error) {
  670. var i int
  671. _ = i
  672. var l int
  673. _ = l
  674. if len(m.SappKey) > 0 {
  675. dAtA[i] = 0x12
  676. i++
  677. i = encodeVarintApi(dAtA, i, uint64(len(m.SappKey)))
  678. i += copy(dAtA[i:], m.SappKey)
  679. }
  680. if m.XXX_unrecognized != nil {
  681. i += copy(dAtA[i:], m.XXX_unrecognized)
  682. }
  683. return i, nil
  684. }
  685. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  686. for v >= 1<<7 {
  687. dAtA[offset] = uint8(v&0x7f | 0x80)
  688. v >>= 7
  689. offset++
  690. }
  691. dAtA[offset] = uint8(v)
  692. return offset + 1
  693. }
  694. func (m *AppIDReply) Size() (n int) {
  695. if m == nil {
  696. return 0
  697. }
  698. var l int
  699. _ = l
  700. if m.AppId != 0 {
  701. n += 1 + sovApi(uint64(m.AppId))
  702. }
  703. if m.XXX_unrecognized != nil {
  704. n += len(m.XXX_unrecognized)
  705. }
  706. return n
  707. }
  708. func (m *AppIDReq) Size() (n int) {
  709. if m == nil {
  710. return 0
  711. }
  712. var l int
  713. _ = l
  714. l = len(m.AppKey)
  715. if l > 0 {
  716. n += 1 + l + sovApi(uint64(l))
  717. }
  718. if m.XXX_unrecognized != nil {
  719. n += len(m.XXX_unrecognized)
  720. }
  721. return n
  722. }
  723. func (m *CloseReply) Size() (n int) {
  724. if m == nil {
  725. return 0
  726. }
  727. var l int
  728. _ = l
  729. if m.XXX_unrecognized != nil {
  730. n += len(m.XXX_unrecognized)
  731. }
  732. return n
  733. }
  734. func (m *CloseReq) Size() (n int) {
  735. if m == nil {
  736. return 0
  737. }
  738. var l int
  739. _ = l
  740. if m.XXX_unrecognized != nil {
  741. n += len(m.XXX_unrecognized)
  742. }
  743. return n
  744. }
  745. func (m *PingReply) Size() (n int) {
  746. if m == nil {
  747. return 0
  748. }
  749. var l int
  750. _ = l
  751. if m.XXX_unrecognized != nil {
  752. n += len(m.XXX_unrecognized)
  753. }
  754. return n
  755. }
  756. func (m *PingReq) Size() (n int) {
  757. if m == nil {
  758. return 0
  759. }
  760. var l int
  761. _ = l
  762. if m.XXX_unrecognized != nil {
  763. n += len(m.XXX_unrecognized)
  764. }
  765. return n
  766. }
  767. func (m *SecretReply) Size() (n int) {
  768. if m == nil {
  769. return 0
  770. }
  771. var l int
  772. _ = l
  773. l = len(m.Res)
  774. if l > 0 {
  775. n += 1 + l + sovApi(uint64(l))
  776. }
  777. if m.XXX_unrecognized != nil {
  778. n += len(m.XXX_unrecognized)
  779. }
  780. return n
  781. }
  782. func (m *SecretReq) Size() (n int) {
  783. if m == nil {
  784. return 0
  785. }
  786. var l int
  787. _ = l
  788. l = len(m.SappKey)
  789. if l > 0 {
  790. n += 1 + l + sovApi(uint64(l))
  791. }
  792. if m.XXX_unrecognized != nil {
  793. n += len(m.XXX_unrecognized)
  794. }
  795. return n
  796. }
  797. func sovApi(x uint64) (n int) {
  798. for {
  799. n++
  800. x >>= 7
  801. if x == 0 {
  802. break
  803. }
  804. }
  805. return n
  806. }
  807. func sozApi(x uint64) (n int) {
  808. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  809. }
  810. func (m *AppIDReply) Unmarshal(dAtA []byte) error {
  811. l := len(dAtA)
  812. iNdEx := 0
  813. for iNdEx < l {
  814. preIndex := iNdEx
  815. var wire uint64
  816. for shift := uint(0); ; shift += 7 {
  817. if shift >= 64 {
  818. return ErrIntOverflowApi
  819. }
  820. if iNdEx >= l {
  821. return io.ErrUnexpectedEOF
  822. }
  823. b := dAtA[iNdEx]
  824. iNdEx++
  825. wire |= (uint64(b) & 0x7F) << shift
  826. if b < 0x80 {
  827. break
  828. }
  829. }
  830. fieldNum := int32(wire >> 3)
  831. wireType := int(wire & 0x7)
  832. if wireType == 4 {
  833. return fmt.Errorf("proto: AppIDReply: wiretype end group for non-group")
  834. }
  835. if fieldNum <= 0 {
  836. return fmt.Errorf("proto: AppIDReply: illegal tag %d (wire type %d)", fieldNum, wire)
  837. }
  838. switch fieldNum {
  839. case 1:
  840. if wireType != 0 {
  841. return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType)
  842. }
  843. m.AppId = 0
  844. for shift := uint(0); ; shift += 7 {
  845. if shift >= 64 {
  846. return ErrIntOverflowApi
  847. }
  848. if iNdEx >= l {
  849. return io.ErrUnexpectedEOF
  850. }
  851. b := dAtA[iNdEx]
  852. iNdEx++
  853. m.AppId |= (int64(b) & 0x7F) << shift
  854. if b < 0x80 {
  855. break
  856. }
  857. }
  858. default:
  859. iNdEx = preIndex
  860. skippy, err := skipApi(dAtA[iNdEx:])
  861. if err != nil {
  862. return err
  863. }
  864. if skippy < 0 {
  865. return ErrInvalidLengthApi
  866. }
  867. if (iNdEx + skippy) > l {
  868. return io.ErrUnexpectedEOF
  869. }
  870. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  871. iNdEx += skippy
  872. }
  873. }
  874. if iNdEx > l {
  875. return io.ErrUnexpectedEOF
  876. }
  877. return nil
  878. }
  879. func (m *AppIDReq) Unmarshal(dAtA []byte) error {
  880. l := len(dAtA)
  881. iNdEx := 0
  882. for iNdEx < l {
  883. preIndex := iNdEx
  884. var wire uint64
  885. for shift := uint(0); ; shift += 7 {
  886. if shift >= 64 {
  887. return ErrIntOverflowApi
  888. }
  889. if iNdEx >= l {
  890. return io.ErrUnexpectedEOF
  891. }
  892. b := dAtA[iNdEx]
  893. iNdEx++
  894. wire |= (uint64(b) & 0x7F) << shift
  895. if b < 0x80 {
  896. break
  897. }
  898. }
  899. fieldNum := int32(wire >> 3)
  900. wireType := int(wire & 0x7)
  901. if wireType == 4 {
  902. return fmt.Errorf("proto: AppIDReq: wiretype end group for non-group")
  903. }
  904. if fieldNum <= 0 {
  905. return fmt.Errorf("proto: AppIDReq: illegal tag %d (wire type %d)", fieldNum, wire)
  906. }
  907. switch fieldNum {
  908. case 2:
  909. if wireType != 2 {
  910. return fmt.Errorf("proto: wrong wireType = %d for field AppKey", wireType)
  911. }
  912. var stringLen uint64
  913. for shift := uint(0); ; shift += 7 {
  914. if shift >= 64 {
  915. return ErrIntOverflowApi
  916. }
  917. if iNdEx >= l {
  918. return io.ErrUnexpectedEOF
  919. }
  920. b := dAtA[iNdEx]
  921. iNdEx++
  922. stringLen |= (uint64(b) & 0x7F) << shift
  923. if b < 0x80 {
  924. break
  925. }
  926. }
  927. intStringLen := int(stringLen)
  928. if intStringLen < 0 {
  929. return ErrInvalidLengthApi
  930. }
  931. postIndex := iNdEx + intStringLen
  932. if postIndex > l {
  933. return io.ErrUnexpectedEOF
  934. }
  935. m.AppKey = string(dAtA[iNdEx:postIndex])
  936. iNdEx = postIndex
  937. default:
  938. iNdEx = preIndex
  939. skippy, err := skipApi(dAtA[iNdEx:])
  940. if err != nil {
  941. return err
  942. }
  943. if skippy < 0 {
  944. return ErrInvalidLengthApi
  945. }
  946. if (iNdEx + skippy) > l {
  947. return io.ErrUnexpectedEOF
  948. }
  949. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  950. iNdEx += skippy
  951. }
  952. }
  953. if iNdEx > l {
  954. return io.ErrUnexpectedEOF
  955. }
  956. return nil
  957. }
  958. func (m *CloseReply) Unmarshal(dAtA []byte) error {
  959. l := len(dAtA)
  960. iNdEx := 0
  961. for iNdEx < l {
  962. preIndex := iNdEx
  963. var wire uint64
  964. for shift := uint(0); ; shift += 7 {
  965. if shift >= 64 {
  966. return ErrIntOverflowApi
  967. }
  968. if iNdEx >= l {
  969. return io.ErrUnexpectedEOF
  970. }
  971. b := dAtA[iNdEx]
  972. iNdEx++
  973. wire |= (uint64(b) & 0x7F) << shift
  974. if b < 0x80 {
  975. break
  976. }
  977. }
  978. fieldNum := int32(wire >> 3)
  979. wireType := int(wire & 0x7)
  980. if wireType == 4 {
  981. return fmt.Errorf("proto: CloseReply: wiretype end group for non-group")
  982. }
  983. if fieldNum <= 0 {
  984. return fmt.Errorf("proto: CloseReply: illegal tag %d (wire type %d)", fieldNum, wire)
  985. }
  986. switch fieldNum {
  987. default:
  988. iNdEx = preIndex
  989. skippy, err := skipApi(dAtA[iNdEx:])
  990. if err != nil {
  991. return err
  992. }
  993. if skippy < 0 {
  994. return ErrInvalidLengthApi
  995. }
  996. if (iNdEx + skippy) > l {
  997. return io.ErrUnexpectedEOF
  998. }
  999. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1000. iNdEx += skippy
  1001. }
  1002. }
  1003. if iNdEx > l {
  1004. return io.ErrUnexpectedEOF
  1005. }
  1006. return nil
  1007. }
  1008. func (m *CloseReq) Unmarshal(dAtA []byte) error {
  1009. l := len(dAtA)
  1010. iNdEx := 0
  1011. for iNdEx < l {
  1012. preIndex := iNdEx
  1013. var wire uint64
  1014. for shift := uint(0); ; shift += 7 {
  1015. if shift >= 64 {
  1016. return ErrIntOverflowApi
  1017. }
  1018. if iNdEx >= l {
  1019. return io.ErrUnexpectedEOF
  1020. }
  1021. b := dAtA[iNdEx]
  1022. iNdEx++
  1023. wire |= (uint64(b) & 0x7F) << shift
  1024. if b < 0x80 {
  1025. break
  1026. }
  1027. }
  1028. fieldNum := int32(wire >> 3)
  1029. wireType := int(wire & 0x7)
  1030. if wireType == 4 {
  1031. return fmt.Errorf("proto: CloseReq: wiretype end group for non-group")
  1032. }
  1033. if fieldNum <= 0 {
  1034. return fmt.Errorf("proto: CloseReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1035. }
  1036. switch fieldNum {
  1037. default:
  1038. iNdEx = preIndex
  1039. skippy, err := skipApi(dAtA[iNdEx:])
  1040. if err != nil {
  1041. return err
  1042. }
  1043. if skippy < 0 {
  1044. return ErrInvalidLengthApi
  1045. }
  1046. if (iNdEx + skippy) > l {
  1047. return io.ErrUnexpectedEOF
  1048. }
  1049. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1050. iNdEx += skippy
  1051. }
  1052. }
  1053. if iNdEx > l {
  1054. return io.ErrUnexpectedEOF
  1055. }
  1056. return nil
  1057. }
  1058. func (m *PingReply) Unmarshal(dAtA []byte) error {
  1059. l := len(dAtA)
  1060. iNdEx := 0
  1061. for iNdEx < l {
  1062. preIndex := iNdEx
  1063. var wire uint64
  1064. for shift := uint(0); ; shift += 7 {
  1065. if shift >= 64 {
  1066. return ErrIntOverflowApi
  1067. }
  1068. if iNdEx >= l {
  1069. return io.ErrUnexpectedEOF
  1070. }
  1071. b := dAtA[iNdEx]
  1072. iNdEx++
  1073. wire |= (uint64(b) & 0x7F) << shift
  1074. if b < 0x80 {
  1075. break
  1076. }
  1077. }
  1078. fieldNum := int32(wire >> 3)
  1079. wireType := int(wire & 0x7)
  1080. if wireType == 4 {
  1081. return fmt.Errorf("proto: PingReply: wiretype end group for non-group")
  1082. }
  1083. if fieldNum <= 0 {
  1084. return fmt.Errorf("proto: PingReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1085. }
  1086. switch fieldNum {
  1087. default:
  1088. iNdEx = preIndex
  1089. skippy, err := skipApi(dAtA[iNdEx:])
  1090. if err != nil {
  1091. return err
  1092. }
  1093. if skippy < 0 {
  1094. return ErrInvalidLengthApi
  1095. }
  1096. if (iNdEx + skippy) > l {
  1097. return io.ErrUnexpectedEOF
  1098. }
  1099. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1100. iNdEx += skippy
  1101. }
  1102. }
  1103. if iNdEx > l {
  1104. return io.ErrUnexpectedEOF
  1105. }
  1106. return nil
  1107. }
  1108. func (m *PingReq) Unmarshal(dAtA []byte) error {
  1109. l := len(dAtA)
  1110. iNdEx := 0
  1111. for iNdEx < l {
  1112. preIndex := iNdEx
  1113. var wire uint64
  1114. for shift := uint(0); ; shift += 7 {
  1115. if shift >= 64 {
  1116. return ErrIntOverflowApi
  1117. }
  1118. if iNdEx >= l {
  1119. return io.ErrUnexpectedEOF
  1120. }
  1121. b := dAtA[iNdEx]
  1122. iNdEx++
  1123. wire |= (uint64(b) & 0x7F) << shift
  1124. if b < 0x80 {
  1125. break
  1126. }
  1127. }
  1128. fieldNum := int32(wire >> 3)
  1129. wireType := int(wire & 0x7)
  1130. if wireType == 4 {
  1131. return fmt.Errorf("proto: PingReq: wiretype end group for non-group")
  1132. }
  1133. if fieldNum <= 0 {
  1134. return fmt.Errorf("proto: PingReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1135. }
  1136. switch fieldNum {
  1137. default:
  1138. iNdEx = preIndex
  1139. skippy, err := skipApi(dAtA[iNdEx:])
  1140. if err != nil {
  1141. return err
  1142. }
  1143. if skippy < 0 {
  1144. return ErrInvalidLengthApi
  1145. }
  1146. if (iNdEx + skippy) > l {
  1147. return io.ErrUnexpectedEOF
  1148. }
  1149. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1150. iNdEx += skippy
  1151. }
  1152. }
  1153. if iNdEx > l {
  1154. return io.ErrUnexpectedEOF
  1155. }
  1156. return nil
  1157. }
  1158. func (m *SecretReply) Unmarshal(dAtA []byte) error {
  1159. l := len(dAtA)
  1160. iNdEx := 0
  1161. for iNdEx < l {
  1162. preIndex := iNdEx
  1163. var wire uint64
  1164. for shift := uint(0); ; shift += 7 {
  1165. if shift >= 64 {
  1166. return ErrIntOverflowApi
  1167. }
  1168. if iNdEx >= l {
  1169. return io.ErrUnexpectedEOF
  1170. }
  1171. b := dAtA[iNdEx]
  1172. iNdEx++
  1173. wire |= (uint64(b) & 0x7F) << shift
  1174. if b < 0x80 {
  1175. break
  1176. }
  1177. }
  1178. fieldNum := int32(wire >> 3)
  1179. wireType := int(wire & 0x7)
  1180. if wireType == 4 {
  1181. return fmt.Errorf("proto: SecretReply: wiretype end group for non-group")
  1182. }
  1183. if fieldNum <= 0 {
  1184. return fmt.Errorf("proto: SecretReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1185. }
  1186. switch fieldNum {
  1187. case 1:
  1188. if wireType != 2 {
  1189. return fmt.Errorf("proto: wrong wireType = %d for field Res", wireType)
  1190. }
  1191. var stringLen uint64
  1192. for shift := uint(0); ; shift += 7 {
  1193. if shift >= 64 {
  1194. return ErrIntOverflowApi
  1195. }
  1196. if iNdEx >= l {
  1197. return io.ErrUnexpectedEOF
  1198. }
  1199. b := dAtA[iNdEx]
  1200. iNdEx++
  1201. stringLen |= (uint64(b) & 0x7F) << shift
  1202. if b < 0x80 {
  1203. break
  1204. }
  1205. }
  1206. intStringLen := int(stringLen)
  1207. if intStringLen < 0 {
  1208. return ErrInvalidLengthApi
  1209. }
  1210. postIndex := iNdEx + intStringLen
  1211. if postIndex > l {
  1212. return io.ErrUnexpectedEOF
  1213. }
  1214. m.Res = string(dAtA[iNdEx:postIndex])
  1215. iNdEx = postIndex
  1216. default:
  1217. iNdEx = preIndex
  1218. skippy, err := skipApi(dAtA[iNdEx:])
  1219. if err != nil {
  1220. return err
  1221. }
  1222. if skippy < 0 {
  1223. return ErrInvalidLengthApi
  1224. }
  1225. if (iNdEx + skippy) > l {
  1226. return io.ErrUnexpectedEOF
  1227. }
  1228. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1229. iNdEx += skippy
  1230. }
  1231. }
  1232. if iNdEx > l {
  1233. return io.ErrUnexpectedEOF
  1234. }
  1235. return nil
  1236. }
  1237. func (m *SecretReq) Unmarshal(dAtA []byte) error {
  1238. l := len(dAtA)
  1239. iNdEx := 0
  1240. for iNdEx < l {
  1241. preIndex := iNdEx
  1242. var wire uint64
  1243. for shift := uint(0); ; shift += 7 {
  1244. if shift >= 64 {
  1245. return ErrIntOverflowApi
  1246. }
  1247. if iNdEx >= l {
  1248. return io.ErrUnexpectedEOF
  1249. }
  1250. b := dAtA[iNdEx]
  1251. iNdEx++
  1252. wire |= (uint64(b) & 0x7F) << shift
  1253. if b < 0x80 {
  1254. break
  1255. }
  1256. }
  1257. fieldNum := int32(wire >> 3)
  1258. wireType := int(wire & 0x7)
  1259. if wireType == 4 {
  1260. return fmt.Errorf("proto: SecretReq: wiretype end group for non-group")
  1261. }
  1262. if fieldNum <= 0 {
  1263. return fmt.Errorf("proto: SecretReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1264. }
  1265. switch fieldNum {
  1266. case 2:
  1267. if wireType != 2 {
  1268. return fmt.Errorf("proto: wrong wireType = %d for field SappKey", wireType)
  1269. }
  1270. var stringLen uint64
  1271. for shift := uint(0); ; shift += 7 {
  1272. if shift >= 64 {
  1273. return ErrIntOverflowApi
  1274. }
  1275. if iNdEx >= l {
  1276. return io.ErrUnexpectedEOF
  1277. }
  1278. b := dAtA[iNdEx]
  1279. iNdEx++
  1280. stringLen |= (uint64(b) & 0x7F) << shift
  1281. if b < 0x80 {
  1282. break
  1283. }
  1284. }
  1285. intStringLen := int(stringLen)
  1286. if intStringLen < 0 {
  1287. return ErrInvalidLengthApi
  1288. }
  1289. postIndex := iNdEx + intStringLen
  1290. if postIndex > l {
  1291. return io.ErrUnexpectedEOF
  1292. }
  1293. m.SappKey = string(dAtA[iNdEx:postIndex])
  1294. iNdEx = postIndex
  1295. default:
  1296. iNdEx = preIndex
  1297. skippy, err := skipApi(dAtA[iNdEx:])
  1298. if err != nil {
  1299. return err
  1300. }
  1301. if skippy < 0 {
  1302. return ErrInvalidLengthApi
  1303. }
  1304. if (iNdEx + skippy) > l {
  1305. return io.ErrUnexpectedEOF
  1306. }
  1307. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1308. iNdEx += skippy
  1309. }
  1310. }
  1311. if iNdEx > l {
  1312. return io.ErrUnexpectedEOF
  1313. }
  1314. return nil
  1315. }
  1316. func skipApi(dAtA []byte) (n int, err error) {
  1317. l := len(dAtA)
  1318. iNdEx := 0
  1319. for iNdEx < l {
  1320. var wire uint64
  1321. for shift := uint(0); ; shift += 7 {
  1322. if shift >= 64 {
  1323. return 0, ErrIntOverflowApi
  1324. }
  1325. if iNdEx >= l {
  1326. return 0, io.ErrUnexpectedEOF
  1327. }
  1328. b := dAtA[iNdEx]
  1329. iNdEx++
  1330. wire |= (uint64(b) & 0x7F) << shift
  1331. if b < 0x80 {
  1332. break
  1333. }
  1334. }
  1335. wireType := int(wire & 0x7)
  1336. switch wireType {
  1337. case 0:
  1338. for shift := uint(0); ; shift += 7 {
  1339. if shift >= 64 {
  1340. return 0, ErrIntOverflowApi
  1341. }
  1342. if iNdEx >= l {
  1343. return 0, io.ErrUnexpectedEOF
  1344. }
  1345. iNdEx++
  1346. if dAtA[iNdEx-1] < 0x80 {
  1347. break
  1348. }
  1349. }
  1350. return iNdEx, nil
  1351. case 1:
  1352. iNdEx += 8
  1353. return iNdEx, nil
  1354. case 2:
  1355. var length int
  1356. for shift := uint(0); ; shift += 7 {
  1357. if shift >= 64 {
  1358. return 0, ErrIntOverflowApi
  1359. }
  1360. if iNdEx >= l {
  1361. return 0, io.ErrUnexpectedEOF
  1362. }
  1363. b := dAtA[iNdEx]
  1364. iNdEx++
  1365. length |= (int(b) & 0x7F) << shift
  1366. if b < 0x80 {
  1367. break
  1368. }
  1369. }
  1370. iNdEx += length
  1371. if length < 0 {
  1372. return 0, ErrInvalidLengthApi
  1373. }
  1374. return iNdEx, nil
  1375. case 3:
  1376. for {
  1377. var innerWire uint64
  1378. var start int = iNdEx
  1379. for shift := uint(0); ; shift += 7 {
  1380. if shift >= 64 {
  1381. return 0, ErrIntOverflowApi
  1382. }
  1383. if iNdEx >= l {
  1384. return 0, io.ErrUnexpectedEOF
  1385. }
  1386. b := dAtA[iNdEx]
  1387. iNdEx++
  1388. innerWire |= (uint64(b) & 0x7F) << shift
  1389. if b < 0x80 {
  1390. break
  1391. }
  1392. }
  1393. innerWireType := int(innerWire & 0x7)
  1394. if innerWireType == 4 {
  1395. break
  1396. }
  1397. next, err := skipApi(dAtA[start:])
  1398. if err != nil {
  1399. return 0, err
  1400. }
  1401. iNdEx = start + next
  1402. }
  1403. return iNdEx, nil
  1404. case 4:
  1405. return iNdEx, nil
  1406. case 5:
  1407. iNdEx += 4
  1408. return iNdEx, nil
  1409. default:
  1410. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1411. }
  1412. }
  1413. panic("unreachable")
  1414. }
  1415. var (
  1416. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  1417. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  1418. )
  1419. func init() {
  1420. proto.RegisterFile("app/service/main/open/api/grpc/v1/api.proto", fileDescriptor_api_f5c7f1ae9578a514)
  1421. }
  1422. var fileDescriptor_api_f5c7f1ae9578a514 = []byte{
  1423. // 319 bytes of a gzipped FileDescriptorProto
  1424. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xdb, 0x4a, 0xfb, 0x40,
  1425. 0x10, 0xc6, 0xd9, 0x9e, 0x33, 0xfd, 0x5f, 0x94, 0xe5, 0x2f, 0xd6, 0x82, 0x69, 0xdd, 0x82, 0x14,
  1426. 0x84, 0x2c, 0xd5, 0x27, 0xf0, 0x80, 0x50, 0x14, 0x94, 0x78, 0xe7, 0x8d, 0xac, 0xed, 0x50, 0x82,
  1427. 0x6d, 0x32, 0xd9, 0x94, 0x40, 0x5e, 0xcb, 0xa7, 0xf0, 0xd2, 0x47, 0x90, 0x3c, 0x89, 0x6c, 0x0e,
  1428. 0x8a, 0xd0, 0xe4, 0x6e, 0x87, 0xf9, 0x66, 0x7e, 0xdf, 0xc7, 0x2c, 0x9c, 0x29, 0x22, 0x19, 0xa1,
  1429. 0x8e, 0xbd, 0x25, 0xca, 0xad, 0xf2, 0x7c, 0x19, 0x10, 0xfa, 0x52, 0x91, 0x27, 0xd7, 0x9a, 0x96,
  1430. 0x32, 0x9e, 0x9b, 0xb7, 0x43, 0x3a, 0xd8, 0x05, 0xfc, 0xff, 0x56, 0xf9, 0x6a, 0x8d, 0xda, 0x29,
  1431. 0x06, 0x1c, 0xa3, 0x15, 0x53, 0x80, 0x4b, 0xa2, 0xc5, 0x8d, 0x8b, 0xb4, 0x49, 0xf8, 0x01, 0x74,
  1432. 0x14, 0xd1, 0x8b, 0xb7, 0x1a, 0xb2, 0x09, 0x9b, 0x35, 0xdd, 0xb6, 0x22, 0x5a, 0xac, 0xc4, 0x14,
  1433. 0x7a, 0x85, 0x28, 0xe4, 0x87, 0xd0, 0x35, 0x92, 0x37, 0x4c, 0x86, 0x8d, 0x09, 0x9b, 0x59, 0xae,
  1434. 0x99, 0xb8, 0xc3, 0x44, 0xfc, 0x03, 0xb8, 0xde, 0x04, 0x11, 0x66, 0x9b, 0x04, 0x40, 0xaf, 0xa8,
  1435. 0x42, 0xd1, 0x07, 0xeb, 0xd1, 0xf3, 0xd7, 0x79, 0xc3, 0x82, 0x6e, 0x5e, 0x84, 0x62, 0x0c, 0xfd,
  1436. 0x27, 0x5c, 0x6a, 0xdc, 0xe5, 0xf0, 0x01, 0x34, 0x35, 0x46, 0x19, 0xd9, 0x72, 0xcd, 0x53, 0x9c,
  1437. 0x82, 0x55, 0x0a, 0x42, 0x7e, 0x04, 0xbd, 0xe8, 0x2f, 0xb9, 0x1b, 0xe5, 0xe8, 0xf3, 0xf7, 0x06,
  1438. 0xb4, 0x1e, 0x08, 0x7d, 0x7e, 0x0b, 0x2d, 0xb3, 0x9c, 0x1f, 0x3b, 0xfb, 0xc2, 0x3a, 0x05, 0x78,
  1439. 0x34, 0xae, 0x6b, 0x1b, 0x2b, 0x0b, 0x68, 0x67, 0xee, 0xb9, 0xbd, 0x5f, 0x59, 0x46, 0x1b, 0x4d,
  1440. 0x6a, 0xfb, 0x66, 0xd5, 0x3d, 0x74, 0xf2, 0x0c, 0xbc, 0x82, 0xfa, 0x93, 0x70, 0x74, 0x52, 0x2f,
  1441. 0x28, 0x8c, 0x65, 0x97, 0xa8, 0x32, 0x56, 0x9e, 0xa9, 0xca, 0xd8, 0xef, 0xad, 0xaf, 0x06, 0x1f,
  1442. 0xa9, 0xcd, 0x3e, 0x53, 0x9b, 0x7d, 0xa5, 0x36, 0x7b, 0x6e, 0xc4, 0xf3, 0xd7, 0x4e, 0xf6, 0x51,
  1443. 0x2e, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, 0x9d, 0x52, 0x90, 0x4e, 0x57, 0x02, 0x00, 0x00,
  1444. }