Documentation
¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
examples/address_book/pb/address_book.proto
It has these top-level messages:
AddressBook ContactNfo Phone Address Company
Package pb is a generated protocol buffer package.
It is generated from these files:
examples/address_book/pb/address_book.proto
It has these top-level messages:
AddressBook ContactNfo Phone Address Company
Index ¶
- Variables
- func GomeetFakerRand() *rand.Rand
- func GomeetFakerSetLocale(l string)
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetCity() string
- func (m *Address) GetPostcode() string
- func (m *Address) GetStreetAddress() string
- func (m *Address) GetType() Address_AddressType
- func (m *Address) GetUuid() string
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- type AddressBook
- type Address_AddressType
- type Company
- func (*Company) Descriptor() ([]byte, []int)
- func (m *Company) GetAddresses() []*Address
- func (m *Company) GetBs() string
- func (m *Company) GetCatchPhrase() string
- func (m *Company) GetDunsNumber() string
- func (m *Company) GetEin() string
- func (m *Company) GetLogo() string
- func (m *Company) GetName() string
- func (m *Company) GetNote() string
- func (m *Company) GetSuffix() string
- func (m *Company) GetUuid() string
- func (*Company) ProtoMessage()
- func (m *Company) Reset()
- func (m *Company) String() string
- type ContactNfo
- func (*ContactNfo) Descriptor() ([]byte, []int)
- func (m *ContactNfo) GetAddresses() []*Address
- func (m *ContactNfo) GetAvatarsUrl() []string
- func (m *ContactNfo) GetBirthday() string
- func (m *ContactNfo) GetCompany() *Company
- func (m *ContactNfo) GetName() string
- func (m *ContactNfo) GetNotes() []string
- func (m *ContactNfo) GetPhones() []*Phone
- func (m *ContactNfo) GetUuid() string
- func (*ContactNfo) ProtoMessage()
- func (m *ContactNfo) Reset()
- func (m *ContactNfo) String() string
- type Phone
- type Phone_PhoneType
Constants ¶
This section is empty.
Variables ¶
View Source
var Address_AddressType_name = map[int32]string{
0: "UNKNOW",
1: "HOME",
2: "WORK",
3: "OTHER",
}
View Source
var Address_AddressType_value = map[string]int32{
"UNKNOW": 0,
"HOME": 1,
"WORK": 2,
"OTHER": 3,
}
View Source
var Phone_PhoneType_name = map[int32]string{
0: "UNKNOW",
1: "HOME",
2: "WORK",
3: "OTHER",
}
View Source
var Phone_PhoneType_value = map[string]int32{
"UNKNOW": 0,
"HOME": 1,
"WORK": 2,
"OTHER": 3,
}
Functions ¶
func GomeetFakerRand ¶
func GomeetFakerSetLocale ¶
func GomeetFakerSetLocale(l string)
Types ¶
type Address ¶
type Address struct { Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` Type Address_AddressType `protobuf:"varint,2,opt,name=type,enum=gomeetfaker.examples.Address_AddressType" json:"type,omitempty"` City string `protobuf:"bytes,3,opt,name=city" json:"city,omitempty"` StreetAddress string `protobuf:"bytes,4,opt,name=street_address,json=streetAddress" json:"street_address,omitempty"` Postcode string `protobuf:"bytes,5,opt,name=postcode" json:"postcode,omitempty"` }
func NewAddressGomeetFaker ¶
func NewAddressGomeetFaker() *Address
func (*Address) Descriptor ¶
func (*Address) GetPostcode ¶
func (*Address) GetStreetAddress ¶
func (*Address) GetType ¶
func (m *Address) GetType() Address_AddressType
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
type AddressBook ¶
type AddressBook struct { Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` Contacts []*ContactNfo `protobuf:"bytes,2,rep,name=contacts" json:"contacts,omitempty"` }
func NewAddressBookGomeetFaker ¶
func NewAddressBookGomeetFaker() *AddressBook
func (*AddressBook) Descriptor ¶
func (*AddressBook) Descriptor() ([]byte, []int)
func (*AddressBook) GetContacts ¶
func (m *AddressBook) GetContacts() []*ContactNfo
func (*AddressBook) GetUuid ¶
func (m *AddressBook) GetUuid() string
func (*AddressBook) ProtoMessage ¶
func (*AddressBook) ProtoMessage()
func (*AddressBook) Reset ¶
func (m *AddressBook) Reset()
func (*AddressBook) String ¶
func (m *AddressBook) String() string
type Address_AddressType ¶
type Address_AddressType int32
const ( Address_UNKNOW Address_AddressType = 0 Address_HOME Address_AddressType = 1 Address_WORK Address_AddressType = 2 Address_OTHER Address_AddressType = 3 )
func (Address_AddressType) EnumDescriptor ¶
func (Address_AddressType) EnumDescriptor() ([]byte, []int)
func (Address_AddressType) String ¶
func (x Address_AddressType) String() string
type Company ¶
type Company struct { Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Suffix string `protobuf:"bytes,3,opt,name=suffix" json:"suffix,omitempty"` CatchPhrase string `protobuf:"bytes,4,opt,name=catch_phrase,json=catchPhrase" json:"catch_phrase,omitempty"` Bs string `protobuf:"bytes,5,opt,name=bs" json:"bs,omitempty"` Ein string `protobuf:"bytes,6,opt,name=ein" json:"ein,omitempty"` DunsNumber string `protobuf:"bytes,7,opt,name=duns_number,json=dunsNumber" json:"duns_number,omitempty"` Logo string `protobuf:"bytes,8,opt,name=logo" json:"logo,omitempty"` Addresses []*Address `protobuf:"bytes,9,rep,name=addresses" json:"addresses,omitempty"` Note string `protobuf:"bytes,10,opt,name=note" json:"note,omitempty"` }
func NewCompanyGomeetFaker ¶
func NewCompanyGomeetFaker() *Company
func (*Company) Descriptor ¶
func (*Company) GetAddresses ¶
func (*Company) GetCatchPhrase ¶
func (*Company) GetDunsNumber ¶
func (*Company) ProtoMessage ¶
func (*Company) ProtoMessage()
type ContactNfo ¶
type ContactNfo struct { Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` AvatarsUrl []string `protobuf:"bytes,3,rep,name=avatars_url,json=avatarsUrl" json:"avatars_url,omitempty"` Phones []*Phone `protobuf:"bytes,4,rep,name=phones" json:"phones,omitempty"` Addresses []*Address `protobuf:"bytes,5,rep,name=addresses" json:"addresses,omitempty"` Company *Company `protobuf:"bytes,6,opt,name=company" json:"company,omitempty"` Notes []string `protobuf:"bytes,7,rep,name=notes" json:"notes,omitempty"` Birthday string `protobuf:"bytes,8,opt,name=birthday" json:"birthday,omitempty"` }
func NewContactNfoGomeetFaker ¶
func NewContactNfoGomeetFaker() *ContactNfo
func (*ContactNfo) Descriptor ¶
func (*ContactNfo) Descriptor() ([]byte, []int)
func (*ContactNfo) GetAddresses ¶
func (m *ContactNfo) GetAddresses() []*Address
func (*ContactNfo) GetAvatarsUrl ¶
func (m *ContactNfo) GetAvatarsUrl() []string
func (*ContactNfo) GetBirthday ¶
func (m *ContactNfo) GetBirthday() string
func (*ContactNfo) GetCompany ¶
func (m *ContactNfo) GetCompany() *Company
func (*ContactNfo) GetName ¶
func (m *ContactNfo) GetName() string
func (*ContactNfo) GetNotes ¶
func (m *ContactNfo) GetNotes() []string
func (*ContactNfo) GetPhones ¶
func (m *ContactNfo) GetPhones() []*Phone
func (*ContactNfo) GetUuid ¶
func (m *ContactNfo) GetUuid() string
func (*ContactNfo) ProtoMessage ¶
func (*ContactNfo) ProtoMessage()
func (*ContactNfo) Reset ¶
func (m *ContactNfo) Reset()
func (*ContactNfo) String ¶
func (m *ContactNfo) String() string
type Phone ¶
type Phone struct { Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` Type Phone_PhoneType `protobuf:"varint,2,opt,name=type,enum=gomeetfaker.examples.Phone_PhoneType" json:"type,omitempty"` PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber" json:"phone_number,omitempty"` }
func NewPhoneGomeetFaker ¶
func NewPhoneGomeetFaker() *Phone
func (*Phone) Descriptor ¶
func (*Phone) GetPhoneNumber ¶
func (*Phone) GetType ¶
func (m *Phone) GetType() Phone_PhoneType
func (*Phone) ProtoMessage ¶
func (*Phone) ProtoMessage()
type Phone_PhoneType ¶
type Phone_PhoneType int32
const ( Phone_UNKNOW Phone_PhoneType = 0 Phone_HOME Phone_PhoneType = 1 Phone_WORK Phone_PhoneType = 2 Phone_OTHER Phone_PhoneType = 3 )
func (Phone_PhoneType) EnumDescriptor ¶
func (Phone_PhoneType) EnumDescriptor() ([]byte, []int)
func (Phone_PhoneType) String ¶
func (x Phone_PhoneType) String() string
Click to show internal directories.
Click to hide internal directories.