Documentation ¶
Index ¶
- Variables
- type EnumOptions
- type EnumValueOptions
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetFields() []*Field
- func (x *Field) GetFullType() string
- func (x *Field) GetListEntry() *Field_ListEntry
- func (x *Field) GetMapEntry() *Field_MapEntry
- func (x *Field) GetName() string
- func (x *Field) GetOptions() *FieldOptions
- func (x *Field) GetPredefined() bool
- func (x *Field) GetType() string
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type FieldOptions
- func (*FieldOptions) Descriptor() ([]byte, []int)deprecated
- func (x *FieldOptions) GetKey() string
- func (x *FieldOptions) GetLayout() Layout
- func (x *FieldOptions) GetName() string
- func (x *FieldOptions) GetNote() string
- func (x *FieldOptions) GetOptional() bool
- func (x *FieldOptions) GetProp() *FieldProp
- func (x *FieldOptions) GetSep() string
- func (x *FieldOptions) GetSpan() Span
- func (x *FieldOptions) GetSubsep() string
- func (*FieldOptions) ProtoMessage()
- func (x *FieldOptions) ProtoReflect() protoreflect.Message
- func (x *FieldOptions) Reset()
- func (x *FieldOptions) String() string
- type FieldProp
- func (*FieldProp) Descriptor() ([]byte, []int)deprecated
- func (x *FieldProp) GetDefault() string
- func (x *FieldProp) GetFixed() bool
- func (x *FieldProp) GetLength() uint32
- func (x *FieldProp) GetRange() string
- func (x *FieldProp) GetRefer() string
- func (x *FieldProp) GetSequence() int64
- func (x *FieldProp) GetUnique() bool
- func (*FieldProp) ProtoMessage()
- func (x *FieldProp) ProtoReflect() protoreflect.Message
- func (x *FieldProp) Reset()
- func (x *FieldProp) String() string
- type Field_ListEntry
- func (*Field_ListEntry) Descriptor() ([]byte, []int)deprecated
- func (x *Field_ListEntry) GetElemFullType() string
- func (x *Field_ListEntry) GetElemType() string
- func (*Field_ListEntry) ProtoMessage()
- func (x *Field_ListEntry) ProtoReflect() protoreflect.Message
- func (x *Field_ListEntry) Reset()
- func (x *Field_ListEntry) String() string
- type Field_MapEntry
- func (*Field_MapEntry) Descriptor() ([]byte, []int)deprecated
- func (x *Field_MapEntry) GetKeyType() string
- func (x *Field_MapEntry) GetValueFullType() string
- func (x *Field_MapEntry) GetValueType() string
- func (*Field_MapEntry) ProtoMessage()
- func (x *Field_MapEntry) ProtoReflect() protoreflect.Message
- func (x *Field_MapEntry) Reset()
- func (x *Field_MapEntry) String() string
- type Layout
- type SheetMeta
- func (*SheetMeta) Descriptor() ([]byte, []int)deprecated
- func (x *SheetMeta) GetAdjacentKey() bool
- func (x *SheetMeta) GetAlias() string
- func (x *SheetMeta) GetDatarow() int32
- func (x *SheetMeta) GetFieldPresence() bool
- func (x *SheetMeta) GetIndex() []string
- func (x *SheetMeta) GetMerger() []string
- func (x *SheetMeta) GetNameline() int32
- func (x *SheetMeta) GetNamerow() int32
- func (x *SheetMeta) GetNested() bool
- func (x *SheetMeta) GetNoterow() int32
- func (x *SheetMeta) GetOrderedMap() bool
- func (x *SheetMeta) GetSep() string
- func (x *SheetMeta) GetSheet() string
- func (x *SheetMeta) GetSubsep() string
- func (x *SheetMeta) GetTranspose() bool
- func (x *SheetMeta) GetTypeline() int32
- func (x *SheetMeta) GetTyperow() int32
- func (*SheetMeta) ProtoMessage()
- func (x *SheetMeta) ProtoReflect() protoreflect.Message
- func (x *SheetMeta) Reset()
- func (x *SheetMeta) String() string
- type Span
- type Workbook
- func (*Workbook) Descriptor() ([]byte, []int)deprecated
- func (x *Workbook) GetImports() map[string]int32
- func (x *Workbook) GetName() string
- func (x *Workbook) GetOptions() *WorkbookOptions
- func (x *Workbook) GetWorksheets() []*Worksheet
- func (*Workbook) ProtoMessage()
- func (x *Workbook) ProtoReflect() protoreflect.Message
- func (x *Workbook) Reset()
- func (x *Workbook) String() string
- type WorkbookMeta
- type WorkbookOptions
- type Worksheet
- func (*Worksheet) Descriptor() ([]byte, []int)deprecated
- func (x *Worksheet) GetFields() []*Field
- func (x *Worksheet) GetName() string
- func (x *Worksheet) GetOptions() *WorksheetOptions
- func (*Worksheet) ProtoMessage()
- func (x *Worksheet) ProtoReflect() protoreflect.Message
- func (x *Worksheet) Reset()
- func (x *Worksheet) String() string
- type WorksheetOptions
- func (*WorksheetOptions) Descriptor() ([]byte, []int)deprecated
- func (x *WorksheetOptions) GetAdjacentKey() bool
- func (x *WorksheetOptions) GetDatarow() int32
- func (x *WorksheetOptions) GetFieldPresence() bool
- func (x *WorksheetOptions) GetIndex() []string
- func (x *WorksheetOptions) GetMerger() []string
- func (x *WorksheetOptions) GetName() string
- func (x *WorksheetOptions) GetNameline() int32
- func (x *WorksheetOptions) GetNamerow() int32
- func (x *WorksheetOptions) GetNested() bool
- func (x *WorksheetOptions) GetNoterow() int32
- func (x *WorksheetOptions) GetOrderedMap() bool
- func (x *WorksheetOptions) GetSep() string
- func (x *WorksheetOptions) GetSubsep() string
- func (x *WorksheetOptions) GetTags() string
- func (x *WorksheetOptions) GetTranspose() bool
- func (x *WorksheetOptions) GetTypeline() int32
- func (x *WorksheetOptions) GetTyperow() int32
- func (*WorksheetOptions) ProtoMessage()
- func (x *WorksheetOptions) ProtoReflect() protoreflect.Message
- func (x *WorksheetOptions) Reset()
- func (x *WorksheetOptions) String() string
- type XMLBook
- type XMLNode
- func (*XMLNode) Descriptor() ([]byte, []int)deprecated
- func (x *XMLNode) GetAttrMap() *XMLNode_AttrMap
- func (x *XMLNode) GetChildList() []*XMLNode
- func (x *XMLNode) GetChildMap() map[string]*XMLNode_IndexList
- func (x *XMLNode) GetName() string
- func (x *XMLNode) GetParent() *XMLNode
- func (x *XMLNode) GetPath() string
- func (*XMLNode) ProtoMessage()
- func (x *XMLNode) ProtoReflect() protoreflect.Message
- func (x *XMLNode) Reset()
- func (x *XMLNode) String() string
- type XMLNode_AttrMap
- func (*XMLNode_AttrMap) Descriptor() ([]byte, []int)deprecated
- func (x *XMLNode_AttrMap) GetList() []*XMLNode_AttrMap_Attr
- func (x *XMLNode_AttrMap) GetMap() map[string]int32
- func (*XMLNode_AttrMap) ProtoMessage()
- func (x *XMLNode_AttrMap) ProtoReflect() protoreflect.Message
- func (x *XMLNode_AttrMap) Reset()
- func (x *XMLNode_AttrMap) String() string
- type XMLNode_AttrMap_Attr
- func (*XMLNode_AttrMap_Attr) Descriptor() ([]byte, []int)deprecated
- func (x *XMLNode_AttrMap_Attr) GetName() string
- func (x *XMLNode_AttrMap_Attr) GetValue() string
- func (*XMLNode_AttrMap_Attr) ProtoMessage()
- func (x *XMLNode_AttrMap_Attr) ProtoReflect() protoreflect.Message
- func (x *XMLNode_AttrMap_Attr) Reset()
- func (x *XMLNode_AttrMap_Attr) String() string
- type XMLNode_IndexList
- type XMLSheet
- func (*XMLSheet) Descriptor() ([]byte, []int)deprecated
- func (x *XMLSheet) GetData() *XMLNode
- func (x *XMLSheet) GetDataNodeMap() map[string]*XMLSheet_NodeList
- func (x *XMLSheet) GetMeta() *XMLNode
- func (x *XMLSheet) GetMetaNodeMap() map[string]*XMLNode
- func (*XMLSheet) ProtoMessage()
- func (x *XMLSheet) ProtoReflect() protoreflect.Message
- func (x *XMLSheet) Reset()
- func (x *XMLSheet) String() string
- type XMLSheet_NodeList
Constants ¶
This section is empty.
Variables ¶
var ( Layout_name = map[int32]string{ 0: "LAYOUT_DEFAULT", 1: "LAYOUT_VERTICAL", 2: "LAYOUT_HORIZONTAL", 3: "LAYOUT_INCELL", } Layout_value = map[string]int32{ "LAYOUT_DEFAULT": 0, "LAYOUT_VERTICAL": 1, "LAYOUT_HORIZONTAL": 2, "LAYOUT_INCELL": 3, } )
Enum value maps for Layout.
var ( Span_name = map[int32]string{ 0: "SPAN_DEFAULT", 1: "SPAN_CROSS_CELL", 2: "SPAN_INNER_CELL", } Span_value = map[string]int32{ "SPAN_DEFAULT": 0, "SPAN_CROSS_CELL": 1, "SPAN_INNER_CELL": 2, } )
Enum value maps for Span.
var (
// optional tableau.EnumOptions enum = 50000;
E_Enum = &file_tableau_protobuf_tableau_proto_extTypes[3]
)
Extension fields to descriptorpb.EnumOptions.
var (
// optional tableau.EnumValueOptions evalue = 50000;
E_Evalue = &file_tableau_protobuf_tableau_proto_extTypes[4]
)
Extension fields to descriptorpb.EnumValueOptions.
var (
// optional tableau.FieldOptions field = 50000;
E_Field = &file_tableau_protobuf_tableau_proto_extTypes[2]
)
Extension fields to descriptorpb.FieldOptions.
var (
// optional tableau.WorkbookOptions workbook = 50000;
E_Workbook = &file_tableau_protobuf_tableau_proto_extTypes[0]
)
Extension fields to descriptorpb.FileOptions.
var (
// optional tableau.WorksheetOptions worksheet = 50000;
E_Worksheet = &file_tableau_protobuf_tableau_proto_extTypes[1]
)
Extension fields to descriptorpb.MessageOptions.
var File_tableau_protobuf_meta_proto protoreflect.FileDescriptor
var File_tableau_protobuf_tableau_proto protoreflect.FileDescriptor
var File_tableau_protobuf_workbook_proto protoreflect.FileDescriptor
var File_tableau_protobuf_xml_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EnumOptions ¶
type EnumOptions struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // alias name // contains filtered or unexported fields }
func (*EnumOptions) Descriptor
deprecated
func (*EnumOptions) Descriptor() ([]byte, []int)
Deprecated: Use EnumOptions.ProtoReflect.Descriptor instead.
func (*EnumOptions) GetName ¶
func (x *EnumOptions) GetName() string
func (*EnumOptions) ProtoMessage ¶
func (*EnumOptions) ProtoMessage()
func (*EnumOptions) ProtoReflect ¶
func (x *EnumOptions) ProtoReflect() protoreflect.Message
func (*EnumOptions) Reset ¶
func (x *EnumOptions) Reset()
func (*EnumOptions) String ¶
func (x *EnumOptions) String() string
type EnumValueOptions ¶
type EnumValueOptions struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // alias name // contains filtered or unexported fields }
func (*EnumValueOptions) Descriptor
deprecated
func (*EnumValueOptions) Descriptor() ([]byte, []int)
Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead.
func (*EnumValueOptions) GetName ¶
func (x *EnumValueOptions) GetName() string
func (*EnumValueOptions) ProtoMessage ¶
func (*EnumValueOptions) ProtoMessage()
func (*EnumValueOptions) ProtoReflect ¶
func (x *EnumValueOptions) ProtoReflect() protoreflect.Message
func (*EnumValueOptions) Reset ¶
func (x *EnumValueOptions) Reset()
func (*EnumValueOptions) String ¶
func (x *EnumValueOptions) String() string
type Field ¶
type Field struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` FullType string `protobuf:"bytes,2,opt,name=full_type,json=fullType,proto3" json:"full_type,omitempty"` ListEntry *Field_ListEntry `protobuf:"bytes,3,opt,name=list_entry,json=listEntry,proto3" json:"list_entry,omitempty"` MapEntry *Field_MapEntry `protobuf:"bytes,4,opt,name=map_entry,json=mapEntry,proto3" json:"map_entry,omitempty"` // Indicate this field's related type is predefined. // - message: message type // - enum: enum type // - list: list's element type // - map: map's value type Predefined bool `protobuf:"varint,5,opt,name=predefined,proto3" json:"predefined,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` Options *FieldOptions `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"` // This filed is map or list if fields's length is not 0. Fields []*Field `protobuf:"bytes,10,rep,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*Field) Descriptor
deprecated
func (*Field) GetFullType ¶ added in v0.9.17
func (*Field) GetListEntry ¶ added in v0.9.17
func (x *Field) GetListEntry() *Field_ListEntry
func (*Field) GetMapEntry ¶
func (x *Field) GetMapEntry() *Field_MapEntry
func (*Field) GetOptions ¶
func (x *Field) GetOptions() *FieldOptions
func (*Field) GetPredefined ¶ added in v0.9.15
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
type FieldOptions ¶
type FieldOptions struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // scalar type's varible name or composite type's varible name (prefix). Note string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` // note of name, maybe in another language (Chinese) other than variable name (English). Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // only set when type is map or keyed-list. Layout Layout `protobuf:"varint,4,opt,name=layout,proto3,enum=tableau.Layout" json:"layout,omitempty"` // For map/list types with cardinality. Default: LAYOUT_DEFAULT. Span Span `protobuf:"varint,5,opt,name=span,proto3,enum=tableau.Span" json:"span,omitempty"` // For list element or map value types. Default: SPAN_CROSS_CELL. Sep string `protobuf:"bytes,6,opt,name=sep,proto3" json:"sep,omitempty"` // separator, default: "," Subsep string `protobuf:"bytes,7,opt,name=subsep,proto3" json:"subsep,omitempty"` // subseparator, default: ":" Optional bool `protobuf:"varint,8,opt,name=optional,proto3" json:"optional,omitempty"` // whether the field is optional. Prop *FieldProp `protobuf:"bytes,15,opt,name=prop,proto3" json:"prop,omitempty"` // property of field. // contains filtered or unexported fields }
func (*FieldOptions) Descriptor
deprecated
func (*FieldOptions) Descriptor() ([]byte, []int)
Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.
func (*FieldOptions) GetKey ¶
func (x *FieldOptions) GetKey() string
func (*FieldOptions) GetLayout ¶
func (x *FieldOptions) GetLayout() Layout
func (*FieldOptions) GetName ¶
func (x *FieldOptions) GetName() string
func (*FieldOptions) GetNote ¶
func (x *FieldOptions) GetNote() string
func (*FieldOptions) GetOptional ¶
func (x *FieldOptions) GetOptional() bool
func (*FieldOptions) GetProp ¶ added in v0.9.1
func (x *FieldOptions) GetProp() *FieldProp
func (*FieldOptions) GetSep ¶
func (x *FieldOptions) GetSep() string
func (*FieldOptions) GetSpan ¶ added in v0.9.15
func (x *FieldOptions) GetSpan() Span
func (*FieldOptions) GetSubsep ¶
func (x *FieldOptions) GetSubsep() string
func (*FieldOptions) ProtoMessage ¶
func (*FieldOptions) ProtoMessage()
func (*FieldOptions) ProtoReflect ¶
func (x *FieldOptions) ProtoReflect() protoreflect.Message
func (*FieldOptions) Reset ¶
func (x *FieldOptions) Reset()
func (*FieldOptions) String ¶
func (x *FieldOptions) String() string
type FieldProp ¶ added in v0.9.1
type FieldProp struct { // Different interpretations of range: // - number: value range // - repeated: size range of array // - string: count of utf-8 code point Range string `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` // Local perspective: format: "1,10", "1,~", "~,10" Unique bool `protobuf:"varint,2,opt,name=unique,proto3" json:"unique,omitempty"` // Local perspective: whether the field's value is unique. Refer string `protobuf:"bytes,3,opt,name=refer,proto3" json:"refer,omitempty"` // Global perspective: ensure this field is in another message's field range. Example: "XXXConf.ID" // Local perspective: ensure this field's value is a sequence and begins with this value. Sequence *int64 `protobuf:"varint,4,opt,name=sequence,proto3,oneof" json:"sequence,omitempty"` Default string `protobuf:"bytes,5,opt,name=default,proto3" json:"default,omitempty"` // default value. Fixed bool `protobuf:"varint,6,opt,name=fixed,proto3" json:"fixed,omitempty"` // fixed length of horizontal list/map. Length uint32 `protobuf:"varint,7,opt,name=length,proto3" json:"length,omitempty"` // specified fixed length of horizontal list/map. // contains filtered or unexported fields }
func (*FieldProp) Descriptor
deprecated
added in
v0.9.1
func (*FieldProp) GetDefault ¶ added in v0.9.2
func (*FieldProp) GetSequence ¶ added in v0.9.17
func (*FieldProp) ProtoMessage ¶ added in v0.9.1
func (*FieldProp) ProtoMessage()
func (*FieldProp) ProtoReflect ¶ added in v0.9.1
func (x *FieldProp) ProtoReflect() protoreflect.Message
type Field_ListEntry ¶ added in v0.9.17
type Field_ListEntry struct { ElemType string `protobuf:"bytes,1,opt,name=elem_type,json=elemType,proto3" json:"elem_type,omitempty"` ElemFullType string `protobuf:"bytes,2,opt,name=elem_full_type,json=elemFullType,proto3" json:"elem_full_type,omitempty"` // contains filtered or unexported fields }
func (*Field_ListEntry) Descriptor
deprecated
added in
v0.9.17
func (*Field_ListEntry) Descriptor() ([]byte, []int)
Deprecated: Use Field_ListEntry.ProtoReflect.Descriptor instead.
func (*Field_ListEntry) GetElemFullType ¶ added in v0.9.17
func (x *Field_ListEntry) GetElemFullType() string
func (*Field_ListEntry) GetElemType ¶ added in v0.9.17
func (x *Field_ListEntry) GetElemType() string
func (*Field_ListEntry) ProtoMessage ¶ added in v0.9.17
func (*Field_ListEntry) ProtoMessage()
func (*Field_ListEntry) ProtoReflect ¶ added in v0.9.17
func (x *Field_ListEntry) ProtoReflect() protoreflect.Message
func (*Field_ListEntry) Reset ¶ added in v0.9.17
func (x *Field_ListEntry) Reset()
func (*Field_ListEntry) String ¶ added in v0.9.17
func (x *Field_ListEntry) String() string
type Field_MapEntry ¶ added in v0.9.17
type Field_MapEntry struct { KeyType string `protobuf:"bytes,1,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"` ValueType string `protobuf:"bytes,2,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"` ValueFullType string `protobuf:"bytes,3,opt,name=value_full_type,json=valueFullType,proto3" json:"value_full_type,omitempty"` // contains filtered or unexported fields }
func (*Field_MapEntry) Descriptor
deprecated
added in
v0.9.17
func (*Field_MapEntry) Descriptor() ([]byte, []int)
Deprecated: Use Field_MapEntry.ProtoReflect.Descriptor instead.
func (*Field_MapEntry) GetKeyType ¶ added in v0.9.17
func (x *Field_MapEntry) GetKeyType() string
func (*Field_MapEntry) GetValueFullType ¶ added in v0.9.17
func (x *Field_MapEntry) GetValueFullType() string
func (*Field_MapEntry) GetValueType ¶ added in v0.9.17
func (x *Field_MapEntry) GetValueType() string
func (*Field_MapEntry) ProtoMessage ¶ added in v0.9.17
func (*Field_MapEntry) ProtoMessage()
func (*Field_MapEntry) ProtoReflect ¶ added in v0.9.17
func (x *Field_MapEntry) ProtoReflect() protoreflect.Message
func (*Field_MapEntry) Reset ¶ added in v0.9.17
func (x *Field_MapEntry) Reset()
func (*Field_MapEntry) String ¶ added in v0.9.17
func (x *Field_MapEntry) String() string
type Layout ¶
type Layout int32
Layout of list and map.
const ( // Default: // - vertical for struct map // - incell for scalar map // - horizontal for struct list // - incell for scalar list Layout_LAYOUT_DEFAULT Layout = 0 Layout_LAYOUT_VERTICAL Layout = 1 // Vertical Layout_LAYOUT_HORIZONTAL Layout = 2 // Horizontal Layout_LAYOUT_INCELL Layout = 3 // Incell )
func (Layout) Descriptor ¶
func (Layout) Descriptor() protoreflect.EnumDescriptor
func (Layout) EnumDescriptor
deprecated
func (Layout) Number ¶
func (x Layout) Number() protoreflect.EnumNumber
func (Layout) Type ¶
func (Layout) Type() protoreflect.EnumType
type SheetMeta ¶
type SheetMeta struct { Sheet string `protobuf:"bytes,1,opt,name=sheet,proto3" json:"sheet,omitempty"` Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` Namerow int32 `protobuf:"varint,3,opt,name=namerow,proto3" json:"namerow,omitempty"` Typerow int32 `protobuf:"varint,4,opt,name=typerow,proto3" json:"typerow,omitempty"` Noterow int32 `protobuf:"varint,5,opt,name=noterow,proto3" json:"noterow,omitempty"` Datarow int32 `protobuf:"varint,6,opt,name=datarow,proto3" json:"datarow,omitempty"` Nameline int32 `protobuf:"varint,7,opt,name=nameline,proto3" json:"nameline,omitempty"` Typeline int32 `protobuf:"varint,8,opt,name=typeline,proto3" json:"typeline,omitempty"` Transpose bool `protobuf:"varint,9,opt,name=transpose,proto3" json:"transpose,omitempty"` // nested naming of namerow Nested bool `protobuf:"varint,10,opt,name=nested,proto3" json:"nested,omitempty"` Sep string `protobuf:"bytes,11,opt,name=sep,proto3" json:"sep,omitempty"` Subsep string `protobuf:"bytes,12,opt,name=subsep,proto3" json:"subsep,omitempty"` // merger of multiple sheets: [Element]... // each element is: // - a workbook name or Glob(https://pkg.go.dev/path/filepath#Glob) to merge (relative to this workbook): <Workbook>, // then the sheet name is the same as this sheet. // - or a workbook name (relative to this workbook) with a worksheet name: <Workbook>#<Worksheet>. Merger []string `protobuf:"bytes,13,rep,name=merger,proto3" json:"merger,omitempty"` // Tableau will merge adjacent rows with the same key. If the key cell is not set, // it will be treated as the same as the most nearest key above the same column. // // This option is only useful for map or keyed-list. AdjacentKey bool `protobuf:"varint,14,opt,name=adjacent_key,json=adjacentKey,proto3" json:"adjacent_key,omitempty"` // Field presence is the notion of whether a protobuf field has a value. If set as true, // in order to track presence for basic types (numeric, string, bytes, and enums), the // generated .proto will add the `optional` label to them. // // Singular proto3 fields of basic types (numeric, string, bytes, and enums) which are defined // with the optional label have explicit presence, like proto2 (this feature is enabled by default // as release 3.15). Refer: https://github.com/protocolbuffers/protobuf/blob/main/docs/field_presence.md FieldPresence bool `protobuf:"varint,15,opt,name=field_presence,json=fieldPresence,proto3" json:"field_presence,omitempty"` ////////// Loader related options below ////////// // generate ordered map accessers OrderedMap bool `protobuf:"varint,50,opt,name=ordered_map,json=orderedMap,proto3" json:"ordered_map,omitempty"` // generate index accessers. // The key-value pair is `<ColumnName>[@IndexName]`, if IndexName is not set, // it will be this column's parent struct type name. // // Generated APIs are: // // C++: // - const std::vector<const STRUCT_TYPE*>& Find<IndexName>(INDEX_TYPE index) const; // - const STRUCT_TYPE* FindFirst<IndexName>(INDEX_TYPE index); Index []string `protobuf:"bytes,51,rep,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*SheetMeta) Descriptor
deprecated
func (*SheetMeta) GetAdjacentKey ¶ added in v0.9.15
func (*SheetMeta) GetDatarow ¶ added in v0.9.8
func (*SheetMeta) GetFieldPresence ¶ added in v0.9.17
func (*SheetMeta) GetNameline ¶
func (*SheetMeta) GetNamerow ¶ added in v0.9.8
func (*SheetMeta) GetNoterow ¶ added in v0.9.8
func (*SheetMeta) GetOrderedMap ¶ added in v0.9.1
func (*SheetMeta) GetTranspose ¶
func (*SheetMeta) GetTypeline ¶
func (*SheetMeta) GetTyperow ¶ added in v0.9.8
func (*SheetMeta) ProtoMessage ¶
func (*SheetMeta) ProtoMessage()
func (*SheetMeta) ProtoReflect ¶
func (x *SheetMeta) ProtoReflect() protoreflect.Message
type Span ¶ added in v0.9.15
type Span int32
Field data span of scalar and struct.
const ( // Default: // - inner cell for scalar type: bool, string, bytes, number, and enum. // - cross cell for struct type: map-value, list-element, and struct-field. Span_SPAN_DEFAULT Span = 0 Span_SPAN_CROSS_CELL Span = 1 // The field data spans cross multiple cells. Span_SPAN_INNER_CELL Span = 2 // The field data spans only in one cell. )
func (Span) Descriptor ¶ added in v0.9.15
func (Span) Descriptor() protoreflect.EnumDescriptor
func (Span) EnumDescriptor
deprecated
added in
v0.9.15
func (Span) Number ¶ added in v0.9.15
func (x Span) Number() protoreflect.EnumNumber
func (Span) Type ¶ added in v0.9.15
func (Span) Type() protoreflect.EnumType
type Workbook ¶
type Workbook struct { Options *WorkbookOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` Worksheets []*Worksheet `protobuf:"bytes,2,rep,name=worksheets,proto3" json:"worksheets,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Imports map[string]int32 `` // imported proto files /* 156-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Workbook) Descriptor
deprecated
func (*Workbook) GetImports ¶
func (*Workbook) GetOptions ¶
func (x *Workbook) GetOptions() *WorkbookOptions
func (*Workbook) GetWorksheets ¶
func (*Workbook) ProtoMessage ¶
func (*Workbook) ProtoMessage()
func (*Workbook) ProtoReflect ¶
func (x *Workbook) ProtoReflect() protoreflect.Message
type WorkbookMeta ¶
type WorkbookMeta struct { SheetMetaMap map[string]*SheetMeta `` /* 187-byte string literal not displayed */ // contains filtered or unexported fields }
func (*WorkbookMeta) Descriptor
deprecated
func (*WorkbookMeta) Descriptor() ([]byte, []int)
Deprecated: Use WorkbookMeta.ProtoReflect.Descriptor instead.
func (*WorkbookMeta) GetSheetMetaMap ¶
func (x *WorkbookMeta) GetSheetMetaMap() map[string]*SheetMeta
func (*WorkbookMeta) ProtoMessage ¶
func (*WorkbookMeta) ProtoMessage()
func (*WorkbookMeta) ProtoReflect ¶
func (x *WorkbookMeta) ProtoReflect() protoreflect.Message
func (*WorkbookMeta) Reset ¶
func (x *WorkbookMeta) Reset()
func (*WorkbookMeta) String ¶
func (x *WorkbookMeta) String() string
type WorkbookOptions ¶
type WorkbookOptions struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // workbook name // contains filtered or unexported fields }
func (*WorkbookOptions) Descriptor
deprecated
func (*WorkbookOptions) Descriptor() ([]byte, []int)
Deprecated: Use WorkbookOptions.ProtoReflect.Descriptor instead.
func (*WorkbookOptions) GetName ¶
func (x *WorkbookOptions) GetName() string
func (*WorkbookOptions) ProtoMessage ¶
func (*WorkbookOptions) ProtoMessage()
func (*WorkbookOptions) ProtoReflect ¶
func (x *WorkbookOptions) ProtoReflect() protoreflect.Message
func (*WorkbookOptions) Reset ¶
func (x *WorkbookOptions) Reset()
func (*WorkbookOptions) String ¶
func (x *WorkbookOptions) String() string
type Worksheet ¶
type Worksheet struct { Options *WorksheetOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` Fields []*Field `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Worksheet) Descriptor
deprecated
func (*Worksheet) GetOptions ¶
func (x *Worksheet) GetOptions() *WorksheetOptions
func (*Worksheet) ProtoMessage ¶
func (*Worksheet) ProtoMessage()
func (*Worksheet) ProtoReflect ¶
func (x *Worksheet) ProtoReflect() protoreflect.Message
type WorksheetOptions ¶
type WorksheetOptions struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // worksheet name Namerow int32 `protobuf:"varint,2,opt,name=namerow,proto3" json:"namerow,omitempty"` // [default = 1]; // exact row number of name at worksheet. Typerow int32 `protobuf:"varint,3,opt,name=typerow,proto3" json:"typerow,omitempty"` // [default = 2]; // exact row number of type at worksheet, for generating protos. Noterow int32 `protobuf:"varint,4,opt,name=noterow,proto3" json:"noterow,omitempty"` // [default = 3]; // exact row number of note at worksheet. Datarow int32 `protobuf:"varint,5,opt,name=datarow,proto3" json:"datarow,omitempty"` // [default = 4]; // start row number of data at worksheet. Transpose bool `protobuf:"varint,6,opt,name=transpose,proto3" json:"transpose,omitempty"` // [default = false]; // interchange the rows and columns Tags string `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"` // [default = ""]; // tags for usage, e.g.: "1,2" specifying loading servers. Speciallly, "*" // means all servers. Nameline int32 `protobuf:"varint,8,opt,name=nameline,proto3" json:"nameline,omitempty"` // [default = 0]; // specify which line in cell as name, '0' means the whole cell is name. Typeline int32 `protobuf:"varint,9,opt,name=typeline,proto3" json:"typeline,omitempty"` // [default = 0]; // specify which line in cell as type,'0' means the whole cell is type. Nested bool `protobuf:"varint,10,opt,name=nested,proto3" json:"nested,omitempty"` // [default = false]; // whether the naming of name row is nested. Sep string `protobuf:"bytes,11,opt,name=sep,proto3" json:"sep,omitempty"` // separator, default: "," Subsep string `protobuf:"bytes,12,opt,name=subsep,proto3" json:"subsep,omitempty"` // subseparator, default: ":" Merger []string `protobuf:"bytes,13,rep,name=merger,proto3" json:"merger,omitempty"` // [default = ""]; // merge multiple sheets by the merger pattern. AdjacentKey bool `protobuf:"varint,14,opt,name=adjacent_key,json=adjacentKey,proto3" json:"adjacent_key,omitempty"` // [default = false]; // whether the rows with the same key is adjacent together. FieldPresence bool `protobuf:"varint,15,opt,name=field_presence,json=fieldPresence,proto3" json:"field_presence,omitempty"` // [default = false]; // whether add the optional label to basic types. ////////// Loader related options below ////////// OrderedMap bool `protobuf:"varint,50,opt,name=ordered_map,json=orderedMap,proto3" json:"ordered_map,omitempty"` // generate ordered map accessers. Index []string `protobuf:"bytes,51,rep,name=index,proto3" json:"index,omitempty"` // generate index accessers. // contains filtered or unexported fields }
func (*WorksheetOptions) Descriptor
deprecated
func (*WorksheetOptions) Descriptor() ([]byte, []int)
Deprecated: Use WorksheetOptions.ProtoReflect.Descriptor instead.
func (*WorksheetOptions) GetAdjacentKey ¶ added in v0.9.15
func (x *WorksheetOptions) GetAdjacentKey() bool
func (*WorksheetOptions) GetDatarow ¶
func (x *WorksheetOptions) GetDatarow() int32
func (*WorksheetOptions) GetFieldPresence ¶ added in v0.9.17
func (x *WorksheetOptions) GetFieldPresence() bool
func (*WorksheetOptions) GetIndex ¶ added in v0.9.15
func (x *WorksheetOptions) GetIndex() []string
func (*WorksheetOptions) GetMerger ¶ added in v0.9.13
func (x *WorksheetOptions) GetMerger() []string
func (*WorksheetOptions) GetName ¶
func (x *WorksheetOptions) GetName() string
func (*WorksheetOptions) GetNameline ¶
func (x *WorksheetOptions) GetNameline() int32
func (*WorksheetOptions) GetNamerow ¶
func (x *WorksheetOptions) GetNamerow() int32
func (*WorksheetOptions) GetNested ¶
func (x *WorksheetOptions) GetNested() bool
func (*WorksheetOptions) GetNoterow ¶
func (x *WorksheetOptions) GetNoterow() int32
func (*WorksheetOptions) GetOrderedMap ¶ added in v0.9.1
func (x *WorksheetOptions) GetOrderedMap() bool
func (*WorksheetOptions) GetSep ¶ added in v0.9.1
func (x *WorksheetOptions) GetSep() string
func (*WorksheetOptions) GetSubsep ¶ added in v0.9.1
func (x *WorksheetOptions) GetSubsep() string
func (*WorksheetOptions) GetTags ¶
func (x *WorksheetOptions) GetTags() string
func (*WorksheetOptions) GetTranspose ¶
func (x *WorksheetOptions) GetTranspose() bool
func (*WorksheetOptions) GetTypeline ¶
func (x *WorksheetOptions) GetTypeline() int32
func (*WorksheetOptions) GetTyperow ¶
func (x *WorksheetOptions) GetTyperow() int32
func (*WorksheetOptions) ProtoMessage ¶
func (*WorksheetOptions) ProtoMessage()
func (*WorksheetOptions) ProtoReflect ¶
func (x *WorksheetOptions) ProtoReflect() protoreflect.Message
func (*WorksheetOptions) Reset ¶
func (x *WorksheetOptions) Reset()
func (*WorksheetOptions) String ¶
func (x *WorksheetOptions) String() string
type XMLBook ¶ added in v0.10.2
type XMLBook struct { // SheetMap maps sheet name to a XMLSheet struct // containing two trees which describe the XML structure SheetList []*XMLSheet `protobuf:"bytes,1,rep,name=sheet_list,json=sheetList,proto3" json:"sheet_list,omitempty"` SheetMap map[string]int32 `` // sheet name -> index /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
func (*XMLBook) Descriptor
deprecated
added in
v0.10.2
func (*XMLBook) GetSheetList ¶ added in v0.10.2
func (*XMLBook) GetSheetMap ¶ added in v0.10.2
func (*XMLBook) ProtoMessage ¶ added in v0.10.2
func (*XMLBook) ProtoMessage()
func (*XMLBook) ProtoReflect ¶ added in v0.10.2
func (x *XMLBook) ProtoReflect() protoreflect.Message
type XMLNode ¶ added in v0.10.2
type XMLNode struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // duplicated attributes in one node are forbidden AttrMap *XMLNode_AttrMap `protobuf:"bytes,2,opt,name=attr_map,json=attrMap,proto3" json:"attr_map,omitempty"` // - meta: Each child must be unique, so len(IndexList) must be 1 // - data: Duplicated children are allowed, so len(IndexList) could be greater than 1 ChildList []*XMLNode `protobuf:"bytes,3,rep,name=child_list,json=childList,proto3" json:"child_list,omitempty"` ChildMap map[string]*XMLNode_IndexList `` // child name -> index list of child /* 173-byte string literal not displayed */ // record parent node so that we can trace back Parent *XMLNode `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"` // path that walks from root to self node, e.g.: Conf/Server/Toggle Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*XMLNode) Descriptor
deprecated
added in
v0.10.2
func (*XMLNode) GetAttrMap ¶ added in v0.10.2
func (x *XMLNode) GetAttrMap() *XMLNode_AttrMap
func (*XMLNode) GetChildList ¶ added in v0.10.2
func (*XMLNode) GetChildMap ¶ added in v0.10.2
func (x *XMLNode) GetChildMap() map[string]*XMLNode_IndexList
func (*XMLNode) ProtoMessage ¶ added in v0.10.2
func (*XMLNode) ProtoMessage()
func (*XMLNode) ProtoReflect ¶ added in v0.10.2
func (x *XMLNode) ProtoReflect() protoreflect.Message
type XMLNode_AttrMap ¶ added in v0.10.2
type XMLNode_AttrMap struct { List []*XMLNode_AttrMap_Attr `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Map map[string]int32 `` // attribute name -> index /* 148-byte string literal not displayed */ // contains filtered or unexported fields }
Combine list and map to get an ordered map
func (*XMLNode_AttrMap) Descriptor
deprecated
added in
v0.10.2
func (*XMLNode_AttrMap) Descriptor() ([]byte, []int)
Deprecated: Use XMLNode_AttrMap.ProtoReflect.Descriptor instead.
func (*XMLNode_AttrMap) GetList ¶ added in v0.10.2
func (x *XMLNode_AttrMap) GetList() []*XMLNode_AttrMap_Attr
func (*XMLNode_AttrMap) GetMap ¶ added in v0.10.2
func (x *XMLNode_AttrMap) GetMap() map[string]int32
func (*XMLNode_AttrMap) ProtoMessage ¶ added in v0.10.2
func (*XMLNode_AttrMap) ProtoMessage()
func (*XMLNode_AttrMap) ProtoReflect ¶ added in v0.10.2
func (x *XMLNode_AttrMap) ProtoReflect() protoreflect.Message
func (*XMLNode_AttrMap) Reset ¶ added in v0.10.2
func (x *XMLNode_AttrMap) Reset()
func (*XMLNode_AttrMap) String ¶ added in v0.10.2
func (x *XMLNode_AttrMap) String() string
type XMLNode_AttrMap_Attr ¶ added in v0.10.2
type XMLNode_AttrMap_Attr struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*XMLNode_AttrMap_Attr) Descriptor
deprecated
added in
v0.10.2
func (*XMLNode_AttrMap_Attr) Descriptor() ([]byte, []int)
Deprecated: Use XMLNode_AttrMap_Attr.ProtoReflect.Descriptor instead.
func (*XMLNode_AttrMap_Attr) GetName ¶ added in v0.10.2
func (x *XMLNode_AttrMap_Attr) GetName() string
func (*XMLNode_AttrMap_Attr) GetValue ¶ added in v0.10.2
func (x *XMLNode_AttrMap_Attr) GetValue() string
func (*XMLNode_AttrMap_Attr) ProtoMessage ¶ added in v0.10.2
func (*XMLNode_AttrMap_Attr) ProtoMessage()
func (*XMLNode_AttrMap_Attr) ProtoReflect ¶ added in v0.10.2
func (x *XMLNode_AttrMap_Attr) ProtoReflect() protoreflect.Message
func (*XMLNode_AttrMap_Attr) Reset ¶ added in v0.10.2
func (x *XMLNode_AttrMap_Attr) Reset()
func (*XMLNode_AttrMap_Attr) String ¶ added in v0.10.2
func (x *XMLNode_AttrMap_Attr) String() string
type XMLNode_IndexList ¶ added in v0.10.2
type XMLNode_IndexList struct { Indexes []int32 `protobuf:"varint,1,rep,packed,name=indexes,proto3" json:"indexes,omitempty"` // contains filtered or unexported fields }
func (*XMLNode_IndexList) Descriptor
deprecated
added in
v0.10.2
func (*XMLNode_IndexList) Descriptor() ([]byte, []int)
Deprecated: Use XMLNode_IndexList.ProtoReflect.Descriptor instead.
func (*XMLNode_IndexList) GetIndexes ¶ added in v0.10.2
func (x *XMLNode_IndexList) GetIndexes() []int32
func (*XMLNode_IndexList) ProtoMessage ¶ added in v0.10.2
func (*XMLNode_IndexList) ProtoMessage()
func (*XMLNode_IndexList) ProtoReflect ¶ added in v0.10.2
func (x *XMLNode_IndexList) ProtoReflect() protoreflect.Message
func (*XMLNode_IndexList) Reset ¶ added in v0.10.2
func (x *XMLNode_IndexList) Reset()
func (*XMLNode_IndexList) String ¶ added in v0.10.2
func (x *XMLNode_IndexList) String() string
type XMLSheet ¶ added in v0.10.2
type XMLSheet struct { // meta tree, describing the types of attributes of all nodes in XML Meta *XMLNode `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // data tree, describing the values of attributes of the explicitly specified nodes in XML Data *XMLNode `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // NodeMap maps path to a list of nodes matched the specified path in the tree MetaNodeMap map[string]*XMLNode `` // path -> XMLNode /* 184-byte string literal not displayed */ DataNodeMap map[string]*XMLSheet_NodeList `` // path -> XMLNode list /* 184-byte string literal not displayed */ // contains filtered or unexported fields }
func (*XMLSheet) Descriptor
deprecated
added in
v0.10.2
func (*XMLSheet) GetDataNodeMap ¶ added in v0.10.2
func (x *XMLSheet) GetDataNodeMap() map[string]*XMLSheet_NodeList
func (*XMLSheet) GetMetaNodeMap ¶ added in v0.10.2
func (*XMLSheet) ProtoMessage ¶ added in v0.10.2
func (*XMLSheet) ProtoMessage()
func (*XMLSheet) ProtoReflect ¶ added in v0.10.2
func (x *XMLSheet) ProtoReflect() protoreflect.Message
type XMLSheet_NodeList ¶ added in v0.10.2
type XMLSheet_NodeList struct { Nodes []*XMLNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
func (*XMLSheet_NodeList) Descriptor
deprecated
added in
v0.10.2
func (*XMLSheet_NodeList) Descriptor() ([]byte, []int)
Deprecated: Use XMLSheet_NodeList.ProtoReflect.Descriptor instead.
func (*XMLSheet_NodeList) GetNodes ¶ added in v0.10.2
func (x *XMLSheet_NodeList) GetNodes() []*XMLNode
func (*XMLSheet_NodeList) ProtoMessage ¶ added in v0.10.2
func (*XMLSheet_NodeList) ProtoMessage()
func (*XMLSheet_NodeList) ProtoReflect ¶ added in v0.10.2
func (x *XMLSheet_NodeList) ProtoReflect() protoreflect.Message
func (*XMLSheet_NodeList) Reset ¶ added in v0.10.2
func (x *XMLSheet_NodeList) Reset()
func (*XMLSheet_NodeList) String ¶ added in v0.10.2
func (x *XMLSheet_NodeList) String() string