user

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Group_name = map[int32]string{
		0: "GROUP_A",
		1: "GROUP_B",
	}
	Group_value = map[string]int32{
		"GROUP_A": 0,
		"GROUP_B": 1,
	}
)

Enum value maps for Group.

View Source
var File_user_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Group

type Group int32
const (
	Group_GROUP_A Group = 0
	Group_GROUP_B Group = 1
)

func (Group) Descriptor

func (Group) Descriptor() protoreflect.EnumDescriptor

func (Group) Enum

func (x Group) Enum() *Group

func (Group) EnumDescriptor deprecated

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

Deprecated: Use Group.Descriptor instead.

func (Group) Number

func (x Group) Number() protoreflect.EnumNumber

func (Group) String

func (x Group) String() string

func (Group) Type

func (Group) Type() protoreflect.EnumType

type User

type User struct {
	Id   int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) FastRead

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

func (*User) FastWrite

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

func (*User) GetId

func (x *User) GetId() int32

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) Size

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

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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