Documentation ¶
Index ¶
- Variables
- type Student
- func (*Student) Descriptor() ([]byte, []int)deprecated
- func (x *Student) GetAge() int32
- func (x *Student) GetAttrs() map[string]string
- func (x *Student) GetEnrollmentDate() *timestamp.Timestamp
- func (x *Student) GetGPA() float64
- func (x *Student) GetGrades() []float64
- func (x *Student) GetID() float64
- func (x *Student) GetStatus() StudentStatusType
- func (*Student) ProtoMessage()
- func (x *Student) ProtoReflect() protoreflect.Message
- func (x *Student) Reset()
- func (x *Student) String() string
- type StudentStatusType
- func (StudentStatusType) Descriptor() protoreflect.EnumDescriptor
- func (x StudentStatusType) Enum() *StudentStatusType
- func (StudentStatusType) EnumDescriptor() ([]byte, []int)deprecated
- func (x StudentStatusType) Number() protoreflect.EnumNumber
- func (x StudentStatusType) String() string
- func (StudentStatusType) Type() protoreflect.EnumType
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) GetEnrollmentDate ¶
func (*Student) GetStatus ¶
func (x *Student) GetStatus() StudentStatusType
func (*Student) ProtoMessage ¶
func (*Student) ProtoMessage()
func (*Student) ProtoReflect ¶
func (x *Student) ProtoReflect() protoreflect.Message
type StudentStatusType ¶
type StudentStatusType int32
const ( Student_ENROLLED StudentStatusType = 0 Student_PROBATION StudentStatusType = 1 )
func (StudentStatusType) Descriptor ¶
func (StudentStatusType) Descriptor() protoreflect.EnumDescriptor
func (StudentStatusType) Enum ¶
func (x StudentStatusType) Enum() *StudentStatusType
func (StudentStatusType) EnumDescriptor
deprecated
func (StudentStatusType) EnumDescriptor() ([]byte, []int)
Deprecated: Use StudentStatusType.Descriptor instead.
func (StudentStatusType) Number ¶
func (x StudentStatusType) Number() protoreflect.EnumNumber
func (StudentStatusType) String ¶
func (x StudentStatusType) String() string
func (StudentStatusType) Type ¶
func (StudentStatusType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.