# generated from rosidl_generator_py/resource/_idl.py.em
# with input from test_msgs:srv/Arrays.idl
# generated code does not contain a copyright notice

# This is being done at the module level and not on the instance level to avoid looking
# for the same variable multiple times on each instance. This variable is not supposed to
# change during runtime so it makes sense to only look for it once.
from os import getenv

ros_python_check_fields = getenv('ROS_PYTHON_CHECK_FIELDS', default='')


# Import statements for member types

import builtins  # noqa: E402, I100

import math  # noqa: E402, I100

# Member 'char_values'
# Member 'float32_values'
# Member 'float64_values'
# Member 'int8_values'
# Member 'uint8_values'
# Member 'int16_values'
# Member 'uint16_values'
# Member 'int32_values'
# Member 'uint32_values'
# Member 'int64_values'
# Member 'uint64_values'
# Member 'char_values_default'
# Member 'float32_values_default'
# Member 'float64_values_default'
# Member 'int8_values_default'
# Member 'uint8_values_default'
# Member 'int16_values_default'
# Member 'uint16_values_default'
# Member 'int32_values_default'
# Member 'uint32_values_default'
# Member 'int64_values_default'
# Member 'uint64_values_default'
import numpy  # noqa: E402, I100

import rosidl_parser.definition  # noqa: E402, I100


class Metaclass_Arrays_Request(type):
    """Metaclass of message 'Arrays_Request'."""

    _CREATE_ROS_MESSAGE = None
    _CONVERT_FROM_PY = None
    _CONVERT_TO_PY = None
    _DESTROY_ROS_MESSAGE = None
    _TYPE_SUPPORT = None

    __constants = {
    }

    @classmethod
    def __import_type_support__(cls):
        try:
            from rosidl_generator_py import import_type_support
            module = import_type_support('test_msgs')
        except ImportError:
            import logging
            import traceback
            logger = logging.getLogger(
                'test_msgs.srv.Arrays_Request')
            logger.debug(
                'Failed to import needed modules for type support:\n' +
                traceback.format_exc())
        else:
            cls._CREATE_ROS_MESSAGE = module.create_ros_message_msg__srv__arrays__request
            cls._CONVERT_FROM_PY = module.convert_from_py_msg__srv__arrays__request
            cls._CONVERT_TO_PY = module.convert_to_py_msg__srv__arrays__request
            cls._TYPE_SUPPORT = module.type_support_msg__srv__arrays__request
            cls._DESTROY_ROS_MESSAGE = module.destroy_ros_message_msg__srv__arrays__request

            from test_msgs.msg import BasicTypes
            if BasicTypes.__class__._TYPE_SUPPORT is None:
                BasicTypes.__class__.__import_type_support__()

            from test_msgs.msg import Constants
            if Constants.__class__._TYPE_SUPPORT is None:
                Constants.__class__.__import_type_support__()

            from test_msgs.msg import Defaults
            if Defaults.__class__._TYPE_SUPPORT is None:
                Defaults.__class__.__import_type_support__()

    @classmethod
    def __prepare__(cls, name, bases, **kwargs):
        # list constant names here so that they appear in the help text of
        # the message class under "Data and other attributes defined here:"
        # as well as populate each message instance
        return {
            'BOOL_VALUES_DEFAULT__DEFAULT': [False, True, False],
            'BYTE_VALUES_DEFAULT__DEFAULT': [b'\x00', b'\x01', b'\xff'],
            'CHAR_VALUES_DEFAULT__DEFAULT': numpy.array((0, 1, 127, ), dtype=numpy.uint8),
            'FLOAT32_VALUES_DEFAULT__DEFAULT': numpy.array((1.125, 0.0, -1.125, ), dtype=numpy.float32),
            'FLOAT64_VALUES_DEFAULT__DEFAULT': numpy.array((3.1415, 0.0, -3.1415, ), dtype=numpy.float64),
            'INT8_VALUES_DEFAULT__DEFAULT': numpy.array((0, 127, -128, ), dtype=numpy.int8),
            'UINT8_VALUES_DEFAULT__DEFAULT': numpy.array((0, 1, 255, ), dtype=numpy.uint8),
            'INT16_VALUES_DEFAULT__DEFAULT': numpy.array((0, 32767, -32768, ), dtype=numpy.int16),
            'UINT16_VALUES_DEFAULT__DEFAULT': numpy.array((0, 1, 65535, ), dtype=numpy.uint16),
            'INT32_VALUES_DEFAULT__DEFAULT': numpy.array((0, 2147483647, -2147483648, ), dtype=numpy.int32),
            'UINT32_VALUES_DEFAULT__DEFAULT': numpy.array((0, 1, 4294967295, ), dtype=numpy.uint32),
            'INT64_VALUES_DEFAULT__DEFAULT': numpy.array((0, 9223372036854775807, -9223372036854775808, ), dtype=numpy.int64),
            'UINT64_VALUES_DEFAULT__DEFAULT': numpy.array((0, 1, 18446744073709551615, ), dtype=numpy.uint64),
            'STRING_VALUES_DEFAULT__DEFAULT': ['', 'max value', 'min value'],
        }

    @property
    def BOOL_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'bool_values_default'."""
        return [False, True, False]

    @property
    def BYTE_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'byte_values_default'."""
        return [b'\x00', b'\x01', b'\xff']

    @property
    def CHAR_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'char_values_default'."""
        return numpy.array((0, 1, 127, ), dtype=numpy.uint8)

    @property
    def FLOAT32_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'float32_values_default'."""
        return numpy.array((1.125, 0.0, -1.125, ), dtype=numpy.float32)

    @property
    def FLOAT64_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'float64_values_default'."""
        return numpy.array((3.1415, 0.0, -3.1415, ), dtype=numpy.float64)

    @property
    def INT8_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'int8_values_default'."""
        return numpy.array((0, 127, -128, ), dtype=numpy.int8)

    @property
    def UINT8_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'uint8_values_default'."""
        return numpy.array((0, 1, 255, ), dtype=numpy.uint8)

    @property
    def INT16_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'int16_values_default'."""
        return numpy.array((0, 32767, -32768, ), dtype=numpy.int16)

    @property
    def UINT16_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'uint16_values_default'."""
        return numpy.array((0, 1, 65535, ), dtype=numpy.uint16)

    @property
    def INT32_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'int32_values_default'."""
        return numpy.array((0, 2147483647, -2147483648, ), dtype=numpy.int32)

    @property
    def UINT32_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'uint32_values_default'."""
        return numpy.array((0, 1, 4294967295, ), dtype=numpy.uint32)

    @property
    def INT64_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'int64_values_default'."""
        return numpy.array((0, 9223372036854775807, -9223372036854775808, ), dtype=numpy.int64)

    @property
    def UINT64_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'uint64_values_default'."""
        return numpy.array((0, 1, 18446744073709551615, ), dtype=numpy.uint64)

    @property
    def STRING_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'string_values_default'."""
        return ['', 'max value', 'min value']


class Arrays_Request(metaclass=Metaclass_Arrays_Request):
    """Message class 'Arrays_Request'."""

    __slots__ = [
        '_bool_values',
        '_byte_values',
        '_char_values',
        '_float32_values',
        '_float64_values',
        '_int8_values',
        '_uint8_values',
        '_int16_values',
        '_uint16_values',
        '_int32_values',
        '_uint32_values',
        '_int64_values',
        '_uint64_values',
        '_string_values',
        '_basic_types_values',
        '_constants_values',
        '_defaults_values',
        '_bool_values_default',
        '_byte_values_default',
        '_char_values_default',
        '_float32_values_default',
        '_float64_values_default',
        '_int8_values_default',
        '_uint8_values_default',
        '_int16_values_default',
        '_uint16_values_default',
        '_int32_values_default',
        '_uint32_values_default',
        '_int64_values_default',
        '_uint64_values_default',
        '_string_values_default',
        '_check_fields',
    ]

    _fields_and_field_types = {
        'bool_values': 'boolean[3]',
        'byte_values': 'octet[3]',
        'char_values': 'uint8[3]',
        'float32_values': 'float[3]',
        'float64_values': 'double[3]',
        'int8_values': 'int8[3]',
        'uint8_values': 'uint8[3]',
        'int16_values': 'int16[3]',
        'uint16_values': 'uint16[3]',
        'int32_values': 'int32[3]',
        'uint32_values': 'uint32[3]',
        'int64_values': 'int64[3]',
        'uint64_values': 'uint64[3]',
        'string_values': 'string[3]',
        'basic_types_values': 'test_msgs/BasicTypes[3]',
        'constants_values': 'test_msgs/Constants[3]',
        'defaults_values': 'test_msgs/Defaults[3]',
        'bool_values_default': 'boolean[3]',
        'byte_values_default': 'octet[3]',
        'char_values_default': 'uint8[3]',
        'float32_values_default': 'float[3]',
        'float64_values_default': 'double[3]',
        'int8_values_default': 'int8[3]',
        'uint8_values_default': 'uint8[3]',
        'int16_values_default': 'int16[3]',
        'uint16_values_default': 'uint16[3]',
        'int32_values_default': 'int32[3]',
        'uint32_values_default': 'uint32[3]',
        'int64_values_default': 'int64[3]',
        'uint64_values_default': 'uint64[3]',
        'string_values_default': 'string[3]',
    }

    # This attribute is used to store an rosidl_parser.definition variable
    # related to the data type of each of the components the message.
    SLOT_TYPES = (
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('boolean'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('octet'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('float'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('double'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int16'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint16'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int32'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint32'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int64'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint64'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.UnboundedString(), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.NamespacedType(['test_msgs', 'msg'], 'BasicTypes'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.NamespacedType(['test_msgs', 'msg'], 'Constants'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.NamespacedType(['test_msgs', 'msg'], 'Defaults'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('boolean'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('octet'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('float'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('double'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int16'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint16'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int32'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint32'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int64'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint64'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.UnboundedString(), 3),  # noqa: E501
    )

    def __init__(self, **kwargs):
        if 'check_fields' in kwargs:
            self._check_fields = kwargs['check_fields']
        else:
            self._check_fields = ros_python_check_fields == '1'
        if self._check_fields:
            assert all('_' + key in self.__slots__ for key in kwargs.keys()), \
                'Invalid arguments passed to constructor: %s' % \
                ', '.join(sorted(k for k in kwargs.keys() if '_' + k not in self.__slots__))
        self.bool_values = kwargs.get(
            'bool_values',
            [bool() for x in range(3)]
        )
        self.byte_values = kwargs.get(
            'byte_values',
            [bytes([0]) for x in range(3)]
        )
        if 'char_values' not in kwargs:
            self.char_values = numpy.zeros(3, dtype=numpy.uint8)
        else:
            self.char_values = numpy.array(kwargs.get('char_values'), dtype=numpy.uint8)
            assert self.char_values.shape == (3, )
        if 'float32_values' not in kwargs:
            self.float32_values = numpy.zeros(3, dtype=numpy.float32)
        else:
            self.float32_values = numpy.array(kwargs.get('float32_values'), dtype=numpy.float32)
            assert self.float32_values.shape == (3, )
        if 'float64_values' not in kwargs:
            self.float64_values = numpy.zeros(3, dtype=numpy.float64)
        else:
            self.float64_values = numpy.array(kwargs.get('float64_values'), dtype=numpy.float64)
            assert self.float64_values.shape == (3, )
        if 'int8_values' not in kwargs:
            self.int8_values = numpy.zeros(3, dtype=numpy.int8)
        else:
            self.int8_values = numpy.array(kwargs.get('int8_values'), dtype=numpy.int8)
            assert self.int8_values.shape == (3, )
        if 'uint8_values' not in kwargs:
            self.uint8_values = numpy.zeros(3, dtype=numpy.uint8)
        else:
            self.uint8_values = numpy.array(kwargs.get('uint8_values'), dtype=numpy.uint8)
            assert self.uint8_values.shape == (3, )
        if 'int16_values' not in kwargs:
            self.int16_values = numpy.zeros(3, dtype=numpy.int16)
        else:
            self.int16_values = numpy.array(kwargs.get('int16_values'), dtype=numpy.int16)
            assert self.int16_values.shape == (3, )
        if 'uint16_values' not in kwargs:
            self.uint16_values = numpy.zeros(3, dtype=numpy.uint16)
        else:
            self.uint16_values = numpy.array(kwargs.get('uint16_values'), dtype=numpy.uint16)
            assert self.uint16_values.shape == (3, )
        if 'int32_values' not in kwargs:
            self.int32_values = numpy.zeros(3, dtype=numpy.int32)
        else:
            self.int32_values = numpy.array(kwargs.get('int32_values'), dtype=numpy.int32)
            assert self.int32_values.shape == (3, )
        if 'uint32_values' not in kwargs:
            self.uint32_values = numpy.zeros(3, dtype=numpy.uint32)
        else:
            self.uint32_values = numpy.array(kwargs.get('uint32_values'), dtype=numpy.uint32)
            assert self.uint32_values.shape == (3, )
        if 'int64_values' not in kwargs:
            self.int64_values = numpy.zeros(3, dtype=numpy.int64)
        else:
            self.int64_values = numpy.array(kwargs.get('int64_values'), dtype=numpy.int64)
            assert self.int64_values.shape == (3, )
        if 'uint64_values' not in kwargs:
            self.uint64_values = numpy.zeros(3, dtype=numpy.uint64)
        else:
            self.uint64_values = numpy.array(kwargs.get('uint64_values'), dtype=numpy.uint64)
            assert self.uint64_values.shape == (3, )
        self.string_values = kwargs.get(
            'string_values',
            [str() for x in range(3)]
        )
        from test_msgs.msg import BasicTypes
        self.basic_types_values = kwargs.get(
            'basic_types_values',
            [BasicTypes() for x in range(3)]
        )
        from test_msgs.msg import Constants
        self.constants_values = kwargs.get(
            'constants_values',
            [Constants() for x in range(3)]
        )
        from test_msgs.msg import Defaults
        self.defaults_values = kwargs.get(
            'defaults_values',
            [Defaults() for x in range(3)]
        )
        self.bool_values_default = kwargs.get(
            'bool_values_default', Arrays_Request.BOOL_VALUES_DEFAULT__DEFAULT)
        self.byte_values_default = kwargs.get(
            'byte_values_default', Arrays_Request.BYTE_VALUES_DEFAULT__DEFAULT)
        self.char_values_default = kwargs.get(
            'char_values_default', Arrays_Request.CHAR_VALUES_DEFAULT__DEFAULT)
        self.float32_values_default = kwargs.get(
            'float32_values_default', Arrays_Request.FLOAT32_VALUES_DEFAULT__DEFAULT)
        self.float64_values_default = kwargs.get(
            'float64_values_default', Arrays_Request.FLOAT64_VALUES_DEFAULT__DEFAULT)
        self.int8_values_default = kwargs.get(
            'int8_values_default', Arrays_Request.INT8_VALUES_DEFAULT__DEFAULT)
        self.uint8_values_default = kwargs.get(
            'uint8_values_default', Arrays_Request.UINT8_VALUES_DEFAULT__DEFAULT)
        self.int16_values_default = kwargs.get(
            'int16_values_default', Arrays_Request.INT16_VALUES_DEFAULT__DEFAULT)
        self.uint16_values_default = kwargs.get(
            'uint16_values_default', Arrays_Request.UINT16_VALUES_DEFAULT__DEFAULT)
        self.int32_values_default = kwargs.get(
            'int32_values_default', Arrays_Request.INT32_VALUES_DEFAULT__DEFAULT)
        self.uint32_values_default = kwargs.get(
            'uint32_values_default', Arrays_Request.UINT32_VALUES_DEFAULT__DEFAULT)
        self.int64_values_default = kwargs.get(
            'int64_values_default', Arrays_Request.INT64_VALUES_DEFAULT__DEFAULT)
        self.uint64_values_default = kwargs.get(
            'uint64_values_default', Arrays_Request.UINT64_VALUES_DEFAULT__DEFAULT)
        self.string_values_default = kwargs.get(
            'string_values_default', Arrays_Request.STRING_VALUES_DEFAULT__DEFAULT)

    def __repr__(self):
        typename = self.__class__.__module__.split('.')
        typename.pop()
        typename.append(self.__class__.__name__)
        args = []
        for s, t in zip(self.get_fields_and_field_types().keys(), self.SLOT_TYPES):
            field = getattr(self, s)
            fieldstr = repr(field)
            # We use Python array type for fields that can be directly stored
            # in them, and "normal" sequences for everything else.  If it is
            # a type that we store in an array, strip off the 'array' portion.
            if (
                isinstance(t, rosidl_parser.definition.AbstractSequence) and
                isinstance(t.value_type, rosidl_parser.definition.BasicType) and
                t.value_type.typename in ['float', 'double', 'int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', 'uint64']
            ):
                if len(field) == 0:
                    fieldstr = '[]'
                else:
                    if self._check_fields:
                        assert fieldstr.startswith('array(')
                    prefix = "array('X', "
                    suffix = ')'
                    fieldstr = fieldstr[len(prefix):-len(suffix)]
            args.append(s + '=' + fieldstr)
        return '%s(%s)' % ('.'.join(typename), ', '.join(args))

    def __eq__(self, other):
        if not isinstance(other, self.__class__):
            return False
        if self.bool_values != other.bool_values:
            return False
        if self.byte_values != other.byte_values:
            return False
        if all(self.char_values != other.char_values):
            return False
        if all(self.float32_values != other.float32_values):
            return False
        if all(self.float64_values != other.float64_values):
            return False
        if all(self.int8_values != other.int8_values):
            return False
        if all(self.uint8_values != other.uint8_values):
            return False
        if all(self.int16_values != other.int16_values):
            return False
        if all(self.uint16_values != other.uint16_values):
            return False
        if all(self.int32_values != other.int32_values):
            return False
        if all(self.uint32_values != other.uint32_values):
            return False
        if all(self.int64_values != other.int64_values):
            return False
        if all(self.uint64_values != other.uint64_values):
            return False
        if self.string_values != other.string_values:
            return False
        if self.basic_types_values != other.basic_types_values:
            return False
        if self.constants_values != other.constants_values:
            return False
        if self.defaults_values != other.defaults_values:
            return False
        if self.bool_values_default != other.bool_values_default:
            return False
        if self.byte_values_default != other.byte_values_default:
            return False
        if all(self.char_values_default != other.char_values_default):
            return False
        if all(self.float32_values_default != other.float32_values_default):
            return False
        if all(self.float64_values_default != other.float64_values_default):
            return False
        if all(self.int8_values_default != other.int8_values_default):
            return False
        if all(self.uint8_values_default != other.uint8_values_default):
            return False
        if all(self.int16_values_default != other.int16_values_default):
            return False
        if all(self.uint16_values_default != other.uint16_values_default):
            return False
        if all(self.int32_values_default != other.int32_values_default):
            return False
        if all(self.uint32_values_default != other.uint32_values_default):
            return False
        if all(self.int64_values_default != other.int64_values_default):
            return False
        if all(self.uint64_values_default != other.uint64_values_default):
            return False
        if self.string_values_default != other.string_values_default:
            return False
        return True

    @classmethod
    def get_fields_and_field_types(cls):
        from copy import copy
        return copy(cls._fields_and_field_types)

    @builtins.property
    def bool_values(self):
        """Message field 'bool_values'."""
        return self._bool_values

    @bool_values.setter
    def bool_values(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, bool) for v in value) and
                 True), \
                "The 'bool_values' field must be a set or sequence with length 3 and each value of type 'bool'"
        self._bool_values = value

    @builtins.property
    def byte_values(self):
        """Message field 'byte_values'."""
        return self._byte_values

    @byte_values.setter
    def byte_values(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, bytes) for v in value) and
                 True), \
                "The 'byte_values' field must be a set or sequence with length 3 and each value of type 'bytes'"
        self._byte_values = value

    @builtins.property
    def char_values(self):
        """Message field 'char_values'."""
        return self._char_values

    @char_values.setter
    def char_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint8, \
                    "The 'char_values' numpy.ndarray() must have the dtype of 'numpy.uint8'"
                assert value.size == 3, \
                    "The 'char_values' numpy.ndarray() must have a size of 3"
                self._char_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 256 for val in value)), \
                "The 'char_values' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 255]"
        self._char_values = numpy.array(value, dtype=numpy.uint8)

    @builtins.property
    def float32_values(self):
        """Message field 'float32_values'."""
        return self._float32_values

    @float32_values.setter
    def float32_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.float32, \
                    "The 'float32_values' numpy.ndarray() must have the dtype of 'numpy.float32'"
                assert value.size == 3, \
                    "The 'float32_values' numpy.ndarray() must have a size of 3"
                self._float32_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, float) for v in value) and
                 all(not (val < -3.402823466e+38 or val > 3.402823466e+38) or math.isinf(val) for val in value)), \
                "The 'float32_values' field must be a set or sequence with length 3 and each value of type 'float' and each float in [-340282346600000016151267322115014000640.000000, 340282346600000016151267322115014000640.000000]"
        self._float32_values = numpy.array(value, dtype=numpy.float32)

    @builtins.property
    def float64_values(self):
        """Message field 'float64_values'."""
        return self._float64_values

    @float64_values.setter
    def float64_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.float64, \
                    "The 'float64_values' numpy.ndarray() must have the dtype of 'numpy.float64'"
                assert value.size == 3, \
                    "The 'float64_values' numpy.ndarray() must have a size of 3"
                self._float64_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, float) for v in value) and
                 all(not (val < -1.7976931348623157e+308 or val > 1.7976931348623157e+308) or math.isinf(val) for val in value)), \
                "The 'float64_values' field must be a set or sequence with length 3 and each value of type 'float' and each double in [-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000, 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000]"
        self._float64_values = numpy.array(value, dtype=numpy.float64)

    @builtins.property
    def int8_values(self):
        """Message field 'int8_values'."""
        return self._int8_values

    @int8_values.setter
    def int8_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int8, \
                    "The 'int8_values' numpy.ndarray() must have the dtype of 'numpy.int8'"
                assert value.size == 3, \
                    "The 'int8_values' numpy.ndarray() must have a size of 3"
                self._int8_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -128 and val < 128 for val in value)), \
                "The 'int8_values' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-128, 127]"
        self._int8_values = numpy.array(value, dtype=numpy.int8)

    @builtins.property
    def uint8_values(self):
        """Message field 'uint8_values'."""
        return self._uint8_values

    @uint8_values.setter
    def uint8_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint8, \
                    "The 'uint8_values' numpy.ndarray() must have the dtype of 'numpy.uint8'"
                assert value.size == 3, \
                    "The 'uint8_values' numpy.ndarray() must have a size of 3"
                self._uint8_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 256 for val in value)), \
                "The 'uint8_values' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 255]"
        self._uint8_values = numpy.array(value, dtype=numpy.uint8)

    @builtins.property
    def int16_values(self):
        """Message field 'int16_values'."""
        return self._int16_values

    @int16_values.setter
    def int16_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int16, \
                    "The 'int16_values' numpy.ndarray() must have the dtype of 'numpy.int16'"
                assert value.size == 3, \
                    "The 'int16_values' numpy.ndarray() must have a size of 3"
                self._int16_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -32768 and val < 32768 for val in value)), \
                "The 'int16_values' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-32768, 32767]"
        self._int16_values = numpy.array(value, dtype=numpy.int16)

    @builtins.property
    def uint16_values(self):
        """Message field 'uint16_values'."""
        return self._uint16_values

    @uint16_values.setter
    def uint16_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint16, \
                    "The 'uint16_values' numpy.ndarray() must have the dtype of 'numpy.uint16'"
                assert value.size == 3, \
                    "The 'uint16_values' numpy.ndarray() must have a size of 3"
                self._uint16_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 65536 for val in value)), \
                "The 'uint16_values' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 65535]"
        self._uint16_values = numpy.array(value, dtype=numpy.uint16)

    @builtins.property
    def int32_values(self):
        """Message field 'int32_values'."""
        return self._int32_values

    @int32_values.setter
    def int32_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int32, \
                    "The 'int32_values' numpy.ndarray() must have the dtype of 'numpy.int32'"
                assert value.size == 3, \
                    "The 'int32_values' numpy.ndarray() must have a size of 3"
                self._int32_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -2147483648 and val < 2147483648 for val in value)), \
                "The 'int32_values' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-2147483648, 2147483647]"
        self._int32_values = numpy.array(value, dtype=numpy.int32)

    @builtins.property
    def uint32_values(self):
        """Message field 'uint32_values'."""
        return self._uint32_values

    @uint32_values.setter
    def uint32_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint32, \
                    "The 'uint32_values' numpy.ndarray() must have the dtype of 'numpy.uint32'"
                assert value.size == 3, \
                    "The 'uint32_values' numpy.ndarray() must have a size of 3"
                self._uint32_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 4294967296 for val in value)), \
                "The 'uint32_values' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 4294967295]"
        self._uint32_values = numpy.array(value, dtype=numpy.uint32)

    @builtins.property
    def int64_values(self):
        """Message field 'int64_values'."""
        return self._int64_values

    @int64_values.setter
    def int64_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int64, \
                    "The 'int64_values' numpy.ndarray() must have the dtype of 'numpy.int64'"
                assert value.size == 3, \
                    "The 'int64_values' numpy.ndarray() must have a size of 3"
                self._int64_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -9223372036854775808 and val < 9223372036854775808 for val in value)), \
                "The 'int64_values' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-9223372036854775808, 9223372036854775807]"
        self._int64_values = numpy.array(value, dtype=numpy.int64)

    @builtins.property
    def uint64_values(self):
        """Message field 'uint64_values'."""
        return self._uint64_values

    @uint64_values.setter
    def uint64_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint64, \
                    "The 'uint64_values' numpy.ndarray() must have the dtype of 'numpy.uint64'"
                assert value.size == 3, \
                    "The 'uint64_values' numpy.ndarray() must have a size of 3"
                self._uint64_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 18446744073709551616 for val in value)), \
                "The 'uint64_values' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 18446744073709551615]"
        self._uint64_values = numpy.array(value, dtype=numpy.uint64)

    @builtins.property
    def string_values(self):
        """Message field 'string_values'."""
        return self._string_values

    @string_values.setter
    def string_values(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, str) for v in value) and
                 True), \
                "The 'string_values' field must be a set or sequence with length 3 and each value of type 'str'"
        self._string_values = value

    @builtins.property
    def basic_types_values(self):
        """Message field 'basic_types_values'."""
        return self._basic_types_values

    @basic_types_values.setter
    def basic_types_values(self, value):
        if self._check_fields:
            from test_msgs.msg import BasicTypes
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, BasicTypes) for v in value) and
                 True), \
                "The 'basic_types_values' field must be a set or sequence with length 3 and each value of type 'BasicTypes'"
        self._basic_types_values = value

    @builtins.property
    def constants_values(self):
        """Message field 'constants_values'."""
        return self._constants_values

    @constants_values.setter
    def constants_values(self, value):
        if self._check_fields:
            from test_msgs.msg import Constants
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, Constants) for v in value) and
                 True), \
                "The 'constants_values' field must be a set or sequence with length 3 and each value of type 'Constants'"
        self._constants_values = value

    @builtins.property
    def defaults_values(self):
        """Message field 'defaults_values'."""
        return self._defaults_values

    @defaults_values.setter
    def defaults_values(self, value):
        if self._check_fields:
            from test_msgs.msg import Defaults
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, Defaults) for v in value) and
                 True), \
                "The 'defaults_values' field must be a set or sequence with length 3 and each value of type 'Defaults'"
        self._defaults_values = value

    @builtins.property
    def bool_values_default(self):
        """Message field 'bool_values_default'."""
        return self._bool_values_default

    @bool_values_default.setter
    def bool_values_default(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, bool) for v in value) and
                 True), \
                "The 'bool_values_default' field must be a set or sequence with length 3 and each value of type 'bool'"
        self._bool_values_default = value

    @builtins.property
    def byte_values_default(self):
        """Message field 'byte_values_default'."""
        return self._byte_values_default

    @byte_values_default.setter
    def byte_values_default(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, bytes) for v in value) and
                 True), \
                "The 'byte_values_default' field must be a set or sequence with length 3 and each value of type 'bytes'"
        self._byte_values_default = value

    @builtins.property
    def char_values_default(self):
        """Message field 'char_values_default'."""
        return self._char_values_default

    @char_values_default.setter
    def char_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint8, \
                    "The 'char_values_default' numpy.ndarray() must have the dtype of 'numpy.uint8'"
                assert value.size == 3, \
                    "The 'char_values_default' numpy.ndarray() must have a size of 3"
                self._char_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 256 for val in value)), \
                "The 'char_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 255]"
        self._char_values_default = numpy.array(value, dtype=numpy.uint8)

    @builtins.property
    def float32_values_default(self):
        """Message field 'float32_values_default'."""
        return self._float32_values_default

    @float32_values_default.setter
    def float32_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.float32, \
                    "The 'float32_values_default' numpy.ndarray() must have the dtype of 'numpy.float32'"
                assert value.size == 3, \
                    "The 'float32_values_default' numpy.ndarray() must have a size of 3"
                self._float32_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, float) for v in value) and
                 all(not (val < -3.402823466e+38 or val > 3.402823466e+38) or math.isinf(val) for val in value)), \
                "The 'float32_values_default' field must be a set or sequence with length 3 and each value of type 'float' and each float in [-340282346600000016151267322115014000640.000000, 340282346600000016151267322115014000640.000000]"
        self._float32_values_default = numpy.array(value, dtype=numpy.float32)

    @builtins.property
    def float64_values_default(self):
        """Message field 'float64_values_default'."""
        return self._float64_values_default

    @float64_values_default.setter
    def float64_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.float64, \
                    "The 'float64_values_default' numpy.ndarray() must have the dtype of 'numpy.float64'"
                assert value.size == 3, \
                    "The 'float64_values_default' numpy.ndarray() must have a size of 3"
                self._float64_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, float) for v in value) and
                 all(not (val < -1.7976931348623157e+308 or val > 1.7976931348623157e+308) or math.isinf(val) for val in value)), \
                "The 'float64_values_default' field must be a set or sequence with length 3 and each value of type 'float' and each double in [-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000, 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000]"
        self._float64_values_default = numpy.array(value, dtype=numpy.float64)

    @builtins.property
    def int8_values_default(self):
        """Message field 'int8_values_default'."""
        return self._int8_values_default

    @int8_values_default.setter
    def int8_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int8, \
                    "The 'int8_values_default' numpy.ndarray() must have the dtype of 'numpy.int8'"
                assert value.size == 3, \
                    "The 'int8_values_default' numpy.ndarray() must have a size of 3"
                self._int8_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -128 and val < 128 for val in value)), \
                "The 'int8_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-128, 127]"
        self._int8_values_default = numpy.array(value, dtype=numpy.int8)

    @builtins.property
    def uint8_values_default(self):
        """Message field 'uint8_values_default'."""
        return self._uint8_values_default

    @uint8_values_default.setter
    def uint8_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint8, \
                    "The 'uint8_values_default' numpy.ndarray() must have the dtype of 'numpy.uint8'"
                assert value.size == 3, \
                    "The 'uint8_values_default' numpy.ndarray() must have a size of 3"
                self._uint8_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 256 for val in value)), \
                "The 'uint8_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 255]"
        self._uint8_values_default = numpy.array(value, dtype=numpy.uint8)

    @builtins.property
    def int16_values_default(self):
        """Message field 'int16_values_default'."""
        return self._int16_values_default

    @int16_values_default.setter
    def int16_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int16, \
                    "The 'int16_values_default' numpy.ndarray() must have the dtype of 'numpy.int16'"
                assert value.size == 3, \
                    "The 'int16_values_default' numpy.ndarray() must have a size of 3"
                self._int16_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -32768 and val < 32768 for val in value)), \
                "The 'int16_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-32768, 32767]"
        self._int16_values_default = numpy.array(value, dtype=numpy.int16)

    @builtins.property
    def uint16_values_default(self):
        """Message field 'uint16_values_default'."""
        return self._uint16_values_default

    @uint16_values_default.setter
    def uint16_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint16, \
                    "The 'uint16_values_default' numpy.ndarray() must have the dtype of 'numpy.uint16'"
                assert value.size == 3, \
                    "The 'uint16_values_default' numpy.ndarray() must have a size of 3"
                self._uint16_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 65536 for val in value)), \
                "The 'uint16_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 65535]"
        self._uint16_values_default = numpy.array(value, dtype=numpy.uint16)

    @builtins.property
    def int32_values_default(self):
        """Message field 'int32_values_default'."""
        return self._int32_values_default

    @int32_values_default.setter
    def int32_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int32, \
                    "The 'int32_values_default' numpy.ndarray() must have the dtype of 'numpy.int32'"
                assert value.size == 3, \
                    "The 'int32_values_default' numpy.ndarray() must have a size of 3"
                self._int32_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -2147483648 and val < 2147483648 for val in value)), \
                "The 'int32_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-2147483648, 2147483647]"
        self._int32_values_default = numpy.array(value, dtype=numpy.int32)

    @builtins.property
    def uint32_values_default(self):
        """Message field 'uint32_values_default'."""
        return self._uint32_values_default

    @uint32_values_default.setter
    def uint32_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint32, \
                    "The 'uint32_values_default' numpy.ndarray() must have the dtype of 'numpy.uint32'"
                assert value.size == 3, \
                    "The 'uint32_values_default' numpy.ndarray() must have a size of 3"
                self._uint32_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 4294967296 for val in value)), \
                "The 'uint32_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 4294967295]"
        self._uint32_values_default = numpy.array(value, dtype=numpy.uint32)

    @builtins.property
    def int64_values_default(self):
        """Message field 'int64_values_default'."""
        return self._int64_values_default

    @int64_values_default.setter
    def int64_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int64, \
                    "The 'int64_values_default' numpy.ndarray() must have the dtype of 'numpy.int64'"
                assert value.size == 3, \
                    "The 'int64_values_default' numpy.ndarray() must have a size of 3"
                self._int64_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -9223372036854775808 and val < 9223372036854775808 for val in value)), \
                "The 'int64_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-9223372036854775808, 9223372036854775807]"
        self._int64_values_default = numpy.array(value, dtype=numpy.int64)

    @builtins.property
    def uint64_values_default(self):
        """Message field 'uint64_values_default'."""
        return self._uint64_values_default

    @uint64_values_default.setter
    def uint64_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint64, \
                    "The 'uint64_values_default' numpy.ndarray() must have the dtype of 'numpy.uint64'"
                assert value.size == 3, \
                    "The 'uint64_values_default' numpy.ndarray() must have a size of 3"
                self._uint64_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 18446744073709551616 for val in value)), \
                "The 'uint64_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 18446744073709551615]"
        self._uint64_values_default = numpy.array(value, dtype=numpy.uint64)

    @builtins.property
    def string_values_default(self):
        """Message field 'string_values_default'."""
        return self._string_values_default

    @string_values_default.setter
    def string_values_default(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, str) for v in value) and
                 True), \
                "The 'string_values_default' field must be a set or sequence with length 3 and each value of type 'str'"
        self._string_values_default = value


# Import statements for member types

# already imported above
# import builtins

# already imported above
# import math

# Member 'char_values'
# Member 'float32_values'
# Member 'float64_values'
# Member 'int8_values'
# Member 'uint8_values'
# Member 'int16_values'
# Member 'uint16_values'
# Member 'int32_values'
# Member 'uint32_values'
# Member 'int64_values'
# Member 'uint64_values'
# Member 'char_values_default'
# Member 'float32_values_default'
# Member 'float64_values_default'
# Member 'int8_values_default'
# Member 'uint8_values_default'
# Member 'int16_values_default'
# Member 'uint16_values_default'
# Member 'int32_values_default'
# Member 'uint32_values_default'
# Member 'int64_values_default'
# Member 'uint64_values_default'
# already imported above
# import numpy

# already imported above
# import rosidl_parser.definition


class Metaclass_Arrays_Response(type):
    """Metaclass of message 'Arrays_Response'."""

    _CREATE_ROS_MESSAGE = None
    _CONVERT_FROM_PY = None
    _CONVERT_TO_PY = None
    _DESTROY_ROS_MESSAGE = None
    _TYPE_SUPPORT = None

    __constants = {
    }

    @classmethod
    def __import_type_support__(cls):
        try:
            from rosidl_generator_py import import_type_support
            module = import_type_support('test_msgs')
        except ImportError:
            import logging
            import traceback
            logger = logging.getLogger(
                'test_msgs.srv.Arrays_Response')
            logger.debug(
                'Failed to import needed modules for type support:\n' +
                traceback.format_exc())
        else:
            cls._CREATE_ROS_MESSAGE = module.create_ros_message_msg__srv__arrays__response
            cls._CONVERT_FROM_PY = module.convert_from_py_msg__srv__arrays__response
            cls._CONVERT_TO_PY = module.convert_to_py_msg__srv__arrays__response
            cls._TYPE_SUPPORT = module.type_support_msg__srv__arrays__response
            cls._DESTROY_ROS_MESSAGE = module.destroy_ros_message_msg__srv__arrays__response

            from test_msgs.msg import BasicTypes
            if BasicTypes.__class__._TYPE_SUPPORT is None:
                BasicTypes.__class__.__import_type_support__()

            from test_msgs.msg import Constants
            if Constants.__class__._TYPE_SUPPORT is None:
                Constants.__class__.__import_type_support__()

            from test_msgs.msg import Defaults
            if Defaults.__class__._TYPE_SUPPORT is None:
                Defaults.__class__.__import_type_support__()

    @classmethod
    def __prepare__(cls, name, bases, **kwargs):
        # list constant names here so that they appear in the help text of
        # the message class under "Data and other attributes defined here:"
        # as well as populate each message instance
        return {
            'BOOL_VALUES_DEFAULT__DEFAULT': [False, True, False],
            'BYTE_VALUES_DEFAULT__DEFAULT': [b'\x00', b'\x01', b'\xff'],
            'CHAR_VALUES_DEFAULT__DEFAULT': numpy.array((0, 1, 127, ), dtype=numpy.uint8),
            'FLOAT32_VALUES_DEFAULT__DEFAULT': numpy.array((1.125, 0.0, -1.125, ), dtype=numpy.float32),
            'FLOAT64_VALUES_DEFAULT__DEFAULT': numpy.array((3.1415, 0.0, -3.1415, ), dtype=numpy.float64),
            'INT8_VALUES_DEFAULT__DEFAULT': numpy.array((0, 127, -128, ), dtype=numpy.int8),
            'UINT8_VALUES_DEFAULT__DEFAULT': numpy.array((0, 1, 255, ), dtype=numpy.uint8),
            'INT16_VALUES_DEFAULT__DEFAULT': numpy.array((0, 32767, -32768, ), dtype=numpy.int16),
            'UINT16_VALUES_DEFAULT__DEFAULT': numpy.array((0, 1, 65535, ), dtype=numpy.uint16),
            'INT32_VALUES_DEFAULT__DEFAULT': numpy.array((0, 2147483647, -2147483648, ), dtype=numpy.int32),
            'UINT32_VALUES_DEFAULT__DEFAULT': numpy.array((0, 1, 4294967295, ), dtype=numpy.uint32),
            'INT64_VALUES_DEFAULT__DEFAULT': numpy.array((0, 9223372036854775807, -9223372036854775808, ), dtype=numpy.int64),
            'UINT64_VALUES_DEFAULT__DEFAULT': numpy.array((0, 1, 18446744073709551615, ), dtype=numpy.uint64),
            'STRING_VALUES_DEFAULT__DEFAULT': ['', 'max value', 'min value'],
        }

    @property
    def BOOL_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'bool_values_default'."""
        return [False, True, False]

    @property
    def BYTE_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'byte_values_default'."""
        return [b'\x00', b'\x01', b'\xff']

    @property
    def CHAR_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'char_values_default'."""
        return numpy.array((0, 1, 127, ), dtype=numpy.uint8)

    @property
    def FLOAT32_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'float32_values_default'."""
        return numpy.array((1.125, 0.0, -1.125, ), dtype=numpy.float32)

    @property
    def FLOAT64_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'float64_values_default'."""
        return numpy.array((3.1415, 0.0, -3.1415, ), dtype=numpy.float64)

    @property
    def INT8_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'int8_values_default'."""
        return numpy.array((0, 127, -128, ), dtype=numpy.int8)

    @property
    def UINT8_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'uint8_values_default'."""
        return numpy.array((0, 1, 255, ), dtype=numpy.uint8)

    @property
    def INT16_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'int16_values_default'."""
        return numpy.array((0, 32767, -32768, ), dtype=numpy.int16)

    @property
    def UINT16_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'uint16_values_default'."""
        return numpy.array((0, 1, 65535, ), dtype=numpy.uint16)

    @property
    def INT32_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'int32_values_default'."""
        return numpy.array((0, 2147483647, -2147483648, ), dtype=numpy.int32)

    @property
    def UINT32_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'uint32_values_default'."""
        return numpy.array((0, 1, 4294967295, ), dtype=numpy.uint32)

    @property
    def INT64_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'int64_values_default'."""
        return numpy.array((0, 9223372036854775807, -9223372036854775808, ), dtype=numpy.int64)

    @property
    def UINT64_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'uint64_values_default'."""
        return numpy.array((0, 1, 18446744073709551615, ), dtype=numpy.uint64)

    @property
    def STRING_VALUES_DEFAULT__DEFAULT(cls):
        """Return default value for message field 'string_values_default'."""
        return ['', 'max value', 'min value']


class Arrays_Response(metaclass=Metaclass_Arrays_Response):
    """Message class 'Arrays_Response'."""

    __slots__ = [
        '_bool_values',
        '_byte_values',
        '_char_values',
        '_float32_values',
        '_float64_values',
        '_int8_values',
        '_uint8_values',
        '_int16_values',
        '_uint16_values',
        '_int32_values',
        '_uint32_values',
        '_int64_values',
        '_uint64_values',
        '_string_values',
        '_basic_types_values',
        '_constants_values',
        '_defaults_values',
        '_bool_values_default',
        '_byte_values_default',
        '_char_values_default',
        '_float32_values_default',
        '_float64_values_default',
        '_int8_values_default',
        '_uint8_values_default',
        '_int16_values_default',
        '_uint16_values_default',
        '_int32_values_default',
        '_uint32_values_default',
        '_int64_values_default',
        '_uint64_values_default',
        '_string_values_default',
        '_check_fields',
    ]

    _fields_and_field_types = {
        'bool_values': 'boolean[3]',
        'byte_values': 'octet[3]',
        'char_values': 'uint8[3]',
        'float32_values': 'float[3]',
        'float64_values': 'double[3]',
        'int8_values': 'int8[3]',
        'uint8_values': 'uint8[3]',
        'int16_values': 'int16[3]',
        'uint16_values': 'uint16[3]',
        'int32_values': 'int32[3]',
        'uint32_values': 'uint32[3]',
        'int64_values': 'int64[3]',
        'uint64_values': 'uint64[3]',
        'string_values': 'string[3]',
        'basic_types_values': 'test_msgs/BasicTypes[3]',
        'constants_values': 'test_msgs/Constants[3]',
        'defaults_values': 'test_msgs/Defaults[3]',
        'bool_values_default': 'boolean[3]',
        'byte_values_default': 'octet[3]',
        'char_values_default': 'uint8[3]',
        'float32_values_default': 'float[3]',
        'float64_values_default': 'double[3]',
        'int8_values_default': 'int8[3]',
        'uint8_values_default': 'uint8[3]',
        'int16_values_default': 'int16[3]',
        'uint16_values_default': 'uint16[3]',
        'int32_values_default': 'int32[3]',
        'uint32_values_default': 'uint32[3]',
        'int64_values_default': 'int64[3]',
        'uint64_values_default': 'uint64[3]',
        'string_values_default': 'string[3]',
    }

    # This attribute is used to store an rosidl_parser.definition variable
    # related to the data type of each of the components the message.
    SLOT_TYPES = (
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('boolean'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('octet'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('float'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('double'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int16'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint16'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int32'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint32'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int64'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint64'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.UnboundedString(), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.NamespacedType(['test_msgs', 'msg'], 'BasicTypes'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.NamespacedType(['test_msgs', 'msg'], 'Constants'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.NamespacedType(['test_msgs', 'msg'], 'Defaults'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('boolean'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('octet'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('float'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('double'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint8'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int16'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint16'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int32'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint32'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('int64'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.BasicType('uint64'), 3),  # noqa: E501
        rosidl_parser.definition.Array(rosidl_parser.definition.UnboundedString(), 3),  # noqa: E501
    )

    def __init__(self, **kwargs):
        if 'check_fields' in kwargs:
            self._check_fields = kwargs['check_fields']
        else:
            self._check_fields = ros_python_check_fields == '1'
        if self._check_fields:
            assert all('_' + key in self.__slots__ for key in kwargs.keys()), \
                'Invalid arguments passed to constructor: %s' % \
                ', '.join(sorted(k for k in kwargs.keys() if '_' + k not in self.__slots__))
        self.bool_values = kwargs.get(
            'bool_values',
            [bool() for x in range(3)]
        )
        self.byte_values = kwargs.get(
            'byte_values',
            [bytes([0]) for x in range(3)]
        )
        if 'char_values' not in kwargs:
            self.char_values = numpy.zeros(3, dtype=numpy.uint8)
        else:
            self.char_values = numpy.array(kwargs.get('char_values'), dtype=numpy.uint8)
            assert self.char_values.shape == (3, )
        if 'float32_values' not in kwargs:
            self.float32_values = numpy.zeros(3, dtype=numpy.float32)
        else:
            self.float32_values = numpy.array(kwargs.get('float32_values'), dtype=numpy.float32)
            assert self.float32_values.shape == (3, )
        if 'float64_values' not in kwargs:
            self.float64_values = numpy.zeros(3, dtype=numpy.float64)
        else:
            self.float64_values = numpy.array(kwargs.get('float64_values'), dtype=numpy.float64)
            assert self.float64_values.shape == (3, )
        if 'int8_values' not in kwargs:
            self.int8_values = numpy.zeros(3, dtype=numpy.int8)
        else:
            self.int8_values = numpy.array(kwargs.get('int8_values'), dtype=numpy.int8)
            assert self.int8_values.shape == (3, )
        if 'uint8_values' not in kwargs:
            self.uint8_values = numpy.zeros(3, dtype=numpy.uint8)
        else:
            self.uint8_values = numpy.array(kwargs.get('uint8_values'), dtype=numpy.uint8)
            assert self.uint8_values.shape == (3, )
        if 'int16_values' not in kwargs:
            self.int16_values = numpy.zeros(3, dtype=numpy.int16)
        else:
            self.int16_values = numpy.array(kwargs.get('int16_values'), dtype=numpy.int16)
            assert self.int16_values.shape == (3, )
        if 'uint16_values' not in kwargs:
            self.uint16_values = numpy.zeros(3, dtype=numpy.uint16)
        else:
            self.uint16_values = numpy.array(kwargs.get('uint16_values'), dtype=numpy.uint16)
            assert self.uint16_values.shape == (3, )
        if 'int32_values' not in kwargs:
            self.int32_values = numpy.zeros(3, dtype=numpy.int32)
        else:
            self.int32_values = numpy.array(kwargs.get('int32_values'), dtype=numpy.int32)
            assert self.int32_values.shape == (3, )
        if 'uint32_values' not in kwargs:
            self.uint32_values = numpy.zeros(3, dtype=numpy.uint32)
        else:
            self.uint32_values = numpy.array(kwargs.get('uint32_values'), dtype=numpy.uint32)
            assert self.uint32_values.shape == (3, )
        if 'int64_values' not in kwargs:
            self.int64_values = numpy.zeros(3, dtype=numpy.int64)
        else:
            self.int64_values = numpy.array(kwargs.get('int64_values'), dtype=numpy.int64)
            assert self.int64_values.shape == (3, )
        if 'uint64_values' not in kwargs:
            self.uint64_values = numpy.zeros(3, dtype=numpy.uint64)
        else:
            self.uint64_values = numpy.array(kwargs.get('uint64_values'), dtype=numpy.uint64)
            assert self.uint64_values.shape == (3, )
        self.string_values = kwargs.get(
            'string_values',
            [str() for x in range(3)]
        )
        from test_msgs.msg import BasicTypes
        self.basic_types_values = kwargs.get(
            'basic_types_values',
            [BasicTypes() for x in range(3)]
        )
        from test_msgs.msg import Constants
        self.constants_values = kwargs.get(
            'constants_values',
            [Constants() for x in range(3)]
        )
        from test_msgs.msg import Defaults
        self.defaults_values = kwargs.get(
            'defaults_values',
            [Defaults() for x in range(3)]
        )
        self.bool_values_default = kwargs.get(
            'bool_values_default', Arrays_Response.BOOL_VALUES_DEFAULT__DEFAULT)
        self.byte_values_default = kwargs.get(
            'byte_values_default', Arrays_Response.BYTE_VALUES_DEFAULT__DEFAULT)
        self.char_values_default = kwargs.get(
            'char_values_default', Arrays_Response.CHAR_VALUES_DEFAULT__DEFAULT)
        self.float32_values_default = kwargs.get(
            'float32_values_default', Arrays_Response.FLOAT32_VALUES_DEFAULT__DEFAULT)
        self.float64_values_default = kwargs.get(
            'float64_values_default', Arrays_Response.FLOAT64_VALUES_DEFAULT__DEFAULT)
        self.int8_values_default = kwargs.get(
            'int8_values_default', Arrays_Response.INT8_VALUES_DEFAULT__DEFAULT)
        self.uint8_values_default = kwargs.get(
            'uint8_values_default', Arrays_Response.UINT8_VALUES_DEFAULT__DEFAULT)
        self.int16_values_default = kwargs.get(
            'int16_values_default', Arrays_Response.INT16_VALUES_DEFAULT__DEFAULT)
        self.uint16_values_default = kwargs.get(
            'uint16_values_default', Arrays_Response.UINT16_VALUES_DEFAULT__DEFAULT)
        self.int32_values_default = kwargs.get(
            'int32_values_default', Arrays_Response.INT32_VALUES_DEFAULT__DEFAULT)
        self.uint32_values_default = kwargs.get(
            'uint32_values_default', Arrays_Response.UINT32_VALUES_DEFAULT__DEFAULT)
        self.int64_values_default = kwargs.get(
            'int64_values_default', Arrays_Response.INT64_VALUES_DEFAULT__DEFAULT)
        self.uint64_values_default = kwargs.get(
            'uint64_values_default', Arrays_Response.UINT64_VALUES_DEFAULT__DEFAULT)
        self.string_values_default = kwargs.get(
            'string_values_default', Arrays_Response.STRING_VALUES_DEFAULT__DEFAULT)

    def __repr__(self):
        typename = self.__class__.__module__.split('.')
        typename.pop()
        typename.append(self.__class__.__name__)
        args = []
        for s, t in zip(self.get_fields_and_field_types().keys(), self.SLOT_TYPES):
            field = getattr(self, s)
            fieldstr = repr(field)
            # We use Python array type for fields that can be directly stored
            # in them, and "normal" sequences for everything else.  If it is
            # a type that we store in an array, strip off the 'array' portion.
            if (
                isinstance(t, rosidl_parser.definition.AbstractSequence) and
                isinstance(t.value_type, rosidl_parser.definition.BasicType) and
                t.value_type.typename in ['float', 'double', 'int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', 'uint64']
            ):
                if len(field) == 0:
                    fieldstr = '[]'
                else:
                    if self._check_fields:
                        assert fieldstr.startswith('array(')
                    prefix = "array('X', "
                    suffix = ')'
                    fieldstr = fieldstr[len(prefix):-len(suffix)]
            args.append(s + '=' + fieldstr)
        return '%s(%s)' % ('.'.join(typename), ', '.join(args))

    def __eq__(self, other):
        if not isinstance(other, self.__class__):
            return False
        if self.bool_values != other.bool_values:
            return False
        if self.byte_values != other.byte_values:
            return False
        if all(self.char_values != other.char_values):
            return False
        if all(self.float32_values != other.float32_values):
            return False
        if all(self.float64_values != other.float64_values):
            return False
        if all(self.int8_values != other.int8_values):
            return False
        if all(self.uint8_values != other.uint8_values):
            return False
        if all(self.int16_values != other.int16_values):
            return False
        if all(self.uint16_values != other.uint16_values):
            return False
        if all(self.int32_values != other.int32_values):
            return False
        if all(self.uint32_values != other.uint32_values):
            return False
        if all(self.int64_values != other.int64_values):
            return False
        if all(self.uint64_values != other.uint64_values):
            return False
        if self.string_values != other.string_values:
            return False
        if self.basic_types_values != other.basic_types_values:
            return False
        if self.constants_values != other.constants_values:
            return False
        if self.defaults_values != other.defaults_values:
            return False
        if self.bool_values_default != other.bool_values_default:
            return False
        if self.byte_values_default != other.byte_values_default:
            return False
        if all(self.char_values_default != other.char_values_default):
            return False
        if all(self.float32_values_default != other.float32_values_default):
            return False
        if all(self.float64_values_default != other.float64_values_default):
            return False
        if all(self.int8_values_default != other.int8_values_default):
            return False
        if all(self.uint8_values_default != other.uint8_values_default):
            return False
        if all(self.int16_values_default != other.int16_values_default):
            return False
        if all(self.uint16_values_default != other.uint16_values_default):
            return False
        if all(self.int32_values_default != other.int32_values_default):
            return False
        if all(self.uint32_values_default != other.uint32_values_default):
            return False
        if all(self.int64_values_default != other.int64_values_default):
            return False
        if all(self.uint64_values_default != other.uint64_values_default):
            return False
        if self.string_values_default != other.string_values_default:
            return False
        return True

    @classmethod
    def get_fields_and_field_types(cls):
        from copy import copy
        return copy(cls._fields_and_field_types)

    @builtins.property
    def bool_values(self):
        """Message field 'bool_values'."""
        return self._bool_values

    @bool_values.setter
    def bool_values(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, bool) for v in value) and
                 True), \
                "The 'bool_values' field must be a set or sequence with length 3 and each value of type 'bool'"
        self._bool_values = value

    @builtins.property
    def byte_values(self):
        """Message field 'byte_values'."""
        return self._byte_values

    @byte_values.setter
    def byte_values(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, bytes) for v in value) and
                 True), \
                "The 'byte_values' field must be a set or sequence with length 3 and each value of type 'bytes'"
        self._byte_values = value

    @builtins.property
    def char_values(self):
        """Message field 'char_values'."""
        return self._char_values

    @char_values.setter
    def char_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint8, \
                    "The 'char_values' numpy.ndarray() must have the dtype of 'numpy.uint8'"
                assert value.size == 3, \
                    "The 'char_values' numpy.ndarray() must have a size of 3"
                self._char_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 256 for val in value)), \
                "The 'char_values' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 255]"
        self._char_values = numpy.array(value, dtype=numpy.uint8)

    @builtins.property
    def float32_values(self):
        """Message field 'float32_values'."""
        return self._float32_values

    @float32_values.setter
    def float32_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.float32, \
                    "The 'float32_values' numpy.ndarray() must have the dtype of 'numpy.float32'"
                assert value.size == 3, \
                    "The 'float32_values' numpy.ndarray() must have a size of 3"
                self._float32_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, float) for v in value) and
                 all(not (val < -3.402823466e+38 or val > 3.402823466e+38) or math.isinf(val) for val in value)), \
                "The 'float32_values' field must be a set or sequence with length 3 and each value of type 'float' and each float in [-340282346600000016151267322115014000640.000000, 340282346600000016151267322115014000640.000000]"
        self._float32_values = numpy.array(value, dtype=numpy.float32)

    @builtins.property
    def float64_values(self):
        """Message field 'float64_values'."""
        return self._float64_values

    @float64_values.setter
    def float64_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.float64, \
                    "The 'float64_values' numpy.ndarray() must have the dtype of 'numpy.float64'"
                assert value.size == 3, \
                    "The 'float64_values' numpy.ndarray() must have a size of 3"
                self._float64_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, float) for v in value) and
                 all(not (val < -1.7976931348623157e+308 or val > 1.7976931348623157e+308) or math.isinf(val) for val in value)), \
                "The 'float64_values' field must be a set or sequence with length 3 and each value of type 'float' and each double in [-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000, 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000]"
        self._float64_values = numpy.array(value, dtype=numpy.float64)

    @builtins.property
    def int8_values(self):
        """Message field 'int8_values'."""
        return self._int8_values

    @int8_values.setter
    def int8_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int8, \
                    "The 'int8_values' numpy.ndarray() must have the dtype of 'numpy.int8'"
                assert value.size == 3, \
                    "The 'int8_values' numpy.ndarray() must have a size of 3"
                self._int8_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -128 and val < 128 for val in value)), \
                "The 'int8_values' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-128, 127]"
        self._int8_values = numpy.array(value, dtype=numpy.int8)

    @builtins.property
    def uint8_values(self):
        """Message field 'uint8_values'."""
        return self._uint8_values

    @uint8_values.setter
    def uint8_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint8, \
                    "The 'uint8_values' numpy.ndarray() must have the dtype of 'numpy.uint8'"
                assert value.size == 3, \
                    "The 'uint8_values' numpy.ndarray() must have a size of 3"
                self._uint8_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 256 for val in value)), \
                "The 'uint8_values' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 255]"
        self._uint8_values = numpy.array(value, dtype=numpy.uint8)

    @builtins.property
    def int16_values(self):
        """Message field 'int16_values'."""
        return self._int16_values

    @int16_values.setter
    def int16_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int16, \
                    "The 'int16_values' numpy.ndarray() must have the dtype of 'numpy.int16'"
                assert value.size == 3, \
                    "The 'int16_values' numpy.ndarray() must have a size of 3"
                self._int16_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -32768 and val < 32768 for val in value)), \
                "The 'int16_values' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-32768, 32767]"
        self._int16_values = numpy.array(value, dtype=numpy.int16)

    @builtins.property
    def uint16_values(self):
        """Message field 'uint16_values'."""
        return self._uint16_values

    @uint16_values.setter
    def uint16_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint16, \
                    "The 'uint16_values' numpy.ndarray() must have the dtype of 'numpy.uint16'"
                assert value.size == 3, \
                    "The 'uint16_values' numpy.ndarray() must have a size of 3"
                self._uint16_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 65536 for val in value)), \
                "The 'uint16_values' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 65535]"
        self._uint16_values = numpy.array(value, dtype=numpy.uint16)

    @builtins.property
    def int32_values(self):
        """Message field 'int32_values'."""
        return self._int32_values

    @int32_values.setter
    def int32_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int32, \
                    "The 'int32_values' numpy.ndarray() must have the dtype of 'numpy.int32'"
                assert value.size == 3, \
                    "The 'int32_values' numpy.ndarray() must have a size of 3"
                self._int32_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -2147483648 and val < 2147483648 for val in value)), \
                "The 'int32_values' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-2147483648, 2147483647]"
        self._int32_values = numpy.array(value, dtype=numpy.int32)

    @builtins.property
    def uint32_values(self):
        """Message field 'uint32_values'."""
        return self._uint32_values

    @uint32_values.setter
    def uint32_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint32, \
                    "The 'uint32_values' numpy.ndarray() must have the dtype of 'numpy.uint32'"
                assert value.size == 3, \
                    "The 'uint32_values' numpy.ndarray() must have a size of 3"
                self._uint32_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 4294967296 for val in value)), \
                "The 'uint32_values' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 4294967295]"
        self._uint32_values = numpy.array(value, dtype=numpy.uint32)

    @builtins.property
    def int64_values(self):
        """Message field 'int64_values'."""
        return self._int64_values

    @int64_values.setter
    def int64_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int64, \
                    "The 'int64_values' numpy.ndarray() must have the dtype of 'numpy.int64'"
                assert value.size == 3, \
                    "The 'int64_values' numpy.ndarray() must have a size of 3"
                self._int64_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -9223372036854775808 and val < 9223372036854775808 for val in value)), \
                "The 'int64_values' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-9223372036854775808, 9223372036854775807]"
        self._int64_values = numpy.array(value, dtype=numpy.int64)

    @builtins.property
    def uint64_values(self):
        """Message field 'uint64_values'."""
        return self._uint64_values

    @uint64_values.setter
    def uint64_values(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint64, \
                    "The 'uint64_values' numpy.ndarray() must have the dtype of 'numpy.uint64'"
                assert value.size == 3, \
                    "The 'uint64_values' numpy.ndarray() must have a size of 3"
                self._uint64_values = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 18446744073709551616 for val in value)), \
                "The 'uint64_values' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 18446744073709551615]"
        self._uint64_values = numpy.array(value, dtype=numpy.uint64)

    @builtins.property
    def string_values(self):
        """Message field 'string_values'."""
        return self._string_values

    @string_values.setter
    def string_values(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, str) for v in value) and
                 True), \
                "The 'string_values' field must be a set or sequence with length 3 and each value of type 'str'"
        self._string_values = value

    @builtins.property
    def basic_types_values(self):
        """Message field 'basic_types_values'."""
        return self._basic_types_values

    @basic_types_values.setter
    def basic_types_values(self, value):
        if self._check_fields:
            from test_msgs.msg import BasicTypes
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, BasicTypes) for v in value) and
                 True), \
                "The 'basic_types_values' field must be a set or sequence with length 3 and each value of type 'BasicTypes'"
        self._basic_types_values = value

    @builtins.property
    def constants_values(self):
        """Message field 'constants_values'."""
        return self._constants_values

    @constants_values.setter
    def constants_values(self, value):
        if self._check_fields:
            from test_msgs.msg import Constants
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, Constants) for v in value) and
                 True), \
                "The 'constants_values' field must be a set or sequence with length 3 and each value of type 'Constants'"
        self._constants_values = value

    @builtins.property
    def defaults_values(self):
        """Message field 'defaults_values'."""
        return self._defaults_values

    @defaults_values.setter
    def defaults_values(self, value):
        if self._check_fields:
            from test_msgs.msg import Defaults
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, Defaults) for v in value) and
                 True), \
                "The 'defaults_values' field must be a set or sequence with length 3 and each value of type 'Defaults'"
        self._defaults_values = value

    @builtins.property
    def bool_values_default(self):
        """Message field 'bool_values_default'."""
        return self._bool_values_default

    @bool_values_default.setter
    def bool_values_default(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, bool) for v in value) and
                 True), \
                "The 'bool_values_default' field must be a set or sequence with length 3 and each value of type 'bool'"
        self._bool_values_default = value

    @builtins.property
    def byte_values_default(self):
        """Message field 'byte_values_default'."""
        return self._byte_values_default

    @byte_values_default.setter
    def byte_values_default(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, bytes) for v in value) and
                 True), \
                "The 'byte_values_default' field must be a set or sequence with length 3 and each value of type 'bytes'"
        self._byte_values_default = value

    @builtins.property
    def char_values_default(self):
        """Message field 'char_values_default'."""
        return self._char_values_default

    @char_values_default.setter
    def char_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint8, \
                    "The 'char_values_default' numpy.ndarray() must have the dtype of 'numpy.uint8'"
                assert value.size == 3, \
                    "The 'char_values_default' numpy.ndarray() must have a size of 3"
                self._char_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 256 for val in value)), \
                "The 'char_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 255]"
        self._char_values_default = numpy.array(value, dtype=numpy.uint8)

    @builtins.property
    def float32_values_default(self):
        """Message field 'float32_values_default'."""
        return self._float32_values_default

    @float32_values_default.setter
    def float32_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.float32, \
                    "The 'float32_values_default' numpy.ndarray() must have the dtype of 'numpy.float32'"
                assert value.size == 3, \
                    "The 'float32_values_default' numpy.ndarray() must have a size of 3"
                self._float32_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, float) for v in value) and
                 all(not (val < -3.402823466e+38 or val > 3.402823466e+38) or math.isinf(val) for val in value)), \
                "The 'float32_values_default' field must be a set or sequence with length 3 and each value of type 'float' and each float in [-340282346600000016151267322115014000640.000000, 340282346600000016151267322115014000640.000000]"
        self._float32_values_default = numpy.array(value, dtype=numpy.float32)

    @builtins.property
    def float64_values_default(self):
        """Message field 'float64_values_default'."""
        return self._float64_values_default

    @float64_values_default.setter
    def float64_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.float64, \
                    "The 'float64_values_default' numpy.ndarray() must have the dtype of 'numpy.float64'"
                assert value.size == 3, \
                    "The 'float64_values_default' numpy.ndarray() must have a size of 3"
                self._float64_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, float) for v in value) and
                 all(not (val < -1.7976931348623157e+308 or val > 1.7976931348623157e+308) or math.isinf(val) for val in value)), \
                "The 'float64_values_default' field must be a set or sequence with length 3 and each value of type 'float' and each double in [-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000, 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000]"
        self._float64_values_default = numpy.array(value, dtype=numpy.float64)

    @builtins.property
    def int8_values_default(self):
        """Message field 'int8_values_default'."""
        return self._int8_values_default

    @int8_values_default.setter
    def int8_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int8, \
                    "The 'int8_values_default' numpy.ndarray() must have the dtype of 'numpy.int8'"
                assert value.size == 3, \
                    "The 'int8_values_default' numpy.ndarray() must have a size of 3"
                self._int8_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -128 and val < 128 for val in value)), \
                "The 'int8_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-128, 127]"
        self._int8_values_default = numpy.array(value, dtype=numpy.int8)

    @builtins.property
    def uint8_values_default(self):
        """Message field 'uint8_values_default'."""
        return self._uint8_values_default

    @uint8_values_default.setter
    def uint8_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint8, \
                    "The 'uint8_values_default' numpy.ndarray() must have the dtype of 'numpy.uint8'"
                assert value.size == 3, \
                    "The 'uint8_values_default' numpy.ndarray() must have a size of 3"
                self._uint8_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 256 for val in value)), \
                "The 'uint8_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 255]"
        self._uint8_values_default = numpy.array(value, dtype=numpy.uint8)

    @builtins.property
    def int16_values_default(self):
        """Message field 'int16_values_default'."""
        return self._int16_values_default

    @int16_values_default.setter
    def int16_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int16, \
                    "The 'int16_values_default' numpy.ndarray() must have the dtype of 'numpy.int16'"
                assert value.size == 3, \
                    "The 'int16_values_default' numpy.ndarray() must have a size of 3"
                self._int16_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -32768 and val < 32768 for val in value)), \
                "The 'int16_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-32768, 32767]"
        self._int16_values_default = numpy.array(value, dtype=numpy.int16)

    @builtins.property
    def uint16_values_default(self):
        """Message field 'uint16_values_default'."""
        return self._uint16_values_default

    @uint16_values_default.setter
    def uint16_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint16, \
                    "The 'uint16_values_default' numpy.ndarray() must have the dtype of 'numpy.uint16'"
                assert value.size == 3, \
                    "The 'uint16_values_default' numpy.ndarray() must have a size of 3"
                self._uint16_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 65536 for val in value)), \
                "The 'uint16_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 65535]"
        self._uint16_values_default = numpy.array(value, dtype=numpy.uint16)

    @builtins.property
    def int32_values_default(self):
        """Message field 'int32_values_default'."""
        return self._int32_values_default

    @int32_values_default.setter
    def int32_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int32, \
                    "The 'int32_values_default' numpy.ndarray() must have the dtype of 'numpy.int32'"
                assert value.size == 3, \
                    "The 'int32_values_default' numpy.ndarray() must have a size of 3"
                self._int32_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -2147483648 and val < 2147483648 for val in value)), \
                "The 'int32_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-2147483648, 2147483647]"
        self._int32_values_default = numpy.array(value, dtype=numpy.int32)

    @builtins.property
    def uint32_values_default(self):
        """Message field 'uint32_values_default'."""
        return self._uint32_values_default

    @uint32_values_default.setter
    def uint32_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint32, \
                    "The 'uint32_values_default' numpy.ndarray() must have the dtype of 'numpy.uint32'"
                assert value.size == 3, \
                    "The 'uint32_values_default' numpy.ndarray() must have a size of 3"
                self._uint32_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 4294967296 for val in value)), \
                "The 'uint32_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 4294967295]"
        self._uint32_values_default = numpy.array(value, dtype=numpy.uint32)

    @builtins.property
    def int64_values_default(self):
        """Message field 'int64_values_default'."""
        return self._int64_values_default

    @int64_values_default.setter
    def int64_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.int64, \
                    "The 'int64_values_default' numpy.ndarray() must have the dtype of 'numpy.int64'"
                assert value.size == 3, \
                    "The 'int64_values_default' numpy.ndarray() must have a size of 3"
                self._int64_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= -9223372036854775808 and val < 9223372036854775808 for val in value)), \
                "The 'int64_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each integer in [-9223372036854775808, 9223372036854775807]"
        self._int64_values_default = numpy.array(value, dtype=numpy.int64)

    @builtins.property
    def uint64_values_default(self):
        """Message field 'uint64_values_default'."""
        return self._uint64_values_default

    @uint64_values_default.setter
    def uint64_values_default(self, value):
        if self._check_fields:
            if isinstance(value, numpy.ndarray):
                assert value.dtype == numpy.uint64, \
                    "The 'uint64_values_default' numpy.ndarray() must have the dtype of 'numpy.uint64'"
                assert value.size == 3, \
                    "The 'uint64_values_default' numpy.ndarray() must have a size of 3"
                self._uint64_values_default = value
                return
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, int) for v in value) and
                 all(val >= 0 and val < 18446744073709551616 for val in value)), \
                "The 'uint64_values_default' field must be a set or sequence with length 3 and each value of type 'int' and each unsigned integer in [0, 18446744073709551615]"
        self._uint64_values_default = numpy.array(value, dtype=numpy.uint64)

    @builtins.property
    def string_values_default(self):
        """Message field 'string_values_default'."""
        return self._string_values_default

    @string_values_default.setter
    def string_values_default(self, value):
        if self._check_fields:
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) == 3 and
                 all(isinstance(v, str) for v in value) and
                 True), \
                "The 'string_values_default' field must be a set or sequence with length 3 and each value of type 'str'"
        self._string_values_default = value


# Import statements for member types

# already imported above
# import builtins

# already imported above
# import rosidl_parser.definition


class Metaclass_Arrays_Event(type):
    """Metaclass of message 'Arrays_Event'."""

    _CREATE_ROS_MESSAGE = None
    _CONVERT_FROM_PY = None
    _CONVERT_TO_PY = None
    _DESTROY_ROS_MESSAGE = None
    _TYPE_SUPPORT = None

    __constants = {
    }

    @classmethod
    def __import_type_support__(cls):
        try:
            from rosidl_generator_py import import_type_support
            module = import_type_support('test_msgs')
        except ImportError:
            import logging
            import traceback
            logger = logging.getLogger(
                'test_msgs.srv.Arrays_Event')
            logger.debug(
                'Failed to import needed modules for type support:\n' +
                traceback.format_exc())
        else:
            cls._CREATE_ROS_MESSAGE = module.create_ros_message_msg__srv__arrays__event
            cls._CONVERT_FROM_PY = module.convert_from_py_msg__srv__arrays__event
            cls._CONVERT_TO_PY = module.convert_to_py_msg__srv__arrays__event
            cls._TYPE_SUPPORT = module.type_support_msg__srv__arrays__event
            cls._DESTROY_ROS_MESSAGE = module.destroy_ros_message_msg__srv__arrays__event

            from service_msgs.msg import ServiceEventInfo
            if ServiceEventInfo.__class__._TYPE_SUPPORT is None:
                ServiceEventInfo.__class__.__import_type_support__()

    @classmethod
    def __prepare__(cls, name, bases, **kwargs):
        # list constant names here so that they appear in the help text of
        # the message class under "Data and other attributes defined here:"
        # as well as populate each message instance
        return {
        }


class Arrays_Event(metaclass=Metaclass_Arrays_Event):
    """Message class 'Arrays_Event'."""

    __slots__ = [
        '_info',
        '_request',
        '_response',
        '_check_fields',
    ]

    _fields_and_field_types = {
        'info': 'service_msgs/ServiceEventInfo',
        'request': 'sequence<test_msgs/Arrays_Request, 1>',
        'response': 'sequence<test_msgs/Arrays_Response, 1>',
    }

    # This attribute is used to store an rosidl_parser.definition variable
    # related to the data type of each of the components the message.
    SLOT_TYPES = (
        rosidl_parser.definition.NamespacedType(['service_msgs', 'msg'], 'ServiceEventInfo'),  # noqa: E501
        rosidl_parser.definition.BoundedSequence(rosidl_parser.definition.NamespacedType(['test_msgs', 'srv'], 'Arrays_Request'), 1),  # noqa: E501
        rosidl_parser.definition.BoundedSequence(rosidl_parser.definition.NamespacedType(['test_msgs', 'srv'], 'Arrays_Response'), 1),  # noqa: E501
    )

    def __init__(self, **kwargs):
        if 'check_fields' in kwargs:
            self._check_fields = kwargs['check_fields']
        else:
            self._check_fields = ros_python_check_fields == '1'
        if self._check_fields:
            assert all('_' + key in self.__slots__ for key in kwargs.keys()), \
                'Invalid arguments passed to constructor: %s' % \
                ', '.join(sorted(k for k in kwargs.keys() if '_' + k not in self.__slots__))
        from service_msgs.msg import ServiceEventInfo
        self.info = kwargs.get('info', ServiceEventInfo())
        self.request = kwargs.get('request', [])
        self.response = kwargs.get('response', [])

    def __repr__(self):
        typename = self.__class__.__module__.split('.')
        typename.pop()
        typename.append(self.__class__.__name__)
        args = []
        for s, t in zip(self.get_fields_and_field_types().keys(), self.SLOT_TYPES):
            field = getattr(self, s)
            fieldstr = repr(field)
            # We use Python array type for fields that can be directly stored
            # in them, and "normal" sequences for everything else.  If it is
            # a type that we store in an array, strip off the 'array' portion.
            if (
                isinstance(t, rosidl_parser.definition.AbstractSequence) and
                isinstance(t.value_type, rosidl_parser.definition.BasicType) and
                t.value_type.typename in ['float', 'double', 'int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', 'uint64']
            ):
                if len(field) == 0:
                    fieldstr = '[]'
                else:
                    if self._check_fields:
                        assert fieldstr.startswith('array(')
                    prefix = "array('X', "
                    suffix = ')'
                    fieldstr = fieldstr[len(prefix):-len(suffix)]
            args.append(s + '=' + fieldstr)
        return '%s(%s)' % ('.'.join(typename), ', '.join(args))

    def __eq__(self, other):
        if not isinstance(other, self.__class__):
            return False
        if self.info != other.info:
            return False
        if self.request != other.request:
            return False
        if self.response != other.response:
            return False
        return True

    @classmethod
    def get_fields_and_field_types(cls):
        from copy import copy
        return copy(cls._fields_and_field_types)

    @builtins.property
    def info(self):
        """Message field 'info'."""
        return self._info

    @info.setter
    def info(self, value):
        if self._check_fields:
            from service_msgs.msg import ServiceEventInfo
            assert \
                isinstance(value, ServiceEventInfo), \
                "The 'info' field must be a sub message of type 'ServiceEventInfo'"
        self._info = value

    @builtins.property
    def request(self):
        """Message field 'request'."""
        return self._request

    @request.setter
    def request(self, value):
        if self._check_fields:
            from test_msgs.srv import Arrays_Request
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) <= 1 and
                 all(isinstance(v, Arrays_Request) for v in value) and
                 True), \
                "The 'request' field must be a set or sequence with length <= 1 and each value of type 'Arrays_Request'"
        self._request = value

    @builtins.property
    def response(self):
        """Message field 'response'."""
        return self._response

    @response.setter
    def response(self, value):
        if self._check_fields:
            from test_msgs.srv import Arrays_Response
            from collections.abc import Sequence
            from collections.abc import Set
            from collections import UserList
            from collections import UserString
            assert \
                ((isinstance(value, Sequence) or
                  isinstance(value, Set) or
                  isinstance(value, UserList)) and
                 not isinstance(value, str) and
                 not isinstance(value, UserString) and
                 len(value) <= 1 and
                 all(isinstance(v, Arrays_Response) for v in value) and
                 True), \
                "The 'response' field must be a set or sequence with length <= 1 and each value of type 'Arrays_Response'"
        self._response = value


class Metaclass_Arrays(type):
    """Metaclass of service 'Arrays'."""

    _TYPE_SUPPORT = None

    @classmethod
    def __import_type_support__(cls):
        try:
            from rosidl_generator_py import import_type_support
            module = import_type_support('test_msgs')
        except ImportError:
            import logging
            import traceback
            logger = logging.getLogger(
                'test_msgs.srv.Arrays')
            logger.debug(
                'Failed to import needed modules for type support:\n' +
                traceback.format_exc())
        else:
            cls._TYPE_SUPPORT = module.type_support_srv__srv__arrays

            from test_msgs.srv import _arrays
            if _arrays.Metaclass_Arrays_Request._TYPE_SUPPORT is None:
                _arrays.Metaclass_Arrays_Request.__import_type_support__()
            if _arrays.Metaclass_Arrays_Response._TYPE_SUPPORT is None:
                _arrays.Metaclass_Arrays_Response.__import_type_support__()
            if _arrays.Metaclass_Arrays_Event._TYPE_SUPPORT is None:
                _arrays.Metaclass_Arrays_Event.__import_type_support__()


class Arrays(metaclass=Metaclass_Arrays):
    from test_msgs.srv._arrays import Arrays_Request as Request
    from test_msgs.srv._arrays import Arrays_Response as Response
    from test_msgs.srv._arrays import Arrays_Event as Event

    def __init__(self):
        raise NotImplementedError('Service classes can not be instantiated')
