123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.2.0
- // - protoc v3.21.4
- // 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
- // 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, "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/List", 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, "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Create", 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, "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Update", 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, "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Delete", 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, "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Get", 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: "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/List",
- }
- 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: "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Create",
- }
- 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: "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Update",
- }
- 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: "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Delete",
- }
- 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: "/cloudflareApi.loadBalancerPool.LoadBalancerPoolCloudflare/Get",
- }
- 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",
- }
|