protomessage

package
v3.2.15 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 4 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

Index

Constants

This section is empty.

Variables

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

Enum value maps for Person_PhoneType.

View Source
var File_protomessage_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Person

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

func (*Person) Descriptor deprecated

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

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetEmail

func (x *Person) GetEmail() string

func (*Person) GetName

func (x *Person) GetName() string

func (*Person) GetPhones

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

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect added in v3.2.14

func (x *Person) ProtoReflect() protoreflect.Message

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

type Person_PhoneNumber

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

func (*Person_PhoneNumber) Descriptor deprecated

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

Deprecated: Use Person_PhoneNumber.ProtoReflect.Descriptor instead.

func (*Person_PhoneNumber) GetNumber

func (x *Person_PhoneNumber) GetNumber() string

func (*Person_PhoneNumber) GetPhoneType

func (x *Person_PhoneNumber) GetPhoneType() Person_PhoneType

func (*Person_PhoneNumber) ProtoMessage

func (*Person_PhoneNumber) ProtoMessage()

func (*Person_PhoneNumber) ProtoReflect added in v3.2.14

func (x *Person_PhoneNumber) ProtoReflect() protoreflect.Message

func (*Person_PhoneNumber) Reset

func (x *Person_PhoneNumber) Reset()

func (*Person_PhoneNumber) String

func (x *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) Descriptor added in v3.2.14

func (Person_PhoneType) Enum added in v3.2.14

func (Person_PhoneType) EnumDescriptor deprecated

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

Deprecated: Use Person_PhoneType.Descriptor instead.

func (Person_PhoneType) Number added in v3.2.14

func (Person_PhoneType) String

func (x Person_PhoneType) String() string

func (Person_PhoneType) Type added in v3.2.14

Jump to

Keyboard shortcuts

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