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/server/proto/server.proto | ||||
| // source: server/proto/server.proto | ||||
|  | ||||
| package go_micro_server | ||||
|  | ||||
| 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" | ||||
| ) | ||||
|  | ||||
| @@ -33,7 +37,7 @@ func (m *HandleRequest) Reset()         { *m = HandleRequest{} } | ||||
| func (m *HandleRequest) String() string { return proto.CompactTextString(m) } | ||||
| func (*HandleRequest) ProtoMessage()    {} | ||||
| func (*HandleRequest) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_4cb0c66620400ff8, []int{0} | ||||
| 	return fileDescriptor_1959cecd4d1121a1, []int{0} | ||||
| } | ||||
|  | ||||
| func (m *HandleRequest) XXX_Unmarshal(b []byte) error { | ||||
| @@ -85,7 +89,7 @@ func (m *HandleResponse) Reset()         { *m = HandleResponse{} } | ||||
| func (m *HandleResponse) String() string { return proto.CompactTextString(m) } | ||||
| func (*HandleResponse) ProtoMessage()    {} | ||||
| func (*HandleResponse) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_4cb0c66620400ff8, []int{1} | ||||
| 	return fileDescriptor_1959cecd4d1121a1, []int{1} | ||||
| } | ||||
|  | ||||
| func (m *HandleResponse) XXX_Unmarshal(b []byte) error { | ||||
| @@ -117,7 +121,7 @@ func (m *SubscribeRequest) Reset()         { *m = SubscribeRequest{} } | ||||
| func (m *SubscribeRequest) String() string { return proto.CompactTextString(m) } | ||||
| func (*SubscribeRequest) ProtoMessage()    {} | ||||
| func (*SubscribeRequest) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_4cb0c66620400ff8, []int{2} | ||||
| 	return fileDescriptor_1959cecd4d1121a1, []int{2} | ||||
| } | ||||
|  | ||||
| func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error { | ||||
| @@ -155,7 +159,7 @@ func (m *SubscribeResponse) Reset()         { *m = SubscribeResponse{} } | ||||
| func (m *SubscribeResponse) String() string { return proto.CompactTextString(m) } | ||||
| func (*SubscribeResponse) ProtoMessage()    {} | ||||
| func (*SubscribeResponse) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_4cb0c66620400ff8, []int{3} | ||||
| 	return fileDescriptor_1959cecd4d1121a1, []int{3} | ||||
| } | ||||
|  | ||||
| func (m *SubscribeResponse) XXX_Unmarshal(b []byte) error { | ||||
| @@ -183,25 +187,138 @@ func init() { | ||||
| 	proto.RegisterType((*SubscribeResponse)(nil), "go.micro.server.SubscribeResponse") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("github.com/micro/go-micro/v2/server/proto/server.proto", fileDescriptor_4cb0c66620400ff8) | ||||
| func init() { proto.RegisterFile("server/proto/server.proto", fileDescriptor_1959cecd4d1121a1) } | ||||
|  | ||||
| var fileDescriptor_1959cecd4d1121a1 = []byte{ | ||||
| 	// 223 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0x4e, 0x2d, 0x2a, | ||||
| 	0x4b, 0x2d, 0xd2, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x87, 0x70, 0xf4, 0xc0, 0x1c, 0x21, 0xfe, | ||||
| 	0xf4, 0x7c, 0xbd, 0xdc, 0xcc, 0xe4, 0xa2, 0x7c, 0x3d, 0x88, 0xb0, 0x52, 0x22, 0x17, 0xaf, 0x47, | ||||
| 	0x62, 0x5e, 0x4a, 0x4e, 0x6a, 0x50, 0x6a, 0x61, 0x69, 0x6a, 0x71, 0x89, 0x90, 0x04, 0x17, 0x3b, | ||||
| 	0x48, 0x2a, 0x33, 0x39, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xc6, 0x15, 0x92, 0xe2, | ||||
| 	0xe2, 0x48, 0xcd, 0x4b, 0x29, 0xc8, 0xcf, 0xcc, 0x2b, 0x91, 0x60, 0x02, 0x4b, 0xc1, 0xf9, 0x20, | ||||
| 	0x39, 0xb0, 0x05, 0xc9, 0xf9, 0x39, 0x12, 0xcc, 0x10, 0x39, 0x18, 0x5f, 0x49, 0x80, 0x8b, 0x0f, | ||||
| 	0x66, 0x45, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x92, 0x06, 0x97, 0x40, 0x70, 0x69, 0x52, 0x71, | ||||
| 	0x72, 0x51, 0x66, 0x12, 0xdc, 0x5e, 0x11, 0x2e, 0xd6, 0x92, 0xfc, 0x82, 0xcc, 0x64, 0xa8, 0xad, | ||||
| 	0x10, 0x8e, 0x92, 0x30, 0x97, 0x20, 0x92, 0x4a, 0x88, 0x76, 0xa3, 0xd5, 0x8c, 0x5c, 0x6c, 0xc1, | ||||
| 	0x60, 0xe7, 0x0b, 0x79, 0x73, 0xb1, 0x41, 0xcc, 0x16, 0x92, 0xd3, 0x43, 0xf3, 0x9a, 0x1e, 0x8a, | ||||
| 	0xbf, 0xa4, 0xe4, 0x71, 0xca, 0x43, 0x1d, 0xc5, 0x20, 0x14, 0xc2, 0xc5, 0x09, 0xb7, 0x4c, 0x48, | ||||
| 	0x11, 0x43, 0x3d, 0xba, 0x93, 0xa5, 0x94, 0xf0, 0x29, 0x81, 0x99, 0x9a, 0xc4, 0x06, 0x0e, 0x08, | ||||
| 	0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x3f, 0x79, 0x80, 0x96, 0x01, 0x00, 0x00, | ||||
| } | ||||
|  | ||||
| var fileDescriptor_4cb0c66620400ff8 = []byte{ | ||||
| 	// 236 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xcd, 0x4e, 0x03, 0x21, | ||||
| 	0x14, 0x85, 0x1d, 0x8d, 0xa3, 0xbd, 0x89, 0x5a, 0xd1, 0x05, 0x99, 0x85, 0x3f, 0xac, 0xba, 0x91, | ||||
| 	0x49, 0xec, 0x4b, 0x98, 0xb8, 0x6b, 0x7d, 0x81, 0x42, 0x6f, 0x46, 0x92, 0x96, 0x8b, 0xc0, 0xf8, | ||||
| 	0x52, 0xbe, 0xa4, 0x29, 0x94, 0x89, 0x8e, 0xb1, 0x3b, 0x3e, 0xce, 0xe1, 0x9e, 0x73, 0x81, 0x79, | ||||
| 	0x67, 0xe2, 0x7b, 0xaf, 0xa4, 0xa6, 0x6d, 0xbb, 0x35, 0xda, 0x53, 0xdb, 0xd1, 0x53, 0x3e, 0x04, | ||||
| 	0xf4, 0x9f, 0xe8, 0x5b, 0xe7, 0x29, 0x16, 0x90, 0x09, 0xd8, 0x55, 0x47, 0x32, 0x79, 0x64, 0xbe, | ||||
| 	0x16, 0x2b, 0xb8, 0x78, 0x59, 0xd9, 0xf5, 0x06, 0x17, 0xf8, 0xd1, 0x63, 0x88, 0x8c, 0xc3, 0xd9, | ||||
| 	0x4e, 0x32, 0x1a, 0x79, 0xf5, 0x50, 0xcd, 0x26, 0x8b, 0x82, 0xac, 0x81, 0x73, 0xb4, 0x6b, 0x47, | ||||
| 	0xc6, 0x46, 0x7e, 0x9c, 0xa4, 0x81, 0x77, 0x5a, 0x0a, 0xd0, 0xb4, 0xe1, 0x27, 0x59, 0x2b, 0x2c, | ||||
| 	0xa6, 0x70, 0x59, 0x22, 0x82, 0x23, 0x1b, 0x50, 0xcc, 0x60, 0xba, 0xec, 0x55, 0xd0, 0xde, 0xa8, | ||||
| 	0x21, 0xf7, 0x16, 0x4e, 0x23, 0x39, 0xa3, 0xf7, 0xa9, 0x19, 0xc4, 0x0d, 0x5c, 0xff, 0x70, 0xe6, | ||||
| 	0xe7, 0xcf, 0x5f, 0x15, 0xd4, 0xcb, 0x54, 0x9f, 0xbd, 0x42, 0x9d, 0x67, 0xb3, 0x3b, 0x39, 0x5a, | ||||
| 	0x4d, 0xfe, 0xda, 0xab, 0xb9, 0xff, 0x57, 0xdf, 0x97, 0x3a, 0x62, 0x6f, 0x30, 0x19, 0xc2, 0xd8, | ||||
| 	0xe3, 0x1f, 0xff, 0xb8, 0x72, 0x23, 0x0e, 0x59, 0xca, 0x54, 0x55, 0xa7, 0x8f, 0x98, 0x7f, 0x07, | ||||
| 	0x00, 0x00, 0xff, 0xff, 0x30, 0xd3, 0x7a, 0x91, 0xb0, 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 | ||||
|  | ||||
| // ServerClient is the client API for Server service. | ||||
| // | ||||
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. | ||||
| type ServerClient interface { | ||||
| 	Handle(ctx context.Context, in *HandleRequest, opts ...grpc.CallOption) (*HandleResponse, error) | ||||
| 	Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*SubscribeResponse, error) | ||||
| } | ||||
|  | ||||
| type serverClient struct { | ||||
| 	cc *grpc.ClientConn | ||||
| } | ||||
|  | ||||
| func NewServerClient(cc *grpc.ClientConn) ServerClient { | ||||
| 	return &serverClient{cc} | ||||
| } | ||||
|  | ||||
| func (c *serverClient) Handle(ctx context.Context, in *HandleRequest, opts ...grpc.CallOption) (*HandleResponse, error) { | ||||
| 	out := new(HandleResponse) | ||||
| 	err := c.cc.Invoke(ctx, "/go.micro.server.Server/Handle", in, out, opts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
|  | ||||
| func (c *serverClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*SubscribeResponse, error) { | ||||
| 	out := new(SubscribeResponse) | ||||
| 	err := c.cc.Invoke(ctx, "/go.micro.server.Server/Subscribe", in, out, opts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
|  | ||||
| // ServerServer is the server API for Server service. | ||||
| type ServerServer interface { | ||||
| 	Handle(context.Context, *HandleRequest) (*HandleResponse, error) | ||||
| 	Subscribe(context.Context, *SubscribeRequest) (*SubscribeResponse, error) | ||||
| } | ||||
|  | ||||
| // UnimplementedServerServer can be embedded to have forward compatible implementations. | ||||
| type UnimplementedServerServer struct { | ||||
| } | ||||
|  | ||||
| func (*UnimplementedServerServer) Handle(ctx context.Context, req *HandleRequest) (*HandleResponse, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Handle not implemented") | ||||
| } | ||||
| func (*UnimplementedServerServer) Subscribe(ctx context.Context, req *SubscribeRequest) (*SubscribeResponse, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Subscribe not implemented") | ||||
| } | ||||
|  | ||||
| func RegisterServerServer(s *grpc.Server, srv ServerServer) { | ||||
| 	s.RegisterService(&_Server_serviceDesc, srv) | ||||
| } | ||||
|  | ||||
| func _Server_Handle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(HandleRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(ServerServer).Handle(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: "/go.micro.server.Server/Handle", | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(ServerServer).Handle(ctx, req.(*HandleRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
|  | ||||
| func _Server_Subscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(SubscribeRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(ServerServer).Subscribe(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: "/go.micro.server.Server/Subscribe", | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(ServerServer).Subscribe(ctx, req.(*SubscribeRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
|  | ||||
| var _Server_serviceDesc = grpc.ServiceDesc{ | ||||
| 	ServiceName: "go.micro.server.Server", | ||||
| 	HandlerType: (*ServerServer)(nil), | ||||
| 	Methods: []grpc.MethodDesc{ | ||||
| 		{ | ||||
| 			MethodName: "Handle", | ||||
| 			Handler:    _Server_Handle_Handler, | ||||
| 		}, | ||||
| 		{ | ||||
| 			MethodName: "Subscribe", | ||||
| 			Handler:    _Server_Subscribe_Handler, | ||||
| 		}, | ||||
| 	}, | ||||
| 	Streams:  []grpc.StreamDesc{}, | ||||
| 	Metadata: "server/proto/server.proto", | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user