# automatically generated by the FlatBuffers compiler, do not modify

# namespace: Request

import flatbuffers

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

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

    # EditMe
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    # EditMe
    def Username(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    # EditMe
    def Password(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    # EditMe
    def FirstName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    # EditMe
    def LastName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    # EditMe
    def Admin(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
        if o != 0:
            return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
        return False

    # EditMe
    def Token(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

def EditMeStart(builder): builder.StartObject(6)
def EditMeAddUsername(builder, username): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(username), 0)
def EditMeAddPassword(builder, password): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(password), 0)
def EditMeAddFirstName(builder, firstName): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(firstName), 0)
def EditMeAddLastName(builder, lastName): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(lastName), 0)
def EditMeAddAdmin(builder, admin): builder.PrependBoolSlot(4, admin, 0)
def EditMeAddToken(builder, token): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(token), 0)
def EditMeEnd(builder): return builder.EndObject()

c138c2ef32cda841005d31d1cdc180db2f1b8c78
<mask token>


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

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

    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    def Username(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def Password(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def FirstName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def LastName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)
            )
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def Admin(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)
            )
        if o != 0:
            return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o +
                self._tab.Pos))
        return False

    def Token(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)
            )
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None


<mask token>


def EditMeAddPassword(builder, password):
    builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.
        UOffsetTFlags.py_type(password), 0)


<mask token>


def EditMeAddToken(builder, token):
    builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.
        UOffsetTFlags.py_type(token), 0)


def EditMeEnd(builder):
    return builder.EndObject()

<mask token>


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

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

    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    def Username(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def Password(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def FirstName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def LastName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)
            )
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def Admin(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)
            )
        if o != 0:
            return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o +
                self._tab.Pos))
        return False

    def Token(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)
            )
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None


def EditMeStart(builder):
    builder.StartObject(6)


def EditMeAddUsername(builder, username):
    builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.
        UOffsetTFlags.py_type(username), 0)


def EditMeAddPassword(builder, password):
    builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.
        UOffsetTFlags.py_type(password), 0)


<mask token>


def EditMeAddToken(builder, token):
    builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.
        UOffsetTFlags.py_type(token), 0)


def EditMeEnd(builder):
    return builder.EndObject()

<mask token>


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

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

    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    def Username(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def Password(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def FirstName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def LastName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)
            )
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def Admin(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)
            )
        if o != 0:
            return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o +
                self._tab.Pos))
        return False

    def Token(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)
            )
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None


def EditMeStart(builder):
    builder.StartObject(6)


def EditMeAddUsername(builder, username):
    builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.
        UOffsetTFlags.py_type(username), 0)


def EditMeAddPassword(builder, password):
    builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.
        UOffsetTFlags.py_type(password), 0)


<mask token>


def EditMeAddAdmin(builder, admin):
    builder.PrependBoolSlot(4, admin, 0)


def EditMeAddToken(builder, token):
    builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.
        UOffsetTFlags.py_type(token), 0)


def EditMeEnd(builder):
    return builder.EndObject()

import flatbuffers


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

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

    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    def Username(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def Password(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def FirstName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def LastName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)
            )
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    def Admin(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)
            )
        if o != 0:
            return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o +
                self._tab.Pos))
        return False

    def Token(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)
            )
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None


def EditMeStart(builder):
    builder.StartObject(6)


def EditMeAddUsername(builder, username):
    builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.
        UOffsetTFlags.py_type(username), 0)


def EditMeAddPassword(builder, password):
    builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.
        UOffsetTFlags.py_type(password), 0)


def EditMeAddFirstName(builder, firstName):
    builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.
        UOffsetTFlags.py_type(firstName), 0)


def EditMeAddLastName(builder, lastName):
    builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.
        UOffsetTFlags.py_type(lastName), 0)


def EditMeAddAdmin(builder, admin):
    builder.PrependBoolSlot(4, admin, 0)


def EditMeAddToken(builder, token):
    builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.
        UOffsetTFlags.py_type(token), 0)


def EditMeEnd(builder):
    return builder.EndObject()

# automatically generated by the FlatBuffers compiler, do not modify

# namespace: Request

import flatbuffers

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

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

    # EditMe
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    # EditMe
    def Username(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    # EditMe
    def Password(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    # EditMe
    def FirstName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    # EditMe
    def LastName(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    # EditMe
    def Admin(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
        if o != 0:
            return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
        return False

    # EditMe
    def Token(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

def EditMeStart(builder): builder.StartObject(6)
def EditMeAddUsername(builder, username): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(username), 0)
def EditMeAddPassword(builder, password): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(password), 0)
def EditMeAddFirstName(builder, firstName): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(firstName), 0)
def EditMeAddLastName(builder, lastName): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(lastName), 0)
def EditMeAddAdmin(builder, admin): builder.PrependBoolSlot(4, admin, 0)
def EditMeAddToken(builder, token): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(token), 0)
def EditMeEnd(builder): return builder.EndObject()
