# automatically generated by the FlatBuffers compiler, do not modify
# namespace: proto
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
[docs]class Invocation(object):
__slots__ = ['_tab']
[docs] @classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = Invocation()
x.Init(buf, n + offset)
return x
[docs] @classmethod
def GetRootAsInvocation(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# Invocation
[docs] def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# Invocation
[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
# Invocation
[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
# Invocation
[docs] def Payload(self, j):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
if o != 0:
a = self._tab.Vector(o)
return self._tab.Get(flatbuffers.number_types.Uint8Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 1))
return 0
# Invocation
[docs] def PayloadAsNumpy(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
if o != 0:
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Uint8Flags, o)
return 0
# Invocation
[docs] def PayloadLength(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
if o != 0:
return self._tab.VectorLen(o)
return 0
# Invocation
[docs] def PayloadIsNone(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
return o == 0
# Invocation
[docs] def EncAlgo(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Uint8Flags, o + self._tab.Pos)
return 0
# Invocation
[docs] def EncSerializer(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Uint8Flags, o + self._tab.Pos)
return 0
# Invocation
[docs] def EncKey(self, j):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
if o != 0:
a = self._tab.Vector(o)
return self._tab.Get(flatbuffers.number_types.Uint8Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 1))
return 0
# Invocation
[docs] def EncKeyAsNumpy(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
if o != 0:
return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Uint8Flags, o)
return 0
# Invocation
[docs] def EncKeyLength(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
if o != 0:
return self._tab.VectorLen(o)
return 0
# Invocation
[docs] def EncKeyIsNone(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
return o == 0
# Invocation
[docs] def Procedure(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
if o != 0:
return self._tab.String(o + self._tab.Pos)
return None
# Invocation
[docs] def Timeout(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
return 0
# Invocation
[docs] def ReceiveProgress(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
if o != 0:
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
return False
# Invocation
[docs] def TransactionHash(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
if o != 0:
return self._tab.String(o + self._tab.Pos)
return None
# Invocation
[docs] def Caller(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(24))
if o != 0:
return self._tab.Get(flatbuffers.number_types.Uint64Flags, o + self._tab.Pos)
return 0
# Invocation
[docs] def CallerAuthid(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(26))
if o != 0:
return self._tab.String(o + self._tab.Pos)
return None
# Invocation
[docs] def CallerAuthrole(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(28))
if o != 0:
return self._tab.String(o + self._tab.Pos)
return None
# Invocation
[docs] def ForwardFor(self, j):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(30))
if o != 0:
x = self._tab.Vector(o)
x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 8
from wamp.proto.Principal import Principal
obj = Principal()
obj.Init(self._tab.Bytes, x)
return obj
return None
# Invocation
[docs] def ForwardForLength(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(30))
if o != 0:
return self._tab.VectorLen(o)
return 0
# Invocation
[docs] def ForwardForIsNone(self):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(30))
return o == 0
[docs]def InvocationStart(builder): builder.StartObject(14)
[docs]def Start(builder):
return InvocationStart(builder)
[docs]def InvocationAddRequest(builder, request): builder.PrependUint64Slot(0, request, 0)
[docs]def AddRequest(builder, request):
return InvocationAddRequest(builder, request)
[docs]def InvocationAddRegistration(builder, registration): builder.PrependUint64Slot(1, registration, 0)
[docs]def AddRegistration(builder, registration):
return InvocationAddRegistration(builder, registration)
[docs]def InvocationAddPayload(builder, payload): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(payload), 0)
[docs]def AddPayload(builder, payload):
return InvocationAddPayload(builder, payload)
[docs]def InvocationStartPayloadVector(builder, numElems): return builder.StartVector(1, numElems, 1)
[docs]def StartPayloadVector(builder, numElems):
return InvocationStartPayloadVector(builder, numElems)
[docs]def InvocationAddEncAlgo(builder, encAlgo): builder.PrependUint8Slot(3, encAlgo, 0)
[docs]def AddEncAlgo(builder, encAlgo):
return InvocationAddEncAlgo(builder, encAlgo)
[docs]def InvocationAddEncSerializer(builder, encSerializer): builder.PrependUint8Slot(4, encSerializer, 0)
[docs]def AddEncSerializer(builder, encSerializer):
return InvocationAddEncSerializer(builder, encSerializer)
[docs]def InvocationAddEncKey(builder, encKey): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(encKey), 0)
[docs]def AddEncKey(builder, encKey):
return InvocationAddEncKey(builder, encKey)
[docs]def InvocationStartEncKeyVector(builder, numElems): return builder.StartVector(1, numElems, 1)
[docs]def StartEncKeyVector(builder, numElems):
return InvocationStartEncKeyVector(builder, numElems)
[docs]def InvocationAddProcedure(builder, procedure): builder.PrependUOffsetTRelativeSlot(6, flatbuffers.number_types.UOffsetTFlags.py_type(procedure), 0)
[docs]def AddProcedure(builder, procedure):
return InvocationAddProcedure(builder, procedure)
[docs]def InvocationAddTimeout(builder, timeout): builder.PrependUint32Slot(7, timeout, 0)
[docs]def AddTimeout(builder, timeout):
return InvocationAddTimeout(builder, timeout)
[docs]def InvocationAddReceiveProgress(builder, receiveProgress): builder.PrependBoolSlot(8, receiveProgress, 0)
[docs]def AddReceiveProgress(builder, receiveProgress):
return InvocationAddReceiveProgress(builder, receiveProgress)
[docs]def InvocationAddTransactionHash(builder, transactionHash): builder.PrependUOffsetTRelativeSlot(9, flatbuffers.number_types.UOffsetTFlags.py_type(transactionHash), 0)
[docs]def AddTransactionHash(builder, transactionHash):
return InvocationAddTransactionHash(builder, transactionHash)
[docs]def InvocationAddCaller(builder, caller): builder.PrependUint64Slot(10, caller, 0)
[docs]def AddCaller(builder, caller):
return InvocationAddCaller(builder, caller)
[docs]def InvocationAddCallerAuthid(builder, callerAuthid): builder.PrependUOffsetTRelativeSlot(11, flatbuffers.number_types.UOffsetTFlags.py_type(callerAuthid), 0)
[docs]def AddCallerAuthid(builder, callerAuthid):
return InvocationAddCallerAuthid(builder, callerAuthid)
[docs]def InvocationAddCallerAuthrole(builder, callerAuthrole): builder.PrependUOffsetTRelativeSlot(12, flatbuffers.number_types.UOffsetTFlags.py_type(callerAuthrole), 0)
[docs]def AddCallerAuthrole(builder, callerAuthrole):
return InvocationAddCallerAuthrole(builder, callerAuthrole)
[docs]def InvocationAddForwardFor(builder, forwardFor): builder.PrependUOffsetTRelativeSlot(13, flatbuffers.number_types.UOffsetTFlags.py_type(forwardFor), 0)
[docs]def AddForwardFor(builder, forwardFor):
return InvocationAddForwardFor(builder, forwardFor)
[docs]def InvocationStartForwardForVector(builder, numElems): return builder.StartVector(8, numElems, 8)
[docs]def StartForwardForVector(builder, numElems):
return InvocationStartForwardForVector(builder, numElems)
[docs]def InvocationEnd(builder): return builder.EndObject()
[docs]def End(builder):
return InvocationEnd(builder)