Documentation ¶
Index ¶
- Variables
- type Builtin
- type Decl
- func (*Decl) Descriptor() ([]byte, []int)deprecated
- func (x *Decl) GetDoc() string
- func (x *Decl) GetId() uint32
- func (x *Decl) GetLoc() *Loc
- func (x *Decl) GetName() string
- func (x *Decl) GetType() *Type
- func (*Decl) ProtoMessage()
- func (x *Decl) ProtoReflect() protoreflect.Message
- func (x *Decl) Reset()
- func (x *Decl) String() string
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetDoc() string
- func (x *Field) GetJsonName() string
- func (x *Field) GetName() string
- func (x *Field) GetOptional() bool
- func (x *Field) GetTyp() *Type
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type List
- type Loc
- func (*Loc) Descriptor() ([]byte, []int)deprecated
- func (x *Loc) GetEndPos() int32
- func (x *Loc) GetFilename() string
- func (x *Loc) GetPkgName() string
- func (x *Loc) GetPkgPath() string
- func (x *Loc) GetSrcColEnd() int32
- func (x *Loc) GetSrcColStart() int32
- func (x *Loc) GetSrcLineEnd() int32
- func (x *Loc) GetSrcLineStart() int32
- func (x *Loc) GetStartPos() int32
- func (*Loc) ProtoMessage()
- func (x *Loc) ProtoReflect() protoreflect.Message
- func (x *Loc) Reset()
- func (x *Loc) String() string
- type Map
- type Named
- type Struct
- type Type
- func (*Type) Descriptor() ([]byte, []int)deprecated
- func (x *Type) GetBuiltin() Builtin
- func (x *Type) GetList() *List
- func (x *Type) GetMap() *Map
- func (x *Type) GetNamed() *Named
- func (x *Type) GetStruct() *Struct
- func (m *Type) GetTyp() isType_Typ
- func (*Type) ProtoMessage()
- func (x *Type) ProtoReflect() protoreflect.Message
- func (x *Type) Reset()
- func (x *Type) String() string
- type Type_Builtin
- type Type_List
- type Type_Map
- type Type_Named
- type Type_Struct
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Builtin_name = map[int32]string{ 0: "ANY", 1: "BOOL", 2: "INT8", 3: "INT16", 4: "INT32", 5: "INT64", 6: "UINT8", 7: "UINT16", 8: "UINT32", 9: "UINT64", 10: "FLOAT32", 11: "FLOAT64", 12: "STRING", 13: "BYTES", 14: "TIME", 15: "UUID", 16: "JSON", 17: "USER_ID", 18: "INT", 19: "UINT", } Builtin_value = map[string]int32{ "ANY": 0, "BOOL": 1, "INT8": 2, "INT16": 3, "INT32": 4, "INT64": 5, "UINT8": 6, "UINT16": 7, "UINT32": 8, "UINT64": 9, "FLOAT32": 10, "FLOAT64": 11, "STRING": 12, "BYTES": 13, "TIME": 14, "UUID": 15, "JSON": 16, "USER_ID": 17, "INT": 18, "UINT": 19, } )
Enum value maps for Builtin.
View Source
var File_encore_parser_schema_v1_schema_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Builtin ¶
type Builtin int32
const ( Builtin_ANY Builtin = 0 Builtin_BOOL Builtin = 1 Builtin_INT8 Builtin = 2 Builtin_INT16 Builtin = 3 Builtin_INT32 Builtin = 4 Builtin_INT64 Builtin = 5 Builtin_UINT8 Builtin = 6 Builtin_UINT16 Builtin = 7 Builtin_UINT32 Builtin = 8 Builtin_UINT64 Builtin = 9 Builtin_FLOAT32 Builtin = 10 Builtin_FLOAT64 Builtin = 11 Builtin_STRING Builtin = 12 Builtin_BYTES Builtin = 13 Builtin_TIME Builtin = 14 Builtin_UUID Builtin = 15 Builtin_JSON Builtin = 16 Builtin_USER_ID Builtin = 17 Builtin_INT Builtin = 18 Builtin_UINT Builtin = 19 )
func (Builtin) Descriptor ¶
func (Builtin) Descriptor() protoreflect.EnumDescriptor
func (Builtin) EnumDescriptor
deprecated
func (Builtin) Number ¶
func (x Builtin) Number() protoreflect.EnumNumber
func (Builtin) Type ¶
func (Builtin) Type() protoreflect.EnumType
type Decl ¶
type Decl struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // type name Type *Type `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Doc string `protobuf:"bytes,4,opt,name=doc,proto3" json:"doc,omitempty"` Loc *Loc `protobuf:"bytes,5,opt,name=loc,proto3" json:"loc,omitempty"` // contains filtered or unexported fields }
func (*Decl) Descriptor
deprecated
func (*Decl) ProtoMessage ¶
func (*Decl) ProtoMessage()
func (*Decl) ProtoReflect ¶
func (x *Decl) ProtoReflect() protoreflect.Message
type Field ¶
type Field struct { Typ *Type `protobuf:"bytes,1,opt,name=typ,proto3" json:"typ,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Doc string `protobuf:"bytes,3,opt,name=doc,proto3" json:"doc,omitempty"` // The optional json name if it's different from the field name. JsonName string `protobuf:"bytes,4,opt,name=json_name,json=jsonName,proto3" json:"json_name,omitempty"` // Whether the field is optional. Optional bool `protobuf:"varint,5,opt,name=optional,proto3" json:"optional,omitempty"` // contains filtered or unexported fields }
func (*Field) Descriptor
deprecated
func (*Field) GetJsonName ¶
func (*Field) GetOptional ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
type List ¶
type List struct { Elem *Type `protobuf:"bytes,1,opt,name=elem,proto3" json:"elem,omitempty"` // contains filtered or unexported fields }
func (*List) Descriptor
deprecated
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
func (*List) ProtoReflect ¶
func (x *List) ProtoReflect() protoreflect.Message
type Loc ¶
type Loc struct { PkgPath string `protobuf:"bytes,1,opt,name=pkg_path,json=pkgPath,proto3" json:"pkg_path,omitempty"` PkgName string `protobuf:"bytes,2,opt,name=pkg_name,json=pkgName,proto3" json:"pkg_name,omitempty"` Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` StartPos int32 `protobuf:"varint,4,opt,name=start_pos,json=startPos,proto3" json:"start_pos,omitempty"` EndPos int32 `protobuf:"varint,5,opt,name=end_pos,json=endPos,proto3" json:"end_pos,omitempty"` SrcLineStart int32 `protobuf:"varint,6,opt,name=src_line_start,json=srcLineStart,proto3" json:"src_line_start,omitempty"` SrcLineEnd int32 `protobuf:"varint,7,opt,name=src_line_end,json=srcLineEnd,proto3" json:"src_line_end,omitempty"` SrcColStart int32 `protobuf:"varint,8,opt,name=src_col_start,json=srcColStart,proto3" json:"src_col_start,omitempty"` SrcColEnd int32 `protobuf:"varint,9,opt,name=src_col_end,json=srcColEnd,proto3" json:"src_col_end,omitempty"` // contains filtered or unexported fields }
func (*Loc) Descriptor
deprecated
func (*Loc) GetFilename ¶
func (*Loc) GetPkgName ¶
func (*Loc) GetPkgPath ¶
func (*Loc) GetSrcColEnd ¶
func (*Loc) GetSrcColStart ¶
func (*Loc) GetSrcLineEnd ¶
func (*Loc) GetSrcLineStart ¶
func (*Loc) GetStartPos ¶
func (*Loc) ProtoMessage ¶
func (*Loc) ProtoMessage()
func (*Loc) ProtoReflect ¶
func (x *Loc) ProtoReflect() protoreflect.Message
type Map ¶
type Map struct { Key *Type `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value *Type `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Map) Descriptor
deprecated
func (*Map) ProtoMessage ¶
func (*Map) ProtoMessage()
func (*Map) ProtoReflect ¶
func (x *Map) ProtoReflect() protoreflect.Message
type Named ¶
type Named struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Named) Descriptor
deprecated
func (*Named) ProtoMessage ¶
func (*Named) ProtoMessage()
func (*Named) ProtoReflect ¶
func (x *Named) ProtoReflect() protoreflect.Message
type Struct ¶
type Struct struct { Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*Struct) Descriptor
deprecated
func (*Struct) ProtoMessage ¶
func (*Struct) ProtoMessage()
func (*Struct) ProtoReflect ¶
func (x *Struct) ProtoReflect() protoreflect.Message
type Type ¶
type Type struct { // Types that are assignable to Typ: // *Type_Named // *Type_Struct // *Type_Map // *Type_List // *Type_Builtin Typ isType_Typ `protobuf_oneof:"typ"` // contains filtered or unexported fields }
func (*Type) Descriptor
deprecated
func (*Type) GetBuiltin ¶
func (*Type) ProtoMessage ¶
func (*Type) ProtoMessage()
func (*Type) ProtoReflect ¶
func (x *Type) ProtoReflect() protoreflect.Message
type Type_Builtin ¶
type Type_Builtin struct {
Builtin Builtin `protobuf:"varint,5,opt,name=builtin,proto3,enum=encore.parser.schema.v1.Builtin,oneof"`
}
type Type_List ¶
type Type_List struct {
List *List `protobuf:"bytes,4,opt,name=list,proto3,oneof"`
}
type Type_Named ¶
type Type_Named struct {
Named *Named `protobuf:"bytes,1,opt,name=named,proto3,oneof"`
}
type Type_Struct ¶
type Type_Struct struct {
Struct *Struct `protobuf:"bytes,2,opt,name=struct,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.