zone_grpc.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v3.21.4
  5. // source: proto/zone.proto
  6. package zone
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // ZoneCloudflareClient is the client API for ZoneCloudflare service.
  18. //
  19. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  20. type ZoneCloudflareClient interface {
  21. //Zone CURD
  22. ZoneIDByNameCloudflare(ctx context.Context, in *ZoneIDByNameRequestCloudflare, opts ...grpc.CallOption) (*ZoneIDByNameReplyCloudflare, error)
  23. ZoneDetails(ctx context.Context, in *ZoneDetailsRequestCloudflare, opts ...grpc.CallOption) (*ZoneDetailsReplyCloudflare, error)
  24. GetZones(ctx context.Context, in *GetZonesRequestCloudflare, opts ...grpc.CallOption) (*GetZonesReplyCloudflare, error)
  25. EditZone(ctx context.Context, in *EditZoneRequestCloudflare, opts ...grpc.CallOption) (*EditZoneReplyCloudflare, error)
  26. DeleteZone(ctx context.Context, in *DeleteZoneRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneReplyCloudflare, error)
  27. ListZones(ctx context.Context, in *ListZonesRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error)
  28. ListZonesByAccountId(ctx context.Context, in *ListZonesByAccountIdRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error)
  29. ActivationCheck(ctx context.Context, in *ActivationCheckRequestCloudflare, opts ...grpc.CallOption) (*ActivationCheckReplyCloudflare, error)
  30. //PageRule CURD
  31. ListPageRule(ctx context.Context, in *ListPageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error)
  32. CreatePageRule(ctx context.Context, in *CreatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error)
  33. UpdatePageRule(ctx context.Context, in *UpdatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error)
  34. DeletePageRule(ctx context.Context, in *DeletePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error)
  35. UpdatePageRulesPriorities(ctx context.Context, in *UpdatePageRulesPrioritiesRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error)
  36. //RuleSet UR
  37. UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error)
  38. GetRuleSet(ctx context.Context, in *GetRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error)
  39. }
  40. type zoneCloudflareClient struct {
  41. cc grpc.ClientConnInterface
  42. }
  43. func NewZoneCloudflareClient(cc grpc.ClientConnInterface) ZoneCloudflareClient {
  44. return &zoneCloudflareClient{cc}
  45. }
  46. func (c *zoneCloudflareClient) ZoneIDByNameCloudflare(ctx context.Context, in *ZoneIDByNameRequestCloudflare, opts ...grpc.CallOption) (*ZoneIDByNameReplyCloudflare, error) {
  47. out := new(ZoneIDByNameReplyCloudflare)
  48. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ZoneIDByNameCloudflare", in, out, opts...)
  49. if err != nil {
  50. return nil, err
  51. }
  52. return out, nil
  53. }
  54. func (c *zoneCloudflareClient) ZoneDetails(ctx context.Context, in *ZoneDetailsRequestCloudflare, opts ...grpc.CallOption) (*ZoneDetailsReplyCloudflare, error) {
  55. out := new(ZoneDetailsReplyCloudflare)
  56. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ZoneDetails", in, out, opts...)
  57. if err != nil {
  58. return nil, err
  59. }
  60. return out, nil
  61. }
  62. func (c *zoneCloudflareClient) GetZones(ctx context.Context, in *GetZonesRequestCloudflare, opts ...grpc.CallOption) (*GetZonesReplyCloudflare, error) {
  63. out := new(GetZonesReplyCloudflare)
  64. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/GetZones", in, out, opts...)
  65. if err != nil {
  66. return nil, err
  67. }
  68. return out, nil
  69. }
  70. func (c *zoneCloudflareClient) EditZone(ctx context.Context, in *EditZoneRequestCloudflare, opts ...grpc.CallOption) (*EditZoneReplyCloudflare, error) {
  71. out := new(EditZoneReplyCloudflare)
  72. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/EditZone", in, out, opts...)
  73. if err != nil {
  74. return nil, err
  75. }
  76. return out, nil
  77. }
  78. func (c *zoneCloudflareClient) DeleteZone(ctx context.Context, in *DeleteZoneRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneReplyCloudflare, error) {
  79. out := new(DeleteZoneReplyCloudflare)
  80. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/DeleteZone", in, out, opts...)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return out, nil
  85. }
  86. func (c *zoneCloudflareClient) ListZones(ctx context.Context, in *ListZonesRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) {
  87. out := new(ZonesList)
  88. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ListZones", in, out, opts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return out, nil
  93. }
  94. func (c *zoneCloudflareClient) ListZonesByAccountId(ctx context.Context, in *ListZonesByAccountIdRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) {
  95. out := new(ZonesList)
  96. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ListZonesByAccountId", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *zoneCloudflareClient) ActivationCheck(ctx context.Context, in *ActivationCheckRequestCloudflare, opts ...grpc.CallOption) (*ActivationCheckReplyCloudflare, error) {
  103. out := new(ActivationCheckReplyCloudflare)
  104. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ActivationCheck", in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. func (c *zoneCloudflareClient) ListPageRule(ctx context.Context, in *ListPageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) {
  111. out := new(PageRuleList)
  112. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ListPageRule", in, out, opts...)
  113. if err != nil {
  114. return nil, err
  115. }
  116. return out, nil
  117. }
  118. func (c *zoneCloudflareClient) CreatePageRule(ctx context.Context, in *CreatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
  119. out := new(PageRule)
  120. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/CreatePageRule", in, out, opts...)
  121. if err != nil {
  122. return nil, err
  123. }
  124. return out, nil
  125. }
  126. func (c *zoneCloudflareClient) UpdatePageRule(ctx context.Context, in *UpdatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
  127. out := new(PageRule)
  128. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRule", in, out, opts...)
  129. if err != nil {
  130. return nil, err
  131. }
  132. return out, nil
  133. }
  134. func (c *zoneCloudflareClient) DeletePageRule(ctx context.Context, in *DeletePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
  135. out := new(PageRule)
  136. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/DeletePageRule", in, out, opts...)
  137. if err != nil {
  138. return nil, err
  139. }
  140. return out, nil
  141. }
  142. func (c *zoneCloudflareClient) UpdatePageRulesPriorities(ctx context.Context, in *UpdatePageRulesPrioritiesRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) {
  143. out := new(PageRuleList)
  144. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRulesPriorities", in, out, opts...)
  145. if err != nil {
  146. return nil, err
  147. }
  148. return out, nil
  149. }
  150. func (c *zoneCloudflareClient) UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) {
  151. out := new(RuleList)
  152. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdateRuleSet", in, out, opts...)
  153. if err != nil {
  154. return nil, err
  155. }
  156. return out, nil
  157. }
  158. func (c *zoneCloudflareClient) GetRuleSet(ctx context.Context, in *GetRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) {
  159. out := new(RuleList)
  160. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/GetRuleSet", in, out, opts...)
  161. if err != nil {
  162. return nil, err
  163. }
  164. return out, nil
  165. }
  166. // ZoneCloudflareServer is the server API for ZoneCloudflare service.
  167. // All implementations must embed UnimplementedZoneCloudflareServer
  168. // for forward compatibility
  169. type ZoneCloudflareServer interface {
  170. //Zone CURD
  171. ZoneIDByNameCloudflare(context.Context, *ZoneIDByNameRequestCloudflare) (*ZoneIDByNameReplyCloudflare, error)
  172. ZoneDetails(context.Context, *ZoneDetailsRequestCloudflare) (*ZoneDetailsReplyCloudflare, error)
  173. GetZones(context.Context, *GetZonesRequestCloudflare) (*GetZonesReplyCloudflare, error)
  174. EditZone(context.Context, *EditZoneRequestCloudflare) (*EditZoneReplyCloudflare, error)
  175. DeleteZone(context.Context, *DeleteZoneRequestCloudflare) (*DeleteZoneReplyCloudflare, error)
  176. ListZones(context.Context, *ListZonesRequestCloudflare) (*ZonesList, error)
  177. ListZonesByAccountId(context.Context, *ListZonesByAccountIdRequestCloudflare) (*ZonesList, error)
  178. ActivationCheck(context.Context, *ActivationCheckRequestCloudflare) (*ActivationCheckReplyCloudflare, error)
  179. //PageRule CURD
  180. ListPageRule(context.Context, *ListPageRuleRequestCloudflare) (*PageRuleList, error)
  181. CreatePageRule(context.Context, *CreatePageRuleRequestCloudflare) (*PageRule, error)
  182. UpdatePageRule(context.Context, *UpdatePageRuleRequestCloudflare) (*PageRule, error)
  183. DeletePageRule(context.Context, *DeletePageRuleRequestCloudflare) (*PageRule, error)
  184. UpdatePageRulesPriorities(context.Context, *UpdatePageRulesPrioritiesRequestCloudflare) (*PageRuleList, error)
  185. //RuleSet UR
  186. UpdateRuleSet(context.Context, *UpdateRuleSetRequestCloudflare) (*RuleList, error)
  187. GetRuleSet(context.Context, *GetRuleSetRequestCloudflare) (*RuleList, error)
  188. mustEmbedUnimplementedZoneCloudflareServer()
  189. }
  190. // UnimplementedZoneCloudflareServer must be embedded to have forward compatible implementations.
  191. type UnimplementedZoneCloudflareServer struct {
  192. }
  193. func (UnimplementedZoneCloudflareServer) ZoneIDByNameCloudflare(context.Context, *ZoneIDByNameRequestCloudflare) (*ZoneIDByNameReplyCloudflare, error) {
  194. return nil, status.Errorf(codes.Unimplemented, "method ZoneIDByNameCloudflare not implemented")
  195. }
  196. func (UnimplementedZoneCloudflareServer) ZoneDetails(context.Context, *ZoneDetailsRequestCloudflare) (*ZoneDetailsReplyCloudflare, error) {
  197. return nil, status.Errorf(codes.Unimplemented, "method ZoneDetails not implemented")
  198. }
  199. func (UnimplementedZoneCloudflareServer) GetZones(context.Context, *GetZonesRequestCloudflare) (*GetZonesReplyCloudflare, error) {
  200. return nil, status.Errorf(codes.Unimplemented, "method GetZones not implemented")
  201. }
  202. func (UnimplementedZoneCloudflareServer) EditZone(context.Context, *EditZoneRequestCloudflare) (*EditZoneReplyCloudflare, error) {
  203. return nil, status.Errorf(codes.Unimplemented, "method EditZone not implemented")
  204. }
  205. func (UnimplementedZoneCloudflareServer) DeleteZone(context.Context, *DeleteZoneRequestCloudflare) (*DeleteZoneReplyCloudflare, error) {
  206. return nil, status.Errorf(codes.Unimplemented, "method DeleteZone not implemented")
  207. }
  208. func (UnimplementedZoneCloudflareServer) ListZones(context.Context, *ListZonesRequestCloudflare) (*ZonesList, error) {
  209. return nil, status.Errorf(codes.Unimplemented, "method ListZones not implemented")
  210. }
  211. func (UnimplementedZoneCloudflareServer) ListZonesByAccountId(context.Context, *ListZonesByAccountIdRequestCloudflare) (*ZonesList, error) {
  212. return nil, status.Errorf(codes.Unimplemented, "method ListZonesByAccountId not implemented")
  213. }
  214. func (UnimplementedZoneCloudflareServer) ActivationCheck(context.Context, *ActivationCheckRequestCloudflare) (*ActivationCheckReplyCloudflare, error) {
  215. return nil, status.Errorf(codes.Unimplemented, "method ActivationCheck not implemented")
  216. }
  217. func (UnimplementedZoneCloudflareServer) ListPageRule(context.Context, *ListPageRuleRequestCloudflare) (*PageRuleList, error) {
  218. return nil, status.Errorf(codes.Unimplemented, "method ListPageRule not implemented")
  219. }
  220. func (UnimplementedZoneCloudflareServer) CreatePageRule(context.Context, *CreatePageRuleRequestCloudflare) (*PageRule, error) {
  221. return nil, status.Errorf(codes.Unimplemented, "method CreatePageRule not implemented")
  222. }
  223. func (UnimplementedZoneCloudflareServer) UpdatePageRule(context.Context, *UpdatePageRuleRequestCloudflare) (*PageRule, error) {
  224. return nil, status.Errorf(codes.Unimplemented, "method UpdatePageRule not implemented")
  225. }
  226. func (UnimplementedZoneCloudflareServer) DeletePageRule(context.Context, *DeletePageRuleRequestCloudflare) (*PageRule, error) {
  227. return nil, status.Errorf(codes.Unimplemented, "method DeletePageRule not implemented")
  228. }
  229. func (UnimplementedZoneCloudflareServer) UpdatePageRulesPriorities(context.Context, *UpdatePageRulesPrioritiesRequestCloudflare) (*PageRuleList, error) {
  230. return nil, status.Errorf(codes.Unimplemented, "method UpdatePageRulesPriorities not implemented")
  231. }
  232. func (UnimplementedZoneCloudflareServer) UpdateRuleSet(context.Context, *UpdateRuleSetRequestCloudflare) (*RuleList, error) {
  233. return nil, status.Errorf(codes.Unimplemented, "method UpdateRuleSet not implemented")
  234. }
  235. func (UnimplementedZoneCloudflareServer) GetRuleSet(context.Context, *GetRuleSetRequestCloudflare) (*RuleList, error) {
  236. return nil, status.Errorf(codes.Unimplemented, "method GetRuleSet not implemented")
  237. }
  238. func (UnimplementedZoneCloudflareServer) mustEmbedUnimplementedZoneCloudflareServer() {}
  239. // UnsafeZoneCloudflareServer may be embedded to opt out of forward compatibility for this service.
  240. // Use of this interface is not recommended, as added methods to ZoneCloudflareServer will
  241. // result in compilation errors.
  242. type UnsafeZoneCloudflareServer interface {
  243. mustEmbedUnimplementedZoneCloudflareServer()
  244. }
  245. func RegisterZoneCloudflareServer(s grpc.ServiceRegistrar, srv ZoneCloudflareServer) {
  246. s.RegisterService(&ZoneCloudflare_ServiceDesc, srv)
  247. }
  248. func _ZoneCloudflare_ZoneIDByNameCloudflare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  249. in := new(ZoneIDByNameRequestCloudflare)
  250. if err := dec(in); err != nil {
  251. return nil, err
  252. }
  253. if interceptor == nil {
  254. return srv.(ZoneCloudflareServer).ZoneIDByNameCloudflare(ctx, in)
  255. }
  256. info := &grpc.UnaryServerInfo{
  257. Server: srv,
  258. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ZoneIDByNameCloudflare",
  259. }
  260. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  261. return srv.(ZoneCloudflareServer).ZoneIDByNameCloudflare(ctx, req.(*ZoneIDByNameRequestCloudflare))
  262. }
  263. return interceptor(ctx, in, info, handler)
  264. }
  265. func _ZoneCloudflare_ZoneDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  266. in := new(ZoneDetailsRequestCloudflare)
  267. if err := dec(in); err != nil {
  268. return nil, err
  269. }
  270. if interceptor == nil {
  271. return srv.(ZoneCloudflareServer).ZoneDetails(ctx, in)
  272. }
  273. info := &grpc.UnaryServerInfo{
  274. Server: srv,
  275. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ZoneDetails",
  276. }
  277. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  278. return srv.(ZoneCloudflareServer).ZoneDetails(ctx, req.(*ZoneDetailsRequestCloudflare))
  279. }
  280. return interceptor(ctx, in, info, handler)
  281. }
  282. func _ZoneCloudflare_GetZones_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  283. in := new(GetZonesRequestCloudflare)
  284. if err := dec(in); err != nil {
  285. return nil, err
  286. }
  287. if interceptor == nil {
  288. return srv.(ZoneCloudflareServer).GetZones(ctx, in)
  289. }
  290. info := &grpc.UnaryServerInfo{
  291. Server: srv,
  292. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/GetZones",
  293. }
  294. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  295. return srv.(ZoneCloudflareServer).GetZones(ctx, req.(*GetZonesRequestCloudflare))
  296. }
  297. return interceptor(ctx, in, info, handler)
  298. }
  299. func _ZoneCloudflare_EditZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  300. in := new(EditZoneRequestCloudflare)
  301. if err := dec(in); err != nil {
  302. return nil, err
  303. }
  304. if interceptor == nil {
  305. return srv.(ZoneCloudflareServer).EditZone(ctx, in)
  306. }
  307. info := &grpc.UnaryServerInfo{
  308. Server: srv,
  309. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/EditZone",
  310. }
  311. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  312. return srv.(ZoneCloudflareServer).EditZone(ctx, req.(*EditZoneRequestCloudflare))
  313. }
  314. return interceptor(ctx, in, info, handler)
  315. }
  316. func _ZoneCloudflare_DeleteZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  317. in := new(DeleteZoneRequestCloudflare)
  318. if err := dec(in); err != nil {
  319. return nil, err
  320. }
  321. if interceptor == nil {
  322. return srv.(ZoneCloudflareServer).DeleteZone(ctx, in)
  323. }
  324. info := &grpc.UnaryServerInfo{
  325. Server: srv,
  326. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/DeleteZone",
  327. }
  328. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  329. return srv.(ZoneCloudflareServer).DeleteZone(ctx, req.(*DeleteZoneRequestCloudflare))
  330. }
  331. return interceptor(ctx, in, info, handler)
  332. }
  333. func _ZoneCloudflare_ListZones_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  334. in := new(ListZonesRequestCloudflare)
  335. if err := dec(in); err != nil {
  336. return nil, err
  337. }
  338. if interceptor == nil {
  339. return srv.(ZoneCloudflareServer).ListZones(ctx, in)
  340. }
  341. info := &grpc.UnaryServerInfo{
  342. Server: srv,
  343. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ListZones",
  344. }
  345. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  346. return srv.(ZoneCloudflareServer).ListZones(ctx, req.(*ListZonesRequestCloudflare))
  347. }
  348. return interceptor(ctx, in, info, handler)
  349. }
  350. func _ZoneCloudflare_ListZonesByAccountId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  351. in := new(ListZonesByAccountIdRequestCloudflare)
  352. if err := dec(in); err != nil {
  353. return nil, err
  354. }
  355. if interceptor == nil {
  356. return srv.(ZoneCloudflareServer).ListZonesByAccountId(ctx, in)
  357. }
  358. info := &grpc.UnaryServerInfo{
  359. Server: srv,
  360. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ListZonesByAccountId",
  361. }
  362. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  363. return srv.(ZoneCloudflareServer).ListZonesByAccountId(ctx, req.(*ListZonesByAccountIdRequestCloudflare))
  364. }
  365. return interceptor(ctx, in, info, handler)
  366. }
  367. func _ZoneCloudflare_ActivationCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  368. in := new(ActivationCheckRequestCloudflare)
  369. if err := dec(in); err != nil {
  370. return nil, err
  371. }
  372. if interceptor == nil {
  373. return srv.(ZoneCloudflareServer).ActivationCheck(ctx, in)
  374. }
  375. info := &grpc.UnaryServerInfo{
  376. Server: srv,
  377. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ActivationCheck",
  378. }
  379. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  380. return srv.(ZoneCloudflareServer).ActivationCheck(ctx, req.(*ActivationCheckRequestCloudflare))
  381. }
  382. return interceptor(ctx, in, info, handler)
  383. }
  384. func _ZoneCloudflare_ListPageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  385. in := new(ListPageRuleRequestCloudflare)
  386. if err := dec(in); err != nil {
  387. return nil, err
  388. }
  389. if interceptor == nil {
  390. return srv.(ZoneCloudflareServer).ListPageRule(ctx, in)
  391. }
  392. info := &grpc.UnaryServerInfo{
  393. Server: srv,
  394. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ListPageRule",
  395. }
  396. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  397. return srv.(ZoneCloudflareServer).ListPageRule(ctx, req.(*ListPageRuleRequestCloudflare))
  398. }
  399. return interceptor(ctx, in, info, handler)
  400. }
  401. func _ZoneCloudflare_CreatePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  402. in := new(CreatePageRuleRequestCloudflare)
  403. if err := dec(in); err != nil {
  404. return nil, err
  405. }
  406. if interceptor == nil {
  407. return srv.(ZoneCloudflareServer).CreatePageRule(ctx, in)
  408. }
  409. info := &grpc.UnaryServerInfo{
  410. Server: srv,
  411. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/CreatePageRule",
  412. }
  413. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  414. return srv.(ZoneCloudflareServer).CreatePageRule(ctx, req.(*CreatePageRuleRequestCloudflare))
  415. }
  416. return interceptor(ctx, in, info, handler)
  417. }
  418. func _ZoneCloudflare_UpdatePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  419. in := new(UpdatePageRuleRequestCloudflare)
  420. if err := dec(in); err != nil {
  421. return nil, err
  422. }
  423. if interceptor == nil {
  424. return srv.(ZoneCloudflareServer).UpdatePageRule(ctx, in)
  425. }
  426. info := &grpc.UnaryServerInfo{
  427. Server: srv,
  428. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRule",
  429. }
  430. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  431. return srv.(ZoneCloudflareServer).UpdatePageRule(ctx, req.(*UpdatePageRuleRequestCloudflare))
  432. }
  433. return interceptor(ctx, in, info, handler)
  434. }
  435. func _ZoneCloudflare_DeletePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  436. in := new(DeletePageRuleRequestCloudflare)
  437. if err := dec(in); err != nil {
  438. return nil, err
  439. }
  440. if interceptor == nil {
  441. return srv.(ZoneCloudflareServer).DeletePageRule(ctx, in)
  442. }
  443. info := &grpc.UnaryServerInfo{
  444. Server: srv,
  445. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/DeletePageRule",
  446. }
  447. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  448. return srv.(ZoneCloudflareServer).DeletePageRule(ctx, req.(*DeletePageRuleRequestCloudflare))
  449. }
  450. return interceptor(ctx, in, info, handler)
  451. }
  452. func _ZoneCloudflare_UpdatePageRulesPriorities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  453. in := new(UpdatePageRulesPrioritiesRequestCloudflare)
  454. if err := dec(in); err != nil {
  455. return nil, err
  456. }
  457. if interceptor == nil {
  458. return srv.(ZoneCloudflareServer).UpdatePageRulesPriorities(ctx, in)
  459. }
  460. info := &grpc.UnaryServerInfo{
  461. Server: srv,
  462. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRulesPriorities",
  463. }
  464. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  465. return srv.(ZoneCloudflareServer).UpdatePageRulesPriorities(ctx, req.(*UpdatePageRulesPrioritiesRequestCloudflare))
  466. }
  467. return interceptor(ctx, in, info, handler)
  468. }
  469. func _ZoneCloudflare_UpdateRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  470. in := new(UpdateRuleSetRequestCloudflare)
  471. if err := dec(in); err != nil {
  472. return nil, err
  473. }
  474. if interceptor == nil {
  475. return srv.(ZoneCloudflareServer).UpdateRuleSet(ctx, in)
  476. }
  477. info := &grpc.UnaryServerInfo{
  478. Server: srv,
  479. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdateRuleSet",
  480. }
  481. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  482. return srv.(ZoneCloudflareServer).UpdateRuleSet(ctx, req.(*UpdateRuleSetRequestCloudflare))
  483. }
  484. return interceptor(ctx, in, info, handler)
  485. }
  486. func _ZoneCloudflare_GetRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  487. in := new(GetRuleSetRequestCloudflare)
  488. if err := dec(in); err != nil {
  489. return nil, err
  490. }
  491. if interceptor == nil {
  492. return srv.(ZoneCloudflareServer).GetRuleSet(ctx, in)
  493. }
  494. info := &grpc.UnaryServerInfo{
  495. Server: srv,
  496. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/GetRuleSet",
  497. }
  498. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  499. return srv.(ZoneCloudflareServer).GetRuleSet(ctx, req.(*GetRuleSetRequestCloudflare))
  500. }
  501. return interceptor(ctx, in, info, handler)
  502. }
  503. // ZoneCloudflare_ServiceDesc is the grpc.ServiceDesc for ZoneCloudflare service.
  504. // It's only intended for direct use with grpc.RegisterService,
  505. // and not to be introspected or modified (even as a copy)
  506. var ZoneCloudflare_ServiceDesc = grpc.ServiceDesc{
  507. ServiceName: "cloudflareApi.zone.ZoneCloudflare",
  508. HandlerType: (*ZoneCloudflareServer)(nil),
  509. Methods: []grpc.MethodDesc{
  510. {
  511. MethodName: "ZoneIDByNameCloudflare",
  512. Handler: _ZoneCloudflare_ZoneIDByNameCloudflare_Handler,
  513. },
  514. {
  515. MethodName: "ZoneDetails",
  516. Handler: _ZoneCloudflare_ZoneDetails_Handler,
  517. },
  518. {
  519. MethodName: "GetZones",
  520. Handler: _ZoneCloudflare_GetZones_Handler,
  521. },
  522. {
  523. MethodName: "EditZone",
  524. Handler: _ZoneCloudflare_EditZone_Handler,
  525. },
  526. {
  527. MethodName: "DeleteZone",
  528. Handler: _ZoneCloudflare_DeleteZone_Handler,
  529. },
  530. {
  531. MethodName: "ListZones",
  532. Handler: _ZoneCloudflare_ListZones_Handler,
  533. },
  534. {
  535. MethodName: "ListZonesByAccountId",
  536. Handler: _ZoneCloudflare_ListZonesByAccountId_Handler,
  537. },
  538. {
  539. MethodName: "ActivationCheck",
  540. Handler: _ZoneCloudflare_ActivationCheck_Handler,
  541. },
  542. {
  543. MethodName: "ListPageRule",
  544. Handler: _ZoneCloudflare_ListPageRule_Handler,
  545. },
  546. {
  547. MethodName: "CreatePageRule",
  548. Handler: _ZoneCloudflare_CreatePageRule_Handler,
  549. },
  550. {
  551. MethodName: "UpdatePageRule",
  552. Handler: _ZoneCloudflare_UpdatePageRule_Handler,
  553. },
  554. {
  555. MethodName: "DeletePageRule",
  556. Handler: _ZoneCloudflare_DeletePageRule_Handler,
  557. },
  558. {
  559. MethodName: "UpdatePageRulesPriorities",
  560. Handler: _ZoneCloudflare_UpdatePageRulesPriorities_Handler,
  561. },
  562. {
  563. MethodName: "UpdateRuleSet",
  564. Handler: _ZoneCloudflare_UpdateRuleSet_Handler,
  565. },
  566. {
  567. MethodName: "GetRuleSet",
  568. Handler: _ZoneCloudflare_GetRuleSet_Handler,
  569. },
  570. },
  571. Streams: []grpc.StreamDesc{},
  572. Metadata: "proto/zone.proto",
  573. }