loadBalancerPool_grpc.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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/loadBalancerPool.proto
  6. package loadBalancerPool
  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. // LoadBalancerPoolCloudflareClient is the client API for LoadBalancerPoolCloudflare 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 LoadBalancerPoolCloudflareClient interface {
  21. List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*LoadBalancerPoolList, error)
  22. Create(ctx context.Context, in *LoadBalancerPoolRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error)
  23. Update(ctx context.Context, in *LoadBalancerPoolRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error)
  24. Delete(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Empty, error)
  25. Get(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error)
  26. }
  27. type loadBalancerPoolCloudflareClient struct {
  28. cc grpc.ClientConnInterface
  29. }
  30. func NewLoadBalancerPoolCloudflareClient(cc grpc.ClientConnInterface) LoadBalancerPoolCloudflareClient {
  31. return &loadBalancerPoolCloudflareClient{cc}
  32. }
  33. func (c *loadBalancerPoolCloudflareClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*LoadBalancerPoolList, error) {
  34. out := new(LoadBalancerPoolList)
  35. err := c.cc.Invoke(ctx, "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/List", in, out, opts...)
  36. if err != nil {
  37. return nil, err
  38. }
  39. return out, nil
  40. }
  41. func (c *loadBalancerPoolCloudflareClient) Create(ctx context.Context, in *LoadBalancerPoolRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error) {
  42. out := new(LoadBalancerPool)
  43. err := c.cc.Invoke(ctx, "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Create", in, out, opts...)
  44. if err != nil {
  45. return nil, err
  46. }
  47. return out, nil
  48. }
  49. func (c *loadBalancerPoolCloudflareClient) Update(ctx context.Context, in *LoadBalancerPoolRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error) {
  50. out := new(LoadBalancerPool)
  51. err := c.cc.Invoke(ctx, "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Update", in, out, opts...)
  52. if err != nil {
  53. return nil, err
  54. }
  55. return out, nil
  56. }
  57. func (c *loadBalancerPoolCloudflareClient) Delete(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Empty, error) {
  58. out := new(Empty)
  59. err := c.cc.Invoke(ctx, "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Delete", in, out, opts...)
  60. if err != nil {
  61. return nil, err
  62. }
  63. return out, nil
  64. }
  65. func (c *loadBalancerPoolCloudflareClient) Get(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error) {
  66. out := new(LoadBalancerPool)
  67. err := c.cc.Invoke(ctx, "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Get", in, out, opts...)
  68. if err != nil {
  69. return nil, err
  70. }
  71. return out, nil
  72. }
  73. // LoadBalancerPoolCloudflareServer is the server API for LoadBalancerPoolCloudflare service.
  74. // All implementations must embed UnimplementedLoadBalancerPoolCloudflareServer
  75. // for forward compatibility
  76. type LoadBalancerPoolCloudflareServer interface {
  77. List(context.Context, *ListRequest) (*LoadBalancerPoolList, error)
  78. Create(context.Context, *LoadBalancerPoolRequest) (*LoadBalancerPool, error)
  79. Update(context.Context, *LoadBalancerPoolRequest) (*LoadBalancerPool, error)
  80. Delete(context.Context, *IdRequest) (*Empty, error)
  81. Get(context.Context, *IdRequest) (*LoadBalancerPool, error)
  82. mustEmbedUnimplementedLoadBalancerPoolCloudflareServer()
  83. }
  84. // UnimplementedLoadBalancerPoolCloudflareServer must be embedded to have forward compatible implementations.
  85. type UnimplementedLoadBalancerPoolCloudflareServer struct {
  86. }
  87. func (UnimplementedLoadBalancerPoolCloudflareServer) List(context.Context, *ListRequest) (*LoadBalancerPoolList, error) {
  88. return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
  89. }
  90. func (UnimplementedLoadBalancerPoolCloudflareServer) Create(context.Context, *LoadBalancerPoolRequest) (*LoadBalancerPool, error) {
  91. return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
  92. }
  93. func (UnimplementedLoadBalancerPoolCloudflareServer) Update(context.Context, *LoadBalancerPoolRequest) (*LoadBalancerPool, error) {
  94. return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
  95. }
  96. func (UnimplementedLoadBalancerPoolCloudflareServer) Delete(context.Context, *IdRequest) (*Empty, error) {
  97. return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
  98. }
  99. func (UnimplementedLoadBalancerPoolCloudflareServer) Get(context.Context, *IdRequest) (*LoadBalancerPool, error) {
  100. return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
  101. }
  102. func (UnimplementedLoadBalancerPoolCloudflareServer) mustEmbedUnimplementedLoadBalancerPoolCloudflareServer() {
  103. }
  104. // UnsafeLoadBalancerPoolCloudflareServer may be embedded to opt out of forward compatibility for this service.
  105. // Use of this interface is not recommended, as added methods to LoadBalancerPoolCloudflareServer will
  106. // result in compilation errors.
  107. type UnsafeLoadBalancerPoolCloudflareServer interface {
  108. mustEmbedUnimplementedLoadBalancerPoolCloudflareServer()
  109. }
  110. func RegisterLoadBalancerPoolCloudflareServer(s grpc.ServiceRegistrar, srv LoadBalancerPoolCloudflareServer) {
  111. s.RegisterService(&LoadBalancerPoolCloudflare_ServiceDesc, srv)
  112. }
  113. func _LoadBalancerPoolCloudflare_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  114. in := new(ListRequest)
  115. if err := dec(in); err != nil {
  116. return nil, err
  117. }
  118. if interceptor == nil {
  119. return srv.(LoadBalancerPoolCloudflareServer).List(ctx, in)
  120. }
  121. info := &grpc.UnaryServerInfo{
  122. Server: srv,
  123. FullMethod: "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/List",
  124. }
  125. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  126. return srv.(LoadBalancerPoolCloudflareServer).List(ctx, req.(*ListRequest))
  127. }
  128. return interceptor(ctx, in, info, handler)
  129. }
  130. func _LoadBalancerPoolCloudflare_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  131. in := new(LoadBalancerPoolRequest)
  132. if err := dec(in); err != nil {
  133. return nil, err
  134. }
  135. if interceptor == nil {
  136. return srv.(LoadBalancerPoolCloudflareServer).Create(ctx, in)
  137. }
  138. info := &grpc.UnaryServerInfo{
  139. Server: srv,
  140. FullMethod: "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Create",
  141. }
  142. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  143. return srv.(LoadBalancerPoolCloudflareServer).Create(ctx, req.(*LoadBalancerPoolRequest))
  144. }
  145. return interceptor(ctx, in, info, handler)
  146. }
  147. func _LoadBalancerPoolCloudflare_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  148. in := new(LoadBalancerPoolRequest)
  149. if err := dec(in); err != nil {
  150. return nil, err
  151. }
  152. if interceptor == nil {
  153. return srv.(LoadBalancerPoolCloudflareServer).Update(ctx, in)
  154. }
  155. info := &grpc.UnaryServerInfo{
  156. Server: srv,
  157. FullMethod: "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Update",
  158. }
  159. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  160. return srv.(LoadBalancerPoolCloudflareServer).Update(ctx, req.(*LoadBalancerPoolRequest))
  161. }
  162. return interceptor(ctx, in, info, handler)
  163. }
  164. func _LoadBalancerPoolCloudflare_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  165. in := new(IdRequest)
  166. if err := dec(in); err != nil {
  167. return nil, err
  168. }
  169. if interceptor == nil {
  170. return srv.(LoadBalancerPoolCloudflareServer).Delete(ctx, in)
  171. }
  172. info := &grpc.UnaryServerInfo{
  173. Server: srv,
  174. FullMethod: "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Delete",
  175. }
  176. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  177. return srv.(LoadBalancerPoolCloudflareServer).Delete(ctx, req.(*IdRequest))
  178. }
  179. return interceptor(ctx, in, info, handler)
  180. }
  181. func _LoadBalancerPoolCloudflare_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  182. in := new(IdRequest)
  183. if err := dec(in); err != nil {
  184. return nil, err
  185. }
  186. if interceptor == nil {
  187. return srv.(LoadBalancerPoolCloudflareServer).Get(ctx, in)
  188. }
  189. info := &grpc.UnaryServerInfo{
  190. Server: srv,
  191. FullMethod: "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Get",
  192. }
  193. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  194. return srv.(LoadBalancerPoolCloudflareServer).Get(ctx, req.(*IdRequest))
  195. }
  196. return interceptor(ctx, in, info, handler)
  197. }
  198. // LoadBalancerPoolCloudflare_ServiceDesc is the grpc.ServiceDesc for LoadBalancerPoolCloudflare service.
  199. // It's only intended for direct use with grpc.RegisterService,
  200. // and not to be introspected or modified (even as a copy)
  201. var LoadBalancerPoolCloudflare_ServiceDesc = grpc.ServiceDesc{
  202. ServiceName: "cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare",
  203. HandlerType: (*LoadBalancerPoolCloudflareServer)(nil),
  204. Methods: []grpc.MethodDesc{
  205. {
  206. MethodName: "List",
  207. Handler: _LoadBalancerPoolCloudflare_List_Handler,
  208. },
  209. {
  210. MethodName: "Create",
  211. Handler: _LoadBalancerPoolCloudflare_Create_Handler,
  212. },
  213. {
  214. MethodName: "Update",
  215. Handler: _LoadBalancerPoolCloudflare_Update_Handler,
  216. },
  217. {
  218. MethodName: "Delete",
  219. Handler: _LoadBalancerPoolCloudflare_Delete_Handler,
  220. },
  221. {
  222. MethodName: "Get",
  223. Handler: _LoadBalancerPoolCloudflare_Get_Handler,
  224. },
  225. },
  226. Streams: []grpc.StreamDesc{},
  227. Metadata: "proto/loadBalancerPool.proto",
  228. }