# automatically generated by the FlatBuffers compiler, do not modify

# namespace: MNN

import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()

class SelectIntSuperAcme(object):
    __slots__ = ['_tab']

    @classmethod
    def GetRootAs(cls, buf, offset=0):
        n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
        x = SelectIntSuperAcme()
        x.Init(buf, n + offset)
        return x

    @classmethod
    def GetRootAsSelectIntSuperAcme(cls, buf, offset=0):
        """This method is deprecated. Please switch to GetRootAs."""
        return cls.GetRootAs(buf, offset)
    # SelectIntSuperAcme
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    # SelectIntSuperAcme
    def SelectZeroPoint(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

    # SelectIntSuperAcme
    def Input1Offset(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

    # SelectIntSuperAcme
    def Input2Offset(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

    # SelectIntSuperAcme
    def Input1Multiplier(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

    # SelectIntSuperAcme
    def Input2Multiplier(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

    # SelectIntSuperAcme
    def MRightShift1(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

    # SelectIntSuperAcme
    def MRightShift2(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

    # SelectIntSuperAcme
    def OutputActivationMin(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

    # SelectIntSuperAcme
    def OutputActivationMax(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

def SelectIntSuperAcmeStart(builder): builder.StartObject(9)
def Start(builder):
    return SelectIntSuperAcmeStart(builder)
def SelectIntSuperAcmeAddSelectZeroPoint(builder, selectZeroPoint): builder.PrependInt32Slot(0, selectZeroPoint, 0)
def AddSelectZeroPoint(builder, selectZeroPoint):
    return SelectIntSuperAcmeAddSelectZeroPoint(builder, selectZeroPoint)
def SelectIntSuperAcmeAddInput1Offset(builder, input1Offset): builder.PrependInt32Slot(1, input1Offset, 0)
def AddInput1Offset(builder, input1Offset):
    return SelectIntSuperAcmeAddInput1Offset(builder, input1Offset)
def SelectIntSuperAcmeAddInput2Offset(builder, input2Offset): builder.PrependInt32Slot(2, input2Offset, 0)
def AddInput2Offset(builder, input2Offset):
    return SelectIntSuperAcmeAddInput2Offset(builder, input2Offset)
def SelectIntSuperAcmeAddInput1Multiplier(builder, input1Multiplier): builder.PrependInt32Slot(3, input1Multiplier, 0)
def AddInput1Multiplier(builder, input1Multiplier):
    return SelectIntSuperAcmeAddInput1Multiplier(builder, input1Multiplier)
def SelectIntSuperAcmeAddInput2Multiplier(builder, input2Multiplier): builder.PrependInt32Slot(4, input2Multiplier, 0)
def AddInput2Multiplier(builder, input2Multiplier):
    return SelectIntSuperAcmeAddInput2Multiplier(builder, input2Multiplier)
def SelectIntSuperAcmeAddMRightShift1(builder, mRightShift1): builder.PrependInt32Slot(5, mRightShift1, 0)
def AddMRightShift1(builder, mRightShift1):
    return SelectIntSuperAcmeAddMRightShift1(builder, mRightShift1)
def SelectIntSuperAcmeAddMRightShift2(builder, mRightShift2): builder.PrependInt32Slot(6, mRightShift2, 0)
def AddMRightShift2(builder, mRightShift2):
    return SelectIntSuperAcmeAddMRightShift2(builder, mRightShift2)
def SelectIntSuperAcmeAddOutputActivationMin(builder, outputActivationMin): builder.PrependInt32Slot(7, outputActivationMin, 0)
def AddOutputActivationMin(builder, outputActivationMin):
    return SelectIntSuperAcmeAddOutputActivationMin(builder, outputActivationMin)
def SelectIntSuperAcmeAddOutputActivationMax(builder, outputActivationMax): builder.PrependInt32Slot(8, outputActivationMax, 0)
def AddOutputActivationMax(builder, outputActivationMax):
    return SelectIntSuperAcmeAddOutputActivationMax(builder, outputActivationMax)
def SelectIntSuperAcmeEnd(builder): return builder.EndObject()
def End(builder):
    return SelectIntSuperAcmeEnd(builder)