protomessage

package
v3.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package protomessage is a generated protocol buffer package.

It is generated from these files:

protomessage.proto

It has these top-level messages:

Person

Index

Constants

This section is empty.

Variables

View Source
var Person_PhoneType_name = map[int32]string{
	0: "CELL",
	1: "HOME",
	2: "WORK",
}
View Source
var Person_PhoneType_value = map[string]int32{
	"CELL": 0,
	"HOME": 1,
	"WORK": 2,
}

Functions

This section is empty.

Types

type Person

type Person struct {
	Name   string                `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Email  string                `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	Phones []*Person_PhoneNumber `protobuf:"bytes,4,rep,name=phones" json:"phones,omitempty"`
}

func (*Person) Descriptor

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

func (*Person) GetEmail

func (m *Person) GetEmail() string

func (*Person) GetName

func (m *Person) GetName() string

func (*Person) GetPhones

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

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) Reset

func (m *Person) Reset()

func (*Person) String

func (m *Person) String() string

type Person_PhoneNumber

type Person_PhoneNumber struct {
	Number    string           `protobuf:"bytes,1,opt,name=number" json:"number,omitempty"`
	PhoneType Person_PhoneType `protobuf:"varint,2,opt,name=phoneType,enum=protomessage.Person_PhoneType" json:"phoneType,omitempty"`
}

func (*Person_PhoneNumber) Descriptor

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

func (*Person_PhoneNumber) GetNumber

func (m *Person_PhoneNumber) GetNumber() string

func (*Person_PhoneNumber) GetPhoneType

func (m *Person_PhoneNumber) GetPhoneType() Person_PhoneType

func (*Person_PhoneNumber) ProtoMessage

func (*Person_PhoneNumber) ProtoMessage()

func (*Person_PhoneNumber) Reset

func (m *Person_PhoneNumber) Reset()

func (*Person_PhoneNumber) String

func (m *Person_PhoneNumber) String() string

type Person_PhoneType

type Person_PhoneType int32
const (
	Person_CELL Person_PhoneType = 0
	Person_HOME Person_PhoneType = 1
	Person_WORK Person_PhoneType = 2
)

func (Person_PhoneType) EnumDescriptor

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

func (Person_PhoneType) String

func (x Person_PhoneType) String() string

Jump to

Keyboard shortcuts

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