Setter method for offset_base1, mapped from YANG variable /uda_key/profile/uda_profile_offsets/offset_base1 (uda-offset-base-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_offset_base1 is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_offset_base1() directly.

def _set_offset_base1(self, v, load=False):
    """
    Setter method for offset_base1, mapped from YANG variable /uda_key/profile/uda_profile_offsets/offset_base1 (uda-offset-base-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_offset_base1 is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_offset_base1() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'first-header': {'value': 1}, u'packet-start': {'value': 0}, u'fourth-header': {'value': 4}, u'second-header': {'value': 2}, u'third-header': {'value': 3}},), is_leaf=True, yang_name="offset-base1", rest_name="offset-base1", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-drop-node-name': None, u'cli-incomplete-command': None, u'cli-optional-in-sequence': None}}, namespace='urn:brocade.com:mgmt:brocade-uda-access-list', defining_module='brocade-uda-access-list', yang_type='uda-offset-base-type', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """offset_base1 must be of a type compatible with uda-offset-base-type""",
          'defined-type': "brocade-uda-access-list:uda-offset-base-type",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'first-header': {'value': 1}, u'packet-start': {'value': 0}, u'fourth-header': {'value': 4}, u'second-header': {'value': 2}, u'third-header': {'value': 3}},), is_leaf=True, yang_name="offset-base1", rest_name="offset-base1", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-drop-node-name': None, u'cli-incomplete-command': None, u'cli-optional-in-sequence': None}}, namespace='urn:brocade.com:mgmt:brocade-uda-access-list', defining_module='brocade-uda-access-list', yang_type='uda-offset-base-type', is_config=True)""",
        })

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