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: micro/go-micro/broker/service/proto/broker.proto | ||||
| // source: broker/service/proto/broker.proto | ||||
|  | ||||
| package go_micro_broker | ||||
|  | ||||
| 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 *Empty) Reset()         { *m = Empty{} } | ||||
| func (m *Empty) String() string { return proto.CompactTextString(m) } | ||||
| func (*Empty) ProtoMessage()    {} | ||||
| func (*Empty) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_178fdc60944ff5e5, []int{0} | ||||
| 	return fileDescriptor_df4d8f04292cf3fe, []int{0} | ||||
| } | ||||
|  | ||||
| func (m *Empty) XXX_Unmarshal(b []byte) error { | ||||
| @@ -63,7 +67,7 @@ func (m *PublishRequest) Reset()         { *m = PublishRequest{} } | ||||
| func (m *PublishRequest) String() string { return proto.CompactTextString(m) } | ||||
| func (*PublishRequest) ProtoMessage()    {} | ||||
| func (*PublishRequest) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_178fdc60944ff5e5, []int{1} | ||||
| 	return fileDescriptor_df4d8f04292cf3fe, []int{1} | ||||
| } | ||||
|  | ||||
| func (m *PublishRequest) XXX_Unmarshal(b []byte) error { | ||||
| @@ -110,7 +114,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_178fdc60944ff5e5, []int{2} | ||||
| 	return fileDescriptor_df4d8f04292cf3fe, []int{2} | ||||
| } | ||||
|  | ||||
| func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error { | ||||
| @@ -157,7 +161,7 @@ func (m *Message) Reset()         { *m = Message{} } | ||||
| func (m *Message) String() string { return proto.CompactTextString(m) } | ||||
| func (*Message) ProtoMessage()    {} | ||||
| func (*Message) Descriptor() ([]byte, []int) { | ||||
| 	return fileDescriptor_178fdc60944ff5e5, []int{3} | ||||
| 	return fileDescriptor_df4d8f04292cf3fe, []int{3} | ||||
| } | ||||
|  | ||||
| func (m *Message) XXX_Unmarshal(b []byte) error { | ||||
| @@ -200,30 +204,171 @@ func init() { | ||||
| 	proto.RegisterMapType((map[string]string)(nil), "go.micro.broker.Message.HeaderEntry") | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	proto.RegisterFile("micro/go-micro/broker/service/proto/broker.proto", fileDescriptor_178fdc60944ff5e5) | ||||
| func init() { proto.RegisterFile("broker/service/proto/broker.proto", fileDescriptor_df4d8f04292cf3fe) } | ||||
|  | ||||
| var fileDescriptor_df4d8f04292cf3fe = []byte{ | ||||
| 	// 299 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x51, 0x4d, 0x4b, 0xc3, 0x40, | ||||
| 	0x14, 0xec, 0xb6, 0xb6, 0xa1, 0xaf, 0xa2, 0x65, 0x29, 0x12, 0x7a, 0x31, 0x0d, 0x1e, 0x72, 0xda, | ||||
| 	0x48, 0xbc, 0xa8, 0x88, 0x07, 0xb1, 0xe0, 0x41, 0x41, 0xd6, 0x9b, 0xb7, 0x6c, 0xfa, 0x68, 0x43, | ||||
| 	0x1b, 0x37, 0x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5, 0x43, 0xe8, 0x2c, | ||||
| 	0xb1, 0xaa, 0x6d, 0x6d, 0xc7, 0xad, 0xa9, 0x4d, 0xbc, 0xfa, 0x31, 0x65, 0xc0, 0x75, 0xfb, 0x92, | ||||
| 	0x44, 0x1f, 0x04, 0x7a, 0x77, 0xe6, 0x2a, 0xbd, 0x07, 0xa7, 0xce, 0x8f, 0x9e, 0x36, 0x2c, 0xfd, | ||||
| 	0x4d, 0x76, 0x7c, 0xd2, 0x20, 0xd8, 0x0e, 0x5a, 0xf4, 0x11, 0xfa, 0xdf, 0x49, 0xd1, 0x49, 0x83, | ||||
| 	0xb6, 0x9b, 0xe2, 0x78, 0x6f, 0xf8, 0x7e, 0xeb, 0x9c, 0x88, 0x9e, 0x29, 0xfd, 0xe2, 0x33, 0x00, | ||||
| 	0x00, 0xff, 0xff, 0x19, 0x9f, 0x10, 0x75, 0x19, 0x02, 0x00, 0x00, | ||||
| } | ||||
|  | ||||
| var fileDescriptor_178fdc60944ff5e5 = []byte{ | ||||
| 	// 305 bytes of a gzipped FileDescriptorProto | ||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x51, 0x4d, 0x4f, 0xc2, 0x40, | ||||
| 	0x14, 0x64, 0x41, 0x68, 0x78, 0x18, 0x25, 0x1b, 0x62, 0x1a, 0x2e, 0x62, 0xe3, 0x81, 0x8b, 0x5b, | ||||
| 	0x52, 0x2f, 0x6a, 0x8c, 0x07, 0x23, 0x89, 0x07, 0x4d, 0xcc, 0x7a, 0xf3, 0xd6, 0x2d, 0x2f, 0xa5, | ||||
| 	0x81, 0xba, 0x65, 0xb7, 0x25, 0xe9, 0x1f, 0xf1, 0xe4, 0x8f, 0x35, 0xec, 0x16, 0x3f, 0x68, 0xf0, | ||||
| 	0x36, 0xf3, 0x76, 0x76, 0xde, 0x64, 0x1e, 0x4c, 0xd2, 0x24, 0x52, 0xd2, 0x8f, 0xe5, 0x85, 0x05, | ||||
| 	0x42, 0xc9, 0x05, 0x2a, 0x5f, 0xa3, 0x5a, 0x27, 0x11, 0xfa, 0x99, 0x92, 0xf9, 0x76, 0xc8, 0x0c, | ||||
| 	0xa1, 0xc7, 0xb1, 0x64, 0x46, 0xcb, 0xec, 0xd8, 0x73, 0xa0, 0x3d, 0x4d, 0xb3, 0xbc, 0xf4, 0xde, | ||||
| 	0xe0, 0xe8, 0xa5, 0x10, 0xcb, 0x44, 0xcf, 0x39, 0xae, 0x0a, 0xd4, 0x39, 0x1d, 0x40, 0x3b, 0x97, | ||||
| 	0x59, 0x12, 0xb9, 0x64, 0x44, 0xc6, 0x5d, 0x6e, 0x09, 0x0d, 0xc0, 0x49, 0x51, 0xeb, 0x30, 0x46, | ||||
| 	0xb7, 0x39, 0x22, 0xe3, 0x5e, 0xe0, 0xb2, 0x1d, 0x4f, 0xf6, 0x6c, 0xdf, 0xf9, 0x56, 0xe8, 0xdd, | ||||
| 	0x41, 0xff, 0xb5, 0x10, 0x3a, 0x52, 0x89, 0xc0, 0xff, 0xdd, 0x07, 0xd0, 0x5e, 0x15, 0x58, 0x58, | ||||
| 	0xef, 0x2e, 0xb7, 0xc4, 0xfb, 0x20, 0xe0, 0x54, 0xa6, 0xf4, 0x16, 0x3a, 0x73, 0x0c, 0x67, 0xa8, | ||||
| 	0x5c, 0x32, 0x6a, 0x8d, 0x7b, 0xc1, 0xf9, 0xbe, 0xf5, 0xec, 0xd1, 0xc8, 0xa6, 0xef, 0xb9, 0x2a, | ||||
| 	0x79, 0xf5, 0x87, 0x52, 0x38, 0x10, 0x72, 0x56, 0x1a, 0xfb, 0x43, 0x6e, 0xf0, 0xf0, 0x1a, 0x7a, | ||||
| 	0xbf, 0xa4, 0xb4, 0x0f, 0xad, 0x05, 0x96, 0x55, 0xac, 0x0d, 0xdc, 0x84, 0x5a, 0x87, 0xcb, 0x9f, | ||||
| 	0x50, 0x86, 0xdc, 0x34, 0xaf, 0x48, 0xf0, 0x49, 0xa0, 0x73, 0x6f, 0xb6, 0xd2, 0x07, 0x70, 0xaa, | ||||
| 	0xfe, 0xe8, 0x69, 0x2d, 0xd2, 0xdf, 0x66, 0x87, 0x27, 0x35, 0x81, 0xbd, 0x41, 0x83, 0x3e, 0x41, | ||||
| 	0xf7, 0xbb, 0x29, 0x7a, 0x56, 0x93, 0xed, 0xb6, 0x38, 0xdc, 0x5b, 0xbe, 0xd7, 0x98, 0x10, 0xd1, | ||||
| 	0x31, 0x47, 0xbf, 0xfc, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x60, 0x8c, 0x40, 0xd5, 0x28, 0x02, 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 | ||||
|  | ||||
| // BrokerClient is the client API for Broker service. | ||||
| // | ||||
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. | ||||
| type BrokerClient interface { | ||||
| 	Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*Empty, error) | ||||
| 	Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (Broker_SubscribeClient, error) | ||||
| } | ||||
|  | ||||
| type brokerClient struct { | ||||
| 	cc *grpc.ClientConn | ||||
| } | ||||
|  | ||||
| func NewBrokerClient(cc *grpc.ClientConn) BrokerClient { | ||||
| 	return &brokerClient{cc} | ||||
| } | ||||
|  | ||||
| func (c *brokerClient) Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*Empty, error) { | ||||
| 	out := new(Empty) | ||||
| 	err := c.cc.Invoke(ctx, "/go.micro.broker.Broker/Publish", in, out, opts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return out, nil | ||||
| } | ||||
|  | ||||
| func (c *brokerClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (Broker_SubscribeClient, error) { | ||||
| 	stream, err := c.cc.NewStream(ctx, &_Broker_serviceDesc.Streams[0], "/go.micro.broker.Broker/Subscribe", opts...) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	x := &brokerSubscribeClient{stream} | ||||
| 	if err := x.ClientStream.SendMsg(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if err := x.ClientStream.CloseSend(); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return x, nil | ||||
| } | ||||
|  | ||||
| type Broker_SubscribeClient interface { | ||||
| 	Recv() (*Message, error) | ||||
| 	grpc.ClientStream | ||||
| } | ||||
|  | ||||
| type brokerSubscribeClient struct { | ||||
| 	grpc.ClientStream | ||||
| } | ||||
|  | ||||
| func (x *brokerSubscribeClient) Recv() (*Message, error) { | ||||
| 	m := new(Message) | ||||
| 	if err := x.ClientStream.RecvMsg(m); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return m, nil | ||||
| } | ||||
|  | ||||
| // BrokerServer is the server API for Broker service. | ||||
| type BrokerServer interface { | ||||
| 	Publish(context.Context, *PublishRequest) (*Empty, error) | ||||
| 	Subscribe(*SubscribeRequest, Broker_SubscribeServer) error | ||||
| } | ||||
|  | ||||
| // UnimplementedBrokerServer can be embedded to have forward compatible implementations. | ||||
| type UnimplementedBrokerServer struct { | ||||
| } | ||||
|  | ||||
| func (*UnimplementedBrokerServer) Publish(ctx context.Context, req *PublishRequest) (*Empty, error) { | ||||
| 	return nil, status.Errorf(codes.Unimplemented, "method Publish not implemented") | ||||
| } | ||||
| func (*UnimplementedBrokerServer) Subscribe(req *SubscribeRequest, srv Broker_SubscribeServer) error { | ||||
| 	return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") | ||||
| } | ||||
|  | ||||
| func RegisterBrokerServer(s *grpc.Server, srv BrokerServer) { | ||||
| 	s.RegisterService(&_Broker_serviceDesc, srv) | ||||
| } | ||||
|  | ||||
| func _Broker_Publish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | ||||
| 	in := new(PublishRequest) | ||||
| 	if err := dec(in); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	if interceptor == nil { | ||||
| 		return srv.(BrokerServer).Publish(ctx, in) | ||||
| 	} | ||||
| 	info := &grpc.UnaryServerInfo{ | ||||
| 		Server:     srv, | ||||
| 		FullMethod: "/go.micro.broker.Broker/Publish", | ||||
| 	} | ||||
| 	handler := func(ctx context.Context, req interface{}) (interface{}, error) { | ||||
| 		return srv.(BrokerServer).Publish(ctx, req.(*PublishRequest)) | ||||
| 	} | ||||
| 	return interceptor(ctx, in, info, handler) | ||||
| } | ||||
|  | ||||
| func _Broker_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error { | ||||
| 	m := new(SubscribeRequest) | ||||
| 	if err := stream.RecvMsg(m); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	return srv.(BrokerServer).Subscribe(m, &brokerSubscribeServer{stream}) | ||||
| } | ||||
|  | ||||
| type Broker_SubscribeServer interface { | ||||
| 	Send(*Message) error | ||||
| 	grpc.ServerStream | ||||
| } | ||||
|  | ||||
| type brokerSubscribeServer struct { | ||||
| 	grpc.ServerStream | ||||
| } | ||||
|  | ||||
| func (x *brokerSubscribeServer) Send(m *Message) error { | ||||
| 	return x.ServerStream.SendMsg(m) | ||||
| } | ||||
|  | ||||
| var _Broker_serviceDesc = grpc.ServiceDesc{ | ||||
| 	ServiceName: "go.micro.broker.Broker", | ||||
| 	HandlerType: (*BrokerServer)(nil), | ||||
| 	Methods: []grpc.MethodDesc{ | ||||
| 		{ | ||||
| 			MethodName: "Publish", | ||||
| 			Handler:    _Broker_Publish_Handler, | ||||
| 		}, | ||||
| 	}, | ||||
| 	Streams: []grpc.StreamDesc{ | ||||
| 		{ | ||||
| 			StreamName:    "Subscribe", | ||||
| 			Handler:       _Broker_Subscribe_Handler, | ||||
| 			ServerStreams: true, | ||||
| 		}, | ||||
| 	}, | ||||
| 	Metadata: "broker/service/proto/broker.proto", | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user