Documentation
¶
Index ¶
- Variables
- type Error
- type TestCommon
- func (*TestCommon) Descriptor() ([]byte, []int)deprecated
- func (TestCommon) Error() string
- func (x *TestCommon) FromJSON(content []byte) error
- func (x *TestCommon) GetCreateTime() *protox.Timestamp
- func (x *TestCommon) GetDescription() string
- func (x *TestCommon) GetId() int64
- func (x *TestCommon) GetName() string
- func (x *TestCommon) GetProjectId() int64
- func (x *TestCommon) GetPublic() string
- func (x *TestCommon) GetPublicId() string
- func (x *TestCommon) GetType() string
- func (x *TestCommon) GetUpdateTime() *protox.Timestamp
- func (x TestCommon) JSON() ([]byte, error)
- func (*TestCommon) ProtoMessage()
- func (x *TestCommon) ProtoReflect() protoreflect.Message
- func (x *TestCommon) Reset()
- func (data *TestCommon) Scan(src any) error
- func (x *TestCommon) String() string
- func (TestCommon) Table() string
- func (data TestCommon) Value() (driver.Value, error)
- type TestInherit
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Error_name = map[int32]string{ 0: "InternalServerError", 1: "PermissionDenied", 2: "NotFound", } Error_value = map[string]int32{ "InternalServerError": 0, "PermissionDenied": 1, "NotFound": 2, } )
Enum value maps for Error.
View Source
var File_test_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Error ¶ added in v0.0.5
type Error int32
func (Error) Descriptor ¶ added in v0.0.5
func (Error) Descriptor() protoreflect.EnumDescriptor
func (Error) EnumDescriptor
deprecated
added in
v0.0.5
func (Error) Number ¶ added in v0.0.5
func (x Error) Number() protoreflect.EnumNumber
func (Error) Type ¶ added in v0.0.5
func (Error) Type() protoreflect.EnumType
type TestCommon ¶ added in v0.0.6
type TestCommon struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty" db:"name" op:"eq"`
Public *string `protobuf:"bytes,3,opt,name=Public,proto3,oneof" json:"Public,omitempty" db:"public"`
// @gotags: db:"-" json:"id"
PublicId string `protobuf:"bytes,5,opt,name=publicId,proto3" json:"publicId,omitempty"`
// @gotags: db:"type"
Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` // 'enum' | 'message'
// @gotags: db:"description"
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
// @gotags: db:"fields"
ProjectId int64 `protobuf:"varint,11,opt,name=projectId,proto3" json:"projectId,omitempty"`
// @gotags: db:"createTime"
CreateTime *protox.Timestamp `protobuf:"bytes,12,opt,name=createTime,proto3" json:"createTime,omitempty"`
// @gotags: db:"updateTime"
UpdateTime *protox.Timestamp `protobuf:"bytes,13,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
// contains filtered or unexported fields
}
func (*TestCommon) Descriptor
deprecated
added in
v0.0.6
func (*TestCommon) Descriptor() ([]byte, []int)
Deprecated: Use TestCommon.ProtoReflect.Descriptor instead.
func (TestCommon) Error ¶ added in v0.0.9
func (TestCommon) Error() string
func (*TestCommon) FromJSON ¶ added in v0.0.6
func (x *TestCommon) FromJSON(content []byte) error
func (*TestCommon) GetCreateTime ¶ added in v0.0.6
func (x *TestCommon) GetCreateTime() *protox.Timestamp
func (*TestCommon) GetDescription ¶ added in v0.0.6
func (x *TestCommon) GetDescription() string
func (*TestCommon) GetId ¶ added in v0.0.6
func (x *TestCommon) GetId() int64
func (*TestCommon) GetName ¶ added in v0.0.6
func (x *TestCommon) GetName() string
func (*TestCommon) GetProjectId ¶ added in v0.0.6
func (x *TestCommon) GetProjectId() int64
func (*TestCommon) GetPublic ¶ added in v0.0.6
func (x *TestCommon) GetPublic() string
func (*TestCommon) GetPublicId ¶ added in v0.0.6
func (x *TestCommon) GetPublicId() string
func (*TestCommon) GetType ¶ added in v0.0.6
func (x *TestCommon) GetType() string
func (*TestCommon) GetUpdateTime ¶ added in v0.0.6
func (x *TestCommon) GetUpdateTime() *protox.Timestamp
func (TestCommon) JSON ¶ added in v0.0.6
func (x TestCommon) JSON() ([]byte, error)
func (*TestCommon) ProtoMessage ¶ added in v0.0.6
func (*TestCommon) ProtoMessage()
func (*TestCommon) ProtoReflect ¶ added in v0.0.6
func (x *TestCommon) ProtoReflect() protoreflect.Message
func (*TestCommon) Reset ¶ added in v0.0.6
func (x *TestCommon) Reset()
func (*TestCommon) Scan ¶ added in v0.0.6
func (data *TestCommon) Scan(src any) error
func (*TestCommon) String ¶ added in v0.0.6
func (x *TestCommon) String() string
func (TestCommon) Table ¶ added in v0.0.6
func (TestCommon) Table() string
type TestInherit ¶ added in v0.0.11
type TestInherit struct {
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
// contains filtered or unexported fields
}
func (*TestInherit) Descriptor
deprecated
added in
v0.0.11
func (*TestInherit) Descriptor() ([]byte, []int)
Deprecated: Use TestInherit.ProtoReflect.Descriptor instead.
func (*TestInherit) GetType ¶ added in v0.0.11
func (x *TestInherit) GetType() int32
func (*TestInherit) ProtoMessage ¶ added in v0.0.11
func (*TestInherit) ProtoMessage()
func (*TestInherit) ProtoReflect ¶ added in v0.0.11
func (x *TestInherit) ProtoReflect() protoreflect.Message
func (*TestInherit) Reset ¶ added in v0.0.11
func (x *TestInherit) Reset()
func (*TestInherit) String ¶ added in v0.0.11
func (x *TestInherit) String() string
Click to show internal directories.
Click to hide internal directories.