// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.21.4 // source: proto/loadBalancer.proto package loadBalancer import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 // LoadBalancerCloudflareClient is the client API for LoadBalancerCloudflare service. // // 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. type LoadBalancerCloudflareClient interface { List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*LoadBalancerList, error) Create(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancer, error) Update(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancer, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error) } type loadBalancerCloudflareClient struct { cc grpc.ClientConnInterface } func NewLoadBalancerCloudflareClient(cc grpc.ClientConnInterface) LoadBalancerCloudflareClient { return &loadBalancerCloudflareClient{cc} } func (c *loadBalancerCloudflareClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*LoadBalancerList, error) { out := new(LoadBalancerList) err := c.cc.Invoke(ctx, "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/List", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *loadBalancerCloudflareClient) Create(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancer, error) { out := new(LoadBalancer) err := c.cc.Invoke(ctx, "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/Create", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *loadBalancerCloudflareClient) Update(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancer, error) { out := new(LoadBalancer) err := c.cc.Invoke(ctx, "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/Update", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *loadBalancerCloudflareClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/Delete", in, out, opts...) if err != nil { return nil, err } return out, nil } // LoadBalancerCloudflareServer is the server API for LoadBalancerCloudflare service. // All implementations must embed UnimplementedLoadBalancerCloudflareServer // for forward compatibility type LoadBalancerCloudflareServer interface { List(context.Context, *ListRequest) (*LoadBalancerList, error) Create(context.Context, *LoadBalancerRequest) (*LoadBalancer, error) Update(context.Context, *LoadBalancerRequest) (*LoadBalancer, error) Delete(context.Context, *DeleteRequest) (*Empty, error) mustEmbedUnimplementedLoadBalancerCloudflareServer() } // UnimplementedLoadBalancerCloudflareServer must be embedded to have forward compatible implementations. type UnimplementedLoadBalancerCloudflareServer struct { } func (UnimplementedLoadBalancerCloudflareServer) List(context.Context, *ListRequest) (*LoadBalancerList, error) { return nil, status.Errorf(codes.Unimplemented, "method List not implemented") } func (UnimplementedLoadBalancerCloudflareServer) Create(context.Context, *LoadBalancerRequest) (*LoadBalancer, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } func (UnimplementedLoadBalancerCloudflareServer) Update(context.Context, *LoadBalancerRequest) (*LoadBalancer, error) { return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") } func (UnimplementedLoadBalancerCloudflareServer) Delete(context.Context, *DeleteRequest) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (UnimplementedLoadBalancerCloudflareServer) mustEmbedUnimplementedLoadBalancerCloudflareServer() { } // UnsafeLoadBalancerCloudflareServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to LoadBalancerCloudflareServer will // result in compilation errors. type UnsafeLoadBalancerCloudflareServer interface { mustEmbedUnimplementedLoadBalancerCloudflareServer() } func RegisterLoadBalancerCloudflareServer(s grpc.ServiceRegistrar, srv LoadBalancerCloudflareServer) { s.RegisterService(&LoadBalancerCloudflare_ServiceDesc, srv) } func _LoadBalancerCloudflare_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LoadBalancerCloudflareServer).List(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoadBalancerCloudflareServer).List(ctx, req.(*ListRequest)) } return interceptor(ctx, in, info, handler) } func _LoadBalancerCloudflare_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LoadBalancerRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LoadBalancerCloudflareServer).Create(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoadBalancerCloudflareServer).Create(ctx, req.(*LoadBalancerRequest)) } return interceptor(ctx, in, info, handler) } func _LoadBalancerCloudflare_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LoadBalancerRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LoadBalancerCloudflareServer).Update(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/Update", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoadBalancerCloudflareServer).Update(ctx, req.(*LoadBalancerRequest)) } return interceptor(ctx, in, info, handler) } func _LoadBalancerCloudflare_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LoadBalancerCloudflareServer).Delete(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoadBalancerCloudflareServer).Delete(ctx, req.(*DeleteRequest)) } return interceptor(ctx, in, info, handler) } // LoadBalancerCloudflare_ServiceDesc is the grpc.ServiceDesc for LoadBalancerCloudflare service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var LoadBalancerCloudflare_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudflareApi.loadBalancer.LoadBalancerCloudflare", HandlerType: (*LoadBalancerCloudflareServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _LoadBalancerCloudflare_List_Handler, }, { MethodName: "Create", Handler: _LoadBalancerCloudflare_Create_Handler, }, { MethodName: "Update", Handler: _LoadBalancerCloudflare_Update_Handler, }, { MethodName: "Delete", Handler: _LoadBalancerCloudflare_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/loadBalancer.proto", }