89 lines
3.7 KiB
Python
89 lines
3.7 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 CouponStuffExcel(object):
|
|
__slots__ = ['_tab']
|
|
|
|
@classmethod
|
|
def GetRootAs(cls, buf, offset=0):
|
|
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
x = CouponStuffExcel()
|
|
x.Init(buf, n + offset)
|
|
return x
|
|
|
|
@classmethod
|
|
def GetRootAsCouponStuffExcel(cls, buf, offset=0):
|
|
"""This method is deprecated. Please switch to GetRootAs."""
|
|
return cls.GetRootAs(buf, offset)
|
|
# CouponStuffExcel
|
|
def Init(self, buf, pos):
|
|
self._tab = flatbuffers.table.Table(buf, pos)
|
|
|
|
# CouponStuffExcel
|
|
def StuffId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# CouponStuffExcel
|
|
def ParcelType_(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# CouponStuffExcel
|
|
def ParcelId(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# CouponStuffExcel
|
|
def LimitAmount(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
if o != 0:
|
|
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
|
|
return 0
|
|
|
|
# CouponStuffExcel
|
|
def CouponStuffNameLocalizeKey(self):
|
|
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
if o != 0:
|
|
return self._tab.String(o + self._tab.Pos)
|
|
return None
|
|
|
|
def Start(builder): builder.StartObject(5)
|
|
def CouponStuffExcelStart(builder):
|
|
"""This method is deprecated. Please switch to Start."""
|
|
return Start(builder)
|
|
def AddStuffId(builder, StuffId): builder.PrependInt64Slot(0, StuffId, 0)
|
|
def CouponStuffExcelAddStuffId(builder, StuffId):
|
|
"""This method is deprecated. Please switch to AddStuffId."""
|
|
return AddStuffId(builder, StuffId)
|
|
def AddParcelType_(builder, ParcelType_): builder.PrependInt32Slot(1, ParcelType_, 0)
|
|
def CouponStuffExcelAddParcelType_(builder, ParcelType_):
|
|
"""This method is deprecated. Please switch to AddParcelType_."""
|
|
return AddParcelType_(builder, ParcelType_)
|
|
def AddParcelId(builder, ParcelId): builder.PrependInt64Slot(2, ParcelId, 0)
|
|
def CouponStuffExcelAddParcelId(builder, ParcelId):
|
|
"""This method is deprecated. Please switch to AddParcelId."""
|
|
return AddParcelId(builder, ParcelId)
|
|
def AddLimitAmount(builder, LimitAmount): builder.PrependInt32Slot(3, LimitAmount, 0)
|
|
def CouponStuffExcelAddLimitAmount(builder, LimitAmount):
|
|
"""This method is deprecated. Please switch to AddLimitAmount."""
|
|
return AddLimitAmount(builder, LimitAmount)
|
|
def AddCouponStuffNameLocalizeKey(builder, CouponStuffNameLocalizeKey): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(CouponStuffNameLocalizeKey), 0)
|
|
def CouponStuffExcelAddCouponStuffNameLocalizeKey(builder, CouponStuffNameLocalizeKey):
|
|
"""This method is deprecated. Please switch to AddCouponStuffNameLocalizeKey."""
|
|
return AddCouponStuffNameLocalizeKey(builder, CouponStuffNameLocalizeKey)
|
|
def End(builder): return builder.EndObject()
|
|
def CouponStuffExcelEnd(builder):
|
|
"""This method is deprecated. Please switch to End."""
|
|
return End(builder) |