@Override
  protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    switch (setField_) {
      case INSERT_DATA:
        InsertEventRequestData insertData = (InsertEventRequestData)value_;
        insertData.write(oprot);
        return;
      case INSERT_DATAS:
        java.util.List<InsertEventRequestData> insertDatas = (java.util.List<InsertEventRequestData>)value_;
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, insertDatas.size()));
          for (InsertEventRequestData _iter1063 : insertDatas)
          {
            _iter1063.write(oprot);
          }
          oprot.writeListEnd();
        }
        return;
      case REFRESH_EVENT:
        java.lang.Boolean refreshEvent = (java.lang.Boolean)value_;
        oprot.writeBool(refreshEvent);
        return;
      default:
        throw new java.lang.IllegalStateException("Cannot write union with unknown field " + setField_);
    }
  }
Find the _Fields constant that matches name, or null if its not found.
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequestData.java