github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/app/proxyman/command/command_grpc.pb.go (about)

     1  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
     2  
     3  package command
     4  
     5  import (
     6  	context "context"
     7  	grpc "google.golang.org/grpc"
     8  	codes "google.golang.org/grpc/codes"
     9  	status "google.golang.org/grpc/status"
    10  )
    11  
    12  // This is a compile-time assertion to ensure that this generated file
    13  // is compatible with the grpc package it is being compiled against.
    14  const _ = grpc.SupportPackageIsVersion7
    15  
    16  // HandlerServiceClient is the client API for HandlerService service.
    17  //
    18  // 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.
    19  type HandlerServiceClient interface {
    20  	AddInbound(ctx context.Context, in *AddInboundRequest, opts ...grpc.CallOption) (*AddInboundResponse, error)
    21  	RemoveInbound(ctx context.Context, in *RemoveInboundRequest, opts ...grpc.CallOption) (*RemoveInboundResponse, error)
    22  	AlterInbound(ctx context.Context, in *AlterInboundRequest, opts ...grpc.CallOption) (*AlterInboundResponse, error)
    23  	AddOutbound(ctx context.Context, in *AddOutboundRequest, opts ...grpc.CallOption) (*AddOutboundResponse, error)
    24  	RemoveOutbound(ctx context.Context, in *RemoveOutboundRequest, opts ...grpc.CallOption) (*RemoveOutboundResponse, error)
    25  	AlterOutbound(ctx context.Context, in *AlterOutboundRequest, opts ...grpc.CallOption) (*AlterOutboundResponse, error)
    26  }
    27  
    28  type handlerServiceClient struct {
    29  	cc grpc.ClientConnInterface
    30  }
    31  
    32  func NewHandlerServiceClient(cc grpc.ClientConnInterface) HandlerServiceClient {
    33  	return &handlerServiceClient{cc}
    34  }
    35  
    36  func (c *handlerServiceClient) AddInbound(ctx context.Context, in *AddInboundRequest, opts ...grpc.CallOption) (*AddInboundResponse, error) {
    37  	out := new(AddInboundResponse)
    38  	err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/AddInbound", in, out, opts...)
    39  	if err != nil {
    40  		return nil, err
    41  	}
    42  	return out, nil
    43  }
    44  
    45  func (c *handlerServiceClient) RemoveInbound(ctx context.Context, in *RemoveInboundRequest, opts ...grpc.CallOption) (*RemoveInboundResponse, error) {
    46  	out := new(RemoveInboundResponse)
    47  	err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/RemoveInbound", in, out, opts...)
    48  	if err != nil {
    49  		return nil, err
    50  	}
    51  	return out, nil
    52  }
    53  
    54  func (c *handlerServiceClient) AlterInbound(ctx context.Context, in *AlterInboundRequest, opts ...grpc.CallOption) (*AlterInboundResponse, error) {
    55  	out := new(AlterInboundResponse)
    56  	err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/AlterInbound", in, out, opts...)
    57  	if err != nil {
    58  		return nil, err
    59  	}
    60  	return out, nil
    61  }
    62  
    63  func (c *handlerServiceClient) AddOutbound(ctx context.Context, in *AddOutboundRequest, opts ...grpc.CallOption) (*AddOutboundResponse, error) {
    64  	out := new(AddOutboundResponse)
    65  	err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/AddOutbound", in, out, opts...)
    66  	if err != nil {
    67  		return nil, err
    68  	}
    69  	return out, nil
    70  }
    71  
    72  func (c *handlerServiceClient) RemoveOutbound(ctx context.Context, in *RemoveOutboundRequest, opts ...grpc.CallOption) (*RemoveOutboundResponse, error) {
    73  	out := new(RemoveOutboundResponse)
    74  	err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/RemoveOutbound", in, out, opts...)
    75  	if err != nil {
    76  		return nil, err
    77  	}
    78  	return out, nil
    79  }
    80  
    81  func (c *handlerServiceClient) AlterOutbound(ctx context.Context, in *AlterOutboundRequest, opts ...grpc.CallOption) (*AlterOutboundResponse, error) {
    82  	out := new(AlterOutboundResponse)
    83  	err := c.cc.Invoke(ctx, "/v2ray.core.app.proxyman.command.HandlerService/AlterOutbound", in, out, opts...)
    84  	if err != nil {
    85  		return nil, err
    86  	}
    87  	return out, nil
    88  }
    89  
    90  // HandlerServiceServer is the server API for HandlerService service.
    91  // All implementations must embed UnimplementedHandlerServiceServer
    92  // for forward compatibility
    93  type HandlerServiceServer interface {
    94  	AddInbound(context.Context, *AddInboundRequest) (*AddInboundResponse, error)
    95  	RemoveInbound(context.Context, *RemoveInboundRequest) (*RemoveInboundResponse, error)
    96  	AlterInbound(context.Context, *AlterInboundRequest) (*AlterInboundResponse, error)
    97  	AddOutbound(context.Context, *AddOutboundRequest) (*AddOutboundResponse, error)
    98  	RemoveOutbound(context.Context, *RemoveOutboundRequest) (*RemoveOutboundResponse, error)
    99  	AlterOutbound(context.Context, *AlterOutboundRequest) (*AlterOutboundResponse, error)
   100  	mustEmbedUnimplementedHandlerServiceServer()
   101  }
   102  
   103  // UnimplementedHandlerServiceServer must be embedded to have forward compatible implementations.
   104  type UnimplementedHandlerServiceServer struct {
   105  }
   106  
   107  func (UnimplementedHandlerServiceServer) AddInbound(context.Context, *AddInboundRequest) (*AddInboundResponse, error) {
   108  	return nil, status.Errorf(codes.Unimplemented, "method AddInbound not implemented")
   109  }
   110  func (UnimplementedHandlerServiceServer) RemoveInbound(context.Context, *RemoveInboundRequest) (*RemoveInboundResponse, error) {
   111  	return nil, status.Errorf(codes.Unimplemented, "method RemoveInbound not implemented")
   112  }
   113  func (UnimplementedHandlerServiceServer) AlterInbound(context.Context, *AlterInboundRequest) (*AlterInboundResponse, error) {
   114  	return nil, status.Errorf(codes.Unimplemented, "method AlterInbound not implemented")
   115  }
   116  func (UnimplementedHandlerServiceServer) AddOutbound(context.Context, *AddOutboundRequest) (*AddOutboundResponse, error) {
   117  	return nil, status.Errorf(codes.Unimplemented, "method AddOutbound not implemented")
   118  }
   119  func (UnimplementedHandlerServiceServer) RemoveOutbound(context.Context, *RemoveOutboundRequest) (*RemoveOutboundResponse, error) {
   120  	return nil, status.Errorf(codes.Unimplemented, "method RemoveOutbound not implemented")
   121  }
   122  func (UnimplementedHandlerServiceServer) AlterOutbound(context.Context, *AlterOutboundRequest) (*AlterOutboundResponse, error) {
   123  	return nil, status.Errorf(codes.Unimplemented, "method AlterOutbound not implemented")
   124  }
   125  func (UnimplementedHandlerServiceServer) mustEmbedUnimplementedHandlerServiceServer() {}
   126  
   127  // UnsafeHandlerServiceServer may be embedded to opt out of forward compatibility for this service.
   128  // Use of this interface is not recommended, as added methods to HandlerServiceServer will
   129  // result in compilation errors.
   130  type UnsafeHandlerServiceServer interface {
   131  	mustEmbedUnimplementedHandlerServiceServer()
   132  }
   133  
   134  func RegisterHandlerServiceServer(s *grpc.Server, srv HandlerServiceServer) {
   135  	s.RegisterService(&_HandlerService_serviceDesc, srv)
   136  }
   137  
   138  func _HandlerService_AddInbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   139  	in := new(AddInboundRequest)
   140  	if err := dec(in); err != nil {
   141  		return nil, err
   142  	}
   143  	if interceptor == nil {
   144  		return srv.(HandlerServiceServer).AddInbound(ctx, in)
   145  	}
   146  	info := &grpc.UnaryServerInfo{
   147  		Server:     srv,
   148  		FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/AddInbound",
   149  	}
   150  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   151  		return srv.(HandlerServiceServer).AddInbound(ctx, req.(*AddInboundRequest))
   152  	}
   153  	return interceptor(ctx, in, info, handler)
   154  }
   155  
   156  func _HandlerService_RemoveInbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   157  	in := new(RemoveInboundRequest)
   158  	if err := dec(in); err != nil {
   159  		return nil, err
   160  	}
   161  	if interceptor == nil {
   162  		return srv.(HandlerServiceServer).RemoveInbound(ctx, in)
   163  	}
   164  	info := &grpc.UnaryServerInfo{
   165  		Server:     srv,
   166  		FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/RemoveInbound",
   167  	}
   168  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   169  		return srv.(HandlerServiceServer).RemoveInbound(ctx, req.(*RemoveInboundRequest))
   170  	}
   171  	return interceptor(ctx, in, info, handler)
   172  }
   173  
   174  func _HandlerService_AlterInbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   175  	in := new(AlterInboundRequest)
   176  	if err := dec(in); err != nil {
   177  		return nil, err
   178  	}
   179  	if interceptor == nil {
   180  		return srv.(HandlerServiceServer).AlterInbound(ctx, in)
   181  	}
   182  	info := &grpc.UnaryServerInfo{
   183  		Server:     srv,
   184  		FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/AlterInbound",
   185  	}
   186  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   187  		return srv.(HandlerServiceServer).AlterInbound(ctx, req.(*AlterInboundRequest))
   188  	}
   189  	return interceptor(ctx, in, info, handler)
   190  }
   191  
   192  func _HandlerService_AddOutbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   193  	in := new(AddOutboundRequest)
   194  	if err := dec(in); err != nil {
   195  		return nil, err
   196  	}
   197  	if interceptor == nil {
   198  		return srv.(HandlerServiceServer).AddOutbound(ctx, in)
   199  	}
   200  	info := &grpc.UnaryServerInfo{
   201  		Server:     srv,
   202  		FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/AddOutbound",
   203  	}
   204  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   205  		return srv.(HandlerServiceServer).AddOutbound(ctx, req.(*AddOutboundRequest))
   206  	}
   207  	return interceptor(ctx, in, info, handler)
   208  }
   209  
   210  func _HandlerService_RemoveOutbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   211  	in := new(RemoveOutboundRequest)
   212  	if err := dec(in); err != nil {
   213  		return nil, err
   214  	}
   215  	if interceptor == nil {
   216  		return srv.(HandlerServiceServer).RemoveOutbound(ctx, in)
   217  	}
   218  	info := &grpc.UnaryServerInfo{
   219  		Server:     srv,
   220  		FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/RemoveOutbound",
   221  	}
   222  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   223  		return srv.(HandlerServiceServer).RemoveOutbound(ctx, req.(*RemoveOutboundRequest))
   224  	}
   225  	return interceptor(ctx, in, info, handler)
   226  }
   227  
   228  func _HandlerService_AlterOutbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   229  	in := new(AlterOutboundRequest)
   230  	if err := dec(in); err != nil {
   231  		return nil, err
   232  	}
   233  	if interceptor == nil {
   234  		return srv.(HandlerServiceServer).AlterOutbound(ctx, in)
   235  	}
   236  	info := &grpc.UnaryServerInfo{
   237  		Server:     srv,
   238  		FullMethod: "/v2ray.core.app.proxyman.command.HandlerService/AlterOutbound",
   239  	}
   240  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   241  		return srv.(HandlerServiceServer).AlterOutbound(ctx, req.(*AlterOutboundRequest))
   242  	}
   243  	return interceptor(ctx, in, info, handler)
   244  }
   245  
   246  var _HandlerService_serviceDesc = grpc.ServiceDesc{
   247  	ServiceName: "v2ray.core.app.proxyman.command.HandlerService",
   248  	HandlerType: (*HandlerServiceServer)(nil),
   249  	Methods: []grpc.MethodDesc{
   250  		{
   251  			MethodName: "AddInbound",
   252  			Handler:    _HandlerService_AddInbound_Handler,
   253  		},
   254  		{
   255  			MethodName: "RemoveInbound",
   256  			Handler:    _HandlerService_RemoveInbound_Handler,
   257  		},
   258  		{
   259  			MethodName: "AlterInbound",
   260  			Handler:    _HandlerService_AlterInbound_Handler,
   261  		},
   262  		{
   263  			MethodName: "AddOutbound",
   264  			Handler:    _HandlerService_AddOutbound_Handler,
   265  		},
   266  		{
   267  			MethodName: "RemoveOutbound",
   268  			Handler:    _HandlerService_RemoveOutbound_Handler,
   269  		},
   270  		{
   271  			MethodName: "AlterOutbound",
   272  			Handler:    _HandlerService_AlterOutbound_Handler,
   273  		},
   274  	},
   275  	Streams:  []grpc.StreamDesc{},
   276  	Metadata: "app/proxyman/command/command.proto",
   277  }