// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hello.proto

package testproto

import (
	context "context"
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	grpc "google.golang.org/grpc"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

// The request message containing the user's name.
type HelloRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *HelloRequest) Reset()         { *m = HelloRequest{} }
func (m *HelloRequest) String() string { return proto.CompactTextString(m) }
func (*HelloRequest) ProtoMessage()    {}
func (*HelloRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_61ef911816e0a8ce, []int{0}
}

func (m *HelloRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HelloRequest.Unmarshal(m, b)
}
func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HelloRequest.Marshal(b, m, deterministic)
}
func (m *HelloRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HelloRequest.Merge(m, src)
}
func (m *HelloRequest) XXX_Size() int {
	return xxx_messageInfo_HelloRequest.Size(m)
}
func (m *HelloRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_HelloRequest.DiscardUnknown(m)
}

var xxx_messageInfo_HelloRequest proto.InternalMessageInfo

func (m *HelloRequest) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

type WhoServerReq struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *WhoServerReq) Reset()         { *m = WhoServerReq{} }
func (m *WhoServerReq) String() string { return proto.CompactTextString(m) }
func (*WhoServerReq) ProtoMessage()    {}
func (*WhoServerReq) Descriptor() ([]byte, []int) {
	return fileDescriptor_61ef911816e0a8ce, []int{1}
}

func (m *WhoServerReq) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_WhoServerReq.Unmarshal(m, b)
}
func (m *WhoServerReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_WhoServerReq.Marshal(b, m, deterministic)
}
func (m *WhoServerReq) XXX_Merge(src proto.Message) {
	xxx_messageInfo_WhoServerReq.Merge(m, src)
}
func (m *WhoServerReq) XXX_Size() int {
	return xxx_messageInfo_WhoServerReq.Size(m)
}
func (m *WhoServerReq) XXX_DiscardUnknown() {
	xxx_messageInfo_WhoServerReq.DiscardUnknown(m)
}

var xxx_messageInfo_WhoServerReq proto.InternalMessageInfo

type WhoServerReply struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *WhoServerReply) Reset()         { *m = WhoServerReply{} }
func (m *WhoServerReply) String() string { return proto.CompactTextString(m) }
func (*WhoServerReply) ProtoMessage()    {}
func (*WhoServerReply) Descriptor() ([]byte, []int) {
	return fileDescriptor_61ef911816e0a8ce, []int{2}
}

func (m *WhoServerReply) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_WhoServerReply.Unmarshal(m, b)
}
func (m *WhoServerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_WhoServerReply.Marshal(b, m, deterministic)
}
func (m *WhoServerReply) XXX_Merge(src proto.Message) {
	xxx_messageInfo_WhoServerReply.Merge(m, src)
}
func (m *WhoServerReply) XXX_Size() int {
	return xxx_messageInfo_WhoServerReply.Size(m)
}
func (m *WhoServerReply) XXX_DiscardUnknown() {
	xxx_messageInfo_WhoServerReply.DiscardUnknown(m)
}

var xxx_messageInfo_WhoServerReply proto.InternalMessageInfo

func (m *WhoServerReply) GetMessage() string {
	if m != nil {
		return m.Message
	}
	return ""
}

// The response message containing the greetings
type HelloReply struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Id64                 int64    `protobuf:"varint,2,opt,name=id64,proto3" json:"id64,omitempty"`
	Id32                 int32    `protobuf:"varint,3,opt,name=id32,proto3" json:"id32,omitempty"`
	Idu64                uint64   `protobuf:"varint,4,opt,name=idu64,proto3" json:"idu64,omitempty"`
	Idu32                uint32   `protobuf:"varint,5,opt,name=idu32,proto3" json:"idu32,omitempty"`
	Name                 []byte   `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	Done                 bool     `protobuf:"varint,7,opt,name=done,proto3" json:"done,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *HelloReply) Reset()         { *m = HelloReply{} }
func (m *HelloReply) String() string { return proto.CompactTextString(m) }
func (*HelloReply) ProtoMessage()    {}
func (*HelloReply) Descriptor() ([]byte, []int) {
	return fileDescriptor_61ef911816e0a8ce, []int{3}
}

func (m *HelloReply) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HelloReply.Unmarshal(m, b)
}
func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HelloReply.Marshal(b, m, deterministic)
}
func (m *HelloReply) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HelloReply.Merge(m, src)
}
func (m *HelloReply) XXX_Size() int {
	return xxx_messageInfo_HelloReply.Size(m)
}
func (m *HelloReply) XXX_DiscardUnknown() {
	xxx_messageInfo_HelloReply.DiscardUnknown(m)
}

var xxx_messageInfo_HelloReply proto.InternalMessageInfo

func (m *HelloReply) GetMessage() string {
	if m != nil {
		return m.Message
	}
	return ""
}

func (m *HelloReply) GetId64() int64 {
	if m != nil {
		return m.Id64
	}
	return 0
}

func (m *HelloReply) GetId32() int32 {
	if m != nil {
		return m.Id32
	}
	return 0
}

func (m *HelloReply) GetIdu64() uint64 {
	if m != nil {
		return m.Idu64
	}
	return 0
}

func (m *HelloReply) GetIdu32() uint32 {
	if m != nil {
		return m.Idu32
	}
	return 0
}

func (m *HelloReply) GetName() []byte {
	if m != nil {
		return m.Name
	}
	return nil
}

func (m *HelloReply) GetDone() bool {
	if m != nil {
		return m.Done
	}
	return false
}

func init() {
	proto.RegisterType((*HelloRequest)(nil), "testproto.HelloRequest")
	proto.RegisterType((*WhoServerReq)(nil), "testproto.WhoServerReq")
	proto.RegisterType((*WhoServerReply)(nil), "testproto.WhoServerReply")
	proto.RegisterType((*HelloReply)(nil), "testproto.HelloReply")
}

func init() { proto.RegisterFile("hello.proto", fileDescriptor_61ef911816e0a8ce) }

var fileDescriptor_61ef911816e0a8ce = []byte{
	// 309 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xcd, 0x4e, 0x02, 0x31,
	0x10, 0xc7, 0x1d, 0xf9, 0x1e, 0x10, 0x93, 0x46, 0x63, 0xc5, 0x4b, 0xb3, 0xa7, 0xc6, 0xc3, 0x86,
	0x00, 0xe1, 0xe4, 0x45, 0x3c, 0xe8, 0x91, 0x94, 0x03, 0xe7, 0xd5, 0x9d, 0x00, 0x49, 0x97, 0x2e,
	0xdd, 0xa2, 0xf2, 0x3a, 0xbe, 0x90, 0xaf, 0x64, 0xb6, 0x0b, 0x64, 0x8d, 0xc6, 0x83, 0xb7, 0xdf,
	0x7f, 0xa6, 0xf3, 0xf5, 0x4f, 0xb1, 0xbd, 0x24, 0xad, 0x4d, 0x98, 0x5a, 0xe3, 0x0c, 0x6b, 0x39,
	0xca, 0x9c, 0xc7, 0x20, 0xc0, 0xce, 0x53, 0x9e, 0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0x4a,
	0x52, 0x4d, 0x59, 0xe8, 0x7f, 0xc0, 0x9b, 0xb1, 0x3a, 0x9e, 0x9c, 0xfb, 0x82, 0x79, 0xce, 0xd3,
	0xbc, 0xc1, 0x14, 0x9e, 0xeb, 0xbe, 0xd3, 0xf0, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x83, 0xf5, 0x17,
	0xec, 0x29, 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

// GreeterClient is the client API for Greeter service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type GreeterClient interface {
	// Sends a greeting
	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
	WhoServer(ctx context.Context, in *WhoServerReq, opts ...grpc.CallOption) (*WhoServerReply, error)
	StreamHello(ctx context.Context, opts ...grpc.CallOption) (Greeter_StreamHelloClient, error)
}

type greeterClient struct {
	cc *grpc.ClientConn
}

func NewGreeterClient(cc *grpc.ClientConn) GreeterClient {
	return &greeterClient{cc}
}

func (c *greeterClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) {
	out := new(HelloReply)
	err := c.cc.Invoke(ctx, "/testproto.Greeter/SayHello", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *greeterClient) WhoServer(ctx context.Context, in *WhoServerReq, opts ...grpc.CallOption) (*WhoServerReply, error) {
	out := new(WhoServerReply)
	err := c.cc.Invoke(ctx, "/testproto.Greeter/WhoServer", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *greeterClient) StreamHello(ctx context.Context, opts ...grpc.CallOption) (Greeter_StreamHelloClient, error) {
	stream, err := c.cc.NewStream(ctx, &_Greeter_serviceDesc.Streams[0], "/testproto.Greeter/StreamHello", opts...)
	if err != nil {
		return nil, err
	}
	x := &greeterStreamHelloClient{stream}
	return x, nil
}

type Greeter_StreamHelloClient interface {
	Send(*HelloRequest) error
	Recv() (*HelloReply, error)
	grpc.ClientStream
}

type greeterStreamHelloClient struct {
	grpc.ClientStream
}

func (x *greeterStreamHelloClient) Send(m *HelloRequest) error {
	return x.ClientStream.SendMsg(m)
}

func (x *greeterStreamHelloClient) Recv() (*HelloReply, error) {
	m := new(HelloReply)
	if err := x.ClientStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

// GreeterServer is the server API for Greeter service.
type GreeterServer interface {
	// Sends a greeting
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
	WhoServer(context.Context, *WhoServerReq) (*WhoServerReply, error)
	StreamHello(Greeter_StreamHelloServer) error
}

func RegisterGreeterServer(s *grpc.Server, srv GreeterServer) {
	s.RegisterService(&_Greeter_serviceDesc, srv)
}

func _Greeter_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(HelloRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(GreeterServer).SayHello(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/testproto.Greeter/SayHello",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(GreeterServer).SayHello(ctx, req.(*HelloRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Greeter_WhoServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(WhoServerReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(GreeterServer).WhoServer(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/testproto.Greeter/WhoServer",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(GreeterServer).WhoServer(ctx, req.(*WhoServerReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Greeter_StreamHello_Handler(srv interface{}, stream grpc.ServerStream) error {
	return srv.(GreeterServer).StreamHello(&greeterStreamHelloServer{stream})
}

type Greeter_StreamHelloServer interface {
	Send(*HelloReply) error
	Recv() (*HelloRequest, error)
	grpc.ServerStream
}

type greeterStreamHelloServer struct {
	grpc.ServerStream
}

func (x *greeterStreamHelloServer) Send(m *HelloReply) error {
	return x.ServerStream.SendMsg(m)
}

func (x *greeterStreamHelloServer) Recv() (*HelloRequest, error) {
	m := new(HelloRequest)
	if err := x.ServerStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

var _Greeter_serviceDesc = grpc.ServiceDesc{
	ServiceName: "testproto.Greeter",
	HandlerType: (*GreeterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SayHello",
			Handler:    _Greeter_SayHello_Handler,
		},
		{
			MethodName: "WhoServer",
			Handler:    _Greeter_WhoServer_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamHello",
			Handler:       _Greeter_StreamHello_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "hello.proto",
}
