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

    YANG Description: MPLS TE Protocol

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

    YANG Description: MPLS TE Protocol
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'mpls-te-none': {'value': 0}, u'mpls-te-ospf': {'value': 1}, u'mpls-te-isis': {'value': 2}},), is_leaf=True, yang_name="te-policy-protocol", rest_name="te-policy-protocol", 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='te-protocol', is_config=False)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """te_policy_protocol must be of a type compatible with te-protocol""",
          'defined-type': "brocade-mpls-operational:te-protocol",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'mpls-te-none': {'value': 0}, u'mpls-te-ospf': {'value': 1}, u'mpls-te-isis': {'value': 2}},), is_leaf=True, yang_name="te-policy-protocol", rest_name="te-policy-protocol", 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='te-protocol', is_config=False)""",
        })

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