regenerate all proto (#1440)
* regenerate all proto Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org> * regenerate from proto Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org> * regenerate from proto Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		| @@ -1,11 +1,15 @@ | ||||
| // Code generated by protoc-gen-go. DO NOT EDIT. | ||||
| // source: github.com/micro/go-micro/v2/agent/proto/bot.proto | ||||
| // source: agent/proto/bot.proto | ||||
|  | ||||
| package go_micro_bot | ||||
|  | ||||
| import ( | ||||
| 	context "context" | ||||
| 	fmt "fmt" | ||||
| 	proto "github.com/golang/protobuf/proto" | ||||
| 	grpc "google.golang.org/grpc" | ||||
| 	codes "google.golang.org/grpc/codes" | ||||
| 	status "google.golang.org/grpc/status" | ||||
| 	math "math" | ||||
| ) | ||||
|  | ||||
| @@ -30,7 +34,7 @@ func (m *HelpRequest) Reset()         { *m = HelpRequest{} } | ||||
| func (m *HelpRequest) String() string { return proto.CompactTextString(m) } | ||||
| func (*HelpRequest) ProtoMessage()    {} | ||||
| func (*HelpRequest) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_018e8d5b14a89d12, []int{0} | ||||
| 	return fileDescriptor_79b974b8c77805fa, []int{0} | ||||
| } | ||||
|  | ||||
| func (m *HelpRequest) XXX_Unmarshal(b []byte) error { | ||||
| @@ -63,7 +67,7 @@ func (m *HelpResponse) Reset()         { *m = HelpResponse{} } | ||||
| func (m *HelpResponse) String() string { return proto.CompactTextString(m) } | ||||
| func (*HelpResponse) ProtoMessage()    {} | ||||
| func (*HelpResponse) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_018e8d5b14a89d12, []int{1} | ||||
| 	return fileDescriptor_79b974b8c77805fa, []int{1} | ||||
| } | ||||
|  | ||||
| func (m *HelpResponse) XXX_Unmarshal(b []byte) error { | ||||
| @@ -109,7 +113,7 @@ func (m *ExecRequest) Reset()         { *m = ExecRequest{} } | ||||
| func (m *ExecRequest) String() string { return proto.CompactTextString(m) } | ||||
| func (*ExecRequest) ProtoMessage()    {} | ||||
| func (*ExecRequest) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_018e8d5b14a89d12, []int{2} | ||||
| 	return fileDescriptor_79b974b8c77805fa, []int{2} | ||||
| } | ||||
|  | ||||
| func (m *ExecRequest) XXX_Unmarshal(b []byte) error { | ||||
| @@ -149,7 +153,7 @@ func (m *ExecResponse) Reset()         { *m = ExecResponse{} } | ||||
| func (m *ExecResponse) String() string { return proto.CompactTextString(m) } | ||||
| func (*ExecResponse) ProtoMessage()    {} | ||||
| func (*ExecResponse) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_018e8d5b14a89d12, []int{3} | ||||
| 	return fileDescriptor_79b974b8c77805fa, []int{3} | ||||
| } | ||||
|  | ||||
| func (m *ExecResponse) XXX_Unmarshal(b []byte) error { | ||||
| @@ -191,26 +195,139 @@ func init() { | ||||
| 	proto.RegisterType((*ExecResponse)(nil), "go.micro.bot.ExecResponse") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/micro/go-micro/v2/agent/proto/bot.proto", fileDescriptor_018e8d5b14a89d12) | ||||
| func init() { proto.RegisterFile("agent/proto/bot.proto", fileDescriptor_79b974b8c77805fa) } | ||||
|  | ||||
| var fileDescriptor_79b974b8c77805fa = []byte{ | ||||
| 	// 234 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x3f, 0x4f, 0xc3, 0x30, | ||||
| 	0x10, 0xc5, 0x1b, 0x28, 0x45, 0xbd, 0x84, 0xc5, 0x02, 0x14, 0x3a, 0x05, 0x4f, 0x9d, 0x5c, 0x09, | ||||
| 	0x56, 0x24, 0x06, 0x04, 0x62, 0xce, 0x37, 0x48, 0xd2, 0x53, 0x14, 0xa9, 0xf1, 0x99, 0xb3, 0x23, | ||||
|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, 0xfb, 0xfa, 0x1f, 0x00, 0x00, | ||||
| 	0xff, 0xff, 0xe8, 0x08, 0x5e, 0xad, 0x73, 0x01, 0x00, 0x00, | ||||
| } | ||||
|  | ||||
| var fileDescriptor_018e8d5b14a89d12 = []byte{ | ||||
| 	// 246 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x50, 0x4d, 0x4b, 0xc4, 0x30, | ||||
| 	0x10, 0xdd, 0xea, 0xba, 0xb2, 0xd3, 0x7a, 0x09, 0x22, 0x75, 0x4f, 0x35, 0xa7, 0xbd, 0x98, 0x80, | ||||
| 	0x5e, 0x05, 0x0f, 0xa2, 0x78, 0xee, 0x3f, 0x68, 0xbb, 0x43, 0x2c, 0x6c, 0x3b, 0x35, 0x99, 0x82, | ||||
| 	0xff, 0xc1, 0x3f, 0x2d, 0x4d, 0x72, 0x08, 0xc5, 0xdb, 0x7b, 0x79, 0xe1, 0x7d, 0x0c, 0x68, 0xd3, | ||||
| 	0xf3, 0xd7, 0xdc, 0xaa, 0x8e, 0x06, 0x3d, 0xf4, 0x9d, 0x25, 0x6d, 0xe8, 0x31, 0x80, 0xc6, 0xe0, | ||||
| 	0xc8, 0x7a, 0xb2, 0xc4, 0xa4, 0x5b, 0x62, 0xe5, 0x91, 0x28, 0x0c, 0x29, 0xaf, 0xab, 0x96, 0x58, | ||||
| 	0xde, 0x40, 0xfe, 0x89, 0xe7, 0xa9, 0xc6, 0xef, 0x19, 0x1d, 0xcb, 0x0f, 0x28, 0x02, 0x75, 0x13, | ||||
| 	0x8d, 0x0e, 0xc5, 0x2d, 0x5c, 0xcd, 0xae, 0x31, 0x58, 0x66, 0x55, 0x76, 0xdc, 0xd7, 0x81, 0x88, | ||||
| 	0x0a, 0xf2, 0x13, 0xba, 0xce, 0xf6, 0x13, 0xf7, 0x34, 0x96, 0x17, 0x5e, 0x4b, 0x9f, 0xe4, 0x03, | ||||
| 	0xe4, 0xef, 0x3f, 0xd8, 0x45, 0x5b, 0x21, 0x60, 0xdb, 0x58, 0xe3, 0xca, 0xac, 0xba, 0x3c, 0xee, | ||||
| 	0x6b, 0x8f, 0xe5, 0x0b, 0x14, 0xe1, 0x4b, 0x8c, 0xba, 0x83, 0x9d, 0x45, 0x37, 0x9f, 0xd9, 0x67, | ||||
| 	0x15, 0x75, 0x64, 0x4b, 0x05, 0xb4, 0x96, 0x6c, 0x8c, 0x09, 0xe4, 0xe9, 0x37, 0x83, 0xeb, 0x37, | ||||
| 	0x1a, 0x86, 0x66, 0x3c, 0x89, 0x57, 0xd8, 0x2e, 0xa5, 0xc5, 0xbd, 0x4a, 0xa7, 0xa9, 0x64, 0xd7, | ||||
| 	0xe1, 0xf0, 0x9f, 0x14, 0x82, 0xe5, 0x66, 0x31, 0x58, 0xaa, 0xac, 0x0d, 0x92, 0x05, 0x6b, 0x83, | ||||
| 	0xb4, 0xb9, 0xdc, 0xb4, 0x3b, 0x7f, 0xda, 0xe7, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0xbd, | ||||
| 	0x39, 0x29, 0x8d, 0x01, 0x00, 0x00, | ||||
| // Reference imports to suppress errors if they are not otherwise used. | ||||
| var _ context.Context | ||||
| var _ grpc.ClientConn | ||||
|  | ||||
| // This is a compile-time assertion to ensure that this generated file | ||||
| // is compatible with the grpc package it is being compiled against. | ||||
| const _ = grpc.SupportPackageIsVersion4 | ||||
|  | ||||
| // CommandClient is the client API for Command service. | ||||
| // | ||||
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. | ||||
| type CommandClient interface { | ||||
| 	Help(ctx context.Context, in *HelpRequest, opts ...grpc.CallOption) (*HelpResponse, error) | ||||
| 	Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) | ||||
| } | ||||
|  | ||||
| type commandClient struct { | ||||
| 	cc *grpc.ClientConn | ||||
| } | ||||
|  | ||||
| func NewCommandClient(cc *grpc.ClientConn) CommandClient { | ||||
| 	return &commandClient{cc} | ||||
| } | ||||
|  | ||||
| func (c *commandClient) Help(ctx context.Context, in *HelpRequest, opts ...grpc.CallOption) (*HelpResponse, error) { | ||||
| 	out := new(HelpResponse) | ||||
| 	err := c.cc.Invoke(ctx, "/go.micro.bot.Command/Help", in, out, opts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
|  | ||||
| func (c *commandClient) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) { | ||||
| 	out := new(ExecResponse) | ||||
| 	err := c.cc.Invoke(ctx, "/go.micro.bot.Command/Exec", in, out, opts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
|  | ||||
| // CommandServer is the server API for Command service. | ||||
| type CommandServer interface { | ||||
| 	Help(context.Context, *HelpRequest) (*HelpResponse, error) | ||||
| 	Exec(context.Context, *ExecRequest) (*ExecResponse, error) | ||||
| } | ||||
|  | ||||
| // UnimplementedCommandServer can be embedded to have forward compatible implementations. | ||||
| type UnimplementedCommandServer struct { | ||||
| } | ||||
|  | ||||
| func (*UnimplementedCommandServer) Help(ctx context.Context, req *HelpRequest) (*HelpResponse, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Help not implemented") | ||||
| } | ||||
| func (*UnimplementedCommandServer) Exec(ctx context.Context, req *ExecRequest) (*ExecResponse, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented") | ||||
| } | ||||
|  | ||||
| func RegisterCommandServer(s *grpc.Server, srv CommandServer) { | ||||
| 	s.RegisterService(&_Command_serviceDesc, srv) | ||||
| } | ||||
|  | ||||
| func _Command_Help_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(HelpRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(CommandServer).Help(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: "/go.micro.bot.Command/Help", | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(CommandServer).Help(ctx, req.(*HelpRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
|  | ||||
| func _Command_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(ExecRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(CommandServer).Exec(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: "/go.micro.bot.Command/Exec", | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(CommandServer).Exec(ctx, req.(*ExecRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
|  | ||||
| var _Command_serviceDesc = grpc.ServiceDesc{ | ||||
| 	ServiceName: "go.micro.bot.Command", | ||||
| 	HandlerType: (*CommandServer)(nil), | ||||
| 	Methods: []grpc.MethodDesc{ | ||||
| 		{ | ||||
| 			MethodName: "Help", | ||||
| 			Handler:    _Command_Help_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "Exec", | ||||
| 			Handler:    _Command_Exec_Handler, | ||||
| 		}, | ||||
| 	}, | ||||
| 	Streams:  []grpc.StreamDesc{}, | ||||
| 	Metadata: "agent/proto/bot.proto", | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user