137 lines
5.5 KiB
Python
137 lines
5.5 KiB
Python
# automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
# namespace: FlatData
|
|
|
|
import flatbuffers
|
|
from flatbuffers.compat import import_numpy
|
|
np = import_numpy()
|
|
|
|
class DefaultEchelonExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = DefaultEchelonExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsDefaultEchelonExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# DefaultEchelonExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# DefaultEchelonExcel
|
|
def EchlonId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# DefaultEchelonExcel
|
|
def LeaderId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# DefaultEchelonExcel
|
|
def MainId(self, j):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
a = self._tab.Vector(o)
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 8))
|
|
return 0
|
|
|
|
# DefaultEchelonExcel
|
|
def MainIdAsNumpy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int64Flags, o)
|
|
return 0
|
|
|
|
# DefaultEchelonExcel
|
|
def MainIdLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# DefaultEchelonExcel
|
|
def MainIdIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
return o == 0
|
|
|
|
# DefaultEchelonExcel
|
|
def SupportId(self, j):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
a = self._tab.Vector(o)
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 8))
|
|
return 0
|
|
|
|
# DefaultEchelonExcel
|
|
def SupportIdAsNumpy(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int64Flags, o)
|
|
return 0
|
|
|
|
# DefaultEchelonExcel
|
|
def SupportIdLength(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return self._tab.VectorLen(o)
|
|
return 0
|
|
|
|
# DefaultEchelonExcel
|
|
def SupportIdIsNone(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
return o == 0
|
|
|
|
# DefaultEchelonExcel
|
|
def TssId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
def Start(builder): builder.StartObject(5)
|
|
def DefaultEchelonExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddEchlonId(builder, EchlonId): builder.PrependInt32Slot(0, EchlonId, 0)
|
|
def DefaultEchelonExcelAddEchlonId(builder, EchlonId):
|
|
"""This method is deprecated. Please switch to AddEchlonId."""
|
|
return AddEchlonId(builder, EchlonId)
|
|
def AddLeaderId(builder, LeaderId): builder.PrependInt64Slot(1, LeaderId, 0)
|
|
def DefaultEchelonExcelAddLeaderId(builder, LeaderId):
|
|
"""This method is deprecated. Please switch to AddLeaderId."""
|
|
return AddLeaderId(builder, LeaderId)
|
|
def AddMainId(builder, MainId): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(MainId), 0)
|
|
def DefaultEchelonExcelAddMainId(builder, MainId):
|
|
"""This method is deprecated. Please switch to AddMainId."""
|
|
return AddMainId(builder, MainId)
|
|
def StartMainIdVector(builder, numElems): return builder.StartVector(8, numElems, 8)
|
|
def DefaultEchelonExcelStartMainIdVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartMainIdVector(builder, numElems)
|
|
def AddSupportId(builder, SupportId): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(SupportId), 0)
|
|
def DefaultEchelonExcelAddSupportId(builder, SupportId):
|
|
"""This method is deprecated. Please switch to AddSupportId."""
|
|
return AddSupportId(builder, SupportId)
|
|
def StartSupportIdVector(builder, numElems): return builder.StartVector(8, numElems, 8)
|
|
def DefaultEchelonExcelStartSupportIdVector(builder, numElems):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return StartSupportIdVector(builder, numElems)
|
|
def AddTssId(builder, TssId): builder.PrependInt64Slot(4, TssId, 0)
|
|
def DefaultEchelonExcelAddTssId(builder, TssId):
|
|
"""This method is deprecated. Please switch to AddTssId."""
|
|
return AddTssId(builder, TssId)
|
|
def End(builder): return builder.EndObject()
|
|
def DefaultEchelonExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |