pb

package
v0.0.0-...-c3255e3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

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

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 GomeetFakerRand() *rand.Rand

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) Descriptor() ([]byte, []int)

func (*Address) GetCity

func (m *Address) GetCity() string

func (*Address) GetPostcode

func (m *Address) GetPostcode() string

func (*Address) GetStreetAddress

func (m *Address) GetStreetAddress() string

func (*Address) GetType

func (m *Address) GetType() Address_AddressType

func (*Address) GetUuid

func (m *Address) GetUuid() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

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"`
	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) Descriptor() ([]byte, []int)

func (*Company) GetAddresses

func (m *Company) GetAddresses() []*Address

func (*Company) GetBs

func (m *Company) GetBs() string

func (*Company) GetCatchPhrase

func (m *Company) GetCatchPhrase() string

func (*Company) GetDunsNumber

func (m *Company) GetDunsNumber() string

func (*Company) GetEin

func (m *Company) GetEin() string
func (m *Company) GetLogo() string

func (*Company) GetName

func (m *Company) GetName() string

func (*Company) GetNote

func (m *Company) GetNote() string

func (*Company) GetSuffix

func (m *Company) GetSuffix() string

func (*Company) GetUuid

func (m *Company) GetUuid() string

func (*Company) ProtoMessage

func (*Company) ProtoMessage()

func (*Company) Reset

func (m *Company) Reset()

func (*Company) String

func (m *Company) String() string

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) Descriptor() ([]byte, []int)

func (*Phone) GetPhoneNumber

func (m *Phone) GetPhoneNumber() string

func (*Phone) GetType

func (m *Phone) GetType() Phone_PhoneType

func (*Phone) GetUuid

func (m *Phone) GetUuid() string

func (*Phone) ProtoMessage

func (*Phone) ProtoMessage()

func (*Phone) Reset

func (m *Phone) Reset()

func (*Phone) String

func (m *Phone) String() string

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

Jump to

Keyboard shortcuts

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