def _set_random_detect(self, v, load=False):
    """
    Setter method for random_detect, mapped from YANG variable /interface/ethernet/qos/random_detect (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_random_detect is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_random_detect() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=random_detect.random_detect, is_container='container', presence=False, yang_name="random-detect", rest_name="random-detect", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure Random Early Detect (RED) Profile', u'callpoint': u'cos_profile_te', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """random_detect must be of a type compatible with container""",
          'defined-type': "container",
          'generated-type': """YANGDynClass(base=random_detect.random_detect, is_container='container', presence=False, yang_name="random-detect", rest_name="random-detect", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure Random Early Detect (RED) Profile', u'callpoint': u'cos_profile_te', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)""",
        })

    self.__random_detect = t
    if hasattr(self, '_set'):
      self._set()
Setter method for random_detect, mapped from YANG variable /interface/ethernet/qos/random_detect (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_random_detect is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_random_detect() directly.