api.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/interface/main/app-resource/api/v1/api.proto
  3. /*
  4. Package v1 is a generated protocol buffer package.
  5. use {app_id}.{version} as package name
  6. It is generated from these files:
  7. app/interface/main/app-resource/api/v1/api.proto
  8. It has these top-level messages:
  9. NoArgRequest
  10. NoReply
  11. */
  12. package v1
  13. import proto "github.com/gogo/protobuf/proto"
  14. import fmt "fmt"
  15. import math "math"
  16. import context "golang.org/x/net/context"
  17. import grpc "google.golang.org/grpc"
  18. import io "io"
  19. // Reference imports to suppress errors if they are not otherwise used.
  20. var _ = proto.Marshal
  21. var _ = fmt.Errorf
  22. var _ = math.Inf
  23. // This is a compile-time assertion to ensure that this generated file
  24. // is compatible with the proto package it is being compiled against.
  25. // A compilation error at this line likely means your copy of the
  26. // proto package needs to be updated.
  27. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  28. // NoArgReq
  29. type NoArgRequest struct {
  30. }
  31. func (m *NoArgRequest) Reset() { *m = NoArgRequest{} }
  32. func (m *NoArgRequest) String() string { return proto.CompactTextString(m) }
  33. func (*NoArgRequest) ProtoMessage() {}
  34. func (*NoArgRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  35. // NoReply
  36. type NoReply struct {
  37. }
  38. func (m *NoReply) Reset() { *m = NoReply{} }
  39. func (m *NoReply) String() string { return proto.CompactTextString(m) }
  40. func (*NoReply) ProtoMessage() {}
  41. func (*NoReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  42. func init() {
  43. proto.RegisterType((*NoArgRequest)(nil), "app.resource.v1.NoArgRequest")
  44. proto.RegisterType((*NoReply)(nil), "app.resource.v1.NoReply")
  45. }
  46. // Reference imports to suppress errors if they are not otherwise used.
  47. var _ context.Context
  48. var _ grpc.ClientConn
  49. // This is a compile-time assertion to ensure that this generated file
  50. // is compatible with the grpc package it is being compiled against.
  51. const _ = grpc.SupportPackageIsVersion4
  52. // Client API for AppResource service
  53. type AppResourceClient interface {
  54. // 更新静态资源所有缓存
  55. ModuleUpdateCache(ctx context.Context, in *NoArgRequest, opts ...grpc.CallOption) (*NoReply, error)
  56. }
  57. type appResourceClient struct {
  58. cc *grpc.ClientConn
  59. }
  60. func NewAppResourceClient(cc *grpc.ClientConn) AppResourceClient {
  61. return &appResourceClient{cc}
  62. }
  63. func (c *appResourceClient) ModuleUpdateCache(ctx context.Context, in *NoArgRequest, opts ...grpc.CallOption) (*NoReply, error) {
  64. out := new(NoReply)
  65. err := grpc.Invoke(ctx, "/app.resource.v1.AppResource/ModuleUpdateCache", in, out, c.cc, opts...)
  66. if err != nil {
  67. return nil, err
  68. }
  69. return out, nil
  70. }
  71. // Server API for AppResource service
  72. type AppResourceServer interface {
  73. // 更新静态资源所有缓存
  74. ModuleUpdateCache(context.Context, *NoArgRequest) (*NoReply, error)
  75. }
  76. func RegisterAppResourceServer(s *grpc.Server, srv AppResourceServer) {
  77. s.RegisterService(&_AppResource_serviceDesc, srv)
  78. }
  79. func _AppResource_ModuleUpdateCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  80. in := new(NoArgRequest)
  81. if err := dec(in); err != nil {
  82. return nil, err
  83. }
  84. if interceptor == nil {
  85. return srv.(AppResourceServer).ModuleUpdateCache(ctx, in)
  86. }
  87. info := &grpc.UnaryServerInfo{
  88. Server: srv,
  89. FullMethod: "/app.resource.v1.AppResource/ModuleUpdateCache",
  90. }
  91. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  92. return srv.(AppResourceServer).ModuleUpdateCache(ctx, req.(*NoArgRequest))
  93. }
  94. return interceptor(ctx, in, info, handler)
  95. }
  96. var _AppResource_serviceDesc = grpc.ServiceDesc{
  97. ServiceName: "app.resource.v1.AppResource",
  98. HandlerType: (*AppResourceServer)(nil),
  99. Methods: []grpc.MethodDesc{
  100. {
  101. MethodName: "ModuleUpdateCache",
  102. Handler: _AppResource_ModuleUpdateCache_Handler,
  103. },
  104. },
  105. Streams: []grpc.StreamDesc{},
  106. Metadata: "app/interface/main/app-resource/api/v1/api.proto",
  107. }
  108. func (m *NoArgRequest) 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 *NoArgRequest) MarshalTo(dAtA []byte) (int, error) {
  118. var i int
  119. _ = i
  120. var l int
  121. _ = l
  122. return i, nil
  123. }
  124. func (m *NoReply) Marshal() (dAtA []byte, err error) {
  125. size := m.Size()
  126. dAtA = make([]byte, size)
  127. n, err := m.MarshalTo(dAtA)
  128. if err != nil {
  129. return nil, err
  130. }
  131. return dAtA[:n], nil
  132. }
  133. func (m *NoReply) MarshalTo(dAtA []byte) (int, error) {
  134. var i int
  135. _ = i
  136. var l int
  137. _ = l
  138. return i, nil
  139. }
  140. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  141. for v >= 1<<7 {
  142. dAtA[offset] = uint8(v&0x7f | 0x80)
  143. v >>= 7
  144. offset++
  145. }
  146. dAtA[offset] = uint8(v)
  147. return offset + 1
  148. }
  149. func (m *NoArgRequest) Size() (n int) {
  150. var l int
  151. _ = l
  152. return n
  153. }
  154. func (m *NoReply) Size() (n int) {
  155. var l int
  156. _ = l
  157. return n
  158. }
  159. func sovApi(x uint64) (n int) {
  160. for {
  161. n++
  162. x >>= 7
  163. if x == 0 {
  164. break
  165. }
  166. }
  167. return n
  168. }
  169. func sozApi(x uint64) (n int) {
  170. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  171. }
  172. func (m *NoArgRequest) Unmarshal(dAtA []byte) error {
  173. l := len(dAtA)
  174. iNdEx := 0
  175. for iNdEx < l {
  176. preIndex := iNdEx
  177. var wire uint64
  178. for shift := uint(0); ; shift += 7 {
  179. if shift >= 64 {
  180. return ErrIntOverflowApi
  181. }
  182. if iNdEx >= l {
  183. return io.ErrUnexpectedEOF
  184. }
  185. b := dAtA[iNdEx]
  186. iNdEx++
  187. wire |= (uint64(b) & 0x7F) << shift
  188. if b < 0x80 {
  189. break
  190. }
  191. }
  192. fieldNum := int32(wire >> 3)
  193. wireType := int(wire & 0x7)
  194. if wireType == 4 {
  195. return fmt.Errorf("proto: NoArgRequest: wiretype end group for non-group")
  196. }
  197. if fieldNum <= 0 {
  198. return fmt.Errorf("proto: NoArgRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  199. }
  200. switch fieldNum {
  201. default:
  202. iNdEx = preIndex
  203. skippy, err := skipApi(dAtA[iNdEx:])
  204. if err != nil {
  205. return err
  206. }
  207. if skippy < 0 {
  208. return ErrInvalidLengthApi
  209. }
  210. if (iNdEx + skippy) > l {
  211. return io.ErrUnexpectedEOF
  212. }
  213. iNdEx += skippy
  214. }
  215. }
  216. if iNdEx > l {
  217. return io.ErrUnexpectedEOF
  218. }
  219. return nil
  220. }
  221. func (m *NoReply) Unmarshal(dAtA []byte) error {
  222. l := len(dAtA)
  223. iNdEx := 0
  224. for iNdEx < l {
  225. preIndex := iNdEx
  226. var wire uint64
  227. for shift := uint(0); ; shift += 7 {
  228. if shift >= 64 {
  229. return ErrIntOverflowApi
  230. }
  231. if iNdEx >= l {
  232. return io.ErrUnexpectedEOF
  233. }
  234. b := dAtA[iNdEx]
  235. iNdEx++
  236. wire |= (uint64(b) & 0x7F) << shift
  237. if b < 0x80 {
  238. break
  239. }
  240. }
  241. fieldNum := int32(wire >> 3)
  242. wireType := int(wire & 0x7)
  243. if wireType == 4 {
  244. return fmt.Errorf("proto: NoReply: wiretype end group for non-group")
  245. }
  246. if fieldNum <= 0 {
  247. return fmt.Errorf("proto: NoReply: illegal tag %d (wire type %d)", fieldNum, wire)
  248. }
  249. switch fieldNum {
  250. default:
  251. iNdEx = preIndex
  252. skippy, err := skipApi(dAtA[iNdEx:])
  253. if err != nil {
  254. return err
  255. }
  256. if skippy < 0 {
  257. return ErrInvalidLengthApi
  258. }
  259. if (iNdEx + skippy) > l {
  260. return io.ErrUnexpectedEOF
  261. }
  262. iNdEx += skippy
  263. }
  264. }
  265. if iNdEx > l {
  266. return io.ErrUnexpectedEOF
  267. }
  268. return nil
  269. }
  270. func skipApi(dAtA []byte) (n int, err error) {
  271. l := len(dAtA)
  272. iNdEx := 0
  273. for iNdEx < l {
  274. var wire uint64
  275. for shift := uint(0); ; shift += 7 {
  276. if shift >= 64 {
  277. return 0, ErrIntOverflowApi
  278. }
  279. if iNdEx >= l {
  280. return 0, io.ErrUnexpectedEOF
  281. }
  282. b := dAtA[iNdEx]
  283. iNdEx++
  284. wire |= (uint64(b) & 0x7F) << shift
  285. if b < 0x80 {
  286. break
  287. }
  288. }
  289. wireType := int(wire & 0x7)
  290. switch wireType {
  291. case 0:
  292. for shift := uint(0); ; shift += 7 {
  293. if shift >= 64 {
  294. return 0, ErrIntOverflowApi
  295. }
  296. if iNdEx >= l {
  297. return 0, io.ErrUnexpectedEOF
  298. }
  299. iNdEx++
  300. if dAtA[iNdEx-1] < 0x80 {
  301. break
  302. }
  303. }
  304. return iNdEx, nil
  305. case 1:
  306. iNdEx += 8
  307. return iNdEx, nil
  308. case 2:
  309. var length int
  310. for shift := uint(0); ; shift += 7 {
  311. if shift >= 64 {
  312. return 0, ErrIntOverflowApi
  313. }
  314. if iNdEx >= l {
  315. return 0, io.ErrUnexpectedEOF
  316. }
  317. b := dAtA[iNdEx]
  318. iNdEx++
  319. length |= (int(b) & 0x7F) << shift
  320. if b < 0x80 {
  321. break
  322. }
  323. }
  324. iNdEx += length
  325. if length < 0 {
  326. return 0, ErrInvalidLengthApi
  327. }
  328. return iNdEx, nil
  329. case 3:
  330. for {
  331. var innerWire uint64
  332. var start int = iNdEx
  333. for shift := uint(0); ; shift += 7 {
  334. if shift >= 64 {
  335. return 0, ErrIntOverflowApi
  336. }
  337. if iNdEx >= l {
  338. return 0, io.ErrUnexpectedEOF
  339. }
  340. b := dAtA[iNdEx]
  341. iNdEx++
  342. innerWire |= (uint64(b) & 0x7F) << shift
  343. if b < 0x80 {
  344. break
  345. }
  346. }
  347. innerWireType := int(innerWire & 0x7)
  348. if innerWireType == 4 {
  349. break
  350. }
  351. next, err := skipApi(dAtA[start:])
  352. if err != nil {
  353. return 0, err
  354. }
  355. iNdEx = start + next
  356. }
  357. return iNdEx, nil
  358. case 4:
  359. return iNdEx, nil
  360. case 5:
  361. iNdEx += 4
  362. return iNdEx, nil
  363. default:
  364. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  365. }
  366. }
  367. panic("unreachable")
  368. }
  369. var (
  370. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  371. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  372. )
  373. func init() { proto.RegisterFile("app/interface/main/app-resource/api/v1/api.proto", fileDescriptorApi) }
  374. var fileDescriptorApi = []byte{
  375. // 179 bytes of a gzipped FileDescriptorProto
  376. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x48, 0x2c, 0x28, 0xd0,
  377. 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x4f,
  378. 0x2c, 0x28, 0xd0, 0x2d, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a, 0x4e, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4,
  379. 0x2f, 0x33, 0x04, 0x51, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xfc, 0x89, 0x05, 0x05, 0x7a,
  380. 0x30, 0x69, 0xbd, 0x32, 0x43, 0x25, 0x3e, 0x2e, 0x1e, 0xbf, 0x7c, 0xc7, 0xa2, 0xf4, 0xa0, 0xd4,
  381. 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x25, 0x4e, 0x2e, 0x76, 0xbf, 0xfc, 0xa0, 0xd4, 0x82, 0x9c, 0x4a,
  382. 0xa3, 0x68, 0x2e, 0x6e, 0xc7, 0x82, 0x82, 0x20, 0xa8, 0x62, 0x21, 0x1f, 0x2e, 0x41, 0xdf, 0xfc,
  383. 0x94, 0xd2, 0x9c, 0xd4, 0xd0, 0x82, 0x94, 0xc4, 0x92, 0x54, 0xe7, 0xc4, 0xe4, 0x8c, 0x54, 0x21,
  384. 0x59, 0x3d, 0x34, 0x03, 0xf5, 0x90, 0x4d, 0x93, 0x92, 0xc0, 0x22, 0x0d, 0x36, 0xdc, 0x49, 0xe0,
  385. 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x8c, 0x62, 0x2a, 0x33,
  386. 0x4c, 0x62, 0x03, 0xbb, 0xd0, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x84, 0x2d, 0x7f, 0x25, 0xd5,
  387. 0x00, 0x00, 0x00,
  388. }