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

# automatically generated by the FlatBuffers compiler, do not modify

# namespace: proto

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

[docs]class PublisherFeatures(object): __slots__ = ['_tab']
[docs] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = PublisherFeatures() x.Init(buf, n + offset) return x
[docs] @classmethod def GetRootAsPublisherFeatures(cls, buf, offset=0): """This method is deprecated. Please switch to GetRootAs.""" return cls.GetRootAs(buf, offset)
# PublisherFeatures
[docs] def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos)
# PublisherFeatures
[docs] def PublisherIdentification(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
# PublisherFeatures
[docs] def PublisherExclusion(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
# PublisherFeatures
[docs] def SubscriberBlackwhiteListing(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
# PublisherFeatures
[docs] def AcknowledgeEventReceived(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
# PublisherFeatures
[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
# PublisherFeatures
[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 PublisherFeaturesStart(builder): builder.StartObject(6)
[docs]def Start(builder): return PublisherFeaturesStart(builder)
[docs]def PublisherFeaturesAddPublisherIdentification(builder, publisherIdentification): builder.PrependBoolSlot(0, publisherIdentification, 0)
[docs]def AddPublisherIdentification(builder, publisherIdentification): return PublisherFeaturesAddPublisherIdentification(builder, publisherIdentification)
[docs]def PublisherFeaturesAddPublisherExclusion(builder, publisherExclusion): builder.PrependBoolSlot(1, publisherExclusion, 0)
[docs]def AddPublisherExclusion(builder, publisherExclusion): return PublisherFeaturesAddPublisherExclusion(builder, publisherExclusion)
[docs]def PublisherFeaturesAddSubscriberBlackwhiteListing(builder, subscriberBlackwhiteListing): builder.PrependBoolSlot(2, subscriberBlackwhiteListing, 0)
[docs]def AddSubscriberBlackwhiteListing(builder, subscriberBlackwhiteListing): return PublisherFeaturesAddSubscriberBlackwhiteListing(builder, subscriberBlackwhiteListing)
[docs]def PublisherFeaturesAddAcknowledgeEventReceived(builder, acknowledgeEventReceived): builder.PrependBoolSlot(3, acknowledgeEventReceived, 0)
[docs]def AddAcknowledgeEventReceived(builder, acknowledgeEventReceived): return PublisherFeaturesAddAcknowledgeEventReceived(builder, acknowledgeEventReceived)
[docs]def PublisherFeaturesAddPayloadTransparency(builder, payloadTransparency): builder.PrependBoolSlot(4, payloadTransparency, 0)
[docs]def AddPayloadTransparency(builder, payloadTransparency): return PublisherFeaturesAddPayloadTransparency(builder, payloadTransparency)
[docs]def PublisherFeaturesAddPayloadEncryptionCryptobox(builder, payloadEncryptionCryptobox): builder.PrependBoolSlot(5, payloadEncryptionCryptobox, 0)
[docs]def AddPayloadEncryptionCryptobox(builder, payloadEncryptionCryptobox): return PublisherFeaturesAddPayloadEncryptionCryptobox(builder, payloadEncryptionCryptobox)
[docs]def PublisherFeaturesEnd(builder): return builder.EndObject()
[docs]def End(builder): return PublisherFeaturesEnd(builder)