public TMapTypeEntry getMapEntry() {
    if (getSetField() == _Fields.MAP_ENTRY) {
      return (TMapTypeEntry)getFieldValue();
    } else {
      throw new java.lang.RuntimeException("Cannot get field 'mapEntry' because union is currently set to " + getFieldDesc(getSetField()).name);
    }
  }
Find the _Fields constant that matches name, or null if its not found.
service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TTypeEntry.java