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

# automatically generated by the FlatBuffers compiler, do not modify

# namespace: proto

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

[docs]class CallerFeatures(object): __slots__ = ['_tab']
[docs] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = CallerFeatures() x.Init(buf, n + offset) return x
[docs] @classmethod def GetRootAsCallerFeatures(cls, buf, offset=0): """This method is deprecated. Please switch to GetRootAs.""" return cls.GetRootAs(buf, offset)
# CallerFeatures
[docs] def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos)
# CallerFeatures
[docs] def CallerIdentification(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) if o != 0: return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False
# CallerFeatures
[docs] def CallTimeout(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) if o != 0: return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False
# CallerFeatures
[docs] def CallCanceling(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) if o != 0: return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False
# CallerFeatures
[docs] def ProgressiveCallResults(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) if o != 0: return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False
# CallerFeatures
[docs] def PayloadTransparency(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
# CallerFeatures
[docs] def PayloadEncryptionCryptobox(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) if o != 0: return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False
[docs]def CallerFeaturesStart(builder): builder.StartObject(6)
[docs]def Start(builder): return CallerFeaturesStart(builder)
[docs]def CallerFeaturesAddCallerIdentification(builder, callerIdentification): builder.PrependBoolSlot(0, callerIdentification, 0)
[docs]def AddCallerIdentification(builder, callerIdentification): return CallerFeaturesAddCallerIdentification(builder, callerIdentification)
[docs]def CallerFeaturesAddCallTimeout(builder, callTimeout): builder.PrependBoolSlot(1, callTimeout, 0)
[docs]def AddCallTimeout(builder, callTimeout): return CallerFeaturesAddCallTimeout(builder, callTimeout)
[docs]def CallerFeaturesAddCallCanceling(builder, callCanceling): builder.PrependBoolSlot(2, callCanceling, 0)
[docs]def AddCallCanceling(builder, callCanceling): return CallerFeaturesAddCallCanceling(builder, callCanceling)
[docs]def CallerFeaturesAddProgressiveCallResults(builder, progressiveCallResults): builder.PrependBoolSlot(3, progressiveCallResults, 0)
[docs]def AddProgressiveCallResults(builder, progressiveCallResults): return CallerFeaturesAddProgressiveCallResults(builder, progressiveCallResults)
[docs]def CallerFeaturesAddPayloadTransparency(builder, payloadTransparency): builder.PrependBoolSlot(4, payloadTransparency, 0)
[docs]def AddPayloadTransparency(builder, payloadTransparency): return CallerFeaturesAddPayloadTransparency(builder, payloadTransparency)
[docs]def CallerFeaturesAddPayloadEncryptionCryptobox(builder, payloadEncryptionCryptobox): builder.PrependBoolSlot(5, payloadEncryptionCryptobox, 0)
[docs]def AddPayloadEncryptionCryptobox(builder, payloadEncryptionCryptobox): return CallerFeaturesAddPayloadEncryptionCryptobox(builder, payloadEncryptionCryptobox)
[docs]def CallerFeaturesEnd(builder): return builder.EndObject()
[docs]def End(builder): return CallerFeaturesEnd(builder)