Setter method for num_samples_collected, mapped from YANG variable /mpls_state/lsp/auto_bandwidth/num_samples_collected (uint32)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_num_samples_collected is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_num_samples_collected() directly.

    YANG Description: Number of samples collected

def _set_num_samples_collected(self, v, load=False):
    """
    Setter method for num_samples_collected, mapped from YANG variable /mpls_state/lsp/auto_bandwidth/num_samples_collected (uint32)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_num_samples_collected is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_num_samples_collected() directly.

    YANG Description: Number of samples collected
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="num-samples-collected", rest_name="num-samples-collected", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-mpls-operational', defining_module='brocade-mpls-operational', yang_type='uint32', is_config=False)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """num_samples_collected must be of a type compatible with uint32""",
          'defined-type': "uint32",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="num-samples-collected", rest_name="num-samples-collected", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-mpls-operational', defining_module='brocade-mpls-operational', yang_type='uint32', is_config=False)""",
        })

    self.__num_samples_collected = t
    if hasattr(self, '_set'):
      self._set()