loadBalancerPool_grpc.pb.go 10 KB

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