tableaupb

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0:  "TYPE_DEFAULT",
		1:  "TYPE_INT32",
		2:  "TYPE_UINT32",
		3:  "TYPE_INT64",
		4:  "TYPE_UINT64",
		5:  "TYPE_DOUBLE",
		6:  "TYPE_FLOAT",
		7:  "TYPE_BOOL",
		8:  "TYPE_STRING",
		10: "TYPE_STRUCT",
		21: "TYPE_DATE",
		22: "TYPE_TIME",
		23: "TYPE_DATETIME",
		24: "TYPE_INCELL_LIST",
		25: "TYPE_INCELL_MAP",
		26: "TYPE_INCELL_STRUCT",
	}
	Type_value = map[string]int32{
		"TYPE_DEFAULT":       0,
		"TYPE_INT32":         1,
		"TYPE_UINT32":        2,
		"TYPE_INT64":         3,
		"TYPE_UINT64":        4,
		"TYPE_DOUBLE":        5,
		"TYPE_FLOAT":         6,
		"TYPE_BOOL":          7,
		"TYPE_STRING":        8,
		"TYPE_STRUCT":        10,
		"TYPE_DATE":          21,
		"TYPE_TIME":          22,
		"TYPE_DATETIME":      23,
		"TYPE_INCELL_LIST":   24,
		"TYPE_INCELL_MAP":    25,
		"TYPE_INCELL_STRUCT": 26,
	}
)

Enum value maps for Type.

View Source
var (
	Layout_name = map[int32]string{
		0: "LAYOUT_DEFAULT",
		1: "LAYOUT_VERTICAL",
		2: "LAYOUT_HORIZONTAL",
	}
	Layout_value = map[string]int32{
		"LAYOUT_DEFAULT":    0,
		"LAYOUT_VERTICAL":   1,
		"LAYOUT_HORIZONTAL": 2,
	}
)

Enum value maps for Layout.

View Source
var (
	// optional tableau.EnumOptions enum = 50000;
	E_Enum = &file_tableau_proto_extTypes[3]
)

Extension fields to descriptorpb.EnumOptions.

View Source
var (
	// optional tableau.EnumValueOptions evalue = 50000;
	E_Evalue = &file_tableau_proto_extTypes[4]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var (
	// optional tableau.FieldOptions field = 50000;
	E_Field = &file_tableau_proto_extTypes[2]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional tableau.WorkbookOptions workbook = 50000;
	E_Workbook = &file_tableau_proto_extTypes[0]
)

Extension fields to descriptorpb.FileOptions.

View Source
var (
	// optional tableau.WorksheetOptions worksheet = 50000;
	E_Worksheet = &file_tableau_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var File_tableau_proto protoreflect.FileDescriptor
View Source
var File_workbook_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EnumOptions added in v0.6.1

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 added in v0.6.1

func (*EnumOptions) Descriptor() ([]byte, []int)

Deprecated: Use EnumOptions.ProtoReflect.Descriptor instead.

func (*EnumOptions) GetName added in v0.6.1

func (x *EnumOptions) GetName() string

func (*EnumOptions) ProtoMessage added in v0.6.1

func (*EnumOptions) ProtoMessage()

func (*EnumOptions) ProtoReflect added in v0.6.1

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

func (*EnumOptions) Reset added in v0.6.1

func (x *EnumOptions) Reset()

func (*EnumOptions) String added in v0.6.1

func (x *EnumOptions) String() string

type EnumValueOptions added in v0.6.1

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 added in v0.6.1

func (*EnumValueOptions) Descriptor() ([]byte, []int)

Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead.

func (*EnumValueOptions) GetName added in v0.6.1

func (x *EnumValueOptions) GetName() string

func (*EnumValueOptions) ProtoMessage added in v0.6.1

func (*EnumValueOptions) ProtoMessage()

func (*EnumValueOptions) ProtoReflect added in v0.6.1

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

func (*EnumValueOptions) Reset added in v0.6.1

func (x *EnumValueOptions) Reset()

func (*EnumValueOptions) String added in v0.6.1

func (x *EnumValueOptions) String() string

type Field

type Field struct {
	Options *FieldOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	Card    string        `protobuf:"bytes,2,opt,name=card,proto3" json:"card,omitempty"` // Cardinality of field, value can be: "repeated" or ""
	Type    string        `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Name    string        `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	//   uint32 tagid = 5;
	Fields      []*Field  `protobuf:"bytes,6,rep,name=fields,proto3" json:"fields,omitempty"` // map or list if fields's length is not 0.
	MapEntry    *MapEntry `protobuf:"bytes,7,opt,name=map_entry,json=mapEntry,proto3" json:"map_entry,omitempty"`
	TypeDefined bool      `protobuf:"varint,8,opt,name=type_defined,json=typeDefined,proto3" json:"type_defined,omitempty"` // message type ws already defined.
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

func (*Field) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetCard

func (x *Field) GetCard() string

func (*Field) GetFields

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

func (*Field) GetMapEntry

func (x *Field) GetMapEntry() *MapEntry

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) GetOptions

func (x *Field) GetOptions() *FieldOptions

func (*Field) GetType

func (x *Field) GetType() string

func (*Field) GetTypeDefined added in v0.5.8

func (x *Field) GetTypeDefined() bool

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 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 name (English)
	Type     Type   `protobuf:"varint,3,opt,name=type,proto3,enum=tableau.Type" json:"type,omitempty"`       // default: TYPE_DEFAULT
	Key      string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`                            // only set when type is map
	Layout   Layout `protobuf:"varint,5,opt,name=layout,proto3,enum=tableau.Layout" json:"layout,omitempty"` // default: LAYOUT_DEFAULT
	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"`                      // sub separator, default: ":"
	Optional bool   `protobuf:"varint,8,opt,name=optional,proto3" json:"optional,omitempty"`                 // whether the field is optional.
	/////////////////////////////
	// Simple Validators Below //
	/////////////////////////////
	// Different meanings:
	// repeated: size range of array
	// integer: value range
	// string: count of utf-8 code point
	Min   int32  `protobuf:"varint,11,opt,name=min,proto3" json:"min,omitempty"`    // min value
	Max   int32  `protobuf:"varint,12,opt,name=max,proto3" json:"max,omitempty"`    // max value
	Range string `protobuf:"bytes,13,opt,name=range,proto3" json:"range,omitempty"` // format like set description: [1,10], (1,10], [1,10), [1,~]
	// 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) GetMax

func (x *FieldOptions) GetMax() int32

func (*FieldOptions) GetMin

func (x *FieldOptions) GetMin() int32

func (*FieldOptions) GetName

func (x *FieldOptions) GetName() string

func (*FieldOptions) GetNote

func (x *FieldOptions) GetNote() string

func (*FieldOptions) GetOptional added in v0.6.3

func (x *FieldOptions) GetOptional() bool

func (*FieldOptions) GetRange

func (x *FieldOptions) GetRange() string

func (*FieldOptions) GetSep

func (x *FieldOptions) GetSep() string

func (*FieldOptions) GetSubsep

func (x *FieldOptions) GetSubsep() string

func (*FieldOptions) GetType

func (x *FieldOptions) GetType() Type

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 Layout

type Layout int32

layout of composite types, such as list and map.

const (
	Layout_LAYOUT_DEFAULT    Layout = 0 // default direction: vertical for map, horizontal for list
	Layout_LAYOUT_VERTICAL   Layout = 1 // vertical direction
	Layout_LAYOUT_HORIZONTAL Layout = 2 // horizontal direction
)

func (Layout) Descriptor

func (Layout) Descriptor() protoreflect.EnumDescriptor

func (Layout) Enum

func (x Layout) Enum() *Layout

func (Layout) EnumDescriptor deprecated

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

Deprecated: Use Layout.Descriptor instead.

func (Layout) Number

func (x Layout) Number() protoreflect.EnumNumber

func (Layout) String

func (x Layout) String() string

func (Layout) Type

func (Layout) Type() protoreflect.EnumType

type MapEntry

type 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"`
	// contains filtered or unexported fields
}

func (*MapEntry) Descriptor deprecated

func (*MapEntry) Descriptor() ([]byte, []int)

Deprecated: Use MapEntry.ProtoReflect.Descriptor instead.

func (*MapEntry) GetKeyType

func (x *MapEntry) GetKeyType() string

func (*MapEntry) GetValueType

func (x *MapEntry) GetValueType() string

func (*MapEntry) ProtoMessage

func (*MapEntry) ProtoMessage()

func (*MapEntry) ProtoReflect

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

func (*MapEntry) Reset

func (x *MapEntry) Reset()

func (*MapEntry) String

func (x *MapEntry) String() string

type SheetMeta added in v0.6.2

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"`
	Nameline  int32  `protobuf:"varint,3,opt,name=nameline,proto3" json:"nameline,omitempty"`
	Typeline  int32  `protobuf:"varint,4,opt,name=typeline,proto3" json:"typeline,omitempty"`
	Transpose bool   `protobuf:"varint,5,opt,name=transpose,proto3" json:"transpose,omitempty"`
	// nested naming of namerow
	Nested bool `protobuf:"varint,6,opt,name=nested,proto3" json:"nested,omitempty"`
	// contains filtered or unexported fields
}

func (*SheetMeta) Descriptor deprecated added in v0.6.2

func (*SheetMeta) Descriptor() ([]byte, []int)

Deprecated: Use SheetMeta.ProtoReflect.Descriptor instead.

func (*SheetMeta) GetAlias added in v0.6.2

func (x *SheetMeta) GetAlias() string

func (*SheetMeta) GetNameline added in v0.6.3

func (x *SheetMeta) GetNameline() int32

func (*SheetMeta) GetNested added in v0.7.0

func (x *SheetMeta) GetNested() bool

func (*SheetMeta) GetSheet added in v0.6.2

func (x *SheetMeta) GetSheet() string

func (*SheetMeta) GetTranspose added in v0.6.3

func (x *SheetMeta) GetTranspose() bool

func (*SheetMeta) GetTypeline added in v0.6.3

func (x *SheetMeta) GetTypeline() int32

func (*SheetMeta) ProtoMessage added in v0.6.2

func (*SheetMeta) ProtoMessage()

func (*SheetMeta) ProtoReflect added in v0.6.2

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

func (*SheetMeta) Reset added in v0.6.2

func (x *SheetMeta) Reset()

func (*SheetMeta) String added in v0.6.2

func (x *SheetMeta) String() string

type Type

type Type int32

field type.

const (
	// auto deduced protobuf types
	Type_TYPE_DEFAULT Type = 0
	//////////////////////////////
	/////Build-in Types///////////
	//////////////////////////////
	// interger
	Type_TYPE_INT32  Type = 1
	Type_TYPE_UINT32 Type = 2
	Type_TYPE_INT64  Type = 3
	Type_TYPE_UINT64 Type = 4
	// floating-point number
	Type_TYPE_DOUBLE Type = 5
	Type_TYPE_FLOAT  Type = 6
	// bool
	Type_TYPE_BOOL Type = 7
	// string
	Type_TYPE_STRING Type = 8
	////////////////////////
	/////Struct Type//////
	////////////////////////
	Type_TYPE_STRUCT Type = 10
	////////////////////////
	/////Extended Types/////
	////////////////////////
	// time
	Type_TYPE_DATE     Type = 21 // format: "yyyy-MM-dd"
	Type_TYPE_TIME     Type = 22 // format: "HH:mm:ss"
	Type_TYPE_DATETIME Type = 23 // format: "yyyy-MM-dd HH:mm:ss"
	// list in a cell:
	// - the list **item** must be **built-in** type
	// - format: ',' separated items
	Type_TYPE_INCELL_LIST Type = 24
	// map in a cell:
	// - both the **key** and **value** must be **built-in** type
	// - format: key-value pairs is separated by ',', and
	//           key and value is separated by ':'
	Type_TYPE_INCELL_MAP Type = 25
	// struct in a cell
	Type_TYPE_INCELL_STRUCT Type = 26
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

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

Deprecated: Use Workbook.ProtoReflect.Descriptor instead.

func (*Workbook) GetImports

func (x *Workbook) GetImports() map[string]int32

func (*Workbook) GetName

func (x *Workbook) GetName() string

func (*Workbook) GetOptions

func (x *Workbook) GetOptions() *WorkbookOptions

func (*Workbook) GetWorksheets

func (x *Workbook) GetWorksheets() []*Worksheet

func (*Workbook) ProtoMessage

func (*Workbook) ProtoMessage()

func (*Workbook) ProtoReflect

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

func (*Workbook) Reset

func (x *Workbook) Reset()

func (*Workbook) String

func (x *Workbook) String() string

type WorkbookMeta added in v0.6.2

type WorkbookMeta struct {
	SheetMetaMap map[string]*SheetMeta `` /* 187-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WorkbookMeta) Descriptor deprecated added in v0.6.2

func (*WorkbookMeta) Descriptor() ([]byte, []int)

Deprecated: Use WorkbookMeta.ProtoReflect.Descriptor instead.

func (*WorkbookMeta) GetSheetMetaMap added in v0.6.2

func (x *WorkbookMeta) GetSheetMetaMap() map[string]*SheetMeta

func (*WorkbookMeta) ProtoMessage added in v0.6.2

func (*WorkbookMeta) ProtoMessage()

func (*WorkbookMeta) ProtoReflect added in v0.6.2

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

func (*WorkbookMeta) Reset added in v0.6.2

func (x *WorkbookMeta) Reset()

func (*WorkbookMeta) String added in v0.6.2

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

Deprecated: Use Worksheet.ProtoReflect.Descriptor instead.

func (*Worksheet) GetFields

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

func (*Worksheet) GetName

func (x *Worksheet) GetName() string

func (*Worksheet) GetOptions

func (x *Worksheet) GetOptions() *WorksheetOptions

func (*Worksheet) ProtoMessage

func (*Worksheet) ProtoMessage()

func (*Worksheet) ProtoReflect

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

func (*Worksheet) Reset

func (x *Worksheet) Reset()

func (*Worksheet) String

func (x *Worksheet) String() string

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.
	// contains filtered or unexported fields
}

func (*WorksheetOptions) Descriptor deprecated

func (*WorksheetOptions) Descriptor() ([]byte, []int)

Deprecated: Use WorksheetOptions.ProtoReflect.Descriptor instead.

func (*WorksheetOptions) GetDatarow

func (x *WorksheetOptions) GetDatarow() int32

func (*WorksheetOptions) GetName

func (x *WorksheetOptions) GetName() string

func (*WorksheetOptions) GetNameline added in v0.6.3

func (x *WorksheetOptions) GetNameline() int32

func (*WorksheetOptions) GetNamerow

func (x *WorksheetOptions) GetNamerow() int32

func (*WorksheetOptions) GetNested added in v0.7.0

func (x *WorksheetOptions) GetNested() bool

func (*WorksheetOptions) GetNoterow

func (x *WorksheetOptions) GetNoterow() int32

func (*WorksheetOptions) GetTags

func (x *WorksheetOptions) GetTags() string

func (*WorksheetOptions) GetTranspose

func (x *WorksheetOptions) GetTranspose() bool

func (*WorksheetOptions) GetTypeline added in v0.6.3

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

Jump to

Keyboard shortcuts

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