v1

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Enum

func (x Builtin) Enum() *Builtin

func (Builtin) EnumDescriptor deprecated

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

Deprecated: Use Builtin.Descriptor instead.

func (Builtin) Number

func (x Builtin) Number() protoreflect.EnumNumber

func (Builtin) String

func (x Builtin) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Decl.ProtoReflect.Descriptor instead.

func (*Decl) GetDoc

func (x *Decl) GetDoc() string

func (*Decl) GetId

func (x *Decl) GetId() uint32

func (*Decl) GetLoc

func (x *Decl) GetLoc() *Loc

func (*Decl) GetName

func (x *Decl) GetName() string

func (*Decl) GetType

func (x *Decl) GetType() *Type

func (*Decl) ProtoMessage

func (*Decl) ProtoMessage()

func (*Decl) ProtoReflect

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

func (*Decl) Reset

func (x *Decl) Reset()

func (*Decl) String

func (x *Decl) String() string

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.
	// The value "-" indicates to omit the field.
	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) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetDoc

func (x *Field) GetDoc() string

func (*Field) GetJsonName

func (x *Field) GetJsonName() string

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) GetOptional

func (x *Field) GetOptional() bool

func (*Field) GetTyp

func (x *Field) GetTyp() *Type

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use List.ProtoReflect.Descriptor instead.

func (*List) GetElem

func (x *List) GetElem() *Type

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) ProtoReflect

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

func (*List) Reset

func (x *List) Reset()

func (*List) String

func (x *List) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Loc.ProtoReflect.Descriptor instead.

func (*Loc) GetEndPos

func (x *Loc) GetEndPos() int32

func (*Loc) GetFilename

func (x *Loc) GetFilename() string

func (*Loc) GetPkgName

func (x *Loc) GetPkgName() string

func (*Loc) GetPkgPath

func (x *Loc) GetPkgPath() string

func (*Loc) GetSrcColEnd

func (x *Loc) GetSrcColEnd() int32

func (*Loc) GetSrcColStart

func (x *Loc) GetSrcColStart() int32

func (*Loc) GetSrcLineEnd

func (x *Loc) GetSrcLineEnd() int32

func (*Loc) GetSrcLineStart

func (x *Loc) GetSrcLineStart() int32

func (*Loc) GetStartPos

func (x *Loc) GetStartPos() int32

func (*Loc) ProtoMessage

func (*Loc) ProtoMessage()

func (*Loc) ProtoReflect

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

func (*Loc) Reset

func (x *Loc) Reset()

func (*Loc) String

func (x *Loc) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Map.ProtoReflect.Descriptor instead.

func (*Map) GetKey

func (x *Map) GetKey() *Type

func (*Map) GetValue

func (x *Map) GetValue() *Type

func (*Map) ProtoMessage

func (*Map) ProtoMessage()

func (*Map) ProtoReflect

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

func (*Map) Reset

func (x *Map) Reset()

func (*Map) String

func (x *Map) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Named.ProtoReflect.Descriptor instead.

func (*Named) GetId

func (x *Named) GetId() uint32

func (*Named) ProtoMessage

func (*Named) ProtoMessage()

func (*Named) ProtoReflect

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

func (*Named) Reset

func (x *Named) Reset()

func (*Named) String

func (x *Named) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Struct.ProtoReflect.Descriptor instead.

func (*Struct) GetFields

func (x *Struct) GetFields() []*Field

func (*Struct) ProtoMessage

func (*Struct) ProtoMessage()

func (*Struct) ProtoReflect

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

func (*Struct) Reset

func (x *Struct) Reset()

func (*Struct) String

func (x *Struct) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Type.ProtoReflect.Descriptor instead.

func (*Type) GetBuiltin

func (x *Type) GetBuiltin() Builtin

func (*Type) GetList

func (x *Type) GetList() *List

func (*Type) GetMap

func (x *Type) GetMap() *Map

func (*Type) GetNamed

func (x *Type) GetNamed() *Named

func (*Type) GetStruct

func (x *Type) GetStruct() *Struct

func (*Type) GetTyp

func (m *Type) GetTyp() isType_Typ

func (*Type) ProtoMessage

func (*Type) ProtoMessage()

func (*Type) ProtoReflect

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

func (*Type) Reset

func (x *Type) Reset()

func (*Type) String

func (x *Type) String() string

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_Map

type Type_Map struct {
	Map *Map `protobuf:"bytes,3,opt,name=map,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"`
}

Jump to

Keyboard shortcuts

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