zone_grpc.pb.go 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  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.5
  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. //Argo Smart Routing Setting UR
  40. UpdateArgoSetting(ctx context.Context, in *UpdateArgoRequestCloudflare, opts ...grpc.CallOption) (*ArgoSetting, error)
  41. GetArgoSetting(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
  42. GetArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
  43. CreateArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
  44. }
  45. type zoneCloudflareClient struct {
  46. cc grpc.ClientConnInterface
  47. }
  48. func NewZoneCloudflareClient(cc grpc.ClientConnInterface) ZoneCloudflareClient {
  49. return &zoneCloudflareClient{cc}
  50. }
  51. func (c *zoneCloudflareClient) ZoneIDByNameCloudflare(ctx context.Context, in *ZoneIDByNameRequestCloudflare, opts ...grpc.CallOption) (*ZoneIDByNameReplyCloudflare, error) {
  52. out := new(ZoneIDByNameReplyCloudflare)
  53. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ZoneIDByNameCloudflare", in, out, opts...)
  54. if err != nil {
  55. return nil, err
  56. }
  57. return out, nil
  58. }
  59. func (c *zoneCloudflareClient) ZoneDetails(ctx context.Context, in *ZoneDetailsRequestCloudflare, opts ...grpc.CallOption) (*ZoneDetailsReplyCloudflare, error) {
  60. out := new(ZoneDetailsReplyCloudflare)
  61. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ZoneDetails", in, out, opts...)
  62. if err != nil {
  63. return nil, err
  64. }
  65. return out, nil
  66. }
  67. func (c *zoneCloudflareClient) GetZones(ctx context.Context, in *GetZonesRequestCloudflare, opts ...grpc.CallOption) (*GetZonesReplyCloudflare, error) {
  68. out := new(GetZonesReplyCloudflare)
  69. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/GetZones", in, out, opts...)
  70. if err != nil {
  71. return nil, err
  72. }
  73. return out, nil
  74. }
  75. func (c *zoneCloudflareClient) EditZone(ctx context.Context, in *EditZoneRequestCloudflare, opts ...grpc.CallOption) (*EditZoneReplyCloudflare, error) {
  76. out := new(EditZoneReplyCloudflare)
  77. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/EditZone", in, out, opts...)
  78. if err != nil {
  79. return nil, err
  80. }
  81. return out, nil
  82. }
  83. func (c *zoneCloudflareClient) DeleteZone(ctx context.Context, in *DeleteZoneRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneReplyCloudflare, error) {
  84. out := new(DeleteZoneReplyCloudflare)
  85. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/DeleteZone", in, out, opts...)
  86. if err != nil {
  87. return nil, err
  88. }
  89. return out, nil
  90. }
  91. func (c *zoneCloudflareClient) ListZones(ctx context.Context, in *ListZonesRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) {
  92. out := new(ZonesList)
  93. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ListZones", in, out, opts...)
  94. if err != nil {
  95. return nil, err
  96. }
  97. return out, nil
  98. }
  99. func (c *zoneCloudflareClient) ListZonesByAccountId(ctx context.Context, in *ListZonesByAccountIdRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) {
  100. out := new(ZonesList)
  101. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ListZonesByAccountId", in, out, opts...)
  102. if err != nil {
  103. return nil, err
  104. }
  105. return out, nil
  106. }
  107. func (c *zoneCloudflareClient) ActivationCheck(ctx context.Context, in *ActivationCheckRequestCloudflare, opts ...grpc.CallOption) (*ActivationCheckReplyCloudflare, error) {
  108. out := new(ActivationCheckReplyCloudflare)
  109. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ActivationCheck", in, out, opts...)
  110. if err != nil {
  111. return nil, err
  112. }
  113. return out, nil
  114. }
  115. func (c *zoneCloudflareClient) ListPageRule(ctx context.Context, in *ListPageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) {
  116. out := new(PageRuleList)
  117. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ListPageRule", in, out, opts...)
  118. if err != nil {
  119. return nil, err
  120. }
  121. return out, nil
  122. }
  123. func (c *zoneCloudflareClient) CreatePageRule(ctx context.Context, in *CreatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
  124. out := new(PageRule)
  125. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/CreatePageRule", in, out, opts...)
  126. if err != nil {
  127. return nil, err
  128. }
  129. return out, nil
  130. }
  131. func (c *zoneCloudflareClient) UpdatePageRule(ctx context.Context, in *UpdatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
  132. out := new(PageRule)
  133. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRule", in, out, opts...)
  134. if err != nil {
  135. return nil, err
  136. }
  137. return out, nil
  138. }
  139. func (c *zoneCloudflareClient) DeletePageRule(ctx context.Context, in *DeletePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) {
  140. out := new(PageRule)
  141. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/DeletePageRule", in, out, opts...)
  142. if err != nil {
  143. return nil, err
  144. }
  145. return out, nil
  146. }
  147. func (c *zoneCloudflareClient) UpdatePageRulesPriorities(ctx context.Context, in *UpdatePageRulesPrioritiesRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) {
  148. out := new(PageRuleList)
  149. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRulesPriorities", in, out, opts...)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return out, nil
  154. }
  155. func (c *zoneCloudflareClient) UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) {
  156. out := new(RuleList)
  157. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdateRuleSet", in, out, opts...)
  158. if err != nil {
  159. return nil, err
  160. }
  161. return out, nil
  162. }
  163. func (c *zoneCloudflareClient) GetRuleSet(ctx context.Context, in *GetRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) {
  164. out := new(RuleList)
  165. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/GetRuleSet", in, out, opts...)
  166. if err != nil {
  167. return nil, err
  168. }
  169. return out, nil
  170. }
  171. func (c *zoneCloudflareClient) UpdateArgoSetting(ctx context.Context, in *UpdateArgoRequestCloudflare, opts ...grpc.CallOption) (*ArgoSetting, error) {
  172. out := new(ArgoSetting)
  173. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdateArgoSetting", in, out, opts...)
  174. if err != nil {
  175. return nil, err
  176. }
  177. return out, nil
  178. }
  179. func (c *zoneCloudflareClient) GetArgoSetting(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
  180. out := new(ArgoSetting)
  181. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/GetArgoSetting", in, out, opts...)
  182. if err != nil {
  183. return nil, err
  184. }
  185. return out, nil
  186. }
  187. func (c *zoneCloudflareClient) GetArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
  188. out := new(ArgoSetting)
  189. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/GetArgoSettingSubscription", in, out, opts...)
  190. if err != nil {
  191. return nil, err
  192. }
  193. return out, nil
  194. }
  195. func (c *zoneCloudflareClient) CreateArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
  196. out := new(ArgoSetting)
  197. err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/CreateArgoSettingSubscription", in, out, opts...)
  198. if err != nil {
  199. return nil, err
  200. }
  201. return out, nil
  202. }
  203. // ZoneCloudflareServer is the server API for ZoneCloudflare service.
  204. // All implementations must embed UnimplementedZoneCloudflareServer
  205. // for forward compatibility
  206. type ZoneCloudflareServer interface {
  207. //Zone CURD
  208. ZoneIDByNameCloudflare(context.Context, *ZoneIDByNameRequestCloudflare) (*ZoneIDByNameReplyCloudflare, error)
  209. ZoneDetails(context.Context, *ZoneDetailsRequestCloudflare) (*ZoneDetailsReplyCloudflare, error)
  210. GetZones(context.Context, *GetZonesRequestCloudflare) (*GetZonesReplyCloudflare, error)
  211. EditZone(context.Context, *EditZoneRequestCloudflare) (*EditZoneReplyCloudflare, error)
  212. DeleteZone(context.Context, *DeleteZoneRequestCloudflare) (*DeleteZoneReplyCloudflare, error)
  213. ListZones(context.Context, *ListZonesRequestCloudflare) (*ZonesList, error)
  214. ListZonesByAccountId(context.Context, *ListZonesByAccountIdRequestCloudflare) (*ZonesList, error)
  215. ActivationCheck(context.Context, *ActivationCheckRequestCloudflare) (*ActivationCheckReplyCloudflare, error)
  216. //PageRule CURD
  217. ListPageRule(context.Context, *ListPageRuleRequestCloudflare) (*PageRuleList, error)
  218. CreatePageRule(context.Context, *CreatePageRuleRequestCloudflare) (*PageRule, error)
  219. UpdatePageRule(context.Context, *UpdatePageRuleRequestCloudflare) (*PageRule, error)
  220. DeletePageRule(context.Context, *DeletePageRuleRequestCloudflare) (*PageRule, error)
  221. UpdatePageRulesPriorities(context.Context, *UpdatePageRulesPrioritiesRequestCloudflare) (*PageRuleList, error)
  222. //RuleSet UR
  223. UpdateRuleSet(context.Context, *UpdateRuleSetRequestCloudflare) (*RuleList, error)
  224. GetRuleSet(context.Context, *GetRuleSetRequestCloudflare) (*RuleList, error)
  225. //Argo Smart Routing Setting UR
  226. UpdateArgoSetting(context.Context, *UpdateArgoRequestCloudflare) (*ArgoSetting, error)
  227. GetArgoSetting(context.Context, *IdRequest) (*ArgoSetting, error)
  228. GetArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error)
  229. CreateArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error)
  230. mustEmbedUnimplementedZoneCloudflareServer()
  231. }
  232. // UnimplementedZoneCloudflareServer must be embedded to have forward compatible implementations.
  233. type UnimplementedZoneCloudflareServer struct {
  234. }
  235. func (UnimplementedZoneCloudflareServer) ZoneIDByNameCloudflare(context.Context, *ZoneIDByNameRequestCloudflare) (*ZoneIDByNameReplyCloudflare, error) {
  236. return nil, status.Errorf(codes.Unimplemented, "method ZoneIDByNameCloudflare not implemented")
  237. }
  238. func (UnimplementedZoneCloudflareServer) ZoneDetails(context.Context, *ZoneDetailsRequestCloudflare) (*ZoneDetailsReplyCloudflare, error) {
  239. return nil, status.Errorf(codes.Unimplemented, "method ZoneDetails not implemented")
  240. }
  241. func (UnimplementedZoneCloudflareServer) GetZones(context.Context, *GetZonesRequestCloudflare) (*GetZonesReplyCloudflare, error) {
  242. return nil, status.Errorf(codes.Unimplemented, "method GetZones not implemented")
  243. }
  244. func (UnimplementedZoneCloudflareServer) EditZone(context.Context, *EditZoneRequestCloudflare) (*EditZoneReplyCloudflare, error) {
  245. return nil, status.Errorf(codes.Unimplemented, "method EditZone not implemented")
  246. }
  247. func (UnimplementedZoneCloudflareServer) DeleteZone(context.Context, *DeleteZoneRequestCloudflare) (*DeleteZoneReplyCloudflare, error) {
  248. return nil, status.Errorf(codes.Unimplemented, "method DeleteZone not implemented")
  249. }
  250. func (UnimplementedZoneCloudflareServer) ListZones(context.Context, *ListZonesRequestCloudflare) (*ZonesList, error) {
  251. return nil, status.Errorf(codes.Unimplemented, "method ListZones not implemented")
  252. }
  253. func (UnimplementedZoneCloudflareServer) ListZonesByAccountId(context.Context, *ListZonesByAccountIdRequestCloudflare) (*ZonesList, error) {
  254. return nil, status.Errorf(codes.Unimplemented, "method ListZonesByAccountId not implemented")
  255. }
  256. func (UnimplementedZoneCloudflareServer) ActivationCheck(context.Context, *ActivationCheckRequestCloudflare) (*ActivationCheckReplyCloudflare, error) {
  257. return nil, status.Errorf(codes.Unimplemented, "method ActivationCheck not implemented")
  258. }
  259. func (UnimplementedZoneCloudflareServer) ListPageRule(context.Context, *ListPageRuleRequestCloudflare) (*PageRuleList, error) {
  260. return nil, status.Errorf(codes.Unimplemented, "method ListPageRule not implemented")
  261. }
  262. func (UnimplementedZoneCloudflareServer) CreatePageRule(context.Context, *CreatePageRuleRequestCloudflare) (*PageRule, error) {
  263. return nil, status.Errorf(codes.Unimplemented, "method CreatePageRule not implemented")
  264. }
  265. func (UnimplementedZoneCloudflareServer) UpdatePageRule(context.Context, *UpdatePageRuleRequestCloudflare) (*PageRule, error) {
  266. return nil, status.Errorf(codes.Unimplemented, "method UpdatePageRule not implemented")
  267. }
  268. func (UnimplementedZoneCloudflareServer) DeletePageRule(context.Context, *DeletePageRuleRequestCloudflare) (*PageRule, error) {
  269. return nil, status.Errorf(codes.Unimplemented, "method DeletePageRule not implemented")
  270. }
  271. func (UnimplementedZoneCloudflareServer) UpdatePageRulesPriorities(context.Context, *UpdatePageRulesPrioritiesRequestCloudflare) (*PageRuleList, error) {
  272. return nil, status.Errorf(codes.Unimplemented, "method UpdatePageRulesPriorities not implemented")
  273. }
  274. func (UnimplementedZoneCloudflareServer) UpdateRuleSet(context.Context, *UpdateRuleSetRequestCloudflare) (*RuleList, error) {
  275. return nil, status.Errorf(codes.Unimplemented, "method UpdateRuleSet not implemented")
  276. }
  277. func (UnimplementedZoneCloudflareServer) GetRuleSet(context.Context, *GetRuleSetRequestCloudflare) (*RuleList, error) {
  278. return nil, status.Errorf(codes.Unimplemented, "method GetRuleSet not implemented")
  279. }
  280. func (UnimplementedZoneCloudflareServer) UpdateArgoSetting(context.Context, *UpdateArgoRequestCloudflare) (*ArgoSetting, error) {
  281. return nil, status.Errorf(codes.Unimplemented, "method UpdateArgoSetting not implemented")
  282. }
  283. func (UnimplementedZoneCloudflareServer) GetArgoSetting(context.Context, *IdRequest) (*ArgoSetting, error) {
  284. return nil, status.Errorf(codes.Unimplemented, "method GetArgoSetting not implemented")
  285. }
  286. func (UnimplementedZoneCloudflareServer) GetArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error) {
  287. return nil, status.Errorf(codes.Unimplemented, "method GetArgoSettingSubscription not implemented")
  288. }
  289. func (UnimplementedZoneCloudflareServer) CreateArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error) {
  290. return nil, status.Errorf(codes.Unimplemented, "method CreateArgoSettingSubscription not implemented")
  291. }
  292. func (UnimplementedZoneCloudflareServer) mustEmbedUnimplementedZoneCloudflareServer() {}
  293. // UnsafeZoneCloudflareServer may be embedded to opt out of forward compatibility for this service.
  294. // Use of this interface is not recommended, as added methods to ZoneCloudflareServer will
  295. // result in compilation errors.
  296. type UnsafeZoneCloudflareServer interface {
  297. mustEmbedUnimplementedZoneCloudflareServer()
  298. }
  299. func RegisterZoneCloudflareServer(s grpc.ServiceRegistrar, srv ZoneCloudflareServer) {
  300. s.RegisterService(&ZoneCloudflare_ServiceDesc, srv)
  301. }
  302. func _ZoneCloudflare_ZoneIDByNameCloudflare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  303. in := new(ZoneIDByNameRequestCloudflare)
  304. if err := dec(in); err != nil {
  305. return nil, err
  306. }
  307. if interceptor == nil {
  308. return srv.(ZoneCloudflareServer).ZoneIDByNameCloudflare(ctx, in)
  309. }
  310. info := &grpc.UnaryServerInfo{
  311. Server: srv,
  312. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ZoneIDByNameCloudflare",
  313. }
  314. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  315. return srv.(ZoneCloudflareServer).ZoneIDByNameCloudflare(ctx, req.(*ZoneIDByNameRequestCloudflare))
  316. }
  317. return interceptor(ctx, in, info, handler)
  318. }
  319. func _ZoneCloudflare_ZoneDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  320. in := new(ZoneDetailsRequestCloudflare)
  321. if err := dec(in); err != nil {
  322. return nil, err
  323. }
  324. if interceptor == nil {
  325. return srv.(ZoneCloudflareServer).ZoneDetails(ctx, in)
  326. }
  327. info := &grpc.UnaryServerInfo{
  328. Server: srv,
  329. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ZoneDetails",
  330. }
  331. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  332. return srv.(ZoneCloudflareServer).ZoneDetails(ctx, req.(*ZoneDetailsRequestCloudflare))
  333. }
  334. return interceptor(ctx, in, info, handler)
  335. }
  336. func _ZoneCloudflare_GetZones_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  337. in := new(GetZonesRequestCloudflare)
  338. if err := dec(in); err != nil {
  339. return nil, err
  340. }
  341. if interceptor == nil {
  342. return srv.(ZoneCloudflareServer).GetZones(ctx, in)
  343. }
  344. info := &grpc.UnaryServerInfo{
  345. Server: srv,
  346. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/GetZones",
  347. }
  348. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  349. return srv.(ZoneCloudflareServer).GetZones(ctx, req.(*GetZonesRequestCloudflare))
  350. }
  351. return interceptor(ctx, in, info, handler)
  352. }
  353. func _ZoneCloudflare_EditZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  354. in := new(EditZoneRequestCloudflare)
  355. if err := dec(in); err != nil {
  356. return nil, err
  357. }
  358. if interceptor == nil {
  359. return srv.(ZoneCloudflareServer).EditZone(ctx, in)
  360. }
  361. info := &grpc.UnaryServerInfo{
  362. Server: srv,
  363. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/EditZone",
  364. }
  365. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  366. return srv.(ZoneCloudflareServer).EditZone(ctx, req.(*EditZoneRequestCloudflare))
  367. }
  368. return interceptor(ctx, in, info, handler)
  369. }
  370. func _ZoneCloudflare_DeleteZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  371. in := new(DeleteZoneRequestCloudflare)
  372. if err := dec(in); err != nil {
  373. return nil, err
  374. }
  375. if interceptor == nil {
  376. return srv.(ZoneCloudflareServer).DeleteZone(ctx, in)
  377. }
  378. info := &grpc.UnaryServerInfo{
  379. Server: srv,
  380. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/DeleteZone",
  381. }
  382. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  383. return srv.(ZoneCloudflareServer).DeleteZone(ctx, req.(*DeleteZoneRequestCloudflare))
  384. }
  385. return interceptor(ctx, in, info, handler)
  386. }
  387. func _ZoneCloudflare_ListZones_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  388. in := new(ListZonesRequestCloudflare)
  389. if err := dec(in); err != nil {
  390. return nil, err
  391. }
  392. if interceptor == nil {
  393. return srv.(ZoneCloudflareServer).ListZones(ctx, in)
  394. }
  395. info := &grpc.UnaryServerInfo{
  396. Server: srv,
  397. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ListZones",
  398. }
  399. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  400. return srv.(ZoneCloudflareServer).ListZones(ctx, req.(*ListZonesRequestCloudflare))
  401. }
  402. return interceptor(ctx, in, info, handler)
  403. }
  404. func _ZoneCloudflare_ListZonesByAccountId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  405. in := new(ListZonesByAccountIdRequestCloudflare)
  406. if err := dec(in); err != nil {
  407. return nil, err
  408. }
  409. if interceptor == nil {
  410. return srv.(ZoneCloudflareServer).ListZonesByAccountId(ctx, in)
  411. }
  412. info := &grpc.UnaryServerInfo{
  413. Server: srv,
  414. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ListZonesByAccountId",
  415. }
  416. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  417. return srv.(ZoneCloudflareServer).ListZonesByAccountId(ctx, req.(*ListZonesByAccountIdRequestCloudflare))
  418. }
  419. return interceptor(ctx, in, info, handler)
  420. }
  421. func _ZoneCloudflare_ActivationCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  422. in := new(ActivationCheckRequestCloudflare)
  423. if err := dec(in); err != nil {
  424. return nil, err
  425. }
  426. if interceptor == nil {
  427. return srv.(ZoneCloudflareServer).ActivationCheck(ctx, in)
  428. }
  429. info := &grpc.UnaryServerInfo{
  430. Server: srv,
  431. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ActivationCheck",
  432. }
  433. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  434. return srv.(ZoneCloudflareServer).ActivationCheck(ctx, req.(*ActivationCheckRequestCloudflare))
  435. }
  436. return interceptor(ctx, in, info, handler)
  437. }
  438. func _ZoneCloudflare_ListPageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  439. in := new(ListPageRuleRequestCloudflare)
  440. if err := dec(in); err != nil {
  441. return nil, err
  442. }
  443. if interceptor == nil {
  444. return srv.(ZoneCloudflareServer).ListPageRule(ctx, in)
  445. }
  446. info := &grpc.UnaryServerInfo{
  447. Server: srv,
  448. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ListPageRule",
  449. }
  450. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  451. return srv.(ZoneCloudflareServer).ListPageRule(ctx, req.(*ListPageRuleRequestCloudflare))
  452. }
  453. return interceptor(ctx, in, info, handler)
  454. }
  455. func _ZoneCloudflare_CreatePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  456. in := new(CreatePageRuleRequestCloudflare)
  457. if err := dec(in); err != nil {
  458. return nil, err
  459. }
  460. if interceptor == nil {
  461. return srv.(ZoneCloudflareServer).CreatePageRule(ctx, in)
  462. }
  463. info := &grpc.UnaryServerInfo{
  464. Server: srv,
  465. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/CreatePageRule",
  466. }
  467. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  468. return srv.(ZoneCloudflareServer).CreatePageRule(ctx, req.(*CreatePageRuleRequestCloudflare))
  469. }
  470. return interceptor(ctx, in, info, handler)
  471. }
  472. func _ZoneCloudflare_UpdatePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  473. in := new(UpdatePageRuleRequestCloudflare)
  474. if err := dec(in); err != nil {
  475. return nil, err
  476. }
  477. if interceptor == nil {
  478. return srv.(ZoneCloudflareServer).UpdatePageRule(ctx, in)
  479. }
  480. info := &grpc.UnaryServerInfo{
  481. Server: srv,
  482. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRule",
  483. }
  484. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  485. return srv.(ZoneCloudflareServer).UpdatePageRule(ctx, req.(*UpdatePageRuleRequestCloudflare))
  486. }
  487. return interceptor(ctx, in, info, handler)
  488. }
  489. func _ZoneCloudflare_DeletePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  490. in := new(DeletePageRuleRequestCloudflare)
  491. if err := dec(in); err != nil {
  492. return nil, err
  493. }
  494. if interceptor == nil {
  495. return srv.(ZoneCloudflareServer).DeletePageRule(ctx, in)
  496. }
  497. info := &grpc.UnaryServerInfo{
  498. Server: srv,
  499. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/DeletePageRule",
  500. }
  501. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  502. return srv.(ZoneCloudflareServer).DeletePageRule(ctx, req.(*DeletePageRuleRequestCloudflare))
  503. }
  504. return interceptor(ctx, in, info, handler)
  505. }
  506. func _ZoneCloudflare_UpdatePageRulesPriorities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  507. in := new(UpdatePageRulesPrioritiesRequestCloudflare)
  508. if err := dec(in); err != nil {
  509. return nil, err
  510. }
  511. if interceptor == nil {
  512. return srv.(ZoneCloudflareServer).UpdatePageRulesPriorities(ctx, in)
  513. }
  514. info := &grpc.UnaryServerInfo{
  515. Server: srv,
  516. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRulesPriorities",
  517. }
  518. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  519. return srv.(ZoneCloudflareServer).UpdatePageRulesPriorities(ctx, req.(*UpdatePageRulesPrioritiesRequestCloudflare))
  520. }
  521. return interceptor(ctx, in, info, handler)
  522. }
  523. func _ZoneCloudflare_UpdateRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  524. in := new(UpdateRuleSetRequestCloudflare)
  525. if err := dec(in); err != nil {
  526. return nil, err
  527. }
  528. if interceptor == nil {
  529. return srv.(ZoneCloudflareServer).UpdateRuleSet(ctx, in)
  530. }
  531. info := &grpc.UnaryServerInfo{
  532. Server: srv,
  533. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdateRuleSet",
  534. }
  535. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  536. return srv.(ZoneCloudflareServer).UpdateRuleSet(ctx, req.(*UpdateRuleSetRequestCloudflare))
  537. }
  538. return interceptor(ctx, in, info, handler)
  539. }
  540. func _ZoneCloudflare_GetRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  541. in := new(GetRuleSetRequestCloudflare)
  542. if err := dec(in); err != nil {
  543. return nil, err
  544. }
  545. if interceptor == nil {
  546. return srv.(ZoneCloudflareServer).GetRuleSet(ctx, in)
  547. }
  548. info := &grpc.UnaryServerInfo{
  549. Server: srv,
  550. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/GetRuleSet",
  551. }
  552. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  553. return srv.(ZoneCloudflareServer).GetRuleSet(ctx, req.(*GetRuleSetRequestCloudflare))
  554. }
  555. return interceptor(ctx, in, info, handler)
  556. }
  557. func _ZoneCloudflare_UpdateArgoSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  558. in := new(UpdateArgoRequestCloudflare)
  559. if err := dec(in); err != nil {
  560. return nil, err
  561. }
  562. if interceptor == nil {
  563. return srv.(ZoneCloudflareServer).UpdateArgoSetting(ctx, in)
  564. }
  565. info := &grpc.UnaryServerInfo{
  566. Server: srv,
  567. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdateArgoSetting",
  568. }
  569. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  570. return srv.(ZoneCloudflareServer).UpdateArgoSetting(ctx, req.(*UpdateArgoRequestCloudflare))
  571. }
  572. return interceptor(ctx, in, info, handler)
  573. }
  574. func _ZoneCloudflare_GetArgoSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  575. in := new(IdRequest)
  576. if err := dec(in); err != nil {
  577. return nil, err
  578. }
  579. if interceptor == nil {
  580. return srv.(ZoneCloudflareServer).GetArgoSetting(ctx, in)
  581. }
  582. info := &grpc.UnaryServerInfo{
  583. Server: srv,
  584. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/GetArgoSetting",
  585. }
  586. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  587. return srv.(ZoneCloudflareServer).GetArgoSetting(ctx, req.(*IdRequest))
  588. }
  589. return interceptor(ctx, in, info, handler)
  590. }
  591. func _ZoneCloudflare_GetArgoSettingSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  592. in := new(IdRequest)
  593. if err := dec(in); err != nil {
  594. return nil, err
  595. }
  596. if interceptor == nil {
  597. return srv.(ZoneCloudflareServer).GetArgoSettingSubscription(ctx, in)
  598. }
  599. info := &grpc.UnaryServerInfo{
  600. Server: srv,
  601. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/GetArgoSettingSubscription",
  602. }
  603. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  604. return srv.(ZoneCloudflareServer).GetArgoSettingSubscription(ctx, req.(*IdRequest))
  605. }
  606. return interceptor(ctx, in, info, handler)
  607. }
  608. func _ZoneCloudflare_CreateArgoSettingSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  609. in := new(IdRequest)
  610. if err := dec(in); err != nil {
  611. return nil, err
  612. }
  613. if interceptor == nil {
  614. return srv.(ZoneCloudflareServer).CreateArgoSettingSubscription(ctx, in)
  615. }
  616. info := &grpc.UnaryServerInfo{
  617. Server: srv,
  618. FullMethod: "/cloudflareApi.zone.ZoneCloudflare/CreateArgoSettingSubscription",
  619. }
  620. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  621. return srv.(ZoneCloudflareServer).CreateArgoSettingSubscription(ctx, req.(*IdRequest))
  622. }
  623. return interceptor(ctx, in, info, handler)
  624. }
  625. // ZoneCloudflare_ServiceDesc is the grpc.ServiceDesc for ZoneCloudflare service.
  626. // It's only intended for direct use with grpc.RegisterService,
  627. // and not to be introspected or modified (even as a copy)
  628. var ZoneCloudflare_ServiceDesc = grpc.ServiceDesc{
  629. ServiceName: "cloudflareApi.zone.ZoneCloudflare",
  630. HandlerType: (*ZoneCloudflareServer)(nil),
  631. Methods: []grpc.MethodDesc{
  632. {
  633. MethodName: "ZoneIDByNameCloudflare",
  634. Handler: _ZoneCloudflare_ZoneIDByNameCloudflare_Handler,
  635. },
  636. {
  637. MethodName: "ZoneDetails",
  638. Handler: _ZoneCloudflare_ZoneDetails_Handler,
  639. },
  640. {
  641. MethodName: "GetZones",
  642. Handler: _ZoneCloudflare_GetZones_Handler,
  643. },
  644. {
  645. MethodName: "EditZone",
  646. Handler: _ZoneCloudflare_EditZone_Handler,
  647. },
  648. {
  649. MethodName: "DeleteZone",
  650. Handler: _ZoneCloudflare_DeleteZone_Handler,
  651. },
  652. {
  653. MethodName: "ListZones",
  654. Handler: _ZoneCloudflare_ListZones_Handler,
  655. },
  656. {
  657. MethodName: "ListZonesByAccountId",
  658. Handler: _ZoneCloudflare_ListZonesByAccountId_Handler,
  659. },
  660. {
  661. MethodName: "ActivationCheck",
  662. Handler: _ZoneCloudflare_ActivationCheck_Handler,
  663. },
  664. {
  665. MethodName: "ListPageRule",
  666. Handler: _ZoneCloudflare_ListPageRule_Handler,
  667. },
  668. {
  669. MethodName: "CreatePageRule",
  670. Handler: _ZoneCloudflare_CreatePageRule_Handler,
  671. },
  672. {
  673. MethodName: "UpdatePageRule",
  674. Handler: _ZoneCloudflare_UpdatePageRule_Handler,
  675. },
  676. {
  677. MethodName: "DeletePageRule",
  678. Handler: _ZoneCloudflare_DeletePageRule_Handler,
  679. },
  680. {
  681. MethodName: "UpdatePageRulesPriorities",
  682. Handler: _ZoneCloudflare_UpdatePageRulesPriorities_Handler,
  683. },
  684. {
  685. MethodName: "UpdateRuleSet",
  686. Handler: _ZoneCloudflare_UpdateRuleSet_Handler,
  687. },
  688. {
  689. MethodName: "GetRuleSet",
  690. Handler: _ZoneCloudflare_GetRuleSet_Handler,
  691. },
  692. {
  693. MethodName: "UpdateArgoSetting",
  694. Handler: _ZoneCloudflare_UpdateArgoSetting_Handler,
  695. },
  696. {
  697. MethodName: "GetArgoSetting",
  698. Handler: _ZoneCloudflare_GetArgoSetting_Handler,
  699. },
  700. {
  701. MethodName: "GetArgoSettingSubscription",
  702. Handler: _ZoneCloudflare_GetArgoSettingSubscription_Handler,
  703. },
  704. {
  705. MethodName: "CreateArgoSettingSubscription",
  706. Handler: _ZoneCloudflare_CreateArgoSettingSubscription_Handler,
  707. },
  708. },
  709. Streams: []grpc.StreamDesc{},
  710. Metadata: "proto/zone.proto",
  711. }