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

/*
Package world is a generated protocol buffer package.

It is generated from these files:
	world.proto

It has these top-level messages:
	WorldRequest
	WorldReply
*/
package world

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"

import (
	context "golang.org/x/net/context"
	grpc "google.golang.org/grpc"
)

// 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.ProtoPackageIsVersion2 // please upgrade the proto package

// The request message containing the user's name.
type WorldRequest struct {
	Num int32 `protobuf:"varint,1,opt,name=num" json:"num,omitempty"`
}

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

func (m *WorldRequest) GetNum() int32 {
	if m != nil {
		return m.Num
	}
	return 0
}

// The response message containing the greetings
type WorldReply struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

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

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

func init() {
	proto.RegisterType((*WorldRequest)(nil), "world.WorldRequest")
	proto.RegisterType((*WorldReply)(nil), "world.WorldReply")
}

// 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

// Client API for World service

type WorldClient interface {
	// Sends a greeting
	SayWorld(ctx context.Context, in *WorldRequest, opts ...grpc.CallOption) (*WorldReply, error)
}

type worldClient struct {
	cc *grpc.ClientConn
}

func NewWorldClient(cc *grpc.ClientConn) WorldClient {
	return &worldClient{cc}
}

func (c *worldClient) SayWorld(ctx context.Context, in *WorldRequest, opts ...grpc.CallOption) (*WorldReply, error) {
	out := new(WorldReply)
	err := grpc.Invoke(ctx, "/world.World/SayWorld", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// Server API for World service

type WorldServer interface {
	// Sends a greeting
	SayWorld(context.Context, *WorldRequest) (*WorldReply, error)
}

func RegisterWorldServer(s *grpc.Server, srv WorldServer) {
	s.RegisterService(&_World_serviceDesc, srv)
}

func _World_SayWorld_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(WorldRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(WorldServer).SayWorld(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/world.World/SayWorld",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(WorldServer).SayWorld(ctx, req.(*WorldRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _World_serviceDesc = grpc.ServiceDesc{
	ServiceName: "world.World",
	HandlerType: (*WorldServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SayWorld",
			Handler:    _World_SayWorld_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "world.proto",
}

func init() { proto.RegisterFile("world.proto", fileDescriptor0) }

var fileDescriptor0 = []byte{
	// 131 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2e, 0xcf, 0x2f, 0xca,
	0x49, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x73, 0x94, 0x14, 0xb8, 0x78, 0xc2,
	0x41, 0x8c, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x21, 0x01, 0x2e, 0xe6, 0xbc, 0xd2, 0x5c,
	0x09, 0x46, 0x05, 0x46, 0x0d, 0xd6, 0x20, 0x10, 0x53, 0x49, 0x8d, 0x8b, 0x0b, 0xaa, 0xa2, 0x20,
	0xa7, 0x52, 0x48, 0x82, 0x8b, 0x3d, 0x37, 0xb5, 0xb8, 0x38, 0x31, 0x3d, 0x15, 0xac, 0x86, 0x33,
	0x08, 0xc6, 0x35, 0xb2, 0xe5, 0x62, 0x05, 0xab, 0x13, 0x32, 0xe1, 0xe2, 0x08, 0x4e, 0xac, 0x84,
	0xb0, 0x85, 0xf5, 0x20, 0x76, 0x22, 0xdb, 0x21, 0x25, 0x88, 0x2a, 0x58, 0x90, 0x53, 0xa9, 0xc4,
	0x90, 0xc4, 0x06, 0x76, 0x96, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x63, 0x31, 0x6b, 0xa5,
	0x00, 0x00, 0x00,
}
