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

    hashCode = hashCode * 8191 + ((isSetMy_bool()) ? 131071 : 524287);
    if (isSetMy_bool())
      hashCode = hashCode * 8191 + ((my_bool) ? 131071 : 524287);

    hashCode = hashCode * 8191 + ((isSetMy_byte()) ? 131071 : 524287);
    if (isSetMy_byte())
      hashCode = hashCode * 8191 + (int) (my_byte);

    hashCode = hashCode * 8191 + ((isSetMy_16bit_int()) ? 131071 : 524287);
    if (isSetMy_16bit_int())
      hashCode = hashCode * 8191 + my_16bit_int;

    hashCode = hashCode * 8191 + ((isSetMy_32bit_int()) ? 131071 : 524287);
    if (isSetMy_32bit_int())
      hashCode = hashCode * 8191 + my_32bit_int;

    hashCode = hashCode * 8191 + ((isSetMy_64bit_int()) ? 131071 : 524287);
    if (isSetMy_64bit_int())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(my_64bit_int);

    hashCode = hashCode * 8191 + ((isSetMy_double()) ? 131071 : 524287);
    if (isSetMy_double())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(my_double);

    hashCode = hashCode * 8191 + ((isSetMy_string()) ? 131071 : 524287);
    if (isSetMy_string())
      hashCode = hashCode * 8191 + my_string.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_binary()) ? 131071 : 524287);
    if (isSetMy_binary())
      hashCode = hashCode * 8191 + my_binary.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_string_string_map()) ? 131071 : 524287);
    if (isSetMy_string_string_map())
      hashCode = hashCode * 8191 + my_string_string_map.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_string_enum_map()) ? 131071 : 524287);
    if (isSetMy_string_enum_map())
      hashCode = hashCode * 8191 + my_string_enum_map.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_enum_string_map()) ? 131071 : 524287);
    if (isSetMy_enum_string_map())
      hashCode = hashCode * 8191 + my_enum_string_map.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_enum_struct_map()) ? 131071 : 524287);
    if (isSetMy_enum_struct_map())
      hashCode = hashCode * 8191 + my_enum_struct_map.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_enum_stringlist_map()) ? 131071 : 524287);
    if (isSetMy_enum_stringlist_map())
      hashCode = hashCode * 8191 + my_enum_stringlist_map.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_enum_structlist_map()) ? 131071 : 524287);
    if (isSetMy_enum_structlist_map())
      hashCode = hashCode * 8191 + my_enum_structlist_map.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_stringlist()) ? 131071 : 524287);
    if (isSetMy_stringlist())
      hashCode = hashCode * 8191 + my_stringlist.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_structlist()) ? 131071 : 524287);
    if (isSetMy_structlist())
      hashCode = hashCode * 8191 + my_structlist.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_enumlist()) ? 131071 : 524287);
    if (isSetMy_enumlist())
      hashCode = hashCode * 8191 + my_enumlist.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_stringset()) ? 131071 : 524287);
    if (isSetMy_stringset())
      hashCode = hashCode * 8191 + my_stringset.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_enumset()) ? 131071 : 524287);
    if (isSetMy_enumset())
      hashCode = hashCode * 8191 + my_enumset.hashCode();

    hashCode = hashCode * 8191 + ((isSetMy_structset()) ? 131071 : 524287);
    if (isSetMy_structset())
      hashCode = hashCode * 8191 + my_structset.hashCode();

    return hashCode;
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java