# automatically generated by the FlatBuffers compiler, do not modify

# namespace: graph

import flatbuffers

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

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

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

    # FlatDropRequest
    def Id(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

def FlatDropRequestStart(builder): builder.StartObject(1)
def FlatDropRequestAddId(builder, id): builder.PrependInt64Slot(0, id, 0)
def FlatDropRequestEnd(builder): return builder.EndObject()
