person

package
v0.0.0-...-156932d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_person_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Person

type Person struct {
	FirstName *string `protobuf:"bytes,1,opt,name=FirstName,json=first_name" json:"FirstName,omitempty"`
	LastName  *string `protobuf:"bytes,2,opt,name=LastName,json=last_name" json:"LastName,omitempty"`
	Age       *uint32 `protobuf:"varint,3,opt,name=age" json:"age,omitempty"`
	Sex       *uint32 `protobuf:"varint,4,opt,name=sex" json:"sex,omitempty"`
	// contains filtered or unexported fields
}

func (*Person) Descriptor deprecated

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

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetAge

func (x *Person) GetAge() uint32

func (*Person) GetFirstName

func (x *Person) GetFirstName() string

func (*Person) GetLastName

func (x *Person) GetLastName() string

func (*Person) GetSex

func (x *Person) GetSex() uint32

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 PersonX

type PersonX struct {
	FirstName *string `protobuf:"bytes,1,opt,name=FirstName" json:"FirstName,omitempty"`
	LastName  *string `protobuf:"bytes,2,opt,name=LastName" json:"LastName,omitempty"`
	// contains filtered or unexported fields
}

func (*PersonX) Descriptor deprecated

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

Deprecated: Use PersonX.ProtoReflect.Descriptor instead.

func (*PersonX) GetFirstName

func (x *PersonX) GetFirstName() string

func (*PersonX) GetLastName

func (x *PersonX) GetLastName() string

func (*PersonX) ProtoMessage

func (*PersonX) ProtoMessage()

func (*PersonX) ProtoReflect

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

func (*PersonX) Reset

func (x *PersonX) Reset()

func (*PersonX) String

func (x *PersonX) String() string

Jump to

Keyboard shortcuts

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