Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

/**
 * Autogenerated by Thrift Compiler (0.7.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 */
package in.shop2020.model.v1.order;

import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class FbaSkuSaleReturnDetail implements org.apache.thrift.TBase<FbaSkuSaleReturnDetail, FbaSkuSaleReturnDetail._Fields>, java.io.Serializable, Cloneable {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FbaSkuSaleReturnDetail");

  private static final org.apache.thrift.protocol.TField SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sku", org.apache.thrift.protocol.TType.I64, (short)1);
  private static final org.apache.thrift.protocol.TField TOTAL_SOLD_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("totalSoldQuantity", org.apache.thrift.protocol.TType.I64, (short)2);
  private static final org.apache.thrift.protocol.TField TOTAL_RETURN_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("totalReturnQuantity", org.apache.thrift.protocol.TType.I64, (short)3);
  private static final org.apache.thrift.protocol.TField TOTAL_SELLABLE_RETURN_FIELD_DESC = new org.apache.thrift.protocol.TField("totalSellableReturn", org.apache.thrift.protocol.TType.I64, (short)4);
  private static final org.apache.thrift.protocol.TField TOTAL_NON_SELLABLE_RETURN_FIELD_DESC = new org.apache.thrift.protocol.TField("totalNonSellableReturn", org.apache.thrift.protocol.TType.I64, (short)5);

  private long sku; // required
  private long totalSoldQuantity; // required
  private long totalReturnQuantity; // required
  private long totalSellableReturn; // required
  private long totalNonSellableReturn; // required

  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    SKU((short)1, "sku"),
    TOTAL_SOLD_QUANTITY((short)2, "totalSoldQuantity"),
    TOTAL_RETURN_QUANTITY((short)3, "totalReturnQuantity"),
    TOTAL_SELLABLE_RETURN((short)4, "totalSellableReturn"),
    TOTAL_NON_SELLABLE_RETURN((short)5, "totalNonSellableReturn");

    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

    static {
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
        byName.put(field.getFieldName(), field);
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, or null if its not found.
     */
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // SKU
          return SKU;
        case 2: // TOTAL_SOLD_QUANTITY
          return TOTAL_SOLD_QUANTITY;
        case 3: // TOTAL_RETURN_QUANTITY
          return TOTAL_RETURN_QUANTITY;
        case 4: // TOTAL_SELLABLE_RETURN
          return TOTAL_SELLABLE_RETURN;
        case 5: // TOTAL_NON_SELLABLE_RETURN
          return TOTAL_NON_SELLABLE_RETURN;
        default:
          return null;
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, throwing an exception
     * if it is not found.
     */
    public static _Fields findByThriftIdOrThrow(int fieldId) {
      _Fields fields = findByThriftId(fieldId);
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
      return fields;
    }

    /**
     * Find the _Fields constant that matches name, or null if its not found.
     */
    public static _Fields findByName(String name) {
      return byName.get(name);
    }

    private final short _thriftId;
    private final String _fieldName;

    _Fields(short thriftId, String fieldName) {
      _thriftId = thriftId;
      _fieldName = fieldName;
    }

    public short getThriftFieldId() {
      return _thriftId;
    }

    public String getFieldName() {
      return _fieldName;
    }
  }

  // isset id assignments
  private static final int __SKU_ISSET_ID = 0;
  private static final int __TOTALSOLDQUANTITY_ISSET_ID = 1;
  private static final int __TOTALRETURNQUANTITY_ISSET_ID = 2;
  private static final int __TOTALSELLABLERETURN_ISSET_ID = 3;
  private static final int __TOTALNONSELLABLERETURN_ISSET_ID = 4;
  private BitSet __isset_bit_vector = new BitSet(5);

  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
  static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    tmpMap.put(_Fields.SKU, new org.apache.thrift.meta_data.FieldMetaData("sku", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.TOTAL_SOLD_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("totalSoldQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.TOTAL_RETURN_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("totalReturnQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.TOTAL_SELLABLE_RETURN, new org.apache.thrift.meta_data.FieldMetaData("totalSellableReturn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.TOTAL_NON_SELLABLE_RETURN, new org.apache.thrift.meta_data.FieldMetaData("totalNonSellableReturn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FbaSkuSaleReturnDetail.class, metaDataMap);
  }

  public FbaSkuSaleReturnDetail() {
  }

  public FbaSkuSaleReturnDetail(
    long sku,
    long totalSoldQuantity,
    long totalReturnQuantity,
    long totalSellableReturn,
    long totalNonSellableReturn)
  {
    this();
    this.sku = sku;
    setSkuIsSet(true);
    this.totalSoldQuantity = totalSoldQuantity;
    setTotalSoldQuantityIsSet(true);
    this.totalReturnQuantity = totalReturnQuantity;
    setTotalReturnQuantityIsSet(true);
    this.totalSellableReturn = totalSellableReturn;
    setTotalSellableReturnIsSet(true);
    this.totalNonSellableReturn = totalNonSellableReturn;
    setTotalNonSellableReturnIsSet(true);
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public FbaSkuSaleReturnDetail(FbaSkuSaleReturnDetail other) {
    __isset_bit_vector.clear();
    __isset_bit_vector.or(other.__isset_bit_vector);
    this.sku = other.sku;
    this.totalSoldQuantity = other.totalSoldQuantity;
    this.totalReturnQuantity = other.totalReturnQuantity;
    this.totalSellableReturn = other.totalSellableReturn;
    this.totalNonSellableReturn = other.totalNonSellableReturn;
  }

  public FbaSkuSaleReturnDetail deepCopy() {
    return new FbaSkuSaleReturnDetail(this);
  }

  @Override
  public void clear() {
    setSkuIsSet(false);
    this.sku = 0;
    setTotalSoldQuantityIsSet(false);
    this.totalSoldQuantity = 0;
    setTotalReturnQuantityIsSet(false);
    this.totalReturnQuantity = 0;
    setTotalSellableReturnIsSet(false);
    this.totalSellableReturn = 0;
    setTotalNonSellableReturnIsSet(false);
    this.totalNonSellableReturn = 0;
  }

  public long getSku() {
    return this.sku;
  }

  public void setSku(long sku) {
    this.sku = sku;
    setSkuIsSet(true);
  }

  public void unsetSku() {
    __isset_bit_vector.clear(__SKU_ISSET_ID);
  }

  /** Returns true if field sku is set (has been assigned a value) and false otherwise */
  public boolean isSetSku() {
    return __isset_bit_vector.get(__SKU_ISSET_ID);
  }

  public void setSkuIsSet(boolean value) {
    __isset_bit_vector.set(__SKU_ISSET_ID, value);
  }

  public long getTotalSoldQuantity() {
    return this.totalSoldQuantity;
  }

  public void setTotalSoldQuantity(long totalSoldQuantity) {
    this.totalSoldQuantity = totalSoldQuantity;
    setTotalSoldQuantityIsSet(true);
  }

  public void unsetTotalSoldQuantity() {
    __isset_bit_vector.clear(__TOTALSOLDQUANTITY_ISSET_ID);
  }

  /** Returns true if field totalSoldQuantity is set (has been assigned a value) and false otherwise */
  public boolean isSetTotalSoldQuantity() {
    return __isset_bit_vector.get(__TOTALSOLDQUANTITY_ISSET_ID);
  }

  public void setTotalSoldQuantityIsSet(boolean value) {
    __isset_bit_vector.set(__TOTALSOLDQUANTITY_ISSET_ID, value);
  }

  public long getTotalReturnQuantity() {
    return this.totalReturnQuantity;
  }

  public void setTotalReturnQuantity(long totalReturnQuantity) {
    this.totalReturnQuantity = totalReturnQuantity;
    setTotalReturnQuantityIsSet(true);
  }

  public void unsetTotalReturnQuantity() {
    __isset_bit_vector.clear(__TOTALRETURNQUANTITY_ISSET_ID);
  }

  /** Returns true if field totalReturnQuantity is set (has been assigned a value) and false otherwise */
  public boolean isSetTotalReturnQuantity() {
    return __isset_bit_vector.get(__TOTALRETURNQUANTITY_ISSET_ID);
  }

  public void setTotalReturnQuantityIsSet(boolean value) {
    __isset_bit_vector.set(__TOTALRETURNQUANTITY_ISSET_ID, value);
  }

  public long getTotalSellableReturn() {
    return this.totalSellableReturn;
  }

  public void setTotalSellableReturn(long totalSellableReturn) {
    this.totalSellableReturn = totalSellableReturn;
    setTotalSellableReturnIsSet(true);
  }

  public void unsetTotalSellableReturn() {
    __isset_bit_vector.clear(__TOTALSELLABLERETURN_ISSET_ID);
  }

  /** Returns true if field totalSellableReturn is set (has been assigned a value) and false otherwise */
  public boolean isSetTotalSellableReturn() {
    return __isset_bit_vector.get(__TOTALSELLABLERETURN_ISSET_ID);
  }

  public void setTotalSellableReturnIsSet(boolean value) {
    __isset_bit_vector.set(__TOTALSELLABLERETURN_ISSET_ID, value);
  }

  public long getTotalNonSellableReturn() {
    return this.totalNonSellableReturn;
  }

  public void setTotalNonSellableReturn(long totalNonSellableReturn) {
    this.totalNonSellableReturn = totalNonSellableReturn;
    setTotalNonSellableReturnIsSet(true);
  }

  public void unsetTotalNonSellableReturn() {
    __isset_bit_vector.clear(__TOTALNONSELLABLERETURN_ISSET_ID);
  }

  /** Returns true if field totalNonSellableReturn is set (has been assigned a value) and false otherwise */
  public boolean isSetTotalNonSellableReturn() {
    return __isset_bit_vector.get(__TOTALNONSELLABLERETURN_ISSET_ID);
  }

  public void setTotalNonSellableReturnIsSet(boolean value) {
    __isset_bit_vector.set(__TOTALNONSELLABLERETURN_ISSET_ID, value);
  }

  public void setFieldValue(_Fields field, Object value) {
    switch (field) {
    case SKU:
      if (value == null) {
        unsetSku();
      } else {
        setSku((Long)value);
      }
      break;

    case TOTAL_SOLD_QUANTITY:
      if (value == null) {
        unsetTotalSoldQuantity();
      } else {
        setTotalSoldQuantity((Long)value);
      }
      break;

    case TOTAL_RETURN_QUANTITY:
      if (value == null) {
        unsetTotalReturnQuantity();
      } else {
        setTotalReturnQuantity((Long)value);
      }
      break;

    case TOTAL_SELLABLE_RETURN:
      if (value == null) {
        unsetTotalSellableReturn();
      } else {
        setTotalSellableReturn((Long)value);
      }
      break;

    case TOTAL_NON_SELLABLE_RETURN:
      if (value == null) {
        unsetTotalNonSellableReturn();
      } else {
        setTotalNonSellableReturn((Long)value);
      }
      break;

    }
  }

  public Object getFieldValue(_Fields field) {
    switch (field) {
    case SKU:
      return Long.valueOf(getSku());

    case TOTAL_SOLD_QUANTITY:
      return Long.valueOf(getTotalSoldQuantity());

    case TOTAL_RETURN_QUANTITY:
      return Long.valueOf(getTotalReturnQuantity());

    case TOTAL_SELLABLE_RETURN:
      return Long.valueOf(getTotalSellableReturn());

    case TOTAL_NON_SELLABLE_RETURN:
      return Long.valueOf(getTotalNonSellableReturn());

    }
    throw new IllegalStateException();
  }

  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
  public boolean isSet(_Fields field) {
    if (field == null) {
      throw new IllegalArgumentException();
    }

    switch (field) {
    case SKU:
      return isSetSku();
    case TOTAL_SOLD_QUANTITY:
      return isSetTotalSoldQuantity();
    case TOTAL_RETURN_QUANTITY:
      return isSetTotalReturnQuantity();
    case TOTAL_SELLABLE_RETURN:
      return isSetTotalSellableReturn();
    case TOTAL_NON_SELLABLE_RETURN:
      return isSetTotalNonSellableReturn();
    }
    throw new IllegalStateException();
  }

  @Override
  public boolean equals(Object that) {
    if (that == null)
      return false;
    if (that instanceof FbaSkuSaleReturnDetail)
      return this.equals((FbaSkuSaleReturnDetail)that);
    return false;
  }

  public boolean equals(FbaSkuSaleReturnDetail that) {
    if (that == null)
      return false;

    boolean this_present_sku = true;
    boolean that_present_sku = true;
    if (this_present_sku || that_present_sku) {
      if (!(this_present_sku && that_present_sku))
        return false;
      if (this.sku != that.sku)
        return false;
    }

    boolean this_present_totalSoldQuantity = true;
    boolean that_present_totalSoldQuantity = true;
    if (this_present_totalSoldQuantity || that_present_totalSoldQuantity) {
      if (!(this_present_totalSoldQuantity && that_present_totalSoldQuantity))
        return false;
      if (this.totalSoldQuantity != that.totalSoldQuantity)
        return false;
    }

    boolean this_present_totalReturnQuantity = true;
    boolean that_present_totalReturnQuantity = true;
    if (this_present_totalReturnQuantity || that_present_totalReturnQuantity) {
      if (!(this_present_totalReturnQuantity && that_present_totalReturnQuantity))
        return false;
      if (this.totalReturnQuantity != that.totalReturnQuantity)
        return false;
    }

    boolean this_present_totalSellableReturn = true;
    boolean that_present_totalSellableReturn = true;
    if (this_present_totalSellableReturn || that_present_totalSellableReturn) {
      if (!(this_present_totalSellableReturn && that_present_totalSellableReturn))
        return false;
      if (this.totalSellableReturn != that.totalSellableReturn)
        return false;
    }

    boolean this_present_totalNonSellableReturn = true;
    boolean that_present_totalNonSellableReturn = true;
    if (this_present_totalNonSellableReturn || that_present_totalNonSellableReturn) {
      if (!(this_present_totalNonSellableReturn && that_present_totalNonSellableReturn))
        return false;
      if (this.totalNonSellableReturn != that.totalNonSellableReturn)
        return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    return 0;
  }

  public int compareTo(FbaSkuSaleReturnDetail other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;
    FbaSkuSaleReturnDetail typedOther = (FbaSkuSaleReturnDetail)other;

    lastComparison = Boolean.valueOf(isSetSku()).compareTo(typedOther.isSetSku());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSku()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sku, typedOther.sku);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetTotalSoldQuantity()).compareTo(typedOther.isSetTotalSoldQuantity());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTotalSoldQuantity()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalSoldQuantity, typedOther.totalSoldQuantity);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetTotalReturnQuantity()).compareTo(typedOther.isSetTotalReturnQuantity());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTotalReturnQuantity()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalReturnQuantity, typedOther.totalReturnQuantity);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetTotalSellableReturn()).compareTo(typedOther.isSetTotalSellableReturn());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTotalSellableReturn()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalSellableReturn, typedOther.totalSellableReturn);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetTotalNonSellableReturn()).compareTo(typedOther.isSetTotalNonSellableReturn());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTotalNonSellableReturn()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalNonSellableReturn, typedOther.totalNonSellableReturn);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }

  public _Fields fieldForId(int fieldId) {
    return _Fields.findByThriftId(fieldId);
  }

  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    org.apache.thrift.protocol.TField field;
    iprot.readStructBegin();
    while (true)
    {
      field = iprot.readFieldBegin();
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
        break;
      }
      switch (field.id) {
        case 1: // SKU
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.sku = iprot.readI64();
            setSkuIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 2: // TOTAL_SOLD_QUANTITY
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.totalSoldQuantity = iprot.readI64();
            setTotalSoldQuantityIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 3: // TOTAL_RETURN_QUANTITY
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.totalReturnQuantity = iprot.readI64();
            setTotalReturnQuantityIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 4: // TOTAL_SELLABLE_RETURN
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.totalSellableReturn = iprot.readI64();
            setTotalSellableReturnIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 5: // TOTAL_NON_SELLABLE_RETURN
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.totalNonSellableReturn = iprot.readI64();
            setTotalNonSellableReturnIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        default:
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
      }
      iprot.readFieldEnd();
    }
    iprot.readStructEnd();
    validate();
  }

  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    validate();

    oprot.writeStructBegin(STRUCT_DESC);
    oprot.writeFieldBegin(SKU_FIELD_DESC);
    oprot.writeI64(this.sku);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(TOTAL_SOLD_QUANTITY_FIELD_DESC);
    oprot.writeI64(this.totalSoldQuantity);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(TOTAL_RETURN_QUANTITY_FIELD_DESC);
    oprot.writeI64(this.totalReturnQuantity);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(TOTAL_SELLABLE_RETURN_FIELD_DESC);
    oprot.writeI64(this.totalSellableReturn);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(TOTAL_NON_SELLABLE_RETURN_FIELD_DESC);
    oprot.writeI64(this.totalNonSellableReturn);
    oprot.writeFieldEnd();
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder("FbaSkuSaleReturnDetail(");
    boolean first = true;

    sb.append("sku:");
    sb.append(this.sku);
    first = false;
    if (!first) sb.append(", ");
    sb.append("totalSoldQuantity:");
    sb.append(this.totalSoldQuantity);
    first = false;
    if (!first) sb.append(", ");
    sb.append("totalReturnQuantity:");
    sb.append(this.totalReturnQuantity);
    first = false;
    if (!first) sb.append(", ");
    sb.append("totalSellableReturn:");
    sb.append(this.totalSellableReturn);
    first = false;
    if (!first) sb.append(", ");
    sb.append("totalNonSellableReturn:");
    sb.append(this.totalNonSellableReturn);
    first = false;
    sb.append(")");
    return sb.toString();
  }

  public void validate() throws org.apache.thrift.TException {
    // check for required fields
  }

  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    try {
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    } catch (org.apache.thrift.TException te) {
      throw new java.io.IOException(te);
    }
  }

  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
      __isset_bit_vector = new BitSet(1);
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
      throw new java.io.IOException(te);
    }
  }

}