text: #
  # Autogenerated by Thrift
  #
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  #  @generated
  #
  
  from __future__ import absolute_import
  import six
  import sys
  from thrift.util.Recursive import fix_spec
  from thrift.Thrift import TType, TMessageType, TPriority, TRequestContext, TProcessorEventHandler, TServerInterface, TProcessor, TException, TApplicationException, UnimplementedTypedef
  from thrift.protocol.TProtocol import TProtocolException
  
  
  
  import pprint
  import warnings
  from thrift import Thrift
  from thrift.transport import TTransport
  from thrift.protocol import TBinaryProtocol
  from thrift.protocol import TCompactProtocol
  from thrift.protocol import THeaderProtocol
  fastproto = None
  try:
    from thrift.protocol import fastproto
  except ImportError:
    pass
  all_structs = []
  UTF8STRINGS = bool(0) or sys.version_info.major >= 3
  
  __all__ = ['UTF8STRINGS', 'Banal', 'Fiery', 'Serious', 'ComplexFieldNames', 'CustomFieldNames']
  
  class Banal(TException):
  
    thrift_spec = None
    thrift_field_annotations = None
    thrift_struct_annotations = None
    @staticmethod
    def isUnion():
      return False
  
    def read(self, iprot):
      if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None:
        fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)
        return
      if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None:
        fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)
        return
      iprot.readStructBegin()
      while True:
        (fname, ftype, fid) = iprot.readFieldBegin()
        if ftype == TType.STOP:
          break
        else:
          iprot.skip(ftype)
        iprot.readFieldEnd()
      iprot.readStructEnd()
  
    def write(self, oprot):
      if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None:
        oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0))
        return
      if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None:
        oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2))
        return
      oprot.writeStructBegin('Banal')
      oprot.writeFieldStop()
      oprot.writeStructEnd()
  
    def __str__(self):
      return repr(self)
  
    def __repr__(self):
      L = []
      padding = ' ' * 4
      if 'message' not in self.__dict__:
        message = getattr(self, 'message', None)
        if message:
          L.append('message=%r' % message)
      return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '')
  
    def __eq__(self, other):
      if not isinstance(other, self.__class__):
        return False
  
      return self.__dict__ == other.__dict__ 
  
    def __ne__(self, other):
      return not (self == other)
  
    # Override the __hash__ function for Python3 - t10434117
    if not six.PY2:
      __hash__ = object.__hash__
  
  class Fiery(TException):
    """
    Attributes:
     - message
    """
  
    thrift_spec = None
    thrift_field_annotations = None
    thrift_struct_annotations = None
    __init__ = None
    @staticmethod
    def isUnion():
      return False
  
    def read(self, iprot):
      if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None:
        fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)
        return
      if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None:
        fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)
        return
      iprot.readStructBegin()
      while True:
        (fname, ftype, fid) = iprot.readFieldBegin()
        if ftype == TType.STOP:
          break
        if fid == 1:
          if ftype == TType.STRING:
            self.message = iprot.readString().decode('utf-8') if UTF8STRINGS else iprot.readString()
          else:
            iprot.skip(ftype)
        else:
          iprot.skip(ftype)
        iprot.readFieldEnd()
      iprot.readStructEnd()
  
    def write(self, oprot):
      if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None:
        oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0))
        return
      if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None:
        oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2))
        return
      oprot.writeStructBegin('Fiery')
      if self.message != None:
        oprot.writeFieldBegin('message', TType.STRING, 1)
        oprot.writeString(self.message.encode('utf-8')) if UTF8STRINGS and not isinstance(self.message, bytes) else oprot.writeString(self.message)
        oprot.writeFieldEnd()
      oprot.writeFieldStop()
      oprot.writeStructEnd()
  
    def __str__(self):
      if self.message:
        return self.message
      else:
        return repr(self)
  
    def __repr__(self):
      L = []
      padding = ' ' * 4
      if self.message is not None:
        value = pprint.pformat(self.message, indent=0)
        value = padding.join(value.splitlines(True))
        L.append('    message=%s' % (value))
      if 'message' not in self.__dict__:
        message = getattr(self, 'message', None)
        if message:
          L.append('message=%r' % message)
      return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '')
  
    def __eq__(self, other):
      if not isinstance(other, self.__class__):
        return False
  
      return self.__dict__ == other.__dict__ 
  
    def __ne__(self, other):
      return not (self == other)
  
    # Override the __hash__ function for Python3 - t10434117
    if not six.PY2:
      __hash__ = object.__hash__
  
  class Serious(TException):
    """
    Attributes:
     - sonnet
    """
  
    thrift_spec = None
    thrift_field_annotations = None
    thrift_struct_annotations = None
    __init__ = None
    @staticmethod
    def isUnion():
      return False
  
    def read(self, iprot):
      if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None:
        fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)
        return
      if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None:
        fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)
        return
      iprot.readStructBegin()
      while True:
        (fname, ftype, fid) = iprot.readFieldBegin()
        if ftype == TType.STOP:
          break
        if fid == 1:
          if ftype == TType.STRING:
            self.sonnet = iprot.readString().decode('utf-8') if UTF8STRINGS else iprot.readString()
          else:
            iprot.skip(ftype)
        else:
          iprot.skip(ftype)
        iprot.readFieldEnd()
      iprot.readStructEnd()
  
    def write(self, oprot):
      if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None:
        oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0))
        return
      if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None:
        oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2))
        return
      oprot.writeStructBegin('Serious')
      if self.sonnet != None:
        oprot.writeFieldBegin('sonnet', TType.STRING, 1)
        oprot.writeString(self.sonnet.encode('utf-8')) if UTF8STRINGS and not isinstance(self.sonnet, bytes) else oprot.writeString(self.sonnet)
        oprot.writeFieldEnd()
      oprot.writeFieldStop()
      oprot.writeStructEnd()
  
    def __str__(self):
      if self.sonnet:
        return self.sonnet
      else:
        return repr(self)
  
    def __repr__(self):
      L = []
      padding = ' ' * 4
      if self.sonnet is not None:
        value = pprint.pformat(self.sonnet, indent=0)
        value = padding.join(value.splitlines(True))
        L.append('    sonnet=%s' % (value))
      if 'message' not in self.__dict__:
        message = getattr(self, 'message', None)
        if message:
          L.append('message=%r' % message)
      return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '')
  
    def __eq__(self, other):
      if not isinstance(other, self.__class__):
        return False
  
      return self.__dict__ == other.__dict__ 
  
    def __ne__(self, other):
      return not (self == other)
  
    # Override the __hash__ function for Python3 - t10434117
    if not six.PY2:
      __hash__ = object.__hash__
  
  class ComplexFieldNames(TException):
    """
    Attributes:
     - error_message
     - internal_error_message
    """
  
    thrift_spec = None
    thrift_field_annotations = None
    thrift_struct_annotations = None
    __init__ = None
    @staticmethod
    def isUnion():
      return False
  
    def read(self, iprot):
      if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None:
        fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)
        return
      if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None:
        fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)
        return
      iprot.readStructBegin()
      while True:
        (fname, ftype, fid) = iprot.readFieldBegin()
        if ftype == TType.STOP:
          break
        if fid == 1:
          if ftype == TType.STRING:
            self.error_message = iprot.readString().decode('utf-8') if UTF8STRINGS else iprot.readString()
          else:
            iprot.skip(ftype)
        elif fid == 2:
          if ftype == TType.STRING:
            self.internal_error_message = iprot.readString().decode('utf-8') if UTF8STRINGS else iprot.readString()
          else:
            iprot.skip(ftype)
        else:
          iprot.skip(ftype)
        iprot.readFieldEnd()
      iprot.readStructEnd()
  
    def write(self, oprot):
      if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None:
        oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0))
        return
      if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None:
        oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2))
        return
      oprot.writeStructBegin('ComplexFieldNames')
      if self.error_message != None:
        oprot.writeFieldBegin('error_message', TType.STRING, 1)
        oprot.writeString(self.error_message.encode('utf-8')) if UTF8STRINGS and not isinstance(self.error_message, bytes) else oprot.writeString(self.error_message)
        oprot.writeFieldEnd()
      if self.internal_error_message != None:
        oprot.writeFieldBegin('internal_error_message', TType.STRING, 2)
        oprot.writeString(self.internal_error_message.encode('utf-8')) if UTF8STRINGS and not isinstance(self.internal_error_message, bytes) else oprot.writeString(self.internal_error_message)
        oprot.writeFieldEnd()
      oprot.writeFieldStop()
      oprot.writeStructEnd()
  
    def __str__(self):
      if self.internal_error_message:
        return self.internal_error_message
      else:
        return repr(self)
  
    def __repr__(self):
      L = []
      padding = ' ' * 4
      if self.error_message is not None:
        value = pprint.pformat(self.error_message, indent=0)
        value = padding.join(value.splitlines(True))
        L.append('    error_message=%s' % (value))
      if self.internal_error_message is not None:
        value = pprint.pformat(self.internal_error_message, indent=0)
        value = padding.join(value.splitlines(True))
        L.append('    internal_error_message=%s' % (value))
      if 'message' not in self.__dict__:
        message = getattr(self, 'message', None)
        if message:
          L.append('message=%r' % message)
      return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '')
  
    def __eq__(self, other):
      if not isinstance(other, self.__class__):
        return False
  
      return self.__dict__ == other.__dict__ 
  
    def __ne__(self, other):
      return not (self == other)
  
    # Override the __hash__ function for Python3 - t10434117
    if not six.PY2:
      __hash__ = object.__hash__
  
  class CustomFieldNames(TException):
    """
    Attributes:
     - error_message
     - internal_error_message
    """
  
    thrift_spec = None
    thrift_field_annotations = None
    thrift_struct_annotations = None
    __init__ = None
    @staticmethod
    def isUnion():
      return False
  
    def read(self, iprot):
      if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None:
        fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)
        return
      if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None:
        fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)
        return
      iprot.readStructBegin()
      while True:
        (fname, ftype, fid) = iprot.readFieldBegin()
        if ftype == TType.STOP:
          break
        if fid == 1:
          if ftype == TType.STRING:
            self.error_message = iprot.readString().decode('utf-8') if UTF8STRINGS else iprot.readString()
          else:
            iprot.skip(ftype)
        elif fid == 2:
          if ftype == TType.STRING:
            self.internal_error_message = iprot.readString().decode('utf-8') if UTF8STRINGS else iprot.readString()
          else:
            iprot.skip(ftype)
        else:
          iprot.skip(ftype)
        iprot.readFieldEnd()
      iprot.readStructEnd()
  
    def write(self, oprot):
      if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None:
        oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0))
        return
      if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None:
        oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2))
        return
      oprot.writeStructBegin('CustomFieldNames')
      if self.error_message != None:
        oprot.writeFieldBegin('error_message', TType.STRING, 1)
        oprot.writeString(self.error_message.encode('utf-8')) if UTF8STRINGS and not isinstance(self.error_message, bytes) else oprot.writeString(self.error_message)
        oprot.writeFieldEnd()
      if self.internal_error_message != None:
        oprot.writeFieldBegin('internal_error_message', TType.STRING, 2)
        oprot.writeString(self.internal_error_message.encode('utf-8')) if UTF8STRINGS and not isinstance(self.internal_error_message, bytes) else oprot.writeString(self.internal_error_message)
        oprot.writeFieldEnd()
      oprot.writeFieldStop()
      oprot.writeStructEnd()
  
    def __str__(self):
      if self.internal_error_message:
        return self.internal_error_message
      else:
        return repr(self)
  
    def __repr__(self):
      L = []
      padding = ' ' * 4
      if self.error_message is not None:
        value = pprint.pformat(self.error_message, indent=0)
        value = padding.join(value.splitlines(True))
        L.append('    error_message=%s' % (value))
      if self.internal_error_message is not None:
        value = pprint.pformat(self.internal_error_message, indent=0)
        value = padding.join(value.splitlines(True))
        L.append('    internal_error_message=%s' % (value))
      if 'message' not in self.__dict__:
        message = getattr(self, 'message', None)
        if message:
          L.append('message=%r' % message)
      return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '')
  
    def __eq__(self, other):
      if not isinstance(other, self.__class__):
        return False
  
      return self.__dict__ == other.__dict__ 
  
    def __ne__(self, other):
      return not (self == other)
  
    # Override the __hash__ function for Python3 - t10434117
    if not six.PY2:
      __hash__ = object.__hash__
  
  all_structs.append(Banal)
  Banal.thrift_spec = (
  )
  
  Banal.thrift_struct_annotations = {
  }
  Banal.thrift_field_annotations = {
  }
  
  all_structs.append(Fiery)
  Fiery.thrift_spec = (
    None, # 0
    (1, TType.STRING, 'message', True, None, 0, ), # 1
  )
  
  Fiery.thrift_struct_annotations = {
    "message": "message",
  }
  Fiery.thrift_field_annotations = {
  }
  
  def Fiery__init__(self, message=None,):
    self.message = message
  
  Fiery.__init__ = Fiery__init__
  
  def Fiery__setstate__(self, state):
    state.setdefault('message', None)
    self.__dict__ = state
  
  Fiery.__getstate__ = lambda self: self.__dict__.copy()
  Fiery.__setstate__ = Fiery__setstate__
  
  all_structs.append(Serious)
  Serious.thrift_spec = (
    None, # 0
    (1, TType.STRING, 'sonnet', True, None, 1, ), # 1
  )
  
  Serious.thrift_struct_annotations = {
    "message": "sonnet",
  }
  Serious.thrift_field_annotations = {
  }
  
  def Serious__init__(self, sonnet=None,):
    self.sonnet = sonnet
  
  Serious.__init__ = Serious__init__
  
  def Serious__setstate__(self, state):
    state.setdefault('sonnet', None)
    self.__dict__ = state
  
  Serious.__getstate__ = lambda self: self.__dict__.copy()
  Serious.__setstate__ = Serious__setstate__
  
  all_structs.append(ComplexFieldNames)
  ComplexFieldNames.thrift_spec = (
    None, # 0
    (1, TType.STRING, 'error_message', True, None, 2, ), # 1
    (2, TType.STRING, 'internal_error_message', True, None, 2, ), # 2
  )
  
  ComplexFieldNames.thrift_struct_annotations = {
    "message": "internal_error_message",
  }
  ComplexFieldNames.thrift_field_annotations = {
  }
  
  def ComplexFieldNames__init__(self, error_message=None, internal_error_message=None,):
    self.error_message = error_message
    self.internal_error_message = internal_error_message
  
  ComplexFieldNames.__init__ = ComplexFieldNames__init__
  
  def ComplexFieldNames__setstate__(self, state):
    state.setdefault('error_message', None)
    state.setdefault('internal_error_message', None)
    self.__dict__ = state
  
  ComplexFieldNames.__getstate__ = lambda self: self.__dict__.copy()
  ComplexFieldNames.__setstate__ = ComplexFieldNames__setstate__
  
  all_structs.append(CustomFieldNames)
  CustomFieldNames.thrift_spec = (
    None, # 0
    (1, TType.STRING, 'error_message', True, None, 2, ), # 1
    (2, TType.STRING, 'internal_error_message', True, None, 2, ), # 2
  )
  
  CustomFieldNames.thrift_struct_annotations = {
    "message": "internal_error_message",
  }
  CustomFieldNames.thrift_field_annotations = {
    2: {
      "java.swift.name": "internalGreatMessage",
    },
  }
  
  def CustomFieldNames__init__(self, error_message=None, internal_error_message=None,):
    self.error_message = error_message
    self.internal_error_message = internal_error_message
  
  CustomFieldNames.__init__ = CustomFieldNames__init__
  
  def CustomFieldNames__setstate__(self, state):
    state.setdefault('error_message', None)
    state.setdefault('internal_error_message', None)
    self.__dict__ = state
  
  CustomFieldNames.__getstate__ = lambda self: self.__dict__.copy()
  CustomFieldNames.__setstate__ = CustomFieldNames__setstate__
  
  fix_spec(all_structs)
  del all_structs
  