// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v3.20.1 // source: proto/loadBalancerPool.proto package loadBalancerPool 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 const ( LoadBalancerPoolCloudflare_List_FullMethodName = "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/List" LoadBalancerPoolCloudflare_Create_FullMethodName = "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Create" LoadBalancerPoolCloudflare_Update_FullMethodName = "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Update" LoadBalancerPoolCloudflare_Delete_FullMethodName = "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Delete" LoadBalancerPoolCloudflare_Get_FullMethodName = "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Get" ) // LoadBalancerPoolCloudflareClient is the client API for LoadBalancerPoolCloudflare 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 LoadBalancerPoolCloudflareClient interface { List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*LoadBalancerPoolList, error) Create(ctx context.Context, in *LoadBalancerPoolRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error) Update(ctx context.Context, in *LoadBalancerPoolRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error) Delete(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Empty, error) Get(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error) } type loadBalancerPoolCloudflareClient struct { cc grpc.ClientConnInterface } func NewLoadBalancerPoolCloudflareClient(cc grpc.ClientConnInterface) LoadBalancerPoolCloudflareClient { return &loadBalancerPoolCloudflareClient{cc} } func (c *loadBalancerPoolCloudflareClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*LoadBalancerPoolList, error) { out := new(LoadBalancerPoolList) err := c.cc.Invoke(ctx, LoadBalancerPoolCloudflare_List_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *loadBalancerPoolCloudflareClient) Create(ctx context.Context, in *LoadBalancerPoolRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error) { out := new(LoadBalancerPool) err := c.cc.Invoke(ctx, LoadBalancerPoolCloudflare_Create_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *loadBalancerPoolCloudflareClient) Update(ctx context.Context, in *LoadBalancerPoolRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error) { out := new(LoadBalancerPool) err := c.cc.Invoke(ctx, LoadBalancerPoolCloudflare_Update_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *loadBalancerPoolCloudflareClient) Delete(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, LoadBalancerPoolCloudflare_Delete_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *loadBalancerPoolCloudflareClient) Get(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*LoadBalancerPool, error) { out := new(LoadBalancerPool) err := c.cc.Invoke(ctx, LoadBalancerPoolCloudflare_Get_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // LoadBalancerPoolCloudflareServer is the server API for LoadBalancerPoolCloudflare service. // All implementations must embed UnimplementedLoadBalancerPoolCloudflareServer // for forward compatibility type LoadBalancerPoolCloudflareServer interface { List(context.Context, *ListRequest) (*LoadBalancerPoolList, error) Create(context.Context, *LoadBalancerPoolRequest) (*LoadBalancerPool, error) Update(context.Context, *LoadBalancerPoolRequest) (*LoadBalancerPool, error) Delete(context.Context, *IdRequest) (*Empty, error) Get(context.Context, *IdRequest) (*LoadBalancerPool, error) mustEmbedUnimplementedLoadBalancerPoolCloudflareServer() } // UnimplementedLoadBalancerPoolCloudflareServer must be embedded to have forward compatible implementations. type UnimplementedLoadBalancerPoolCloudflareServer struct { } func (UnimplementedLoadBalancerPoolCloudflareServer) List(context.Context, *ListRequest) (*LoadBalancerPoolList, error) { return nil, status.Errorf(codes.Unimplemented, "method List not implemented") } func (UnimplementedLoadBalancerPoolCloudflareServer) Create(context.Context, *LoadBalancerPoolRequest) (*LoadBalancerPool, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } func (UnimplementedLoadBalancerPoolCloudflareServer) Update(context.Context, *LoadBalancerPoolRequest) (*LoadBalancerPool, error) { return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") } func (UnimplementedLoadBalancerPoolCloudflareServer) Delete(context.Context, *IdRequest) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (UnimplementedLoadBalancerPoolCloudflareServer) Get(context.Context, *IdRequest) (*LoadBalancerPool, error) { return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") } func (UnimplementedLoadBalancerPoolCloudflareServer) mustEmbedUnimplementedLoadBalancerPoolCloudflareServer() { } // UnsafeLoadBalancerPoolCloudflareServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to LoadBalancerPoolCloudflareServer will // result in compilation errors. type UnsafeLoadBalancerPoolCloudflareServer interface { mustEmbedUnimplementedLoadBalancerPoolCloudflareServer() } func RegisterLoadBalancerPoolCloudflareServer(s grpc.ServiceRegistrar, srv LoadBalancerPoolCloudflareServer) { s.RegisterService(&LoadBalancerPoolCloudflare_ServiceDesc, srv) } func _LoadBalancerPoolCloudflare_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.(LoadBalancerPoolCloudflareServer).List(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: LoadBalancerPoolCloudflare_List_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoadBalancerPoolCloudflareServer).List(ctx, req.(*ListRequest)) } return interceptor(ctx, in, info, handler) } func _LoadBalancerPoolCloudflare_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LoadBalancerPoolRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LoadBalancerPoolCloudflareServer).Create(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: LoadBalancerPoolCloudflare_Create_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoadBalancerPoolCloudflareServer).Create(ctx, req.(*LoadBalancerPoolRequest)) } return interceptor(ctx, in, info, handler) } func _LoadBalancerPoolCloudflare_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LoadBalancerPoolRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LoadBalancerPoolCloudflareServer).Update(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: LoadBalancerPoolCloudflare_Update_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoadBalancerPoolCloudflareServer).Update(ctx, req.(*LoadBalancerPoolRequest)) } return interceptor(ctx, in, info, handler) } func _LoadBalancerPoolCloudflare_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(IdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LoadBalancerPoolCloudflareServer).Delete(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: LoadBalancerPoolCloudflare_Delete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoadBalancerPoolCloudflareServer).Delete(ctx, req.(*IdRequest)) } return interceptor(ctx, in, info, handler) } func _LoadBalancerPoolCloudflare_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(IdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(LoadBalancerPoolCloudflareServer).Get(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: LoadBalancerPoolCloudflare_Get_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoadBalancerPoolCloudflareServer).Get(ctx, req.(*IdRequest)) } return interceptor(ctx, in, info, handler) } // LoadBalancerPoolCloudflare_ServiceDesc is the grpc.ServiceDesc for LoadBalancerPoolCloudflare service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var LoadBalancerPoolCloudflare_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare", HandlerType: (*LoadBalancerPoolCloudflareServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _LoadBalancerPoolCloudflare_List_Handler, }, { MethodName: "Create", Handler: _LoadBalancerPoolCloudflare_Create_Handler, }, { MethodName: "Update", Handler: _LoadBalancerPoolCloudflare_Update_Handler, }, { MethodName: "Delete", Handler: _LoadBalancerPoolCloudflare_Delete_Handler, }, { MethodName: "Get", Handler: _LoadBalancerPoolCloudflare_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/loadBalancerPool.proto", }