person

package
v0.0.0-...-dc806d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PhoneType_name = map[int32]string{
	0: "NONE",
	1: "STATIONARY",
	2: "CELLULAR",
	3: "OTHER",
}
View Source
var PhoneType_value = map[string]int32{
	"NONE":       0,
	"STATIONARY": 1,
	"CELLULAR":   2,
	"OTHER":      3,
}

Functions

This section is empty.

Types

type Person

type Person struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Phones               []*Phone `protobuf:"bytes,3,rep,name=phones,proto3" json:"phones,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Person) Descriptor

func (*Person) Descriptor() ([]byte, []int)

func (*Person) GetId

func (m *Person) GetId() int32

func (*Person) GetName

func (m *Person) GetName() string

func (*Person) GetPhones

func (m *Person) GetPhones() []*Phone

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) Reset

func (m *Person) Reset()

func (*Person) String

func (m *Person) String() string

func (*Person) XXX_DiscardUnknown

func (m *Person) XXX_DiscardUnknown()

func (*Person) XXX_Marshal

func (m *Person) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Person) XXX_Merge

func (m *Person) XXX_Merge(src proto.Message)

func (*Person) XXX_Size

func (m *Person) XXX_Size() int

func (*Person) XXX_Unmarshal

func (m *Person) XXX_Unmarshal(b []byte) error

type Phone

type Phone struct {
	Number               string    `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Type                 PhoneType `protobuf:"varint,2,opt,name=type,proto3,enum=person.PhoneType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Phone) Descriptor

func (*Phone) Descriptor() ([]byte, []int)

func (*Phone) GetNumber

func (m *Phone) GetNumber() string

func (*Phone) GetType

func (m *Phone) GetType() PhoneType

func (*Phone) ProtoMessage

func (*Phone) ProtoMessage()

func (*Phone) Reset

func (m *Phone) Reset()

func (*Phone) String

func (m *Phone) String() string

func (*Phone) XXX_DiscardUnknown

func (m *Phone) XXX_DiscardUnknown()

func (*Phone) XXX_Marshal

func (m *Phone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Phone) XXX_Merge

func (m *Phone) XXX_Merge(src proto.Message)

func (*Phone) XXX_Size

func (m *Phone) XXX_Size() int

func (*Phone) XXX_Unmarshal

func (m *Phone) XXX_Unmarshal(b []byte) error

type PhoneType

type PhoneType int32
const (
	PhoneType_NONE       PhoneType = 0
	PhoneType_STATIONARY PhoneType = 1
	PhoneType_CELLULAR   PhoneType = 2
	PhoneType_OTHER      PhoneType = 3
)

func (PhoneType) EnumDescriptor

func (PhoneType) EnumDescriptor() ([]byte, []int)

func (PhoneType) String

func (x PhoneType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL