proto

package
v0.0.0-...-160a03f Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Enum value maps for Person_PhoneType.

View Source
var File_addressbook_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddressBook

type AddressBook struct {
	Persons []*Person `protobuf:"bytes,1,rep,name=persons,proto3" json:"persons,omitempty"`
	// contains filtered or unexported fields
}

func (*AddressBook) Descriptor deprecated

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

Deprecated: Use AddressBook.ProtoReflect.Descriptor instead.

func (*AddressBook) GetPersons

func (x *AddressBook) GetPersons() []*Person

func (*AddressBook) ProtoMessage

func (*AddressBook) ProtoMessage()

func (*AddressBook) ProtoReflect

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

func (*AddressBook) Reset

func (x *AddressBook) Reset()

func (*AddressBook) String

func (x *AddressBook) String() string

type Person

type Person struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id    int32  `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,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) GetId

func (x *Person) GetId() int32

func (*Person) GetName

func (x *Person) GetName() string

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect

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

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

type Person_Phone

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

func (*Person_Phone) Descriptor deprecated

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

Deprecated: Use Person_Phone.ProtoReflect.Descriptor instead.

func (*Person_Phone) GetNumber

func (x *Person_Phone) GetNumber() string

func (*Person_Phone) GetPhoneType

func (x *Person_Phone) GetPhoneType() Person_PhoneType

func (*Person_Phone) ProtoMessage

func (*Person_Phone) ProtoMessage()

func (*Person_Phone) ProtoReflect

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

func (*Person_Phone) Reset

func (x *Person_Phone) Reset()

func (*Person_Phone) String

func (x *Person_Phone) String() string

type Person_PhoneType

type Person_PhoneType int32
const (
	Person_MOBILE Person_PhoneType = 0
	Person_HOME   Person_PhoneType = 1
)

func (Person_PhoneType) Descriptor

func (Person_PhoneType) Enum

func (Person_PhoneType) EnumDescriptor deprecated

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

Deprecated: Use Person_PhoneType.Descriptor instead.

func (Person_PhoneType) Number

func (Person_PhoneType) String

func (x Person_PhoneType) String() string

func (Person_PhoneType) Type

Directories

Path Synopsis
proto

Jump to

Keyboard shortcuts

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