public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsResult struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TField schemeField;
      iprot.readStructBegin();
      while (true)
      {
        schemeField = iprot.readFieldBegin();
        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
          break;
        }
        switch (schemeField.id) {
          case 1: // PARTITIONS
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list642 = iprot.readListBegin();
                struct.partitions = new java.util.ArrayList<Partition>(_list642.size);
                @org.apache.thrift.annotation.Nullable Partition _elem643;
                for (int _i644 = 0; _i644 < _list642.size; ++_i644)
                {
                  _elem643 = new Partition();
                  _elem643.read(iprot);
                  struct.partitions.add(_elem643);
                }
                iprot.readListEnd();
              }
              struct.setPartitionsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // IS_STATS_COMPLIANT
            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
              struct.isStatsCompliant = iprot.readBool();
              struct.setIsStatsCompliantIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // PARTITION_COL_SCHEMA
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list645 = iprot.readListBegin();
                struct.partitionColSchema = new java.util.ArrayList<FieldSchema>(_list645.size);
                @org.apache.thrift.annotation.Nullable FieldSchema _elem646;
                for (int _i647 = 0; _i647 < _list645.size; ++_i647)
                {
                  _elem646 = new FieldSchema();
                  _elem646.read(iprot);
                  struct.partitionColSchema.add(_elem646);
                }
                iprot.readListEnd();
              }
              struct.setPartitionColSchemaIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          default:
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
        }
        iprot.readFieldEnd();
      }
      iprot.readStructEnd();
      struct.validate();
    }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java