school

package
v0.0.0-...-8c56589 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StudentStatusType_name = map[int32]string{
		0: "ENROLLED",
		1: "PROBATION",
	}
	StudentStatusType_value = map[string]int32{
		"ENROLLED":  0,
		"PROBATION": 1,
	}
)

Enum value maps for StudentStatusType.

View Source
var File_proto_student_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Student

type Student struct {
	ID             float64              `protobuf:"fixed64,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Age            int32                `protobuf:"varint,2,opt,name=Age,proto3" json:"Age,omitempty"`
	GPA            float64              `protobuf:"fixed64,3,opt,name=GPA,proto3" json:"GPA,omitempty"`
	Status         StudentStatusType    `protobuf:"varint,4,opt,name=Status,proto3,enum=school.StudentStatusType" json:"Status,omitempty"`
	EnrollmentDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=EnrollmentDate,proto3" json:"EnrollmentDate,omitempty"`
	Attrs          map[string]string    `` /* 151-byte string literal not displayed */
	Grades         []float64            `protobuf:"fixed64,5,rep,packed,name=Grades,proto3" json:"Grades,omitempty"`
	// contains filtered or unexported fields
}

func (*Student) Descriptor deprecated

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

Deprecated: Use Student.ProtoReflect.Descriptor instead.

func (*Student) GetAge

func (x *Student) GetAge() int32

func (*Student) GetAttrs

func (x *Student) GetAttrs() map[string]string

func (*Student) GetEnrollmentDate

func (x *Student) GetEnrollmentDate() *timestamp.Timestamp

func (*Student) GetGPA

func (x *Student) GetGPA() float64

func (*Student) GetGrades

func (x *Student) GetGrades() []float64

func (*Student) GetID

func (x *Student) GetID() float64

func (*Student) GetStatus

func (x *Student) GetStatus() StudentStatusType

func (*Student) ProtoMessage

func (*Student) ProtoMessage()

func (*Student) ProtoReflect

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

func (*Student) Reset

func (x *Student) Reset()

func (*Student) String

func (x *Student) String() string

type StudentStatusType

type StudentStatusType int32
const (
	Student_ENROLLED  StudentStatusType = 0
	Student_PROBATION StudentStatusType = 1
)

func (StudentStatusType) Descriptor

func (StudentStatusType) Enum

func (StudentStatusType) EnumDescriptor deprecated

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

Deprecated: Use StudentStatusType.Descriptor instead.

func (StudentStatusType) Number

func (StudentStatusType) String

func (x StudentStatusType) String() string

func (StudentStatusType) Type

Jump to

Keyboard shortcuts

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