Document extractor service (#15665)
* Document extractor service * Fixing vendor modules * Addressing PR Review comments * Some small simplifications * Fixing a linter complain * simplifying a bit the code using package variables Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
04ef5c682e
Коммит
8d5be2d657
587
vendor/code.sajari.com/docconv/iWork/TSPArchiveMessages.pb.go
сгенерированный
поставляемый
Обычный файл
587
vendor/code.sajari.com/docconv/iWork/TSPArchiveMessages.pb.go
сгенерированный
поставляемый
Обычный файл
@@ -0,0 +1,587 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: TSPArchiveMessages.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package TSP is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
TSPArchiveMessages.proto
|
||||
TSPDatabaseMessages.proto
|
||||
TSPMessages.proto
|
||||
|
||||
It has these top-level messages:
|
||||
ArchiveInfo
|
||||
MessageInfo
|
||||
FieldInfo
|
||||
FieldPath
|
||||
ComponentInfo
|
||||
ComponentExternalReference
|
||||
ComponentDataReference
|
||||
PackageMetadata
|
||||
PasteboardMetadata
|
||||
DataInfo
|
||||
ViewStateMetadata
|
||||
*/
|
||||
package TSP
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = math.Inf
|
||||
|
||||
type FieldInfo_Type int32
|
||||
|
||||
const (
|
||||
FieldInfo_Value FieldInfo_Type = 0
|
||||
FieldInfo_ObjectReference FieldInfo_Type = 1
|
||||
FieldInfo_DataReference FieldInfo_Type = 2
|
||||
FieldInfo_Message FieldInfo_Type = 3
|
||||
)
|
||||
|
||||
var FieldInfo_Type_name = map[int32]string{
|
||||
0: "Value",
|
||||
1: "ObjectReference",
|
||||
2: "DataReference",
|
||||
3: "Message",
|
||||
}
|
||||
var FieldInfo_Type_value = map[string]int32{
|
||||
"Value": 0,
|
||||
"ObjectReference": 1,
|
||||
"DataReference": 2,
|
||||
"Message": 3,
|
||||
}
|
||||
|
||||
func (x FieldInfo_Type) Enum() *FieldInfo_Type {
|
||||
p := new(FieldInfo_Type)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x FieldInfo_Type) String() string {
|
||||
return proto.EnumName(FieldInfo_Type_name, int32(x))
|
||||
}
|
||||
func (x *FieldInfo_Type) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(FieldInfo_Type_value, data, "FieldInfo_Type")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = FieldInfo_Type(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
type FieldInfo_Rule int32
|
||||
|
||||
const (
|
||||
FieldInfo_IgnoreAndDrop FieldInfo_Rule = 0
|
||||
FieldInfo_IgnoreAndPreserve FieldInfo_Rule = 1
|
||||
FieldInfo_MustUnderstand FieldInfo_Rule = 2
|
||||
FieldInfo_NotSupported FieldInfo_Rule = -1
|
||||
)
|
||||
|
||||
var FieldInfo_Rule_name = map[int32]string{
|
||||
0: "IgnoreAndDrop",
|
||||
1: "IgnoreAndPreserve",
|
||||
2: "MustUnderstand",
|
||||
-1: "NotSupported",
|
||||
}
|
||||
var FieldInfo_Rule_value = map[string]int32{
|
||||
"IgnoreAndDrop": 0,
|
||||
"IgnoreAndPreserve": 1,
|
||||
"MustUnderstand": 2,
|
||||
"NotSupported": -1,
|
||||
}
|
||||
|
||||
func (x FieldInfo_Rule) Enum() *FieldInfo_Rule {
|
||||
p := new(FieldInfo_Rule)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x FieldInfo_Rule) String() string {
|
||||
return proto.EnumName(FieldInfo_Rule_name, int32(x))
|
||||
}
|
||||
func (x *FieldInfo_Rule) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(FieldInfo_Rule_value, data, "FieldInfo_Rule")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = FieldInfo_Rule(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
type ArchiveInfo struct {
|
||||
Identifier *uint64 `protobuf:"varint,1,opt,name=identifier" json:"identifier,omitempty"`
|
||||
MessageInfos []*MessageInfo `protobuf:"bytes,2,rep,name=message_infos" json:"message_infos,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ArchiveInfo) Reset() { *m = ArchiveInfo{} }
|
||||
func (m *ArchiveInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*ArchiveInfo) ProtoMessage() {}
|
||||
|
||||
func (m *ArchiveInfo) GetIdentifier() uint64 {
|
||||
if m != nil && m.Identifier != nil {
|
||||
return *m.Identifier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ArchiveInfo) GetMessageInfos() []*MessageInfo {
|
||||
if m != nil {
|
||||
return m.MessageInfos
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type MessageInfo struct {
|
||||
Type *uint32 `protobuf:"varint,1,req,name=type" json:"type,omitempty"`
|
||||
Version []uint32 `protobuf:"varint,2,rep,packed,name=version" json:"version,omitempty"`
|
||||
Length *uint32 `protobuf:"varint,3,req,name=length" json:"length,omitempty"`
|
||||
FieldInfos []*FieldInfo `protobuf:"bytes,4,rep,name=field_infos" json:"field_infos,omitempty"`
|
||||
ObjectReferences []uint64 `protobuf:"varint,5,rep,packed,name=object_references" json:"object_references,omitempty"`
|
||||
DataReferences []uint64 `protobuf:"varint,6,rep,packed,name=data_references" json:"data_references,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *MessageInfo) Reset() { *m = MessageInfo{} }
|
||||
func (m *MessageInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*MessageInfo) ProtoMessage() {}
|
||||
|
||||
func (m *MessageInfo) GetType() uint32 {
|
||||
if m != nil && m.Type != nil {
|
||||
return *m.Type
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *MessageInfo) GetVersion() []uint32 {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MessageInfo) GetLength() uint32 {
|
||||
if m != nil && m.Length != nil {
|
||||
return *m.Length
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *MessageInfo) GetFieldInfos() []*FieldInfo {
|
||||
if m != nil {
|
||||
return m.FieldInfos
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MessageInfo) GetObjectReferences() []uint64 {
|
||||
if m != nil {
|
||||
return m.ObjectReferences
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MessageInfo) GetDataReferences() []uint64 {
|
||||
if m != nil {
|
||||
return m.DataReferences
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type FieldInfo struct {
|
||||
Path *FieldPath `protobuf:"bytes,1,req,name=path" json:"path,omitempty"`
|
||||
Type *FieldInfo_Type `protobuf:"varint,2,opt,name=type,enum=TSP.FieldInfo_Type,def=0" json:"type,omitempty"`
|
||||
Rule *FieldInfo_Rule `protobuf:"varint,3,opt,name=rule,enum=TSP.FieldInfo_Rule,def=0" json:"rule,omitempty"`
|
||||
ObjectReferences []uint64 `protobuf:"varint,4,rep,packed,name=object_references" json:"object_references,omitempty"`
|
||||
DataReferences []uint64 `protobuf:"varint,5,rep,packed,name=data_references" json:"data_references,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FieldInfo) Reset() { *m = FieldInfo{} }
|
||||
func (m *FieldInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*FieldInfo) ProtoMessage() {}
|
||||
|
||||
const Default_FieldInfo_Type FieldInfo_Type = FieldInfo_Value
|
||||
const Default_FieldInfo_Rule FieldInfo_Rule = FieldInfo_IgnoreAndDrop
|
||||
|
||||
func (m *FieldInfo) GetPath() *FieldPath {
|
||||
if m != nil {
|
||||
return m.Path
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FieldInfo) GetType() FieldInfo_Type {
|
||||
if m != nil && m.Type != nil {
|
||||
return *m.Type
|
||||
}
|
||||
return Default_FieldInfo_Type
|
||||
}
|
||||
|
||||
func (m *FieldInfo) GetRule() FieldInfo_Rule {
|
||||
if m != nil && m.Rule != nil {
|
||||
return *m.Rule
|
||||
}
|
||||
return Default_FieldInfo_Rule
|
||||
}
|
||||
|
||||
func (m *FieldInfo) GetObjectReferences() []uint64 {
|
||||
if m != nil {
|
||||
return m.ObjectReferences
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *FieldInfo) GetDataReferences() []uint64 {
|
||||
if m != nil {
|
||||
return m.DataReferences
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type FieldPath struct {
|
||||
Path []uint32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FieldPath) Reset() { *m = FieldPath{} }
|
||||
func (m *FieldPath) String() string { return proto.CompactTextString(m) }
|
||||
func (*FieldPath) ProtoMessage() {}
|
||||
|
||||
func (m *FieldPath) GetPath() []uint32 {
|
||||
if m != nil {
|
||||
return m.Path
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ComponentInfo struct {
|
||||
Identifier *uint64 `protobuf:"varint,1,req,name=identifier" json:"identifier,omitempty"`
|
||||
PreferredLocator *string `protobuf:"bytes,2,req,name=preferred_locator" json:"preferred_locator,omitempty"`
|
||||
Locator *string `protobuf:"bytes,3,opt,name=locator" json:"locator,omitempty"`
|
||||
ReadVersion []uint32 `protobuf:"varint,4,rep,packed,name=read_version" json:"read_version,omitempty"`
|
||||
WriteVersion []uint32 `protobuf:"varint,5,rep,packed,name=write_version" json:"write_version,omitempty"`
|
||||
ExternalReferences []*ComponentExternalReference `protobuf:"bytes,6,rep,name=external_references" json:"external_references,omitempty"`
|
||||
DataReferences []*ComponentDataReference `protobuf:"bytes,7,rep,name=data_references" json:"data_references,omitempty"`
|
||||
AllowsDuplicatesOutsideOfDocumentPackage *bool `protobuf:"varint,8,opt,name=allows_duplicates_outside_of_document_package,def=0" json:"allows_duplicates_outside_of_document_package,omitempty"`
|
||||
DirtiesDocumentPackage *bool `protobuf:"varint,9,opt,name=dirties_document_package,def=1" json:"dirties_document_package,omitempty"`
|
||||
IsStoredOutsideObjectArchive *bool `protobuf:"varint,10,opt,name=is_stored_outside_object_archive,def=0" json:"is_stored_outside_object_archive,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) Reset() { *m = ComponentInfo{} }
|
||||
func (m *ComponentInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*ComponentInfo) ProtoMessage() {}
|
||||
|
||||
const Default_ComponentInfo_AllowsDuplicatesOutsideOfDocumentPackage bool = false
|
||||
const Default_ComponentInfo_DirtiesDocumentPackage bool = true
|
||||
const Default_ComponentInfo_IsStoredOutsideObjectArchive bool = false
|
||||
|
||||
func (m *ComponentInfo) GetIdentifier() uint64 {
|
||||
if m != nil && m.Identifier != nil {
|
||||
return *m.Identifier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) GetPreferredLocator() string {
|
||||
if m != nil && m.PreferredLocator != nil {
|
||||
return *m.PreferredLocator
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) GetLocator() string {
|
||||
if m != nil && m.Locator != nil {
|
||||
return *m.Locator
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) GetReadVersion() []uint32 {
|
||||
if m != nil {
|
||||
return m.ReadVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) GetWriteVersion() []uint32 {
|
||||
if m != nil {
|
||||
return m.WriteVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) GetExternalReferences() []*ComponentExternalReference {
|
||||
if m != nil {
|
||||
return m.ExternalReferences
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) GetDataReferences() []*ComponentDataReference {
|
||||
if m != nil {
|
||||
return m.DataReferences
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) GetAllowsDuplicatesOutsideOfDocumentPackage() bool {
|
||||
if m != nil && m.AllowsDuplicatesOutsideOfDocumentPackage != nil {
|
||||
return *m.AllowsDuplicatesOutsideOfDocumentPackage
|
||||
}
|
||||
return Default_ComponentInfo_AllowsDuplicatesOutsideOfDocumentPackage
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) GetDirtiesDocumentPackage() bool {
|
||||
if m != nil && m.DirtiesDocumentPackage != nil {
|
||||
return *m.DirtiesDocumentPackage
|
||||
}
|
||||
return Default_ComponentInfo_DirtiesDocumentPackage
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) GetIsStoredOutsideObjectArchive() bool {
|
||||
if m != nil && m.IsStoredOutsideObjectArchive != nil {
|
||||
return *m.IsStoredOutsideObjectArchive
|
||||
}
|
||||
return Default_ComponentInfo_IsStoredOutsideObjectArchive
|
||||
}
|
||||
|
||||
type ComponentExternalReference struct {
|
||||
ComponentIdentifier *uint64 `protobuf:"varint,1,req,name=component_identifier" json:"component_identifier,omitempty"`
|
||||
ObjectIdentifier *uint64 `protobuf:"varint,2,opt,name=object_identifier" json:"object_identifier,omitempty"`
|
||||
IsWeak *bool `protobuf:"varint,3,opt,name=is_weak" json:"is_weak,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ComponentExternalReference) Reset() { *m = ComponentExternalReference{} }
|
||||
func (m *ComponentExternalReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*ComponentExternalReference) ProtoMessage() {}
|
||||
|
||||
func (m *ComponentExternalReference) GetComponentIdentifier() uint64 {
|
||||
if m != nil && m.ComponentIdentifier != nil {
|
||||
return *m.ComponentIdentifier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ComponentExternalReference) GetObjectIdentifier() uint64 {
|
||||
if m != nil && m.ObjectIdentifier != nil {
|
||||
return *m.ObjectIdentifier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ComponentExternalReference) GetIsWeak() bool {
|
||||
if m != nil && m.IsWeak != nil {
|
||||
return *m.IsWeak
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type ComponentDataReference struct {
|
||||
DataIdentifier *uint64 `protobuf:"varint,1,req,name=data_identifier" json:"data_identifier,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ComponentDataReference) Reset() { *m = ComponentDataReference{} }
|
||||
func (m *ComponentDataReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*ComponentDataReference) ProtoMessage() {}
|
||||
|
||||
func (m *ComponentDataReference) GetDataIdentifier() uint64 {
|
||||
if m != nil && m.DataIdentifier != nil {
|
||||
return *m.DataIdentifier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type PackageMetadata struct {
|
||||
LastObjectIdentifier *uint64 `protobuf:"varint,1,req,name=last_object_identifier" json:"last_object_identifier,omitempty"`
|
||||
Components []*ComponentInfo `protobuf:"bytes,3,rep,name=components" json:"components,omitempty"`
|
||||
Datas []*DataInfo `protobuf:"bytes,4,rep,name=datas" json:"datas,omitempty"`
|
||||
ReadVersion []uint32 `protobuf:"varint,5,rep,packed,name=read_version" json:"read_version,omitempty"`
|
||||
WriteVersion []uint32 `protobuf:"varint,6,rep,packed,name=write_version" json:"write_version,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PackageMetadata) Reset() { *m = PackageMetadata{} }
|
||||
func (m *PackageMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*PackageMetadata) ProtoMessage() {}
|
||||
|
||||
func (m *PackageMetadata) GetLastObjectIdentifier() uint64 {
|
||||
if m != nil && m.LastObjectIdentifier != nil {
|
||||
return *m.LastObjectIdentifier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *PackageMetadata) GetComponents() []*ComponentInfo {
|
||||
if m != nil {
|
||||
return m.Components
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PackageMetadata) GetDatas() []*DataInfo {
|
||||
if m != nil {
|
||||
return m.Datas
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PackageMetadata) GetReadVersion() []uint32 {
|
||||
if m != nil {
|
||||
return m.ReadVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PackageMetadata) GetWriteVersion() []uint32 {
|
||||
if m != nil {
|
||||
return m.WriteVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type PasteboardMetadata struct {
|
||||
Version []uint32 `protobuf:"varint,1,rep,packed,name=version" json:"version,omitempty"`
|
||||
AppName *string `protobuf:"bytes,2,req,name=app_name" json:"app_name,omitempty"`
|
||||
Datas []*DataInfo `protobuf:"bytes,3,rep,name=datas" json:"datas,omitempty"`
|
||||
SourceDocumentUuid *string `protobuf:"bytes,4,opt,name=source_document_uuid" json:"source_document_uuid,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PasteboardMetadata) Reset() { *m = PasteboardMetadata{} }
|
||||
func (m *PasteboardMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*PasteboardMetadata) ProtoMessage() {}
|
||||
|
||||
func (m *PasteboardMetadata) GetVersion() []uint32 {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PasteboardMetadata) GetAppName() string {
|
||||
if m != nil && m.AppName != nil {
|
||||
return *m.AppName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PasteboardMetadata) GetDatas() []*DataInfo {
|
||||
if m != nil {
|
||||
return m.Datas
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PasteboardMetadata) GetSourceDocumentUuid() string {
|
||||
if m != nil && m.SourceDocumentUuid != nil {
|
||||
return *m.SourceDocumentUuid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type DataInfo struct {
|
||||
Identifier *uint64 `protobuf:"varint,1,req,name=identifier" json:"identifier,omitempty"`
|
||||
Digest []byte `protobuf:"bytes,2,req,name=digest" json:"digest,omitempty"`
|
||||
PreferredFileName *string `protobuf:"bytes,3,req,name=preferred_file_name" json:"preferred_file_name,omitempty"`
|
||||
FileName *string `protobuf:"bytes,4,opt,name=file_name" json:"file_name,omitempty"`
|
||||
DocumentResourceLocator *string `protobuf:"bytes,5,opt,name=document_resource_locator" json:"document_resource_locator,omitempty"`
|
||||
SourceBookmarkData []byte `protobuf:"bytes,6,opt,name=source_bookmark_data" json:"source_bookmark_data,omitempty"`
|
||||
PasteboardExternalFilePath *string `protobuf:"bytes,99,opt,name=pasteboard_external_file_path" json:"pasteboard_external_file_path,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DataInfo) Reset() { *m = DataInfo{} }
|
||||
func (m *DataInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*DataInfo) ProtoMessage() {}
|
||||
|
||||
func (m *DataInfo) GetIdentifier() uint64 {
|
||||
if m != nil && m.Identifier != nil {
|
||||
return *m.Identifier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *DataInfo) GetDigest() []byte {
|
||||
if m != nil {
|
||||
return m.Digest
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *DataInfo) GetPreferredFileName() string {
|
||||
if m != nil && m.PreferredFileName != nil {
|
||||
return *m.PreferredFileName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DataInfo) GetFileName() string {
|
||||
if m != nil && m.FileName != nil {
|
||||
return *m.FileName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DataInfo) GetDocumentResourceLocator() string {
|
||||
if m != nil && m.DocumentResourceLocator != nil {
|
||||
return *m.DocumentResourceLocator
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DataInfo) GetSourceBookmarkData() []byte {
|
||||
if m != nil {
|
||||
return m.SourceBookmarkData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *DataInfo) GetPasteboardExternalFilePath() string {
|
||||
if m != nil && m.PasteboardExternalFilePath != nil {
|
||||
return *m.PasteboardExternalFilePath
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ViewStateMetadata struct {
|
||||
Version []uint32 `protobuf:"varint,1,rep,packed,name=version" json:"version,omitempty"`
|
||||
DocumentVersionUuid *string `protobuf:"bytes,2,req,name=document_version_uuid" json:"document_version_uuid,omitempty"`
|
||||
Component *ComponentInfo `protobuf:"bytes,3,req,name=component" json:"component,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ViewStateMetadata) Reset() { *m = ViewStateMetadata{} }
|
||||
func (m *ViewStateMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*ViewStateMetadata) ProtoMessage() {}
|
||||
|
||||
func (m *ViewStateMetadata) GetVersion() []uint32 {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ViewStateMetadata) GetDocumentVersionUuid() string {
|
||||
if m != nil && m.DocumentVersionUuid != nil {
|
||||
return *m.DocumentVersionUuid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ViewStateMetadata) GetComponent() *ComponentInfo {
|
||||
if m != nil {
|
||||
return m.Component
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("TSP.FieldInfo_Type", FieldInfo_Type_name, FieldInfo_Type_value)
|
||||
proto.RegisterEnum("TSP.FieldInfo_Rule", FieldInfo_Rule_name, FieldInfo_Rule_value)
|
||||
}
|
||||
150
vendor/code.sajari.com/docconv/iWork/TSPDatabaseMessages.pb.go
сгенерированный
поставляемый
Обычный файл
150
vendor/code.sajari.com/docconv/iWork/TSPDatabaseMessages.pb.go
сгенерированный
поставляемый
Обычный файл
@@ -0,0 +1,150 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: TSPDatabaseMessages.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package TSP
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = math.Inf
|
||||
|
||||
type DatabaseImageDataArchive_ImageType int32
|
||||
|
||||
const (
|
||||
DatabaseImageDataArchive_unknown DatabaseImageDataArchive_ImageType = 0
|
||||
DatabaseImageDataArchive_bitmap DatabaseImageDataArchive_ImageType = 1
|
||||
DatabaseImageDataArchive_pdf DatabaseImageDataArchive_ImageType = 2
|
||||
)
|
||||
|
||||
var DatabaseImageDataArchive_ImageType_name = map[int32]string{
|
||||
0: "unknown",
|
||||
1: "bitmap",
|
||||
2: "pdf",
|
||||
}
|
||||
var DatabaseImageDataArchive_ImageType_value = map[string]int32{
|
||||
"unknown": 0,
|
||||
"bitmap": 1,
|
||||
"pdf": 2,
|
||||
}
|
||||
|
||||
func (x DatabaseImageDataArchive_ImageType) Enum() *DatabaseImageDataArchive_ImageType {
|
||||
p := new(DatabaseImageDataArchive_ImageType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x DatabaseImageDataArchive_ImageType) String() string {
|
||||
return proto.EnumName(DatabaseImageDataArchive_ImageType_name, int32(x))
|
||||
}
|
||||
func (x *DatabaseImageDataArchive_ImageType) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(DatabaseImageDataArchive_ImageType_value, data, "DatabaseImageDataArchive_ImageType")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = DatabaseImageDataArchive_ImageType(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
type DatabaseData struct {
|
||||
Data *DataReference `protobuf:"bytes,1,req,name=data" json:"data,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DatabaseData) Reset() { *m = DatabaseData{} }
|
||||
func (m *DatabaseData) String() string { return proto.CompactTextString(m) }
|
||||
func (*DatabaseData) ProtoMessage() {}
|
||||
|
||||
func (m *DatabaseData) GetData() *DataReference {
|
||||
if m != nil {
|
||||
return m.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DatabaseDataArchive struct {
|
||||
Data *Reference `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
|
||||
AppRelativePath *string `protobuf:"bytes,2,opt,name=app_relative_path" json:"app_relative_path,omitempty"`
|
||||
DisplayName *string `protobuf:"bytes,3,req,name=display_name" json:"display_name,omitempty"`
|
||||
Length *uint64 `protobuf:"varint,4,opt,name=length" json:"length,omitempty"`
|
||||
Hash *uint32 `protobuf:"varint,5,opt,name=hash" json:"hash,omitempty"`
|
||||
Sharable *bool `protobuf:"varint,6,req,name=sharable,def=1" json:"sharable,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DatabaseDataArchive) Reset() { *m = DatabaseDataArchive{} }
|
||||
func (m *DatabaseDataArchive) String() string { return proto.CompactTextString(m) }
|
||||
func (*DatabaseDataArchive) ProtoMessage() {}
|
||||
|
||||
const Default_DatabaseDataArchive_Sharable bool = true
|
||||
|
||||
func (m *DatabaseDataArchive) GetData() *Reference {
|
||||
if m != nil {
|
||||
return m.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *DatabaseDataArchive) GetAppRelativePath() string {
|
||||
if m != nil && m.AppRelativePath != nil {
|
||||
return *m.AppRelativePath
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DatabaseDataArchive) GetDisplayName() string {
|
||||
if m != nil && m.DisplayName != nil {
|
||||
return *m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DatabaseDataArchive) GetLength() uint64 {
|
||||
if m != nil && m.Length != nil {
|
||||
return *m.Length
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *DatabaseDataArchive) GetHash() uint32 {
|
||||
if m != nil && m.Hash != nil {
|
||||
return *m.Hash
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *DatabaseDataArchive) GetSharable() bool {
|
||||
if m != nil && m.Sharable != nil {
|
||||
return *m.Sharable
|
||||
}
|
||||
return Default_DatabaseDataArchive_Sharable
|
||||
}
|
||||
|
||||
type DatabaseImageDataArchive struct {
|
||||
Super *DatabaseDataArchive `protobuf:"bytes,1,req,name=super" json:"super,omitempty"`
|
||||
Type *DatabaseImageDataArchive_ImageType `protobuf:"varint,2,req,name=type,enum=TSP.DatabaseImageDataArchive_ImageType" json:"type,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DatabaseImageDataArchive) Reset() { *m = DatabaseImageDataArchive{} }
|
||||
func (m *DatabaseImageDataArchive) String() string { return proto.CompactTextString(m) }
|
||||
func (*DatabaseImageDataArchive) ProtoMessage() {}
|
||||
|
||||
func (m *DatabaseImageDataArchive) GetSuper() *DatabaseDataArchive {
|
||||
if m != nil {
|
||||
return m.Super
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *DatabaseImageDataArchive) GetType() DatabaseImageDataArchive_ImageType {
|
||||
if m != nil && m.Type != nil {
|
||||
return *m.Type
|
||||
}
|
||||
return DatabaseImageDataArchive_unknown
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("TSP.DatabaseImageDataArchive_ImageType", DatabaseImageDataArchive_ImageType_name, DatabaseImageDataArchive_ImageType_value)
|
||||
}
|
||||
524
vendor/code.sajari.com/docconv/iWork/TSPMessages.pb.go
сгенерированный
поставляемый
Обычный файл
524
vendor/code.sajari.com/docconv/iWork/TSPMessages.pb.go
сгенерированный
поставляемый
Обычный файл
@@ -0,0 +1,524 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: TSPMessages.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package TSP
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = math.Inf
|
||||
|
||||
type Color_ColorModel int32
|
||||
|
||||
const (
|
||||
Color_rgb Color_ColorModel = 1
|
||||
Color_cmyk Color_ColorModel = 2
|
||||
Color_white Color_ColorModel = 3
|
||||
)
|
||||
|
||||
var Color_ColorModel_name = map[int32]string{
|
||||
1: "rgb",
|
||||
2: "cmyk",
|
||||
3: "white",
|
||||
}
|
||||
var Color_ColorModel_value = map[string]int32{
|
||||
"rgb": 1,
|
||||
"cmyk": 2,
|
||||
"white": 3,
|
||||
}
|
||||
|
||||
func (x Color_ColorModel) Enum() *Color_ColorModel {
|
||||
p := new(Color_ColorModel)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x Color_ColorModel) String() string {
|
||||
return proto.EnumName(Color_ColorModel_name, int32(x))
|
||||
}
|
||||
func (x *Color_ColorModel) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Color_ColorModel_value, data, "Color_ColorModel")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Color_ColorModel(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
type Path_ElementType int32
|
||||
|
||||
const (
|
||||
Path_moveTo Path_ElementType = 1
|
||||
Path_lineTo Path_ElementType = 2
|
||||
Path_quadCurveTo Path_ElementType = 3
|
||||
Path_curveTo Path_ElementType = 4
|
||||
Path_closeSubpath Path_ElementType = 5
|
||||
)
|
||||
|
||||
var Path_ElementType_name = map[int32]string{
|
||||
1: "moveTo",
|
||||
2: "lineTo",
|
||||
3: "quadCurveTo",
|
||||
4: "curveTo",
|
||||
5: "closeSubpath",
|
||||
}
|
||||
var Path_ElementType_value = map[string]int32{
|
||||
"moveTo": 1,
|
||||
"lineTo": 2,
|
||||
"quadCurveTo": 3,
|
||||
"curveTo": 4,
|
||||
"closeSubpath": 5,
|
||||
}
|
||||
|
||||
func (x Path_ElementType) Enum() *Path_ElementType {
|
||||
p := new(Path_ElementType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x Path_ElementType) String() string {
|
||||
return proto.EnumName(Path_ElementType_name, int32(x))
|
||||
}
|
||||
func (x *Path_ElementType) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Path_ElementType_value, data, "Path_ElementType")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Path_ElementType(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
type Reference struct {
|
||||
Identifier *uint64 `protobuf:"varint,1,req,name=identifier" json:"identifier,omitempty"`
|
||||
DeprecatedType *int32 `protobuf:"varint,2,opt,name=deprecated_type" json:"deprecated_type,omitempty"`
|
||||
DeprecatedIsExternal *bool `protobuf:"varint,3,opt,name=deprecated_is_external" json:"deprecated_is_external,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Reference) Reset() { *m = Reference{} }
|
||||
func (m *Reference) String() string { return proto.CompactTextString(m) }
|
||||
func (*Reference) ProtoMessage() {}
|
||||
|
||||
func (m *Reference) GetIdentifier() uint64 {
|
||||
if m != nil && m.Identifier != nil {
|
||||
return *m.Identifier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Reference) GetDeprecatedType() int32 {
|
||||
if m != nil && m.DeprecatedType != nil {
|
||||
return *m.DeprecatedType
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Reference) GetDeprecatedIsExternal() bool {
|
||||
if m != nil && m.DeprecatedIsExternal != nil {
|
||||
return *m.DeprecatedIsExternal
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type DataReference struct {
|
||||
Identifier *uint64 `protobuf:"varint,1,req,name=identifier" json:"identifier,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DataReference) Reset() { *m = DataReference{} }
|
||||
func (m *DataReference) String() string { return proto.CompactTextString(m) }
|
||||
func (*DataReference) ProtoMessage() {}
|
||||
|
||||
func (m *DataReference) GetIdentifier() uint64 {
|
||||
if m != nil && m.Identifier != nil {
|
||||
return *m.Identifier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Point struct {
|
||||
X *float32 `protobuf:"fixed32,1,req,name=x" json:"x,omitempty"`
|
||||
Y *float32 `protobuf:"fixed32,2,req,name=y" json:"y,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Point) Reset() { *m = Point{} }
|
||||
func (m *Point) String() string { return proto.CompactTextString(m) }
|
||||
func (*Point) ProtoMessage() {}
|
||||
|
||||
func (m *Point) GetX() float32 {
|
||||
if m != nil && m.X != nil {
|
||||
return *m.X
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Point) GetY() float32 {
|
||||
if m != nil && m.Y != nil {
|
||||
return *m.Y
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Size struct {
|
||||
Width *float32 `protobuf:"fixed32,1,req,name=width" json:"width,omitempty"`
|
||||
Height *float32 `protobuf:"fixed32,2,req,name=height" json:"height,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Size) Reset() { *m = Size{} }
|
||||
func (m *Size) String() string { return proto.CompactTextString(m) }
|
||||
func (*Size) ProtoMessage() {}
|
||||
|
||||
func (m *Size) GetWidth() float32 {
|
||||
if m != nil && m.Width != nil {
|
||||
return *m.Width
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Size) GetHeight() float32 {
|
||||
if m != nil && m.Height != nil {
|
||||
return *m.Height
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Range struct {
|
||||
Location *uint32 `protobuf:"varint,1,req,name=location" json:"location,omitempty"`
|
||||
Length *uint32 `protobuf:"varint,2,req,name=length" json:"length,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Range) Reset() { *m = Range{} }
|
||||
func (m *Range) String() string { return proto.CompactTextString(m) }
|
||||
func (*Range) ProtoMessage() {}
|
||||
|
||||
func (m *Range) GetLocation() uint32 {
|
||||
if m != nil && m.Location != nil {
|
||||
return *m.Location
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Range) GetLength() uint32 {
|
||||
if m != nil && m.Length != nil {
|
||||
return *m.Length
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Date struct {
|
||||
Seconds *float64 `protobuf:"fixed64,1,req,name=seconds" json:"seconds,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Date) Reset() { *m = Date{} }
|
||||
func (m *Date) String() string { return proto.CompactTextString(m) }
|
||||
func (*Date) ProtoMessage() {}
|
||||
|
||||
func (m *Date) GetSeconds() float64 {
|
||||
if m != nil && m.Seconds != nil {
|
||||
return *m.Seconds
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type IndexSet struct {
|
||||
Ranges []*Range `protobuf:"bytes,1,rep,name=ranges" json:"ranges,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *IndexSet) Reset() { *m = IndexSet{} }
|
||||
func (m *IndexSet) String() string { return proto.CompactTextString(m) }
|
||||
func (*IndexSet) ProtoMessage() {}
|
||||
|
||||
func (m *IndexSet) GetRanges() []*Range {
|
||||
if m != nil {
|
||||
return m.Ranges
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Color struct {
|
||||
Model *Color_ColorModel `protobuf:"varint,1,req,name=model,enum=TSP.Color_ColorModel" json:"model,omitempty"`
|
||||
R *float32 `protobuf:"fixed32,3,opt,name=r" json:"r,omitempty"`
|
||||
G *float32 `protobuf:"fixed32,4,opt,name=g" json:"g,omitempty"`
|
||||
B *float32 `protobuf:"fixed32,5,opt,name=b" json:"b,omitempty"`
|
||||
A *float32 `protobuf:"fixed32,6,opt,name=a,def=1" json:"a,omitempty"`
|
||||
C *float32 `protobuf:"fixed32,7,opt,name=c" json:"c,omitempty"`
|
||||
M *float32 `protobuf:"fixed32,8,opt,name=m" json:"m,omitempty"`
|
||||
Y *float32 `protobuf:"fixed32,9,opt,name=y" json:"y,omitempty"`
|
||||
K *float32 `protobuf:"fixed32,10,opt,name=k" json:"k,omitempty"`
|
||||
W *float32 `protobuf:"fixed32,11,opt,name=w" json:"w,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Color) Reset() { *m = Color{} }
|
||||
func (m *Color) String() string { return proto.CompactTextString(m) }
|
||||
func (*Color) ProtoMessage() {}
|
||||
|
||||
const Default_Color_A float32 = 1
|
||||
|
||||
func (m *Color) GetModel() Color_ColorModel {
|
||||
if m != nil && m.Model != nil {
|
||||
return *m.Model
|
||||
}
|
||||
return Color_rgb
|
||||
}
|
||||
|
||||
func (m *Color) GetR() float32 {
|
||||
if m != nil && m.R != nil {
|
||||
return *m.R
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Color) GetG() float32 {
|
||||
if m != nil && m.G != nil {
|
||||
return *m.G
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Color) GetB() float32 {
|
||||
if m != nil && m.B != nil {
|
||||
return *m.B
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Color) GetA() float32 {
|
||||
if m != nil && m.A != nil {
|
||||
return *m.A
|
||||
}
|
||||
return Default_Color_A
|
||||
}
|
||||
|
||||
func (m *Color) GetC() float32 {
|
||||
if m != nil && m.C != nil {
|
||||
return *m.C
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Color) GetM() float32 {
|
||||
if m != nil && m.M != nil {
|
||||
return *m.M
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Color) GetY() float32 {
|
||||
if m != nil && m.Y != nil {
|
||||
return *m.Y
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Color) GetK() float32 {
|
||||
if m != nil && m.K != nil {
|
||||
return *m.K
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Color) GetW() float32 {
|
||||
if m != nil && m.W != nil {
|
||||
return *m.W
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Path struct {
|
||||
Elements []*Path_Element `protobuf:"bytes,1,rep,name=elements" json:"elements,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Path) Reset() { *m = Path{} }
|
||||
func (m *Path) String() string { return proto.CompactTextString(m) }
|
||||
func (*Path) ProtoMessage() {}
|
||||
|
||||
func (m *Path) GetElements() []*Path_Element {
|
||||
if m != nil {
|
||||
return m.Elements
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Path_Element struct {
|
||||
Type *Path_ElementType `protobuf:"varint,1,req,name=type,enum=TSP.Path_ElementType" json:"type,omitempty"`
|
||||
Points []*Point `protobuf:"bytes,2,rep,name=points" json:"points,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Path_Element) Reset() { *m = Path_Element{} }
|
||||
func (m *Path_Element) String() string { return proto.CompactTextString(m) }
|
||||
func (*Path_Element) ProtoMessage() {}
|
||||
|
||||
func (m *Path_Element) GetType() Path_ElementType {
|
||||
if m != nil && m.Type != nil {
|
||||
return *m.Type
|
||||
}
|
||||
return Path_moveTo
|
||||
}
|
||||
|
||||
func (m *Path_Element) GetPoints() []*Point {
|
||||
if m != nil {
|
||||
return m.Points
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ReferenceDictionary struct {
|
||||
Entries []*ReferenceDictionary_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ReferenceDictionary) Reset() { *m = ReferenceDictionary{} }
|
||||
func (m *ReferenceDictionary) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReferenceDictionary) ProtoMessage() {}
|
||||
|
||||
func (m *ReferenceDictionary) GetEntries() []*ReferenceDictionary_Entry {
|
||||
if m != nil {
|
||||
return m.Entries
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ReferenceDictionary_Entry struct {
|
||||
Key *Reference `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
|
||||
Value *Reference `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ReferenceDictionary_Entry) Reset() { *m = ReferenceDictionary_Entry{} }
|
||||
func (m *ReferenceDictionary_Entry) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReferenceDictionary_Entry) ProtoMessage() {}
|
||||
|
||||
func (m *ReferenceDictionary_Entry) GetKey() *Reference {
|
||||
if m != nil {
|
||||
return m.Key
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ReferenceDictionary_Entry) GetValue() *Reference {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type PasteboardObject struct {
|
||||
Stylesheet *Reference `protobuf:"bytes,1,opt,name=stylesheet" json:"stylesheet,omitempty"`
|
||||
Drawables []*Reference `protobuf:"bytes,2,rep,name=drawables" json:"drawables,omitempty"`
|
||||
Styles []*Reference `protobuf:"bytes,3,rep,name=styles" json:"styles,omitempty"`
|
||||
Theme *Reference `protobuf:"bytes,4,opt,name=theme" json:"theme,omitempty"`
|
||||
WpStorage *Reference `protobuf:"bytes,5,opt,name=wp_storage" json:"wp_storage,omitempty"`
|
||||
GuideStorage *Reference `protobuf:"bytes,9,opt,name=guide_storage" json:"guide_storage,omitempty"`
|
||||
AppNativeObject *Reference `protobuf:"bytes,6,opt,name=app_native_object" json:"app_native_object,omitempty"`
|
||||
IsTextPrimary *bool `protobuf:"varint,7,opt,name=is_text_primary,def=0" json:"is_text_primary,omitempty"`
|
||||
IsSmart *bool `protobuf:"varint,8,opt,name=is_smart,def=0" json:"is_smart,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PasteboardObject) Reset() { *m = PasteboardObject{} }
|
||||
func (m *PasteboardObject) String() string { return proto.CompactTextString(m) }
|
||||
func (*PasteboardObject) ProtoMessage() {}
|
||||
|
||||
const Default_PasteboardObject_IsTextPrimary bool = false
|
||||
const Default_PasteboardObject_IsSmart bool = false
|
||||
|
||||
func (m *PasteboardObject) GetStylesheet() *Reference {
|
||||
if m != nil {
|
||||
return m.Stylesheet
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PasteboardObject) GetDrawables() []*Reference {
|
||||
if m != nil {
|
||||
return m.Drawables
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PasteboardObject) GetStyles() []*Reference {
|
||||
if m != nil {
|
||||
return m.Styles
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PasteboardObject) GetTheme() *Reference {
|
||||
if m != nil {
|
||||
return m.Theme
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PasteboardObject) GetWpStorage() *Reference {
|
||||
if m != nil {
|
||||
return m.WpStorage
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PasteboardObject) GetGuideStorage() *Reference {
|
||||
if m != nil {
|
||||
return m.GuideStorage
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PasteboardObject) GetAppNativeObject() *Reference {
|
||||
if m != nil {
|
||||
return m.AppNativeObject
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PasteboardObject) GetIsTextPrimary() bool {
|
||||
if m != nil && m.IsTextPrimary != nil {
|
||||
return *m.IsTextPrimary
|
||||
}
|
||||
return Default_PasteboardObject_IsTextPrimary
|
||||
}
|
||||
|
||||
func (m *PasteboardObject) GetIsSmart() bool {
|
||||
if m != nil && m.IsSmart != nil {
|
||||
return *m.IsSmart
|
||||
}
|
||||
return Default_PasteboardObject_IsSmart
|
||||
}
|
||||
|
||||
type ObjectContainer struct {
|
||||
Identifier *uint32 `protobuf:"varint,1,opt,name=identifier" json:"identifier,omitempty"`
|
||||
Objects []*Reference `protobuf:"bytes,2,rep,name=objects" json:"objects,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ObjectContainer) Reset() { *m = ObjectContainer{} }
|
||||
func (m *ObjectContainer) String() string { return proto.CompactTextString(m) }
|
||||
func (*ObjectContainer) ProtoMessage() {}
|
||||
|
||||
func (m *ObjectContainer) GetIdentifier() uint32 {
|
||||
if m != nil && m.Identifier != nil {
|
||||
return *m.Identifier
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ObjectContainer) GetObjects() []*Reference {
|
||||
if m != nil {
|
||||
return m.Objects
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("TSP.Color_ColorModel", Color_ColorModel_name, Color_ColorModel_value)
|
||||
proto.RegisterEnum("TSP.Path_ElementType", Path_ElementType_name, Path_ElementType_value)
|
||||
}
|
||||
Ссылка в новой задаче
Block a user