# automatically generated by the FlatBuffers compiler, do not modify

# namespace: Packets

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

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

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

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

def ChangeConfigurationResultStart(builder): builder.StartObject(0)
def Start(builder):
    return ChangeConfigurationResultStart(builder)
def ChangeConfigurationResultEnd(builder): return builder.EndObject()
def End(builder):
    return ChangeConfigurationResultEnd(builder)

class ChangeConfigurationResultT(object):

    # ChangeConfigurationResultT
    def __init__(self):
        pass

    @classmethod
    def InitFromBuf(cls, buf, pos):
        changeConfigurationResult = ChangeConfigurationResult()
        changeConfigurationResult.Init(buf, pos)
        return cls.InitFromObj(changeConfigurationResult)

    @classmethod
    def InitFromPackedBuf(cls, buf, pos=0):
        n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, pos)
        return cls.InitFromBuf(buf, pos+n)

    @classmethod
    def InitFromObj(cls, changeConfigurationResult):
        x = ChangeConfigurationResultT()
        x._UnPack(changeConfigurationResult)
        return x

    # ChangeConfigurationResultT
    def _UnPack(self, changeConfigurationResult):
        if changeConfigurationResult is None:
            return

    # ChangeConfigurationResultT
    def Pack(self, builder):
        ChangeConfigurationResultStart(builder)
        changeConfigurationResult = ChangeConfigurationResultEnd(builder)
        return changeConfigurationResult
