@Override
  protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    switch (setField_) {
      case PRIMITIVE_ENTRY:
        TPrimitiveTypeEntry primitiveEntry = (TPrimitiveTypeEntry)value_;
        primitiveEntry.write(oprot);
        return;
      case ARRAY_ENTRY:
        TArrayTypeEntry arrayEntry = (TArrayTypeEntry)value_;
        arrayEntry.write(oprot);
        return;
      case MAP_ENTRY:
        TMapTypeEntry mapEntry = (TMapTypeEntry)value_;
        mapEntry.write(oprot);
        return;
      case STRUCT_ENTRY:
        TStructTypeEntry structEntry = (TStructTypeEntry)value_;
        structEntry.write(oprot);
        return;
      case UNION_ENTRY:
        TUnionTypeEntry unionEntry = (TUnionTypeEntry)value_;
        unionEntry.write(oprot);
        return;
      case USER_DEFINED_TYPE_ENTRY:
        TUserDefinedTypeEntry userDefinedTypeEntry = (TUserDefinedTypeEntry)value_;
        userDefinedTypeEntry.write(oprot);
        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.
service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TTypeEntry.java