// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.12.4 // source: maps.proto package maps 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 // MapsServiceClient is the client API for MapsService 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 MapsServiceClient interface { Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*MapResponse, error) GetList(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*MapList, error) Update(ctx context.Context, in *MapRequest, opts ...grpc.CallOption) (*NullResponse, error) Create(ctx context.Context, in *MapRequest, opts ...grpc.CallOption) (*IdMessage, error) Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*MapList, error) } type mapsServiceClient struct { cc grpc.ClientConnInterface } func NewMapsServiceClient(cc grpc.ClientConnInterface) MapsServiceClient { return &mapsServiceClient{cc} } func (c *mapsServiceClient) Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*MapResponse, error) { out := new(MapResponse) err := c.cc.Invoke(ctx, "/maps.MapsService/Get", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *mapsServiceClient) GetList(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*MapList, error) { out := new(MapList) err := c.cc.Invoke(ctx, "/maps.MapsService/GetList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *mapsServiceClient) Update(ctx context.Context, in *MapRequest, opts ...grpc.CallOption) (*NullResponse, error) { out := new(NullResponse) err := c.cc.Invoke(ctx, "/maps.MapsService/Update", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *mapsServiceClient) Create(ctx context.Context, in *MapRequest, opts ...grpc.CallOption) (*IdMessage, error) { out := new(IdMessage) err := c.cc.Invoke(ctx, "/maps.MapsService/Create", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *mapsServiceClient) Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) { out := new(NullResponse) err := c.cc.Invoke(ctx, "/maps.MapsService/Delete", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *mapsServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*MapList, error) { out := new(MapList) err := c.cc.Invoke(ctx, "/maps.MapsService/List", in, out, opts...) if err != nil { return nil, err } return out, nil } // MapsServiceServer is the server API for MapsService service. // All implementations must embed UnimplementedMapsServiceServer // for forward compatibility type MapsServiceServer interface { Get(context.Context, *IdMessage) (*MapResponse, error) GetList(context.Context, *IdList) (*MapList, error) Update(context.Context, *MapRequest) (*NullResponse, error) Create(context.Context, *MapRequest) (*IdMessage, error) Delete(context.Context, *IdMessage) (*NullResponse, error) List(context.Context, *ListRequest) (*MapList, error) mustEmbedUnimplementedMapsServiceServer() } // UnimplementedMapsServiceServer must be embedded to have forward compatible implementations. type UnimplementedMapsServiceServer struct { } func (UnimplementedMapsServiceServer) Get(context.Context, *IdMessage) (*MapResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") } func (UnimplementedMapsServiceServer) GetList(context.Context, *IdList) (*MapList, error) { return nil, status.Errorf(codes.Unimplemented, "method GetList not implemented") } func (UnimplementedMapsServiceServer) Update(context.Context, *MapRequest) (*NullResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") } func (UnimplementedMapsServiceServer) Create(context.Context, *MapRequest) (*IdMessage, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } func (UnimplementedMapsServiceServer) Delete(context.Context, *IdMessage) (*NullResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (UnimplementedMapsServiceServer) List(context.Context, *ListRequest) (*MapList, error) { return nil, status.Errorf(codes.Unimplemented, "method List not implemented") } func (UnimplementedMapsServiceServer) mustEmbedUnimplementedMapsServiceServer() {} // UnsafeMapsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MapsServiceServer will // result in compilation errors. type UnsafeMapsServiceServer interface { mustEmbedUnimplementedMapsServiceServer() } func RegisterMapsServiceServer(s grpc.ServiceRegistrar, srv MapsServiceServer) { s.RegisterService(&MapsService_ServiceDesc, srv) } func _MapsService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(IdMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MapsServiceServer).Get(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/maps.MapsService/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MapsServiceServer).Get(ctx, req.(*IdMessage)) } return interceptor(ctx, in, info, handler) } func _MapsService_GetList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(IdList) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MapsServiceServer).GetList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/maps.MapsService/GetList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MapsServiceServer).GetList(ctx, req.(*IdList)) } return interceptor(ctx, in, info, handler) } func _MapsService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MapRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MapsServiceServer).Update(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/maps.MapsService/Update", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MapsServiceServer).Update(ctx, req.(*MapRequest)) } return interceptor(ctx, in, info, handler) } func _MapsService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MapRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MapsServiceServer).Create(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/maps.MapsService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MapsServiceServer).Create(ctx, req.(*MapRequest)) } return interceptor(ctx, in, info, handler) } func _MapsService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(IdMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MapsServiceServer).Delete(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/maps.MapsService/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MapsServiceServer).Delete(ctx, req.(*IdMessage)) } return interceptor(ctx, in, info, handler) } func _MapsService_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.(MapsServiceServer).List(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/maps.MapsService/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MapsServiceServer).List(ctx, req.(*ListRequest)) } return interceptor(ctx, in, info, handler) } // MapsService_ServiceDesc is the grpc.ServiceDesc for MapsService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var MapsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "maps.MapsService", HandlerType: (*MapsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _MapsService_Get_Handler, }, { MethodName: "GetList", Handler: _MapsService_GetList_Handler, }, { MethodName: "Update", Handler: _MapsService_Update_Handler, }, { MethodName: "Create", Handler: _MapsService_Create_Handler, }, { MethodName: "Delete", Handler: _MapsService_Delete_Handler, }, { MethodName: "List", Handler: _MapsService_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "maps.proto", }