代码拉取完成,页面将自动刷新
// Code generated by thriftgo (0.4.1). DO NOT EDIT.
package parser
import (
"database/sql"
"database/sql/driver"
"fmt"
"github.com/cloudwego/thriftgo/generator/golang/extension/meta"
)
type Category int64
const (
Category_Constant Category = 0
Category_Bool Category = 1
Category_Byte Category = 2
Category_I16 Category = 3
Category_I32 Category = 4
Category_I64 Category = 5
Category_Double Category = 6
Category_String Category = 7
Category_Binary Category = 8
Category_Map Category = 9
Category_List Category = 10
Category_Set Category = 11
Category_Enum Category = 12
Category_Struct Category = 13
Category_Union Category = 14
Category_Exception Category = 15
Category_Typedef Category = 16
Category_Service Category = 17
)
func (p Category) String() string {
switch p {
case Category_Constant:
return "Constant"
case Category_Bool:
return "Bool"
case Category_Byte:
return "Byte"
case Category_I16:
return "I16"
case Category_I32:
return "I32"
case Category_I64:
return "I64"
case Category_Double:
return "Double"
case Category_String:
return "String"
case Category_Binary:
return "Binary"
case Category_Map:
return "Map"
case Category_List:
return "List"
case Category_Set:
return "Set"
case Category_Enum:
return "Enum"
case Category_Struct:
return "Struct"
case Category_Union:
return "Union"
case Category_Exception:
return "Exception"
case Category_Typedef:
return "Typedef"
case Category_Service:
return "Service"
}
return "<UNSET>"
}
func CategoryFromString(s string) (Category, error) {
switch s {
case "Constant":
return Category_Constant, nil
case "Bool":
return Category_Bool, nil
case "Byte":
return Category_Byte, nil
case "I16":
return Category_I16, nil
case "I32":
return Category_I32, nil
case "I64":
return Category_I64, nil
case "Double":
return Category_Double, nil
case "String":
return Category_String, nil
case "Binary":
return Category_Binary, nil
case "Map":
return Category_Map, nil
case "List":
return Category_List, nil
case "Set":
return Category_Set, nil
case "Enum":
return Category_Enum, nil
case "Struct":
return Category_Struct, nil
case "Union":
return Category_Union, nil
case "Exception":
return Category_Exception, nil
case "Typedef":
return Category_Typedef, nil
case "Service":
return Category_Service, nil
}
return Category(0), fmt.Errorf("not a valid Category string")
}
func CategoryPtr(v Category) *Category { return &v }
func (p *Category) Scan(value interface{}) (err error) {
var result sql.NullInt64
err = result.Scan(value)
*p = Category(result.Int64)
return
}
func (p *Category) Value() (driver.Value, error) {
if p == nil {
return nil, nil
}
return int64(*p), nil
}
type ConstType int64
const (
ConstType_ConstDouble ConstType = 0
ConstType_ConstInt ConstType = 1
ConstType_ConstLiteral ConstType = 2
ConstType_ConstIdentifier ConstType = 3
ConstType_ConstList ConstType = 4
ConstType_ConstMap ConstType = 5
)
func (p ConstType) String() string {
switch p {
case ConstType_ConstDouble:
return "ConstDouble"
case ConstType_ConstInt:
return "ConstInt"
case ConstType_ConstLiteral:
return "ConstLiteral"
case ConstType_ConstIdentifier:
return "ConstIdentifier"
case ConstType_ConstList:
return "ConstList"
case ConstType_ConstMap:
return "ConstMap"
}
return "<UNSET>"
}
func ConstTypeFromString(s string) (ConstType, error) {
switch s {
case "ConstDouble":
return ConstType_ConstDouble, nil
case "ConstInt":
return ConstType_ConstInt, nil
case "ConstLiteral":
return ConstType_ConstLiteral, nil
case "ConstIdentifier":
return ConstType_ConstIdentifier, nil
case "ConstList":
return ConstType_ConstList, nil
case "ConstMap":
return ConstType_ConstMap, nil
}
return ConstType(0), fmt.Errorf("not a valid ConstType string")
}
func ConstTypePtr(v ConstType) *ConstType { return &v }
func (p *ConstType) Scan(value interface{}) (err error) {
var result sql.NullInt64
err = result.Scan(value)
*p = ConstType(result.Int64)
return
}
func (p *ConstType) Value() (driver.Value, error) {
if p == nil {
return nil, nil
}
return int64(*p), nil
}
type FieldType int64
const (
FieldType_Default FieldType = 0
FieldType_Required FieldType = 1
FieldType_Optional FieldType = 2
)
func (p FieldType) String() string {
switch p {
case FieldType_Default:
return "Default"
case FieldType_Required:
return "Required"
case FieldType_Optional:
return "Optional"
}
return "<UNSET>"
}
func FieldTypeFromString(s string) (FieldType, error) {
switch s {
case "Default":
return FieldType_Default, nil
case "Required":
return FieldType_Required, nil
case "Optional":
return FieldType_Optional, nil
}
return FieldType(0), fmt.Errorf("not a valid FieldType string")
}
func FieldTypePtr(v FieldType) *FieldType { return &v }
func (p *FieldType) Scan(value interface{}) (err error) {
var result sql.NullInt64
err = result.Scan(value)
*p = FieldType(result.Int64)
return
}
func (p *FieldType) Value() (driver.Value, error) {
if p == nil {
return nil, nil
}
return int64(*p), nil
}
type Annotations []*Annotation
type Reference struct {
Name string `thrift:"Name,1" frugal:"1,default,string" json:"Name"`
Index int32 `thrift:"Index,2" frugal:"2,default,i32" json:"Index"`
}
func init() {
meta.RegisterStruct(NewReference, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x9, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3,
0xc, 0x0, 0x0, 0x0, 0x2, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0,
0x4, 0x4e, 0x61, 0x6d, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8,
0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0, 0x2,
0x0, 0x0, 0x0, 0x5, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0,
0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0,
})
}
func NewReference() *Reference {
return &Reference{}
}
func (p *Reference) InitDefault() {
}
func (p *Reference) GetName() (v string) {
return p.Name
}
func (p *Reference) GetIndex() (v int32) {
return p.Index
}
func (p *Reference) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Reference(%+v)", *p)
}
var fieldIDToName_Reference = map[int16]string{
1: "Name",
2: "Index",
}
type Annotation struct {
Key string `thrift:"Key,1" frugal:"1,default,string" json:"Key"`
Values []string `thrift:"Values,2" frugal:"2,default,list<string>" json:"Values"`
}
func init() {
meta.RegisterStruct(NewAnnotation, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0xa, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0,
0x3, 0xc, 0x0, 0x0, 0x0, 0x2, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0,
0x0, 0x3, 0x4b, 0x65, 0x79, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8,
0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0, 0x2,
0x0, 0x0, 0x0, 0x6, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0,
0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xf, 0xc, 0x0, 0x3, 0x8, 0x0,
0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x0, 0x0,
})
}
func NewAnnotation() *Annotation {
return &Annotation{}
}
func (p *Annotation) InitDefault() {
}
func (p *Annotation) GetKey() (v string) {
return p.Key
}
func (p *Annotation) GetValues() (v []string) {
return p.Values
}
func (p *Annotation) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Annotation(%+v)", *p)
}
var fieldIDToName_Annotation = map[int16]string{
1: "Key",
2: "Values",
}
type Type struct {
Name string `thrift:"Name,1" frugal:"1,default,string" json:"Name"`
KeyType *Type `thrift:"KeyType,2,optional" frugal:"2,optional,Type" json:"KeyType,omitempty"`
ValueType *Type `thrift:"ValueType,3,optional" frugal:"3,optional,Type" json:"ValueType,omitempty"`
CppType string `thrift:"CppType,4" frugal:"4,default,string" json:"CppType"`
Annotations Annotations `thrift:"Annotations,5" frugal:"5,default,list<Annotation>" json:"Annotations"`
Category Category `thrift:"Category,6" frugal:"6,default,Category" json:"Category"`
Reference *Reference `thrift:"Reference,7,optional" frugal:"7,optional,Reference" json:"Reference,omitempty"`
IsTypedef *bool `thrift:"IsTypedef,8,optional" frugal:"8,optional,bool" json:"IsTypedef,omitempty"`
}
func init() {
meta.RegisterStruct(NewType, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x4, 0x54, 0x79, 0x70, 0x65, 0xb, 0x0, 0x2, 0x0, 0x0,
0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3, 0xc, 0x0, 0x0, 0x0, 0x8,
0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x4, 0x4e, 0x61, 0x6d, 0x65,
0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0,
0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x7, 0x4b,
0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x2, 0xc, 0x0, 0x4,
0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x3, 0xb, 0x0,
0x2, 0x0, 0x0, 0x0, 0x9, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x8, 0x0,
0x3, 0x0, 0x0, 0x0, 0x2, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0,
0x0, 0x6, 0x0, 0x1, 0x0, 0x4, 0xb, 0x0, 0x2, 0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
func NewType() *Type {
return &Type{}
}
func (p *Type) InitDefault() {
}
func (p *Type) GetName() (v string) {
return p.Name
}
var Type_KeyType_DEFAULT *Type
func (p *Type) GetKeyType() (v *Type) {
if !p.IsSetKeyType() {
return Type_KeyType_DEFAULT
}
return p.KeyType
}
var Type_ValueType_DEFAULT *Type
func (p *Type) GetValueType() (v *Type) {
if !p.IsSetValueType() {
return Type_ValueType_DEFAULT
}
return p.ValueType
}
func (p *Type) GetCppType() (v string) {
return p.CppType
}
func (p *Type) GetAnnotations() (v Annotations) {
return p.Annotations
}
func (p *Type) GetCategory() (v Category) {
return p.Category
}
var Type_Reference_DEFAULT *Reference
func (p *Type) GetReference() (v *Reference) {
if !p.IsSetReference() {
return Type_Reference_DEFAULT
}
return p.Reference
}
var Type_IsTypedef_DEFAULT bool
func (p *Type) GetIsTypedef() (v bool) {
if !p.IsSetIsTypedef() {
return Type_IsTypedef_DEFAULT
}
return *p.IsTypedef
}
func (p *Type) IsSetKeyType() bool {
return p.KeyType != nil
}
func (p *Type) IsSetValueType() bool {
return p.ValueType != nil
}
func (p *Type) IsSetReference() bool {
return p.Reference != nil
}
func (p *Type) IsSetIsTypedef() bool {
return p.IsTypedef != nil
}
var fieldIDToName_Type = map[int16]string{
1: "Name",
2: "KeyType",
3: "ValueType",
4: "CppType",
5: "Annotations",
6: "Category",
7: "Reference",
8: "IsTypedef",
}
type Namespace struct {
Language string `thrift:"Language,1" frugal:"1,default,string" json:"Language"`
Name string `thrift:"Name,2" frugal:"2,default,string" json:"Name"`
Annotations Annotations `thrift:"Annotations,3" frugal:"3,default,list<Annotation>" json:"Annotations"`
}
func init() {
meta.RegisterStruct(NewNamespace, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x9, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3,
0xc, 0x0, 0x0, 0x0, 0x3, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0,
0x8, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0,
0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0,
0x2, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x4, 0x4e, 0x61, 0x6d, 0x65, 0x8, 0x0, 0x3, 0x0,
0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x6,
0x0, 0x1, 0x0, 0x3, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0xb, 0x41, 0x6e, 0x6e, 0x6f, 0x74,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4,
0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xf, 0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0,
0xc, 0x0, 0x0, 0x0, 0x0,
})
}
func NewNamespace() *Namespace {
return &Namespace{}
}
func (p *Namespace) InitDefault() {
}
func (p *Namespace) GetLanguage() (v string) {
return p.Language
}
func (p *Namespace) GetName() (v string) {
return p.Name
}
func (p *Namespace) GetAnnotations() (v Annotations) {
return p.Annotations
}
func (p *Namespace) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Namespace(%+v)", *p)
}
var fieldIDToName_Namespace = map[int16]string{
1: "Language",
2: "Name",
3: "Annotations",
}
type Typedef struct {
Type *Type `thrift:"Type,1,optional" frugal:"1,optional,Type" json:"Type,omitempty"`
Alias string `thrift:"Alias,2" frugal:"2,default,string" json:"Alias"`
Annotations Annotations `thrift:"Annotations,3" frugal:"3,default,list<Annotation>" json:"Annotations"`
ReservedComments string `thrift:"ReservedComments,4" frugal:"4,default,string" json:"ReservedComments"`
}
func init() {
meta.RegisterStruct(NewTypedef, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x7, 0x54, 0x79, 0x70, 0x65, 0x64, 0x65, 0x66, 0xb, 0x0,
0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3, 0xc, 0x0,
0x0, 0x0, 0x4, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x4, 0x54,
0x79, 0x70, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x2, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1,
0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0, 0x2, 0x0, 0x0,
0x0, 0x5, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0,
0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x3, 0xb,
0x0, 0x2, 0x0, 0x0, 0x0, 0xb, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0,
0x0, 0xf, 0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x6,
0x0, 0x1, 0x0, 0x4, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x10, 0x52, 0x65, 0x73, 0x65, 0x72,
0x76, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0,
0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x0,
})
}
func NewTypedef() *Typedef {
return &Typedef{}
}
func (p *Typedef) InitDefault() {
}
var Typedef_Type_DEFAULT *Type
func (p *Typedef) GetType() (v *Type) {
if !p.IsSetType() {
return Typedef_Type_DEFAULT
}
return p.Type
}
func (p *Typedef) GetAlias() (v string) {
return p.Alias
}
func (p *Typedef) GetAnnotations() (v Annotations) {
return p.Annotations
}
func (p *Typedef) GetReservedComments() (v string) {
return p.ReservedComments
}
func (p *Typedef) IsSetType() bool {
return p.Type != nil
}
func (p *Typedef) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Typedef(%+v)", *p)
}
var fieldIDToName_Typedef = map[int16]string{
1: "Type",
2: "Alias",
3: "Annotations",
4: "ReservedComments",
}
type EnumValue struct {
Name string `thrift:"Name,1" frugal:"1,default,string" json:"Name"`
Value int64 `thrift:"Value,2" frugal:"2,default,i64" json:"Value"`
Annotations Annotations `thrift:"Annotations,3" frugal:"3,default,list<Annotation>" json:"Annotations"`
ReservedComments string `thrift:"ReservedComments,4" frugal:"4,default,string" json:"ReservedComments"`
}
func init() {
meta.RegisterStruct(NewEnumValue, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x9, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65,
0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3,
0xc, 0x0, 0x0, 0x0, 0x4, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0,
0x4, 0x4e, 0x61, 0x6d, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8,
0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0, 0x2,
0x0, 0x0, 0x0, 0x5, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0,
0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0,
0x3, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0xb, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1,
0x0, 0x0, 0x0, 0xf, 0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0,
0x0, 0x6, 0x0, 0x1, 0x0, 0x4, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x10, 0x52, 0x65, 0x73,
0x65, 0x72, 0x76, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x8, 0x0, 0x3,
0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0,
0x0,
})
}
func NewEnumValue() *EnumValue {
return &EnumValue{}
}
func (p *EnumValue) InitDefault() {
}
func (p *EnumValue) GetName() (v string) {
return p.Name
}
func (p *EnumValue) GetValue() (v int64) {
return p.Value
}
func (p *EnumValue) GetAnnotations() (v Annotations) {
return p.Annotations
}
func (p *EnumValue) GetReservedComments() (v string) {
return p.ReservedComments
}
func (p *EnumValue) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("EnumValue(%+v)", *p)
}
var fieldIDToName_EnumValue = map[int16]string{
1: "Name",
2: "Value",
3: "Annotations",
4: "ReservedComments",
}
type Enum struct {
Name string `thrift:"Name,1" frugal:"1,default,string" json:"Name"`
Values []*EnumValue `thrift:"Values,2" frugal:"2,default,list<EnumValue>" json:"Values"`
Annotations Annotations `thrift:"Annotations,3" frugal:"3,default,list<Annotation>" json:"Annotations"`
ReservedComments string `thrift:"ReservedComments,4" frugal:"4,default,string" json:"ReservedComments"`
}
func init() {
meta.RegisterStruct(NewEnum, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x4, 0x45, 0x6e, 0x75, 0x6d, 0xb, 0x0, 0x2, 0x0, 0x0,
0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3, 0xc, 0x0, 0x0, 0x0, 0x4,
0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x4, 0x4e, 0x61, 0x6d, 0x65,
0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0,
0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8,
0x0, 0x1, 0x0, 0x0, 0x0, 0xf, 0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc,
0x0, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x3, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0xb, 0x41,
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0,
0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xf, 0xc, 0x0, 0x3, 0x8, 0x0,
0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x4, 0xb, 0x0, 0x2,
0x0, 0x0, 0x0, 0x10, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d,
0x65, 0x6e, 0x74, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0,
0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x0,
})
}
func NewEnum() *Enum {
return &Enum{}
}
func (p *Enum) InitDefault() {
}
func (p *Enum) GetName() (v string) {
return p.Name
}
func (p *Enum) GetValues() (v []*EnumValue) {
return p.Values
}
func (p *Enum) GetAnnotations() (v Annotations) {
return p.Annotations
}
func (p *Enum) GetReservedComments() (v string) {
return p.ReservedComments
}
func (p *Enum) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Enum(%+v)", *p)
}
var fieldIDToName_Enum = map[int16]string{
1: "Name",
2: "Values",
3: "Annotations",
4: "ReservedComments",
}
type ConstValueExtra struct {
IsEnum bool `thrift:"IsEnum,1" frugal:"1,default,bool" json:"IsEnum"`
Index int32 `thrift:"Index,2" frugal:"2,default,i32" json:"Index"`
Name string `thrift:"Name,3" frugal:"3,default,string" json:"Name"`
Sel string `thrift:"Sel,4" frugal:"4,default,string" json:"Sel"`
}
func init() {
meta.RegisterStruct(NewConstValueExtra, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0xf, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x45, 0x78, 0x74, 0x72, 0x61, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72,
0x75, 0x63, 0x74, 0xf, 0x0, 0x3, 0xc, 0x0, 0x0, 0x0, 0x4, 0x6, 0x0, 0x1, 0x0, 0x1,
0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x49, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x8, 0x0, 0x3,
0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0,
0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x5, 0x49, 0x6e, 0x64, 0x65,
0x78, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0,
0x0, 0x8, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x3, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x4,
0x4e, 0x61, 0x6d, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0,
0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x4, 0xb, 0x0, 0x2, 0x0,
0x0, 0x0, 0x3, 0x53, 0x65, 0x6c, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4,
0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x0,
})
}
func NewConstValueExtra() *ConstValueExtra {
return &ConstValueExtra{
Index: -1,
}
}
func (p *ConstValueExtra) InitDefault() {
p.Index = -1
}
func (p *ConstValueExtra) GetIsEnum() (v bool) {
return p.IsEnum
}
func (p *ConstValueExtra) GetIndex() (v int32) {
return p.Index
}
func (p *ConstValueExtra) GetName() (v string) {
return p.Name
}
func (p *ConstValueExtra) GetSel() (v string) {
return p.Sel
}
func (p *ConstValueExtra) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("ConstValueExtra(%+v)", *p)
}
var fieldIDToName_ConstValueExtra = map[int16]string{
1: "IsEnum",
2: "Index",
3: "Name",
4: "Sel",
}
type ConstValue struct {
Type ConstType `thrift:"Type,1" frugal:"1,default,ConstType" json:"Type"`
TypedValue *ConstTypedValue `thrift:"TypedValue,2,optional" frugal:"2,optional,ConstTypedValue" json:"TypedValue,omitempty"`
Extra *ConstValueExtra `thrift:"Extra,3,optional" frugal:"3,optional,ConstValueExtra" json:"Extra,omitempty"`
}
func init() {
meta.RegisterStruct(NewConstValue, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0xa, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75,
0x65, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0,
0x3, 0xc, 0x0, 0x0, 0x0, 0x3, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0,
0x0, 0x4, 0x54, 0x79, 0x70, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4,
0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0,
0x2, 0x0, 0x0, 0x0, 0xa, 0x54, 0x79, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x8,
0x0, 0x3, 0x0, 0x0, 0x0, 0x2, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc,
0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x3, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x5, 0x45, 0x78,
0x74, 0x72, 0x61, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x2, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1,
0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0,
})
}
func NewConstValue() *ConstValue {
return &ConstValue{}
}
func (p *ConstValue) InitDefault() {
}
func (p *ConstValue) GetType() (v ConstType) {
return p.Type
}
var ConstValue_TypedValue_DEFAULT *ConstTypedValue
func (p *ConstValue) GetTypedValue() (v *ConstTypedValue) {
if !p.IsSetTypedValue() {
return ConstValue_TypedValue_DEFAULT
}
return p.TypedValue
}
var ConstValue_Extra_DEFAULT *ConstValueExtra
func (p *ConstValue) GetExtra() (v *ConstValueExtra) {
if !p.IsSetExtra() {
return ConstValue_Extra_DEFAULT
}
return p.Extra
}
func (p *ConstValue) IsSetTypedValue() bool {
return p.TypedValue != nil
}
func (p *ConstValue) IsSetExtra() bool {
return p.Extra != nil
}
var fieldIDToName_ConstValue = map[int16]string{
1: "Type",
2: "TypedValue",
3: "Extra",
}
type MapConstValue struct {
Key *ConstValue `thrift:"Key,1,optional" frugal:"1,optional,ConstValue" json:"Key,omitempty"`
Value *ConstValue `thrift:"Value,2,optional" frugal:"2,optional,ConstValue" json:"Value,omitempty"`
}
func init() {
meta.RegisterStruct(NewMapConstValue, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0xd, 0x4d, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x56,
0x61, 0x6c, 0x75, 0x65, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63,
0x74, 0xf, 0x0, 0x3, 0xc, 0x0, 0x0, 0x0, 0x2, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0,
0x2, 0x0, 0x0, 0x0, 0x3, 0x4b, 0x65, 0x79, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x2, 0xc,
0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2,
0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x5, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x8, 0x0, 0x3, 0x0,
0x0, 0x0, 0x2, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0,
})
}
func NewMapConstValue() *MapConstValue {
return &MapConstValue{}
}
func (p *MapConstValue) InitDefault() {
}
var MapConstValue_Key_DEFAULT *ConstValue
func (p *MapConstValue) GetKey() (v *ConstValue) {
if !p.IsSetKey() {
return MapConstValue_Key_DEFAULT
}
return p.Key
}
var MapConstValue_Value_DEFAULT *ConstValue
func (p *MapConstValue) GetValue() (v *ConstValue) {
if !p.IsSetValue() {
return MapConstValue_Value_DEFAULT
}
return p.Value
}
func (p *MapConstValue) IsSetKey() bool {
return p.Key != nil
}
func (p *MapConstValue) IsSetValue() bool {
return p.Value != nil
}
func (p *MapConstValue) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("MapConstValue(%+v)", *p)
}
var fieldIDToName_MapConstValue = map[int16]string{
1: "Key",
2: "Value",
}
type Constant struct {
Name string `thrift:"Name,1" frugal:"1,default,string" json:"Name"`
Type *Type `thrift:"Type,2,optional" frugal:"2,optional,Type" json:"Type,omitempty"`
Value *ConstValue `thrift:"Value,3,optional" frugal:"3,optional,ConstValue" json:"Value,omitempty"`
Annotations Annotations `thrift:"Annotations,4" frugal:"4,default,list<Annotation>" json:"Annotations"`
ReservedComments string `thrift:"ReservedComments,5" frugal:"5,default,string" json:"ReservedComments"`
}
func init() {
meta.RegisterStruct(NewConstant, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x8, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0xb,
0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3, 0xc,
0x0, 0x0, 0x0, 0x5, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x4,
0x4e, 0x61, 0x6d, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0,
0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0, 0x2, 0x0,
0x0, 0x0, 0x4, 0x54, 0x79, 0x70, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x2, 0xc, 0x0,
0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x3, 0xb,
0x0, 0x2, 0x0, 0x0, 0x0, 0x5, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0,
0x0, 0x2, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x6, 0x0,
0x1, 0x0, 0x4, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0xb, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8,
0x0, 0x1, 0x0, 0x0, 0x0, 0xf, 0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc,
0x0, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x5, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x10, 0x52,
0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x8,
0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb,
0x0, 0x0, 0x0,
})
}
func NewConstant() *Constant {
return &Constant{}
}
func (p *Constant) InitDefault() {
}
func (p *Constant) GetName() (v string) {
return p.Name
}
var Constant_Type_DEFAULT *Type
func (p *Constant) GetType() (v *Type) {
if !p.IsSetType() {
return Constant_Type_DEFAULT
}
return p.Type
}
var Constant_Value_DEFAULT *ConstValue
func (p *Constant) GetValue() (v *ConstValue) {
if !p.IsSetValue() {
return Constant_Value_DEFAULT
}
return p.Value
}
func (p *Constant) GetAnnotations() (v Annotations) {
return p.Annotations
}
func (p *Constant) GetReservedComments() (v string) {
return p.ReservedComments
}
func (p *Constant) IsSetType() bool {
return p.Type != nil
}
func (p *Constant) IsSetValue() bool {
return p.Value != nil
}
func (p *Constant) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Constant(%+v)", *p)
}
var fieldIDToName_Constant = map[int16]string{
1: "Name",
2: "Type",
3: "Value",
4: "Annotations",
5: "ReservedComments",
}
type Field struct {
ID int32 `thrift:"ID,1" frugal:"1,default,i32" json:"ID"`
Name string `thrift:"Name,2" frugal:"2,default,string" json:"Name"`
Requiredness FieldType `thrift:"Requiredness,3" frugal:"3,default,FieldType" json:"Requiredness"`
Type *Type `thrift:"Type,4" frugal:"4,default,Type" json:"Type"`
Default *ConstValue `thrift:"Default,5,optional" frugal:"5,optional,ConstValue" json:"Default,omitempty"`
Annotations Annotations `thrift:"Annotations,6" frugal:"6,default,list<Annotation>" json:"Annotations"`
ReservedComments string `thrift:"ReservedComments,7" frugal:"7,default,string" json:"ReservedComments"`
}
func init() {
meta.RegisterStruct(NewField, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x5, 0x46, 0x69, 0x65, 0x6c, 0x64, 0xb, 0x0, 0x2, 0x0,
0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3, 0xc, 0x0, 0x0, 0x0,
0x7, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x2, 0x49, 0x44, 0x8,
0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x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0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x6, 0x0,
0x1, 0x0, 0x7, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x10, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76,
0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0,
0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x0,
})
}
func NewField() *Field {
return &Field{}
}
func (p *Field) InitDefault() {
}
func (p *Field) GetID() (v int32) {
return p.ID
}
func (p *Field) GetName() (v string) {
return p.Name
}
func (p *Field) GetRequiredness() (v FieldType) {
return p.Requiredness
}
var Field_Type_DEFAULT *Type
func (p *Field) GetType() (v *Type) {
if !p.IsSetType() {
return Field_Type_DEFAULT
}
return p.Type
}
var Field_Default_DEFAULT *ConstValue
func (p *Field) GetDefault() (v *ConstValue) {
if !p.IsSetDefault() {
return Field_Default_DEFAULT
}
return p.Default
}
func (p *Field) GetAnnotations() (v Annotations) {
return p.Annotations
}
func (p *Field) GetReservedComments() (v string) {
return p.ReservedComments
}
func (p *Field) IsSetType() bool {
return p.Type != nil
}
func (p *Field) IsSetDefault() bool {
return p.Default != nil
}
func (p *Field) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Field(%+v)", *p)
}
var fieldIDToName_Field = map[int16]string{
1: "ID",
2: "Name",
3: "Requiredness",
4: "Type",
5: "Default",
6: "Annotations",
7: "ReservedComments",
}
type StructLike struct {
Category string `thrift:"Category,1" frugal:"1,default,string" json:"Category"`
Name string `thrift:"Name,2" frugal:"2,default,string" json:"Name"`
Fields []*Field `thrift:"Fields,3" frugal:"3,default,list<Field>" json:"Fields"`
Annotations Annotations `thrift:"Annotations,4" frugal:"4,default,list<Annotation>" json:"Annotations"`
ReservedComments string `thrift:"ReservedComments,5" frugal:"5,default,string" json:"ReservedComments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0x0, 0x0, 0x0, 0xf, 0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0,
0x0, 0xc, 0x0, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x5, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0,
0x10, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0,
0x0, 0xb, 0x0, 0x0, 0x0,
})
}
func NewStructLike() *StructLike {
return &StructLike{}
}
func (p *StructLike) InitDefault() {
}
func (p *StructLike) GetCategory() (v string) {
return p.Category
}
func (p *StructLike) GetName() (v string) {
return p.Name
}
func (p *StructLike) GetFields() (v []*Field) {
return p.Fields
}
func (p *StructLike) GetAnnotations() (v Annotations) {
return p.Annotations
}
func (p *StructLike) GetReservedComments() (v string) {
return p.ReservedComments
}
func (p *StructLike) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("StructLike(%+v)", *p)
}
var fieldIDToName_StructLike = map[int16]string{
1: "Category",
2: "Name",
3: "Fields",
4: "Annotations",
5: "ReservedComments",
}
type Function struct {
Name string `thrift:"Name,1" frugal:"1,default,string" json:"Name"`
Oneway bool `thrift:"Oneway,2" frugal:"2,default,bool" json:"Oneway"`
Void bool `thrift:"Void,3" frugal:"3,default,bool" json:"Void"`
FunctionType *Type `thrift:"FunctionType,4,optional" frugal:"4,optional,Type" json:"FunctionType,omitempty"`
Arguments []*Field `thrift:"Arguments,5" frugal:"5,default,list<Field>" json:"Arguments"`
Throws []*Field `thrift:"Throws,6" frugal:"6,default,list<Field>" json:"Throws"`
Annotations Annotations `thrift:"Annotations,7" frugal:"7,default,list<Annotation>" json:"Annotations"`
ReservedComments string `thrift:"ReservedComments,8" frugal:"8,default,string" json:"ReservedComments"`
}
func init() {
meta.R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0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x8,
0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xf,
0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x6, 0x0, 0x1,
0x0, 0x6, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x54, 0x68, 0x72, 0x6f, 0x77, 0x73, 0x8,
0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xf,
0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x6, 0x0, 0x1,
0x0, 0x7, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0xb, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0,
0x1, 0x0, 0x0, 0x0, 0xf, 0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0,
0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x8, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x10, 0x52, 0x65,
0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x8, 0x0,
0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0,
0x0, 0x0,
})
}
func NewFunction() *Function {
return &Function{}
}
func (p *Function) InitDefault() {
}
func (p *Function) GetName() (v string) {
return p.Name
}
func (p *Function) GetOneway() (v bool) {
return p.Oneway
}
func (p *Function) GetVoid() (v bool) {
return p.Void
}
var Function_FunctionType_DEFAULT *Type
func (p *Function) GetFunctionType() (v *Type) {
if !p.IsSetFunctionType() {
return Function_FunctionType_DEFAULT
}
return p.FunctionType
}
func (p *Function) GetArguments() (v []*Field) {
return p.Arguments
}
func (p *Function) GetThrows() (v []*Field) {
return p.Throws
}
func (p *Function) GetAnnotations() (v Annotations) {
return p.Annotations
}
func (p *Function) GetReservedComments() (v string) {
return p.ReservedComments
}
func (p *Function) IsSetFunctionType() bool {
return p.FunctionType != nil
}
func (p *Function) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Function(%+v)", *p)
}
var fieldIDToName_Function = map[int16]string{
1: "Name",
2: "Oneway",
3: "Void",
4: "FunctionType",
5: "Arguments",
6: "Throws",
7: "Annotations",
8: "ReservedComments",
}
type Service struct {
Name string `thrift:"Name,1" frugal:"1,default,string" json:"Name"`
Extends string `thrift:"Extends,2" frugal:"2,default,string" json:"Extends"`
Functions []*Function `thrift:"Functions,3" frugal:"3,default,list<Function>" json:"Functions"`
Annotations Annotations `thrift:"Annotations,4" frugal:"4,default,list<Annotation>" json:"Annotations"`
Reference *Reference `thrift:"Reference,5,optional" frugal:"5,optional,Reference" json:"Reference,omitempty"`
ReservedComments string `thrift:"ReservedComments,6" frugal:"6,default,string" json:"ReservedComments"`
}
func init() {
meta.RegisterStruct(NewService, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x7, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xb, 0x0,
0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3, 0xc, 0x0,
0x0, 0x0, 0x6, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x4, 0x4e,
0x61, 0x6d, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 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 0x0, 0x0, 0x0, 0x10, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64,
0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc,
0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x0,
})
}
func NewService() *Service {
return &Service{}
}
func (p *Service) InitDefault() {
}
func (p *Service) GetName() (v string) {
return p.Name
}
func (p *Service) GetExtends() (v string) {
return p.Extends
}
func (p *Service) GetFunctions() (v []*Function) {
return p.Functions
}
func (p *Service) GetAnnotations() (v Annotations) {
return p.Annotations
}
var Service_Reference_DEFAULT *Reference
func (p *Service) GetReference() (v *Reference) {
if !p.IsSetReference() {
return Service_Reference_DEFAULT
}
return p.Reference
}
func (p *Service) GetReservedComments() (v string) {
return p.ReservedComments
}
func (p *Service) IsSetReference() bool {
return p.Reference != nil
}
func (p *Service) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Service(%+v)", *p)
}
var fieldIDToName_Service = map[int16]string{
1: "Name",
2: "Extends",
3: "Functions",
4: "Annotations",
5: "Reference",
6: "ReservedComments",
}
type Include struct {
Path string `thrift:"Path,1" frugal:"1,default,string" json:"Path"`
Reference *Thrift `thrift:"Reference,2,optional" frugal:"2,optional,Thrift" json:"Reference,omitempty"`
Used *bool `thrift:"Used,3,optional" frugal:"3,optional,bool" json:"Used,omitempty"`
}
func init() {
meta.RegisterStruct(NewInclude, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x7, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0xb, 0x0,
0x2, 0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3, 0xc, 0x0,
0x0, 0x0, 0x3, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x4, 0x50,
0x61, 0x74, 0x68, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1,
0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0, 0x2, 0x0, 0x0,
0x0, 0x9, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0,
0x0, 0x2, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x6, 0x0,
0x1, 0x0, 0x3, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x4, 0x55, 0x73, 0x65, 0x64, 0x8, 0x0,
0x3, 0x0, 0x0, 0x0, 0x2, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0x2, 0x0,
0x0, 0x0,
})
}
func NewInclude() *Include {
return &Include{}
}
func (p *Include) InitDefault() {
}
func (p *Include) GetPath() (v string) {
return p.Path
}
var Include_Reference_DEFAULT *Thrift
func (p *Include) GetReference() (v *Thrift) {
if !p.IsSetReference() {
return Include_Reference_DEFAULT
}
return p.Reference
}
var Include_Used_DEFAULT bool
func (p *Include) GetUsed() (v bool) {
if !p.IsSetUsed() {
return Include_Used_DEFAULT
}
return *p.Used
}
func (p *Include) IsSetReference() bool {
return p.Reference != nil
}
func (p *Include) IsSetUsed() bool {
return p.Used != nil
}
func (p *Include) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Include(%+v)", *p)
}
var fieldIDToName_Include = map[int16]string{
1: "Path",
2: "Reference",
3: "Used",
}
type Thrift struct {
Filename string `thrift:"Filename,1" frugal:"1,default,string" json:"Filename"`
Includes []*Include `thrift:"Includes,2" frugal:"2,default,list<Include>" json:"Includes"`
CppIncludes []string `thrift:"CppIncludes,3" frugal:"3,default,list<string>" json:"CppIncludes"`
Namespaces []*Namespace `thrift:"Namespaces,4" frugal:"4,default,list<Namespace>" json:"Namespaces"`
Typedefs []*Typedef `thrift:"Typedefs,5" frugal:"5,default,list<Typedef>" json:"Typedefs"`
Constants []*Constant `thrift:"Constants,6" frugal:"6,default,list<Constant>" json:"Constants"`
Enums []*Enum `thrift:"Enums,7" frugal:"7,default,list<Enum>" json:"Enums"`
Structs []*StructLike `thrift:"Structs,8" frugal:"8,default,list<StructLike>" json:"Structs"`
Unions []*StructLike `thrift:"Unions,9" frugal:"9,default,list<StructLike>" json:"Unions"`
Exceptions []*StructLike `thrift:"Exceptions,10" frugal:"10,default,list<StructLike>" json:"Exceptions"`
Services []*Service `thrift:"Services,11" frugal:"11,default,list<Service>" json:"Services"`
Name2Category map[string]Category `thrift:"Name2Category,12" frugal:"12,default,map<string:Category>" json:"Name2Category"`
}
func init() {
meta.RegisterStruct(NewThrift, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0x6, 0x54, 0x68, 0x72, 0x69, 0x66, 0x74, 0xb, 0x0, 0x2,
0x0, 0x0, 0x0, 0x6, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0xf, 0x0, 0x3, 0xc, 0x0, 0x0,
0x0, 0xc, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x8, 0x46, 0x69,
0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4,
0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x6, 0x0, 0x1, 0x0, 0x2, 0xb, 0x0,
0x2, 0x0, 0x0, 0x0, 0x8, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x73, 0x8, 0x0, 0x3,
0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xf, 0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0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x6, 0x0, 0x1,
0x0, 0xb, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x8, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x73, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0,
0x0, 0xf, 0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x6,
0x0, 0x1, 0x0, 0xc, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0xd, 0x4e, 0x61, 0x6d, 0x65, 0x32,
0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x8, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0xc,
0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0xd, 0xc, 0x0, 0x2, 0x8, 0x0, 0x1, 0x0,
0x0, 0x0, 0xb, 0x0, 0xc, 0x0, 0x3, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0,
0x0, 0x0,
})
}
func NewThrift() *Thrift {
return &Thrift{}
}
func (p *Thrift) InitDefault() {
}
func (p *Thrift) GetFilename() (v string) {
return p.Filename
}
func (p *Thrift) GetIncludes() (v []*Include) {
return p.Includes
}
func (p *Thrift) GetCppIncludes() (v []string) {
return p.CppIncludes
}
func (p *Thrift) GetNamespaces() (v []*Namespace) {
return p.Namespaces
}
func (p *Thrift) GetTypedefs() (v []*Typedef) {
return p.Typedefs
}
func (p *Thrift) GetConstants() (v []*Constant) {
return p.Constants
}
func (p *Thrift) GetEnums() (v []*Enum) {
return p.Enums
}
func (p *Thrift) GetStructs() (v []*StructLike) {
return p.Structs
}
func (p *Thrift) GetUnions() (v []*StructLike) {
return p.Unions
}
func (p *Thrift) GetExceptions() (v []*StructLike) {
return p.Exceptions
}
func (p *Thrift) GetServices() (v []*Service) {
return p.Services
}
func (p *Thrift) GetName2Category() (v map[string]Category) {
return p.Name2Category
}
func (p *Thrift) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("Thrift(%+v)", *p)
}
var fieldIDToName_Thrift = map[int16]string{
1: "Filename",
2: "Includes",
3: "CppIncludes",
4: "Namespaces",
5: "Typedefs",
6: "Constants",
7: "Enums",
8: "Structs",
9: "Unions",
10: "Exceptions",
11: "Services",
12: "Name2Category",
}
type ConstTypedValue struct {
Double *float64 `thrift:"Double,1,optional" frugal:"1,optional,double" json:"Double,omitempty"`
Int *int64 `thrift:"Int,2,optional" frugal:"2,optional,i64" json:"Int,omitempty"`
Literal *string `thrift:"Literal,3,optional" frugal:"3,optional,string" json:"Literal,omitempty"`
Identifier *string `thrift:"Identifier,4,optional" frugal:"4,optional,string" json:"Identifier,omitempty"`
List []*ConstValue `thrift:"List,5,optional" frugal:"5,optional,list<ConstValue>" json:"List,omitempty"`
Map []*MapConstValue `thrift:"Map,6,optional" frugal:"6,optional,list<MapConstValue>" json:"Map,omitempty"`
}
func init() {
meta.RegisterStruct(NewConstTypedValue, []byte{
0xb, 0x0, 0x1, 0x0, 0x0, 0x0, 0xf, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65,
0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0xb, 0x0, 0x2, 0x0, 0x0, 0x0, 0x5, 0x75, 0x6e, 0x69,
0x6f, 0x6e, 0xf, 0x0, 0x3, 0xc, 0x0, 0x0, 0x0, 0x6, 0x6, 0x0, 0x1, 0x0, 0x1, 0xb,
0x0, 0x2, 0x0, 0x0, 0x0, 0x6, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x8, 0x0, 0x3, 0x0,
0x0, 0x0, 0x2, 0xc, 0x0, 0x4, 0x8, 0x0, 0x1, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x6,
0x0, 0x1, 0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TypedValue() *ConstTypedValue {
return &ConstTypedValue{}
}
func (p *ConstTypedValue) InitDefault() {
}
var ConstTypedValue_Double_DEFAULT float64
func (p *ConstTypedValue) GetDouble() (v float64) {
if !p.IsSetDouble() {
return ConstTypedValue_Double_DEFAULT
}
return *p.Double
}
var ConstTypedValue_Int_DEFAULT int64
func (p *ConstTypedValue) GetInt() (v int64) {
if !p.IsSetInt() {
return ConstTypedValue_Int_DEFAULT
}
return *p.Int
}
var ConstTypedValue_Literal_DEFAULT string
func (p *ConstTypedValue) GetLiteral() (v string) {
if !p.IsSetLiteral() {
return ConstTypedValue_Literal_DEFAULT
}
return *p.Literal
}
var ConstTypedValue_Identifier_DEFAULT string
func (p *ConstTypedValue) GetIdentifier() (v string) {
if !p.IsSetIdentifier() {
return ConstTypedValue_Identifier_DEFAULT
}
return *p.Identifier
}
var ConstTypedValue_List_DEFAULT []*ConstValue
func (p *ConstTypedValue) GetList() (v []*ConstValue) {
if !p.IsSetList() {
return ConstTypedValue_List_DEFAULT
}
return p.List
}
var ConstTypedValue_Map_DEFAULT []*MapConstValue
func (p *ConstTypedValue) GetMap() (v []*MapConstValue) {
if !p.IsSetMap() {
return ConstTypedValue_Map_DEFAULT
}
return p.Map
}
func (p *ConstTypedValue) CountSetFieldsConstTypedValue() int {
count := 0
if p.IsSetDouble() {
count++
}
if p.IsSetInt() {
count++
}
if p.IsSetLiteral() {
count++
}
if p.IsSetIdentifier() {
count++
}
if p.IsSetList() {
count++
}
if p.IsSetMap() {
count++
}
return count
}
func (p *ConstTypedValue) IsSetDouble() bool {
return p.Double != nil
}
func (p *ConstTypedValue) IsSetInt() bool {
return p.Int != nil
}
func (p *ConstTypedValue) IsSetLiteral() bool {
return p.Literal != nil
}
func (p *ConstTypedValue) IsSetIdentifier() bool {
return p.Identifier != nil
}
func (p *ConstTypedValue) IsSetList() bool {
return p.List != nil
}
func (p *ConstTypedValue) IsSetMap() bool {
return p.Map != nil
}
func (p *ConstTypedValue) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("ConstTypedValue(%+v)", *p)
}
var fieldIDToName_ConstTypedValue = map[int16]string{
1: "Double",
2: "Int",
3: "Literal",
4: "Identifier",
5: "List",
6: "Map",
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。