public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case AINT:
      if (value == null) {
        unsetAint();
      } else {
        setAint((java.lang.Integer)value);
      }
      break;

    case A_STRING:
      if (value == null) {
        unsetAString();
      } else {
        setAString((java.lang.String)value);
      }
      break;

    case LINT:
      if (value == null) {
        unsetLint();
      } else {
        setLint((java.util.List<java.lang.Integer>)value);
      }
      break;

    case L_STRING:
      if (value == null) {
        unsetLString();
      } else {
        setLString((java.util.List<java.lang.String>)value);
      }
      break;

    case LINT_STRING:
      if (value == null) {
        unsetLintString();
      } else {
        setLintString((java.util.List<IntString>)value);
      }
      break;

    case M_STRING_STRING:
      if (value == null) {
        unsetMStringString();
      } else {
        setMStringString((java.util.Map<java.lang.String,java.lang.String>)value);
      }
      break;

    case ATTRIBUTES:
      if (value == null) {
        unsetAttributes();
      } else {
        setAttributes((java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,PropValueUnion>>>)value);
      }
      break;

    case UNION_FIELD1:
      if (value == null) {
        unsetUnionField1();
      } else {
        setUnionField1((PropValueUnion)value);
      }
      break;

    case UNION_FIELD2:
      if (value == null) {
        unsetUnionField2();
      } else {
        setUnionField2((PropValueUnion)value);
      }
      break;

    case UNION_FIELD3:
      if (value == null) {
        unsetUnionField3();
      } else {
        setUnionField3((PropValueUnion)value);
      }
      break;

    }
  }
Returns true if field unionField3 is set (has been assigned a value) and false otherwise
serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java