text: # This Python file uses the following encoding: utf-8
  """autogenerated by genpy from test/field_get_stringRequest.msg. Do not edit."""
  import sys
  python3 = True if sys.hexversion > 0x03000000 else False
  import genpy
  import struct
  
  
  class field_get_stringRequest(genpy.Message):
    _md5sum = "828947932ebb9e813d3ef918f20f0d81"
    _type = "test/field_get_stringRequest"
    _has_header = False #flag to mark the presence of a Header object
    _full_text = """uint64 field
  int32 index
  """
    __slots__ = ['field','index']
    _slot_types = ['uint64','int32']
  
    def __init__(self, *args, **kwds):
      """
      Constructor. Any message fields that are implicitly/explicitly
      set to None will be assigned a default value. The recommend
      use is keyword arguments as this is more robust to future message
      changes.  You cannot mix in-order arguments and keyword arguments.
  
      The available fields are:
         field,index
  
      :param args: complete set of field values, in .msg order
      :param kwds: use keyword arguments corresponding to message field names
      to set specific fields.
      """
      if args or kwds:
        super(field_get_stringRequest, self).__init__(*args, **kwds)
        #message fields cannot be None, assign default values for those that are
        if self.field is None:
          self.field = 0
        if self.index is None:
          self.index = 0
      else:
        self.field = 0
        self.index = 0
  
    def _get_types(self):
      """
      internal API method
      """
      return self._slot_types
  
    def serialize(self, buff):
      """
      serialize message into buffer
      :param buff: buffer, ``StringIO``
      """
      try:
        _x = self
        buff.write(_get_struct_Qi().pack(_x.field, _x.index))
      except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
      except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
  
    def deserialize(self, str):
      """
      unpack serialized message in str into this message instance
      :param str: byte array of serialized message, ``str``
      """
      try:
        end = 0
        _x = self
        start = end
        end += 12
        (_x.field, _x.index,) = _get_struct_Qi().unpack(str[start:end])
        return self
      except struct.error as e:
        raise genpy.DeserializationError(e) #most likely buffer underfill
  
  
    def serialize_numpy(self, buff, numpy):
      """
      serialize message with numpy array types into buffer
      :param buff: buffer, ``StringIO``
      :param numpy: numpy python module
      """
      try:
        _x = self
        buff.write(_get_struct_Qi().pack(_x.field, _x.index))
      except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
      except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
  
    def deserialize_numpy(self, str, numpy):
      """
      unpack serialized message in str into this message instance using numpy for array types
      :param str: byte array of serialized message, ``str``
      :param numpy: numpy python module
      """
      try:
        end = 0
        _x = self
        start = end
        end += 12
        (_x.field, _x.index,) = _get_struct_Qi().unpack(str[start:end])
        return self
      except struct.error as e:
        raise genpy.DeserializationError(e) #most likely buffer underfill
  
  _struct_I = genpy.struct_I
  def _get_struct_I():
      global _struct_I
      return _struct_I
  _struct_Qi = None
  def _get_struct_Qi():
      global _struct_Qi
      if _struct_Qi is None:
          _struct_Qi = struct.Struct("<Qi")
      return _struct_Qi
  # This Python file uses the following encoding: utf-8
  """autogenerated by genpy from test/field_get_stringResponse.msg. Do not edit."""
  import sys
  python3 = True if sys.hexversion > 0x03000000 else False
  import genpy
  import struct
  
  
  class field_get_stringResponse(genpy.Message):
    _md5sum = "64e58419496c7248b4ef25731f88b8c3"
    _type = "test/field_get_stringResponse"
    _has_header = False #flag to mark the presence of a Header object
    _full_text = """string value
  
  """
    __slots__ = ['value']
    _slot_types = ['string']
  
    def __init__(self, *args, **kwds):
      """
      Constructor. Any message fields that are implicitly/explicitly
      set to None will be assigned a default value. The recommend
      use is keyword arguments as this is more robust to future message
      changes.  You cannot mix in-order arguments and keyword arguments.
  
      The available fields are:
         value
  
      :param args: complete set of field values, in .msg order
      :param kwds: use keyword arguments corresponding to message field names
      to set specific fields.
      """
      if args or kwds:
        super(field_get_stringResponse, self).__init__(*args, **kwds)
        #message fields cannot be None, assign default values for those that are
        if self.value is None:
          self.value = ''
      else:
        self.value = ''
  
    def _get_types(self):
      """
      internal API method
      """
      return self._slot_types
  
    def serialize(self, buff):
      """
      serialize message into buffer
      :param buff: buffer, ``StringIO``
      """
      try:
        _x = self.value
        length = len(_x)
        if python3 or type(_x) == unicode:
          _x = _x.encode('utf-8')
          length = len(_x)
        buff.write(struct.pack('<I%ss'%length, length, _x))
      except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
      except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
  
    def deserialize(self, str):
      """
      unpack serialized message in str into this message instance
      :param str: byte array of serialized message, ``str``
      """
      try:
        end = 0
        start = end
        end += 4
        (length,) = _struct_I.unpack(str[start:end])
        start = end
        end += length
        if python3:
          self.value = str[start:end].decode('utf-8')
        else:
          self.value = str[start:end]
        return self
      except struct.error as e:
        raise genpy.DeserializationError(e) #most likely buffer underfill
  
  
    def serialize_numpy(self, buff, numpy):
      """
      serialize message with numpy array types into buffer
      :param buff: buffer, ``StringIO``
      :param numpy: numpy python module
      """
      try:
        _x = self.value
        length = len(_x)
        if python3 or type(_x) == unicode:
          _x = _x.encode('utf-8')
          length = len(_x)
        buff.write(struct.pack('<I%ss'%length, length, _x))
      except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
      except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
  
    def deserialize_numpy(self, str, numpy):
      """
      unpack serialized message in str into this message instance using numpy for array types
      :param str: byte array of serialized message, ``str``
      :param numpy: numpy python module
      """
      try:
        end = 0
        start = end
        end += 4
        (length,) = _struct_I.unpack(str[start:end])
        start = end
        end += length
        if python3:
          self.value = str[start:end].decode('utf-8')
        else:
          self.value = str[start:end]
        return self
      except struct.error as e:
        raise genpy.DeserializationError(e) #most likely buffer underfill
  
  _struct_I = genpy.struct_I
  def _get_struct_I():
      global _struct_I
      return _struct_I
  class field_get_string(object):
    _type          = 'test/field_get_string'
    _md5sum = 'a1926692206ecc55a7a2d2564a578c89'
    _request_class  = field_get_stringRequest
    _response_class = field_get_stringResponse
  