Documentation
¶
Index ¶
- Variables
- type Error
- type TestTest
- func (*TestTest) Descriptor() ([]byte, []int)deprecated
- func (x *TestTest) FromJSON(content []byte) error
- func (x *TestTest) GetCreateTime() *protox.Timestamp
- func (x *TestTest) GetDescription() string
- func (x *TestTest) GetId() int64
- func (x *TestTest) GetName() string
- func (x *TestTest) GetProjectId() int64
- func (x *TestTest) GetPublic() string
- func (x *TestTest) GetPublicId() string
- func (x *TestTest) GetType() string
- func (x *TestTest) GetUpdateTime() *protox.Timestamp
- func (x TestTest) JSON() ([]byte, error)
- func (*TestTest) ProtoMessage()
- func (x *TestTest) ProtoReflect() protoreflect.Message
- func (x *TestTest) Reset()
- func (data *TestTest) Scan(src any) error
- func (x *TestTest) String() string
- func (*TestTest) Table() string
- func (data TestTest) Value() (driver.Value, error)
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 TestTest ¶
type TestTest 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"`
Public *string `protobuf:"bytes,3,opt,name=Public,proto3,oneof" json:"Public,omitempty"`
// @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 (*TestTest) Descriptor
deprecated
func (*TestTest) GetCreateTime ¶
func (*TestTest) GetDescription ¶
func (*TestTest) GetProjectId ¶
func (*TestTest) GetPublicId ¶
func (*TestTest) GetUpdateTime ¶
func (*TestTest) ProtoMessage ¶
func (*TestTest) ProtoMessage()
func (*TestTest) ProtoReflect ¶
func (x *TestTest) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.