/**
 * Autogenerated by Thrift Compiler (0.20.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package com.jetbrains.python.console.protocol;

/**
 * Corresponds to `PyDebugValue`.
 */
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.20.0)", date = "2025-06-03")
public class DebugValue implements org.apache.thrift.TBase<DebugValue, DebugValue._Fields>, java.io.Serializable, Cloneable, Comparable<DebugValue> {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DebugValue");

  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)2);
  private static final org.apache.thrift.protocol.TField QUALIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifier", org.apache.thrift.protocol.TType.STRING, (short)3);
  private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)4);
  private static final org.apache.thrift.protocol.TField IS_CONTAINER_FIELD_DESC = new org.apache.thrift.protocol.TField("isContainer", org.apache.thrift.protocol.TType.BOOL, (short)5);
  private static final org.apache.thrift.protocol.TField SHAPE_FIELD_DESC = new org.apache.thrift.protocol.TField("shape", org.apache.thrift.protocol.TType.STRING, (short)6);
  private static final org.apache.thrift.protocol.TField ARRAY_ELEMENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("arrayElementType", org.apache.thrift.protocol.TType.STRING, (short)7);
  private static final org.apache.thrift.protocol.TField IS_RETURNED_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("isReturnedValue", org.apache.thrift.protocol.TType.BOOL, (short)8);
  private static final org.apache.thrift.protocol.TField IS_IPYTHON_HIDDEN_FIELD_DESC = new org.apache.thrift.protocol.TField("isIPythonHidden", org.apache.thrift.protocol.TType.BOOL, (short)9);
  private static final org.apache.thrift.protocol.TField IS_ERROR_ON_EVAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isErrorOnEval", org.apache.thrift.protocol.TType.BOOL, (short)10);
  private static final org.apache.thrift.protocol.TField TYPE_RENDERER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("typeRendererId", org.apache.thrift.protocol.TType.STRING, (short)11);

  private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new DebugValueStandardSchemeFactory();
  private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new DebugValueTupleSchemeFactory();

  public @org.apache.thrift.annotation.Nullable java.lang.String name; // required
  public @org.apache.thrift.annotation.Nullable java.lang.String type; // required
  public @org.apache.thrift.annotation.Nullable java.lang.String qualifier; // required
  public @org.apache.thrift.annotation.Nullable java.lang.String value; // required
  public boolean isContainer; // required
  public @org.apache.thrift.annotation.Nullable java.lang.String shape; // required
  public @org.apache.thrift.annotation.Nullable java.lang.String arrayElementType; // required
  public boolean isReturnedValue; // required
  public boolean isIPythonHidden; // required
  public boolean isErrorOnEval; // required
  public @org.apache.thrift.annotation.Nullable java.lang.String typeRendererId; // required

  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    NAME((short)1, "name"),
    TYPE((short)2, "type"),
    QUALIFIER((short)3, "qualifier"),
    VALUE((short)4, "value"),
    IS_CONTAINER((short)5, "isContainer"),
    SHAPE((short)6, "shape"),
    ARRAY_ELEMENT_TYPE((short)7, "arrayElementType"),
    IS_RETURNED_VALUE((short)8, "isReturnedValue"),
    IS_IPYTHON_HIDDEN((short)9, "isIPythonHidden"),
    IS_ERROR_ON_EVAL((short)10, "isErrorOnEval"),
    TYPE_RENDERER_ID((short)11, "typeRendererId");

    private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();

    static {
      for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
        byName.put(field.getFieldName(), field);
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // NAME
          return NAME;
        case 2: // TYPE
          return TYPE;
        case 3: // QUALIFIER
          return QUALIFIER;
        case 4: // VALUE
          return VALUE;
        case 5: // IS_CONTAINER
          return IS_CONTAINER;
        case 6: // SHAPE
          return SHAPE;
        case 7: // ARRAY_ELEMENT_TYPE
          return ARRAY_ELEMENT_TYPE;
        case 8: // IS_RETURNED_VALUE
          return IS_RETURNED_VALUE;
        case 9: // IS_IPYTHON_HIDDEN
          return IS_IPYTHON_HIDDEN;
        case 10: // IS_ERROR_ON_EVAL
          return IS_ERROR_ON_EVAL;
        case 11: // TYPE_RENDERER_ID
          return TYPE_RENDERER_ID;
        default:
          return null;
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, throwing an exception
     * if it is not found.
     */
    public static _Fields findByThriftIdOrThrow(int fieldId) {
      _Fields fields = findByThriftId(fieldId);
      if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
      return fields;
    }

    /**
     * Find the _Fields constant that matches name, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByName(java.lang.String name) {
      return byName.get(name);
    }

    private final short _thriftId;
    private final java.lang.String _fieldName;

    _Fields(short thriftId, java.lang.String fieldName) {
      _thriftId = thriftId;
      _fieldName = fieldName;
    }

    @Override
    public short getThriftFieldId() {
      return _thriftId;
    }

    @Override
    public java.lang.String getFieldName() {
      return _fieldName;
    }
  }

  // isset id assignments
  private static final int __ISCONTAINER_ISSET_ID = 0;
  private static final int __ISRETURNEDVALUE_ISSET_ID = 1;
  private static final int __ISIPYTHONHIDDEN_ISSET_ID = 2;
  private static final int __ISERRORONEVAL_ISSET_ID = 3;
  private byte __isset_bitfield = 0;
  public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
  static {
    java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("qualifier", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.IS_CONTAINER, new org.apache.thrift.meta_data.FieldMetaData("isContainer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.SHAPE, new org.apache.thrift.meta_data.FieldMetaData("shape", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.ARRAY_ELEMENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("arrayElementType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.IS_RETURNED_VALUE, new org.apache.thrift.meta_data.FieldMetaData("isReturnedValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.IS_IPYTHON_HIDDEN, new org.apache.thrift.meta_data.FieldMetaData("isIPythonHidden", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.IS_ERROR_ON_EVAL, new org.apache.thrift.meta_data.FieldMetaData("isErrorOnEval", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.TYPE_RENDERER_ID, new org.apache.thrift.meta_data.FieldMetaData("typeRendererId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DebugValue.class, metaDataMap);
  }

  public DebugValue() {
  }

  public DebugValue(
    java.lang.String name,
    java.lang.String type,
    java.lang.String qualifier,
    java.lang.String value,
    boolean isContainer,
    java.lang.String shape,
    java.lang.String arrayElementType,
    boolean isReturnedValue,
    boolean isIPythonHidden,
    boolean isErrorOnEval,
    java.lang.String typeRendererId)
  {
    this();
    this.name = name;
    this.type = type;
    this.qualifier = qualifier;
    this.value = value;
    this.isContainer = isContainer;
    setIsContainerIsSet(true);
    this.shape = shape;
    this.arrayElementType = arrayElementType;
    this.isReturnedValue = isReturnedValue;
    setIsReturnedValueIsSet(true);
    this.isIPythonHidden = isIPythonHidden;
    setIsIPythonHiddenIsSet(true);
    this.isErrorOnEval = isErrorOnEval;
    setIsErrorOnEvalIsSet(true);
    this.typeRendererId = typeRendererId;
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public DebugValue(DebugValue other) {
    __isset_bitfield = other.__isset_bitfield;
    if (other.isSetName()) {
      this.name = other.name;
    }
    if (other.isSetType()) {
      this.type = other.type;
    }
    if (other.isSetQualifier()) {
      this.qualifier = other.qualifier;
    }
    if (other.isSetValue()) {
      this.value = other.value;
    }
    this.isContainer = other.isContainer;
    if (other.isSetShape()) {
      this.shape = other.shape;
    }
    if (other.isSetArrayElementType()) {
      this.arrayElementType = other.arrayElementType;
    }
    this.isReturnedValue = other.isReturnedValue;
    this.isIPythonHidden = other.isIPythonHidden;
    this.isErrorOnEval = other.isErrorOnEval;
    if (other.isSetTypeRendererId()) {
      this.typeRendererId = other.typeRendererId;
    }
  }

  @Override
  public DebugValue deepCopy() {
    return new DebugValue(this);
  }

  @Override
  public void clear() {
    this.name = null;
    this.type = null;
    this.qualifier = null;
    this.value = null;
    setIsContainerIsSet(false);
    this.isContainer = false;
    this.shape = null;
    this.arrayElementType = null;
    setIsReturnedValueIsSet(false);
    this.isReturnedValue = false;
    setIsIPythonHiddenIsSet(false);
    this.isIPythonHidden = false;
    setIsErrorOnEvalIsSet(false);
    this.isErrorOnEval = false;
    this.typeRendererId = null;
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getName() {
    return this.name;
  }

  public DebugValue setName(@org.apache.thrift.annotation.Nullable java.lang.String name) {
    this.name = name;
    return this;
  }

  public void unsetName() {
    this.name = null;
  }

  /** Returns true if field name is set (has been assigned a value) and false otherwise */
  public boolean isSetName() {
    return this.name != null;
  }

  public void setNameIsSet(boolean value) {
    if (!value) {
      this.name = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getType() {
    return this.type;
  }

  public DebugValue setType(@org.apache.thrift.annotation.Nullable java.lang.String type) {
    this.type = type;
    return this;
  }

  public void unsetType() {
    this.type = null;
  }

  /** Returns true if field type is set (has been assigned a value) and false otherwise */
  public boolean isSetType() {
    return this.type != null;
  }

  public void setTypeIsSet(boolean value) {
    if (!value) {
      this.type = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getQualifier() {
    return this.qualifier;
  }

  public DebugValue setQualifier(@org.apache.thrift.annotation.Nullable java.lang.String qualifier) {
    this.qualifier = qualifier;
    return this;
  }

  public void unsetQualifier() {
    this.qualifier = null;
  }

  /** Returns true if field qualifier is set (has been assigned a value) and false otherwise */
  public boolean isSetQualifier() {
    return this.qualifier != null;
  }

  public void setQualifierIsSet(boolean value) {
    if (!value) {
      this.qualifier = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getValue() {
    return this.value;
  }

  public DebugValue setValue(@org.apache.thrift.annotation.Nullable java.lang.String value) {
    this.value = value;
    return this;
  }

  public void unsetValue() {
    this.value = null;
  }

  /** Returns true if field value is set (has been assigned a value) and false otherwise */
  public boolean isSetValue() {
    return this.value != null;
  }

  public void setValueIsSet(boolean value) {
    if (!value) {
      this.value = null;
    }
  }

  public boolean isIsContainer() {
    return this.isContainer;
  }

  public DebugValue setIsContainer(boolean isContainer) {
    this.isContainer = isContainer;
    setIsContainerIsSet(true);
    return this;
  }

  public void unsetIsContainer() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISCONTAINER_ISSET_ID);
  }

  /** Returns true if field isContainer is set (has been assigned a value) and false otherwise */
  public boolean isSetIsContainer() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISCONTAINER_ISSET_ID);
  }

  public void setIsContainerIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISCONTAINER_ISSET_ID, value);
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getShape() {
    return this.shape;
  }

  public DebugValue setShape(@org.apache.thrift.annotation.Nullable java.lang.String shape) {
    this.shape = shape;
    return this;
  }

  public void unsetShape() {
    this.shape = null;
  }

  /** Returns true if field shape is set (has been assigned a value) and false otherwise */
  public boolean isSetShape() {
    return this.shape != null;
  }

  public void setShapeIsSet(boolean value) {
    if (!value) {
      this.shape = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getArrayElementType() {
    return this.arrayElementType;
  }

  public DebugValue setArrayElementType(@org.apache.thrift.annotation.Nullable java.lang.String arrayElementType) {
    this.arrayElementType = arrayElementType;
    return this;
  }

  public void unsetArrayElementType() {
    this.arrayElementType = null;
  }

  /** Returns true if field arrayElementType is set (has been assigned a value) and false otherwise */
  public boolean isSetArrayElementType() {
    return this.arrayElementType != null;
  }

  public void setArrayElementTypeIsSet(boolean value) {
    if (!value) {
      this.arrayElementType = null;
    }
  }

  public boolean isIsReturnedValue() {
    return this.isReturnedValue;
  }

  public DebugValue setIsReturnedValue(boolean isReturnedValue) {
    this.isReturnedValue = isReturnedValue;
    setIsReturnedValueIsSet(true);
    return this;
  }

  public void unsetIsReturnedValue() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISRETURNEDVALUE_ISSET_ID);
  }

  /** Returns true if field isReturnedValue is set (has been assigned a value) and false otherwise */
  public boolean isSetIsReturnedValue() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISRETURNEDVALUE_ISSET_ID);
  }

  public void setIsReturnedValueIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISRETURNEDVALUE_ISSET_ID, value);
  }

  public boolean isIsIPythonHidden() {
    return this.isIPythonHidden;
  }

  public DebugValue setIsIPythonHidden(boolean isIPythonHidden) {
    this.isIPythonHidden = isIPythonHidden;
    setIsIPythonHiddenIsSet(true);
    return this;
  }

  public void unsetIsIPythonHidden() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISIPYTHONHIDDEN_ISSET_ID);
  }

  /** Returns true if field isIPythonHidden is set (has been assigned a value) and false otherwise */
  public boolean isSetIsIPythonHidden() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISIPYTHONHIDDEN_ISSET_ID);
  }

  public void setIsIPythonHiddenIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISIPYTHONHIDDEN_ISSET_ID, value);
  }

  public boolean isIsErrorOnEval() {
    return this.isErrorOnEval;
  }

  public DebugValue setIsErrorOnEval(boolean isErrorOnEval) {
    this.isErrorOnEval = isErrorOnEval;
    setIsErrorOnEvalIsSet(true);
    return this;
  }

  public void unsetIsErrorOnEval() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISERRORONEVAL_ISSET_ID);
  }

  /** Returns true if field isErrorOnEval is set (has been assigned a value) and false otherwise */
  public boolean isSetIsErrorOnEval() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISERRORONEVAL_ISSET_ID);
  }

  public void setIsErrorOnEvalIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISERRORONEVAL_ISSET_ID, value);
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getTypeRendererId() {
    return this.typeRendererId;
  }

  public DebugValue setTypeRendererId(@org.apache.thrift.annotation.Nullable java.lang.String typeRendererId) {
    this.typeRendererId = typeRendererId;
    return this;
  }

  public void unsetTypeRendererId() {
    this.typeRendererId = null;
  }

  /** Returns true if field typeRendererId is set (has been assigned a value) and false otherwise */
  public boolean isSetTypeRendererId() {
    return this.typeRendererId != null;
  }

  public void setTypeRendererIdIsSet(boolean value) {
    if (!value) {
      this.typeRendererId = null;
    }
  }

  @Override
  public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case NAME:
      if (value == null) {
        unsetName();
      } else {
        setName((java.lang.String)value);
      }
      break;

    case TYPE:
      if (value == null) {
        unsetType();
      } else {
        setType((java.lang.String)value);
      }
      break;

    case QUALIFIER:
      if (value == null) {
        unsetQualifier();
      } else {
        setQualifier((java.lang.String)value);
      }
      break;

    case VALUE:
      if (value == null) {
        unsetValue();
      } else {
        setValue((java.lang.String)value);
      }
      break;

    case IS_CONTAINER:
      if (value == null) {
        unsetIsContainer();
      } else {
        setIsContainer((java.lang.Boolean)value);
      }
      break;

    case SHAPE:
      if (value == null) {
        unsetShape();
      } else {
        setShape((java.lang.String)value);
      }
      break;

    case ARRAY_ELEMENT_TYPE:
      if (value == null) {
        unsetArrayElementType();
      } else {
        setArrayElementType((java.lang.String)value);
      }
      break;

    case IS_RETURNED_VALUE:
      if (value == null) {
        unsetIsReturnedValue();
      } else {
        setIsReturnedValue((java.lang.Boolean)value);
      }
      break;

    case IS_IPYTHON_HIDDEN:
      if (value == null) {
        unsetIsIPythonHidden();
      } else {
        setIsIPythonHidden((java.lang.Boolean)value);
      }
      break;

    case IS_ERROR_ON_EVAL:
      if (value == null) {
        unsetIsErrorOnEval();
      } else {
        setIsErrorOnEval((java.lang.Boolean)value);
      }
      break;

    case TYPE_RENDERER_ID:
      if (value == null) {
        unsetTypeRendererId();
      } else {
        setTypeRendererId((java.lang.String)value);
      }
      break;

    }
  }

  @org.apache.thrift.annotation.Nullable
  @Override
  public java.lang.Object getFieldValue(_Fields field) {
    switch (field) {
    case NAME:
      return getName();

    case TYPE:
      return getType();

    case QUALIFIER:
      return getQualifier();

    case VALUE:
      return getValue();

    case IS_CONTAINER:
      return isIsContainer();

    case SHAPE:
      return getShape();

    case ARRAY_ELEMENT_TYPE:
      return getArrayElementType();

    case IS_RETURNED_VALUE:
      return isIsReturnedValue();

    case IS_IPYTHON_HIDDEN:
      return isIsIPythonHidden();

    case IS_ERROR_ON_EVAL:
      return isIsErrorOnEval();

    case TYPE_RENDERER_ID:
      return getTypeRendererId();

    }
    throw new java.lang.IllegalStateException();
  }

  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
  @Override
  public boolean isSet(_Fields field) {
    if (field == null) {
      throw new java.lang.IllegalArgumentException();
    }

    switch (field) {
    case NAME:
      return isSetName();
    case TYPE:
      return isSetType();
    case QUALIFIER:
      return isSetQualifier();
    case VALUE:
      return isSetValue();
    case IS_CONTAINER:
      return isSetIsContainer();
    case SHAPE:
      return isSetShape();
    case ARRAY_ELEMENT_TYPE:
      return isSetArrayElementType();
    case IS_RETURNED_VALUE:
      return isSetIsReturnedValue();
    case IS_IPYTHON_HIDDEN:
      return isSetIsIPythonHidden();
    case IS_ERROR_ON_EVAL:
      return isSetIsErrorOnEval();
    case TYPE_RENDERER_ID:
      return isSetTypeRendererId();
    }
    throw new java.lang.IllegalStateException();
  }

  @Override
  public boolean equals(java.lang.Object that) {
    if (that instanceof DebugValue)
      return this.equals((DebugValue)that);
    return false;
  }

  public boolean equals(DebugValue that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_name = true && this.isSetName();
    boolean that_present_name = true && that.isSetName();
    if (this_present_name || that_present_name) {
      if (!(this_present_name && that_present_name))
        return false;
      if (!this.name.equals(that.name))
        return false;
    }

    boolean this_present_type = true && this.isSetType();
    boolean that_present_type = true && that.isSetType();
    if (this_present_type || that_present_type) {
      if (!(this_present_type && that_present_type))
        return false;
      if (!this.type.equals(that.type))
        return false;
    }

    boolean this_present_qualifier = true && this.isSetQualifier();
    boolean that_present_qualifier = true && that.isSetQualifier();
    if (this_present_qualifier || that_present_qualifier) {
      if (!(this_present_qualifier && that_present_qualifier))
        return false;
      if (!this.qualifier.equals(that.qualifier))
        return false;
    }

    boolean this_present_value = true && this.isSetValue();
    boolean that_present_value = true && that.isSetValue();
    if (this_present_value || that_present_value) {
      if (!(this_present_value && that_present_value))
        return false;
      if (!this.value.equals(that.value))
        return false;
    }

    boolean this_present_isContainer = true;
    boolean that_present_isContainer = true;
    if (this_present_isContainer || that_present_isContainer) {
      if (!(this_present_isContainer && that_present_isContainer))
        return false;
      if (this.isContainer != that.isContainer)
        return false;
    }

    boolean this_present_shape = true && this.isSetShape();
    boolean that_present_shape = true && that.isSetShape();
    if (this_present_shape || that_present_shape) {
      if (!(this_present_shape && that_present_shape))
        return false;
      if (!this.shape.equals(that.shape))
        return false;
    }

    boolean this_present_arrayElementType = true && this.isSetArrayElementType();
    boolean that_present_arrayElementType = true && that.isSetArrayElementType();
    if (this_present_arrayElementType || that_present_arrayElementType) {
      if (!(this_present_arrayElementType && that_present_arrayElementType))
        return false;
      if (!this.arrayElementType.equals(that.arrayElementType))
        return false;
    }

    boolean this_present_isReturnedValue = true;
    boolean that_present_isReturnedValue = true;
    if (this_present_isReturnedValue || that_present_isReturnedValue) {
      if (!(this_present_isReturnedValue && that_present_isReturnedValue))
        return false;
      if (this.isReturnedValue != that.isReturnedValue)
        return false;
    }

    boolean this_present_isIPythonHidden = true;
    boolean that_present_isIPythonHidden = true;
    if (this_present_isIPythonHidden || that_present_isIPythonHidden) {
      if (!(this_present_isIPythonHidden && that_present_isIPythonHidden))
        return false;
      if (this.isIPythonHidden != that.isIPythonHidden)
        return false;
    }

    boolean this_present_isErrorOnEval = true;
    boolean that_present_isErrorOnEval = true;
    if (this_present_isErrorOnEval || that_present_isErrorOnEval) {
      if (!(this_present_isErrorOnEval && that_present_isErrorOnEval))
        return false;
      if (this.isErrorOnEval != that.isErrorOnEval)
        return false;
    }

    boolean this_present_typeRendererId = true && this.isSetTypeRendererId();
    boolean that_present_typeRendererId = true && that.isSetTypeRendererId();
    if (this_present_typeRendererId || that_present_typeRendererId) {
      if (!(this_present_typeRendererId && that_present_typeRendererId))
        return false;
      if (!this.typeRendererId.equals(that.typeRendererId))
        return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    int hashCode = 1;

    hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287);
    if (isSetName())
      hashCode = hashCode * 8191 + name.hashCode();

    hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287);
    if (isSetType())
      hashCode = hashCode * 8191 + type.hashCode();

    hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287);
    if (isSetQualifier())
      hashCode = hashCode * 8191 + qualifier.hashCode();

    hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287);
    if (isSetValue())
      hashCode = hashCode * 8191 + value.hashCode();

    hashCode = hashCode * 8191 + ((isContainer) ? 131071 : 524287);

    hashCode = hashCode * 8191 + ((isSetShape()) ? 131071 : 524287);
    if (isSetShape())
      hashCode = hashCode * 8191 + shape.hashCode();

    hashCode = hashCode * 8191 + ((isSetArrayElementType()) ? 131071 : 524287);
    if (isSetArrayElementType())
      hashCode = hashCode * 8191 + arrayElementType.hashCode();

    hashCode = hashCode * 8191 + ((isReturnedValue) ? 131071 : 524287);

    hashCode = hashCode * 8191 + ((isIPythonHidden) ? 131071 : 524287);

    hashCode = hashCode * 8191 + ((isErrorOnEval) ? 131071 : 524287);

    hashCode = hashCode * 8191 + ((isSetTypeRendererId()) ? 131071 : 524287);
    if (isSetTypeRendererId())
      hashCode = hashCode * 8191 + typeRendererId.hashCode();

    return hashCode;
  }

  @Override
  public int compareTo(DebugValue other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = java.lang.Boolean.compare(isSetName(), other.isSetName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetName()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetType(), other.isSetType());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetType()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetQualifier(), other.isSetQualifier());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetQualifier()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, other.qualifier);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetValue(), other.isSetValue());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetValue()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetIsContainer(), other.isSetIsContainer());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIsContainer()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isContainer, other.isContainer);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetShape(), other.isSetShape());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetShape()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shape, other.shape);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetArrayElementType(), other.isSetArrayElementType());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetArrayElementType()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.arrayElementType, other.arrayElementType);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetIsReturnedValue(), other.isSetIsReturnedValue());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIsReturnedValue()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isReturnedValue, other.isReturnedValue);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetIsIPythonHidden(), other.isSetIsIPythonHidden());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIsIPythonHidden()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isIPythonHidden, other.isIPythonHidden);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetIsErrorOnEval(), other.isSetIsErrorOnEval());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIsErrorOnEval()) {
