pet

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pet_pet_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Pet

type Pet struct {
	Name  string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Age   int32      `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"`
	Owner string     `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	Group user.Group `protobuf:"varint,4,opt,name=group,proto3,enum=user.Group" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*Pet) Descriptor deprecated

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

Deprecated: Use Pet.ProtoReflect.Descriptor instead.

func (*Pet) FastRead

func (x *Pet) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Pet) FastWrite

func (x *Pet) FastWrite(buf []byte) (offset int)

func (*Pet) GetAge

func (x *Pet) GetAge() int32

func (*Pet) GetGroup

func (x *Pet) GetGroup() user.Group

func (*Pet) GetName

func (x *Pet) GetName() string

func (*Pet) GetOwner

func (x *Pet) GetOwner() string

func (*Pet) ProtoMessage

func (*Pet) ProtoMessage()

func (*Pet) ProtoReflect

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

func (*Pet) Reset

func (x *Pet) Reset()

func (*Pet) Size

func (x *Pet) Size() (n int)

func (*Pet) String

func (x *Pet) String() string

Jump to

Keyboard shortcuts

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