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

/*
Package dist is a generated protocol buffer package.

It is generated from these files:
	person.proto

It has these top-level messages:
	Person
	Address
	Obj
*/
package dist

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import 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.ProtoPackageIsVersion2 // please upgrade the proto package

type Gender int32

const (
	Gender_M Gender = 0
	Gender_F Gender = 1
)

var Gender_name = map[int32]string{
	0: "M",
	1: "F",
}
var Gender_value = map[string]int32{
	"M": 0,
	"F": 1,
}

func (x Gender) String() string {
	return proto.EnumName(Gender_name, int32(x))
}
func (Gender) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }

type Person struct {
	Name    string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Age     int32    `protobuf:"varint,2,opt,name=age" json:"age,omitempty"`
	Gender  Gender   `protobuf:"varint,3,opt,name=gender,enum=Gender" json:"gender,omitempty"`
	Address *Address `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"`
}

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

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

func (m *Person) GetAge() int32 {
	if m != nil {
		return m.Age
	}
	return 0
}

func (m *Person) GetGender() Gender {
	if m != nil {
		return m.Gender
	}
	return Gender_M
}

func (m *Person) GetAddress() *Address {
	if m != nil {
		return m.Address
	}
	return nil
}

type Address struct {
	City   string   `protobuf:"bytes,1,opt,name=city" json:"city,omitempty"`
	Places []string `protobuf:"bytes,2,rep,name=places" json:"places,omitempty"`
	Child  *Obj     `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"`
}

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

func (m *Address) GetCity() string {
	if m != nil {
		return m.City
	}
	return ""
}

func (m *Address) GetPlaces() []string {
	if m != nil {
		return m.Places
	}
	return nil
}

func (m *Address) GetChild() *Obj {
	if m != nil {
		return m.Child
	}
	return nil
}

type Obj struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

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

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

func init() {
	proto.RegisterType((*Person)(nil), "Person")
	proto.RegisterType((*Address)(nil), "Address")
	proto.RegisterType((*Obj)(nil), "Obj")
	proto.RegisterEnum("Gender", Gender_name, Gender_value)
}

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

var fileDescriptor0 = []byte{
	// 219 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xb1, 0x4e, 0xc3, 0x30,
	0x10, 0x86, 0x71, 0xe3, 0x38, 0xf4, 0x8a, 0x50, 0x74, 0x43, 0x65, 0x58, 0xb0, 0x3c, 0x59, 0x0c,
	0x1e, 0xc2, 0x13, 0xc0, 0x00, 0x13, 0x2a, 0x78, 0x64, 0x73, 0x62, 0xab, 0xa4, 0x2a, 0x49, 0x64,
	0x67, 0xe1, 0xed, 0x91, 0x9d, 0x74, 0x63, 0xf2, 0xff, 0xfd, 0x1e, 0xbe, 0xbb, 0x83, 0x9b, 0xc9,
	0x87, 0x38, 0x0e, 0x7a, 0x0a, 0xe3, 0x3c,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