Setter method for protected_port, mapped from YANG variable /interface/hundredgigabitethernet/protected_port (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_protected_port is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_protected_port() directly.

    YANG Description: Protected mode on a switchport

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

    YANG Description: Protected mode on a switchport
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=protected_port.protected_port, is_container='container', presence=False, yang_name="protected-port", rest_name="protected-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Protected mode on a switchport', u'sort-priority': u'RUNNCFG_INTERFACE_LEVEL_MODE_SWITCHPORT_CONFIG', u'cli-incomplete-no': None, u'cli-incomplete-command': None}}, namespace='urn:brocade.com:mgmt:brocade-interface', defining_module='brocade-interface', yang_type='container', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """protected_port must be of a type compatible with container""",
          'defined-type': "container",
          'generated-type': """YANGDynClass(base=protected_port.protected_port, is_container='container', presence=False, yang_name="protected-port", rest_name="protected-port", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Protected mode on a switchport', u'sort-priority': u'RUNNCFG_INTERFACE_LEVEL_MODE_SWITCHPORT_CONFIG', u'cli-incomplete-no': None, u'cli-incomplete-command': None}}, namespace='urn:brocade.com:mgmt:brocade-interface', defining_module='brocade-interface', yang_type='container', is_config=True)""",
        })

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