text: # automatically generated by the FlatBuffers compiler, do not modify
  
  # namespace: BaBLE
  
  import flatbuffers
  
  class Service(object):
      __slots__ = ['_tab']
  
      @classmethod
      def GetRootAsService(cls, buf, offset):
          n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
          x = Service()
          x.Init(buf, n + offset)
          return x
  
      # Service
      def Init(self, buf, pos):
          self._tab = flatbuffers.table.Table(buf, pos)
  
      # Service
      def Handle(self):
          o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
          if o != 0:
              return self._tab.Get(flatbuffers.number_types.Uint16Flags, o + self._tab.Pos)
          return 0
  
      # Service
      def GroupEndHandle(self):
          o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
          if o != 0:
              return self._tab.Get(flatbuffers.number_types.Uint16Flags, o + self._tab.Pos)
          return 0
  
      # Service
      def Uuid(self):
          o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
          if o != 0:
              return self._tab.String(o + self._tab.Pos)
          return None
  
  def ServiceStart(builder): builder.StartObject(3)
  def ServiceAddHandle(builder, handle): builder.PrependUint16Slot(0, handle, 0)
  def ServiceAddGroupEndHandle(builder, groupEndHandle): builder.PrependUint16Slot(1, groupEndHandle, 0)
  def ServiceAddUuid(builder, uuid): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(uuid), 0)
  def ServiceEnd(builder): return builder.EndObject()
  