hyapp-server/api/proto/robot/v1/robot_grpc.pb.go
2026-06-15 23:53:30 +08:00

528 lines
23 KiB
Go

// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.2
// - protoc v5.29.2
// source: proto/robot/v1/robot.proto
package robotv1
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.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const (
GameRobotService_ListGameRobots_FullMethodName = "/hyapp.robot.v1.GameRobotService/ListGameRobots"
GameRobotService_RegisterGameRobots_FullMethodName = "/hyapp.robot.v1.GameRobotService/RegisterGameRobots"
GameRobotService_PickGameRobot_FullMethodName = "/hyapp.robot.v1.GameRobotService/PickGameRobot"
GameRobotService_SetGameRobotStatus_FullMethodName = "/hyapp.robot.v1.GameRobotService/SetGameRobotStatus"
GameRobotService_DeleteGameRobot_FullMethodName = "/hyapp.robot.v1.GameRobotService/DeleteGameRobot"
)
// GameRobotServiceClient is the client API for GameRobotService 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 GameRobotServiceClient interface {
ListGameRobots(ctx context.Context, in *ListGameRobotsRequest, opts ...grpc.CallOption) (*ListGameRobotsResponse, error)
RegisterGameRobots(ctx context.Context, in *RegisterGameRobotsRequest, opts ...grpc.CallOption) (*RegisterGameRobotsResponse, error)
PickGameRobot(ctx context.Context, in *PickGameRobotRequest, opts ...grpc.CallOption) (*GameRobotResponse, error)
SetGameRobotStatus(ctx context.Context, in *SetGameRobotStatusRequest, opts ...grpc.CallOption) (*GameRobotResponse, error)
DeleteGameRobot(ctx context.Context, in *DeleteGameRobotRequest, opts ...grpc.CallOption) (*DeleteGameRobotResponse, error)
}
type gameRobotServiceClient struct {
cc grpc.ClientConnInterface
}
func NewGameRobotServiceClient(cc grpc.ClientConnInterface) GameRobotServiceClient {
return &gameRobotServiceClient{cc}
}
func (c *gameRobotServiceClient) ListGameRobots(ctx context.Context, in *ListGameRobotsRequest, opts ...grpc.CallOption) (*ListGameRobotsResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ListGameRobotsResponse)
err := c.cc.Invoke(ctx, GameRobotService_ListGameRobots_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *gameRobotServiceClient) RegisterGameRobots(ctx context.Context, in *RegisterGameRobotsRequest, opts ...grpc.CallOption) (*RegisterGameRobotsResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(RegisterGameRobotsResponse)
err := c.cc.Invoke(ctx, GameRobotService_RegisterGameRobots_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *gameRobotServiceClient) PickGameRobot(ctx context.Context, in *PickGameRobotRequest, opts ...grpc.CallOption) (*GameRobotResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GameRobotResponse)
err := c.cc.Invoke(ctx, GameRobotService_PickGameRobot_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *gameRobotServiceClient) SetGameRobotStatus(ctx context.Context, in *SetGameRobotStatusRequest, opts ...grpc.CallOption) (*GameRobotResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GameRobotResponse)
err := c.cc.Invoke(ctx, GameRobotService_SetGameRobotStatus_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *gameRobotServiceClient) DeleteGameRobot(ctx context.Context, in *DeleteGameRobotRequest, opts ...grpc.CallOption) (*DeleteGameRobotResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(DeleteGameRobotResponse)
err := c.cc.Invoke(ctx, GameRobotService_DeleteGameRobot_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// GameRobotServiceServer is the server API for GameRobotService service.
// All implementations must embed UnimplementedGameRobotServiceServer
// for forward compatibility.
type GameRobotServiceServer interface {
ListGameRobots(context.Context, *ListGameRobotsRequest) (*ListGameRobotsResponse, error)
RegisterGameRobots(context.Context, *RegisterGameRobotsRequest) (*RegisterGameRobotsResponse, error)
PickGameRobot(context.Context, *PickGameRobotRequest) (*GameRobotResponse, error)
SetGameRobotStatus(context.Context, *SetGameRobotStatusRequest) (*GameRobotResponse, error)
DeleteGameRobot(context.Context, *DeleteGameRobotRequest) (*DeleteGameRobotResponse, error)
mustEmbedUnimplementedGameRobotServiceServer()
}
// UnimplementedGameRobotServiceServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedGameRobotServiceServer struct{}
func (UnimplementedGameRobotServiceServer) ListGameRobots(context.Context, *ListGameRobotsRequest) (*ListGameRobotsResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ListGameRobots not implemented")
}
func (UnimplementedGameRobotServiceServer) RegisterGameRobots(context.Context, *RegisterGameRobotsRequest) (*RegisterGameRobotsResponse, error) {
return nil, status.Error(codes.Unimplemented, "method RegisterGameRobots not implemented")
}
func (UnimplementedGameRobotServiceServer) PickGameRobot(context.Context, *PickGameRobotRequest) (*GameRobotResponse, error) {
return nil, status.Error(codes.Unimplemented, "method PickGameRobot not implemented")
}
func (UnimplementedGameRobotServiceServer) SetGameRobotStatus(context.Context, *SetGameRobotStatusRequest) (*GameRobotResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SetGameRobotStatus not implemented")
}
func (UnimplementedGameRobotServiceServer) DeleteGameRobot(context.Context, *DeleteGameRobotRequest) (*DeleteGameRobotResponse, error) {
return nil, status.Error(codes.Unimplemented, "method DeleteGameRobot not implemented")
}
func (UnimplementedGameRobotServiceServer) mustEmbedUnimplementedGameRobotServiceServer() {}
func (UnimplementedGameRobotServiceServer) testEmbeddedByValue() {}
// UnsafeGameRobotServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to GameRobotServiceServer will
// result in compilation errors.
type UnsafeGameRobotServiceServer interface {
mustEmbedUnimplementedGameRobotServiceServer()
}
func RegisterGameRobotServiceServer(s grpc.ServiceRegistrar, srv GameRobotServiceServer) {
// If the following call panics, it indicates UnimplementedGameRobotServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
t.testEmbeddedByValue()
}
s.RegisterService(&GameRobotService_ServiceDesc, srv)
}
func _GameRobotService_ListGameRobots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListGameRobotsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GameRobotServiceServer).ListGameRobots(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GameRobotService_ListGameRobots_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GameRobotServiceServer).ListGameRobots(ctx, req.(*ListGameRobotsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GameRobotService_RegisterGameRobots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RegisterGameRobotsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GameRobotServiceServer).RegisterGameRobots(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GameRobotService_RegisterGameRobots_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GameRobotServiceServer).RegisterGameRobots(ctx, req.(*RegisterGameRobotsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GameRobotService_PickGameRobot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PickGameRobotRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GameRobotServiceServer).PickGameRobot(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GameRobotService_PickGameRobot_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GameRobotServiceServer).PickGameRobot(ctx, req.(*PickGameRobotRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GameRobotService_SetGameRobotStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetGameRobotStatusRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GameRobotServiceServer).SetGameRobotStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GameRobotService_SetGameRobotStatus_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GameRobotServiceServer).SetGameRobotStatus(ctx, req.(*SetGameRobotStatusRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GameRobotService_DeleteGameRobot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteGameRobotRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GameRobotServiceServer).DeleteGameRobot(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GameRobotService_DeleteGameRobot_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GameRobotServiceServer).DeleteGameRobot(ctx, req.(*DeleteGameRobotRequest))
}
return interceptor(ctx, in, info, handler)
}
// GameRobotService_ServiceDesc is the grpc.ServiceDesc for GameRobotService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var GameRobotService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "hyapp.robot.v1.GameRobotService",
HandlerType: (*GameRobotServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListGameRobots",
Handler: _GameRobotService_ListGameRobots_Handler,
},
{
MethodName: "RegisterGameRobots",
Handler: _GameRobotService_RegisterGameRobots_Handler,
},
{
MethodName: "PickGameRobot",
Handler: _GameRobotService_PickGameRobot_Handler,
},
{
MethodName: "SetGameRobotStatus",
Handler: _GameRobotService_SetGameRobotStatus_Handler,
},
{
MethodName: "DeleteGameRobot",
Handler: _GameRobotService_DeleteGameRobot_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "proto/robot/v1/robot.proto",
}
const (
RoomRobotService_ListRoomRobots_FullMethodName = "/hyapp.robot.v1.RoomRobotService/ListRoomRobots"
RoomRobotService_RegisterRoomRobots_FullMethodName = "/hyapp.robot.v1.RoomRobotService/RegisterRoomRobots"
RoomRobotService_PickRoomRobot_FullMethodName = "/hyapp.robot.v1.RoomRobotService/PickRoomRobot"
RoomRobotService_SetRoomRobotStatus_FullMethodName = "/hyapp.robot.v1.RoomRobotService/SetRoomRobotStatus"
RoomRobotService_DeleteRoomRobot_FullMethodName = "/hyapp.robot.v1.RoomRobotService/DeleteRoomRobot"
)
// RoomRobotServiceClient is the client API for RoomRobotService 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 RoomRobotServiceClient interface {
ListRoomRobots(ctx context.Context, in *ListRoomRobotsRequest, opts ...grpc.CallOption) (*ListRoomRobotsResponse, error)
RegisterRoomRobots(ctx context.Context, in *RegisterRoomRobotsRequest, opts ...grpc.CallOption) (*RegisterRoomRobotsResponse, error)
PickRoomRobot(ctx context.Context, in *PickRoomRobotRequest, opts ...grpc.CallOption) (*RoomRobotResponse, error)
SetRoomRobotStatus(ctx context.Context, in *SetRoomRobotStatusRequest, opts ...grpc.CallOption) (*RoomRobotResponse, error)
DeleteRoomRobot(ctx context.Context, in *DeleteRoomRobotRequest, opts ...grpc.CallOption) (*DeleteRoomRobotResponse, error)
}
type roomRobotServiceClient struct {
cc grpc.ClientConnInterface
}
func NewRoomRobotServiceClient(cc grpc.ClientConnInterface) RoomRobotServiceClient {
return &roomRobotServiceClient{cc}
}
func (c *roomRobotServiceClient) ListRoomRobots(ctx context.Context, in *ListRoomRobotsRequest, opts ...grpc.CallOption) (*ListRoomRobotsResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ListRoomRobotsResponse)
err := c.cc.Invoke(ctx, RoomRobotService_ListRoomRobots_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *roomRobotServiceClient) RegisterRoomRobots(ctx context.Context, in *RegisterRoomRobotsRequest, opts ...grpc.CallOption) (*RegisterRoomRobotsResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(RegisterRoomRobotsResponse)
err := c.cc.Invoke(ctx, RoomRobotService_RegisterRoomRobots_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *roomRobotServiceClient) PickRoomRobot(ctx context.Context, in *PickRoomRobotRequest, opts ...grpc.CallOption) (*RoomRobotResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(RoomRobotResponse)
err := c.cc.Invoke(ctx, RoomRobotService_PickRoomRobot_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *roomRobotServiceClient) SetRoomRobotStatus(ctx context.Context, in *SetRoomRobotStatusRequest, opts ...grpc.CallOption) (*RoomRobotResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(RoomRobotResponse)
err := c.cc.Invoke(ctx, RoomRobotService_SetRoomRobotStatus_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *roomRobotServiceClient) DeleteRoomRobot(ctx context.Context, in *DeleteRoomRobotRequest, opts ...grpc.CallOption) (*DeleteRoomRobotResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(DeleteRoomRobotResponse)
err := c.cc.Invoke(ctx, RoomRobotService_DeleteRoomRobot_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// RoomRobotServiceServer is the server API for RoomRobotService service.
// All implementations must embed UnimplementedRoomRobotServiceServer
// for forward compatibility.
type RoomRobotServiceServer interface {
ListRoomRobots(context.Context, *ListRoomRobotsRequest) (*ListRoomRobotsResponse, error)
RegisterRoomRobots(context.Context, *RegisterRoomRobotsRequest) (*RegisterRoomRobotsResponse, error)
PickRoomRobot(context.Context, *PickRoomRobotRequest) (*RoomRobotResponse, error)
SetRoomRobotStatus(context.Context, *SetRoomRobotStatusRequest) (*RoomRobotResponse, error)
DeleteRoomRobot(context.Context, *DeleteRoomRobotRequest) (*DeleteRoomRobotResponse, error)
mustEmbedUnimplementedRoomRobotServiceServer()
}
// UnimplementedRoomRobotServiceServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedRoomRobotServiceServer struct{}
func (UnimplementedRoomRobotServiceServer) ListRoomRobots(context.Context, *ListRoomRobotsRequest) (*ListRoomRobotsResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ListRoomRobots not implemented")
}
func (UnimplementedRoomRobotServiceServer) RegisterRoomRobots(context.Context, *RegisterRoomRobotsRequest) (*RegisterRoomRobotsResponse, error) {
return nil, status.Error(codes.Unimplemented, "method RegisterRoomRobots not implemented")
}
func (UnimplementedRoomRobotServiceServer) PickRoomRobot(context.Context, *PickRoomRobotRequest) (*RoomRobotResponse, error) {
return nil, status.Error(codes.Unimplemented, "method PickRoomRobot not implemented")
}
func (UnimplementedRoomRobotServiceServer) SetRoomRobotStatus(context.Context, *SetRoomRobotStatusRequest) (*RoomRobotResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SetRoomRobotStatus not implemented")
}
func (UnimplementedRoomRobotServiceServer) DeleteRoomRobot(context.Context, *DeleteRoomRobotRequest) (*DeleteRoomRobotResponse, error) {
return nil, status.Error(codes.Unimplemented, "method DeleteRoomRobot not implemented")
}
func (UnimplementedRoomRobotServiceServer) mustEmbedUnimplementedRoomRobotServiceServer() {}
func (UnimplementedRoomRobotServiceServer) testEmbeddedByValue() {}
// UnsafeRoomRobotServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RoomRobotServiceServer will
// result in compilation errors.
type UnsafeRoomRobotServiceServer interface {
mustEmbedUnimplementedRoomRobotServiceServer()
}
func RegisterRoomRobotServiceServer(s grpc.ServiceRegistrar, srv RoomRobotServiceServer) {
// If the following call panics, it indicates UnimplementedRoomRobotServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
t.testEmbeddedByValue()
}
s.RegisterService(&RoomRobotService_ServiceDesc, srv)
}
func _RoomRobotService_ListRoomRobots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListRoomRobotsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RoomRobotServiceServer).ListRoomRobots(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RoomRobotService_ListRoomRobots_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RoomRobotServiceServer).ListRoomRobots(ctx, req.(*ListRoomRobotsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RoomRobotService_RegisterRoomRobots_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RegisterRoomRobotsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RoomRobotServiceServer).RegisterRoomRobots(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RoomRobotService_RegisterRoomRobots_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RoomRobotServiceServer).RegisterRoomRobots(ctx, req.(*RegisterRoomRobotsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RoomRobotService_PickRoomRobot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PickRoomRobotRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RoomRobotServiceServer).PickRoomRobot(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RoomRobotService_PickRoomRobot_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RoomRobotServiceServer).PickRoomRobot(ctx, req.(*PickRoomRobotRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RoomRobotService_SetRoomRobotStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetRoomRobotStatusRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RoomRobotServiceServer).SetRoomRobotStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RoomRobotService_SetRoomRobotStatus_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RoomRobotServiceServer).SetRoomRobotStatus(ctx, req.(*SetRoomRobotStatusRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RoomRobotService_DeleteRoomRobot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRoomRobotRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RoomRobotServiceServer).DeleteRoomRobot(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RoomRobotService_DeleteRoomRobot_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RoomRobotServiceServer).DeleteRoomRobot(ctx, req.(*DeleteRoomRobotRequest))
}
return interceptor(ctx, in, info, handler)
}
// RoomRobotService_ServiceDesc is the grpc.ServiceDesc for RoomRobotService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RoomRobotService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "hyapp.robot.v1.RoomRobotService",
HandlerType: (*RoomRobotServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListRoomRobots",
Handler: _RoomRobotService_ListRoomRobots_Handler,
},
{
MethodName: "RegisterRoomRobots",
Handler: _RoomRobotService_RegisterRoomRobots_Handler,
},
{
MethodName: "PickRoomRobot",
Handler: _RoomRobotService_PickRoomRobot_Handler,
},
{
MethodName: "SetRoomRobotStatus",
Handler: _RoomRobotService_SetRoomRobotStatus_Handler,
},
{
MethodName: "DeleteRoomRobot",
Handler: _RoomRobotService_DeleteRoomRobot_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "proto/robot/v1/robot.proto",
}