Source code for autobahn.wamp.gen.wamp.proto.Registered

# automatically generated by the FlatBuffers compiler, do not modify

# namespace: proto

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

[docs]class Registered(object): __slots__ = ['_tab']
[docs] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Registered() x.Init(buf, n + offset) return x
[docs] @classmethod def GetRootAsRegistered(cls, buf, offset=0): """This method is deprecated. Please switch to GetRootAs.""" return cls.GetRootAs(buf, offset)
# Registered
[docs] def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos)
# Registered
[docs] def Request(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) if o != 0: return self._tab.Get(flatbuffers.number_types.Uint64Flags, o + self._tab.Pos) return 0
# Registered
[docs] def Registration(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) if o != 0: return self._tab.Get(flatbuffers.number_types.Uint64Flags, o + self._tab.Pos) return 0
[docs]def RegisteredStart(builder): builder.StartObject(2)
[docs]def Start(builder): return RegisteredStart(builder)
[docs]def RegisteredAddRequest(builder, request): builder.PrependUint64Slot(0, request, 0)
[docs]def AddRequest(builder, request): return RegisteredAddRequest(builder, request)
[docs]def RegisteredAddRegistration(builder, registration): builder.PrependUint64Slot(1, registration, 0)
[docs]def AddRegistration(builder, registration): return RegisteredAddRegistration(builder, registration)
[docs]def RegisteredEnd(builder): return builder.EndObject()
[docs]def End(builder): return RegisteredEnd(builder)