All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.iotdb.service.rpc.thrift.TSInsertTabletsReq Maven / Gradle / Ivy

The newest version!
/**
 * Autogenerated by Thrift Compiler (0.14.1)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package org.apache.iotdb.service.rpc.thrift;

@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.14.1)", date = "2024-09-12")
public class TSInsertTabletsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSInsertTabletsReq");

  private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.I64, (short)1);
  private static final org.apache.thrift.protocol.TField PREFIX_PATHS_FIELD_DESC = new org.apache.thrift.protocol.TField("prefixPaths", org.apache.thrift.protocol.TType.LIST, (short)2);
  private static final org.apache.thrift.protocol.TField MEASUREMENTS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("measurementsList", org.apache.thrift.protocol.TType.LIST, (short)3);
  private static final org.apache.thrift.protocol.TField VALUES_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("valuesList", org.apache.thrift.protocol.TType.LIST, (short)4);
  private static final org.apache.thrift.protocol.TField TIMESTAMPS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("timestampsList", org.apache.thrift.protocol.TType.LIST, (short)5);
  private static final org.apache.thrift.protocol.TField TYPES_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("typesList", org.apache.thrift.protocol.TType.LIST, (short)6);
  private static final org.apache.thrift.protocol.TField SIZE_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("sizeList", org.apache.thrift.protocol.TType.LIST, (short)7);
  private static final org.apache.thrift.protocol.TField IS_ALIGNED_FIELD_DESC = new org.apache.thrift.protocol.TField("isAligned", org.apache.thrift.protocol.TType.BOOL, (short)8);

  private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TSInsertTabletsReqStandardSchemeFactory();
  private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TSInsertTabletsReqTupleSchemeFactory();

  public long sessionId; // required
  public @org.apache.thrift.annotation.Nullable java.util.List prefixPaths; // required
  public @org.apache.thrift.annotation.Nullable java.util.List> measurementsList; // required
  public @org.apache.thrift.annotation.Nullable java.util.List valuesList; // required
  public @org.apache.thrift.annotation.Nullable java.util.List timestampsList; // required
  public @org.apache.thrift.annotation.Nullable java.util.List> typesList; // required
  public @org.apache.thrift.annotation.Nullable java.util.List sizeList; // required
  public boolean isAligned; // optional

  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    SESSION_ID((short)1, "sessionId"),
    PREFIX_PATHS((short)2, "prefixPaths"),
    MEASUREMENTS_LIST((short)3, "measurementsList"),
    VALUES_LIST((short)4, "valuesList"),
    TIMESTAMPS_LIST((short)5, "timestampsList"),
    TYPES_LIST((short)6, "typesList"),
    SIZE_LIST((short)7, "sizeList"),
    IS_ALIGNED((short)8, "isAligned");

    private static final java.util.Map byName = new java.util.HashMap();

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

    /**
     * Find the _Fields constant that matches fieldId, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // SESSION_ID
          return SESSION_ID;
        case 2: // PREFIX_PATHS
          return PREFIX_PATHS;
        case 3: // MEASUREMENTS_LIST
          return MEASUREMENTS_LIST;
        case 4: // VALUES_LIST
          return VALUES_LIST;
        case 5: // TIMESTAMPS_LIST
          return TIMESTAMPS_LIST;
        case 6: // TYPES_LIST
          return TYPES_LIST;
        case 7: // SIZE_LIST
          return SIZE_LIST;
        case 8: // IS_ALIGNED
          return IS_ALIGNED;
        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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
      return fields;
    }

    /**
     * Find the _Fields constant that matches name, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByName(java.lang.String name) {
      return byName.get(name);
    }

    private final short _thriftId;
    private final java.lang.String _fieldName;

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

    public short getThriftFieldId() {
      return _thriftId;
    }

    public java.lang.String getFieldName() {
      return _fieldName;
    }
  }

  // isset id assignments
  private static final int __SESSIONID_ISSET_ID = 0;
  private static final int __ISALIGNED_ISSET_ID = 1;
  private byte __isset_bitfield = 0;
  private static final _Fields optionals[] = {_Fields.IS_ALIGNED};
  public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
  static {
    java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.PREFIX_PATHS, new org.apache.thrift.meta_data.FieldMetaData("prefixPaths", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
    tmpMap.put(_Fields.MEASUREMENTS_LIST, new org.apache.thrift.meta_data.FieldMetaData("measurementsList", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
                new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))));
    tmpMap.put(_Fields.VALUES_LIST, new org.apache.thrift.meta_data.FieldMetaData("valuesList", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING            , true))));
    tmpMap.put(_Fields.TIMESTAMPS_LIST, new org.apache.thrift.meta_data.FieldMetaData("timestampsList", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING            , true))));
    tmpMap.put(_Fields.TYPES_LIST, new org.apache.thrift.meta_data.FieldMetaData("typesList", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
                new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)))));
    tmpMap.put(_Fields.SIZE_LIST, new org.apache.thrift.meta_data.FieldMetaData("sizeList", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
    tmpMap.put(_Fields.IS_ALIGNED, new org.apache.thrift.meta_data.FieldMetaData("isAligned", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TSInsertTabletsReq.class, metaDataMap);
  }

  public TSInsertTabletsReq() {
  }

  public TSInsertTabletsReq(
    long sessionId,
    java.util.List prefixPaths,
    java.util.List> measurementsList,
    java.util.List valuesList,
    java.util.List timestampsList,
    java.util.List> typesList,
    java.util.List sizeList)
  {
    this();
    this.sessionId = sessionId;
    setSessionIdIsSet(true);
    this.prefixPaths = prefixPaths;
    this.measurementsList = measurementsList;
    this.valuesList = valuesList;
    this.timestampsList = timestampsList;
    this.typesList = typesList;
    this.sizeList = sizeList;
  }

  /**
   * Performs a deep copy on other.
   */
  public TSInsertTabletsReq(TSInsertTabletsReq other) {
    __isset_bitfield = other.__isset_bitfield;
    this.sessionId = other.sessionId;
    if (other.isSetPrefixPaths()) {
      java.util.List __this__prefixPaths = new java.util.ArrayList(other.prefixPaths);
      this.prefixPaths = __this__prefixPaths;
    }
    if (other.isSetMeasurementsList()) {
      java.util.List> __this__measurementsList = new java.util.ArrayList>(other.measurementsList.size());
      for (java.util.List other_element : other.measurementsList) {
        java.util.List __this__measurementsList_copy = new java.util.ArrayList(other_element);
        __this__measurementsList.add(__this__measurementsList_copy);
      }
      this.measurementsList = __this__measurementsList;
    }
    if (other.isSetValuesList()) {
      java.util.List __this__valuesList = new java.util.ArrayList(other.valuesList);
      this.valuesList = __this__valuesList;
    }
    if (other.isSetTimestampsList()) {
      java.util.List __this__timestampsList = new java.util.ArrayList(other.timestampsList);
      this.timestampsList = __this__timestampsList;
    }
    if (other.isSetTypesList()) {
      java.util.List> __this__typesList = new java.util.ArrayList>(other.typesList.size());
      for (java.util.List other_element : other.typesList) {
        java.util.List __this__typesList_copy = new java.util.ArrayList(other_element);
        __this__typesList.add(__this__typesList_copy);
      }
      this.typesList = __this__typesList;
    }
    if (other.isSetSizeList()) {
      java.util.List __this__sizeList = new java.util.ArrayList(other.sizeList);
      this.sizeList = __this__sizeList;
    }
    this.isAligned = other.isAligned;
  }

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

  @Override
  public void clear() {
    setSessionIdIsSet(false);
    this.sessionId = 0;
    this.prefixPaths = null;
    this.measurementsList = null;
    this.valuesList = null;
    this.timestampsList = null;
    this.typesList = null;
    this.sizeList = null;
    setIsAlignedIsSet(false);
    this.isAligned = false;
  }

  public long getSessionId() {
    return this.sessionId;
  }

  public TSInsertTabletsReq setSessionId(long sessionId) {
    this.sessionId = sessionId;
    setSessionIdIsSet(true);
    return this;
  }

  public void unsetSessionId() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SESSIONID_ISSET_ID);
  }

  /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
  public boolean isSetSessionId() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SESSIONID_ISSET_ID);
  }

  public void setSessionIdIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SESSIONID_ISSET_ID, value);
  }

  public int getPrefixPathsSize() {
    return (this.prefixPaths == null) ? 0 : this.prefixPaths.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator getPrefixPathsIterator() {
    return (this.prefixPaths == null) ? null : this.prefixPaths.iterator();
  }

  public void addToPrefixPaths(java.lang.String elem) {
    if (this.prefixPaths == null) {
      this.prefixPaths = new java.util.ArrayList();
    }
    this.prefixPaths.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List getPrefixPaths() {
    return this.prefixPaths;
  }

  public TSInsertTabletsReq setPrefixPaths(@org.apache.thrift.annotation.Nullable java.util.List prefixPaths) {
    this.prefixPaths = prefixPaths;
    return this;
  }

  public void unsetPrefixPaths() {
    this.prefixPaths = null;
  }

  /** Returns true if field prefixPaths is set (has been assigned a value) and false otherwise */
  public boolean isSetPrefixPaths() {
    return this.prefixPaths != null;
  }

  public void setPrefixPathsIsSet(boolean value) {
    if (!value) {
      this.prefixPaths = null;
    }
  }

  public int getMeasurementsListSize() {
    return (this.measurementsList == null) ? 0 : this.measurementsList.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator> getMeasurementsListIterator() {
    return (this.measurementsList == null) ? null : this.measurementsList.iterator();
  }

  public void addToMeasurementsList(java.util.List elem) {
    if (this.measurementsList == null) {
      this.measurementsList = new java.util.ArrayList>();
    }
    this.measurementsList.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List> getMeasurementsList() {
    return this.measurementsList;
  }

  public TSInsertTabletsReq setMeasurementsList(@org.apache.thrift.annotation.Nullable java.util.List> measurementsList) {
    this.measurementsList = measurementsList;
    return this;
  }

  public void unsetMeasurementsList() {
    this.measurementsList = null;
  }

  /** Returns true if field measurementsList is set (has been assigned a value) and false otherwise */
  public boolean isSetMeasurementsList() {
    return this.measurementsList != null;
  }

  public void setMeasurementsListIsSet(boolean value) {
    if (!value) {
      this.measurementsList = null;
    }
  }

  public int getValuesListSize() {
    return (this.valuesList == null) ? 0 : this.valuesList.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator getValuesListIterator() {
    return (this.valuesList == null) ? null : this.valuesList.iterator();
  }

  public void addToValuesList(java.nio.ByteBuffer elem) {
    if (this.valuesList == null) {
      this.valuesList = new java.util.ArrayList();
    }
    this.valuesList.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List getValuesList() {
    return this.valuesList;
  }

  public TSInsertTabletsReq setValuesList(@org.apache.thrift.annotation.Nullable java.util.List valuesList) {
    this.valuesList = valuesList;
    return this;
  }

  public void unsetValuesList() {
    this.valuesList = null;
  }

  /** Returns true if field valuesList is set (has been assigned a value) and false otherwise */
  public boolean isSetValuesList() {
    return this.valuesList != null;
  }

  public void setValuesListIsSet(boolean value) {
    if (!value) {
      this.valuesList = null;
    }
  }

  public int getTimestampsListSize() {
    return (this.timestampsList == null) ? 0 : this.timestampsList.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator getTimestampsListIterator() {
    return (this.timestampsList == null) ? null : this.timestampsList.iterator();
  }

  public void addToTimestampsList(java.nio.ByteBuffer elem) {
    if (this.timestampsList == null) {
      this.timestampsList = new java.util.ArrayList();
    }
    this.timestampsList.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List getTimestampsList() {
    return this.timestampsList;
  }

  public TSInsertTabletsReq setTimestampsList(@org.apache.thrift.annotation.Nullable java.util.List timestampsList) {
    this.timestampsList = timestampsList;
    return this;
  }

  public void unsetTimestampsList() {
    this.timestampsList = null;
  }

  /** Returns true if field timestampsList is set (has been assigned a value) and false otherwise */
  public boolean isSetTimestampsList() {
    return this.timestampsList != null;
  }

  public void setTimestampsListIsSet(boolean value) {
    if (!value) {
      this.timestampsList = null;
    }
  }

  public int getTypesListSize() {
    return (this.typesList == null) ? 0 : this.typesList.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator> getTypesListIterator() {
    return (this.typesList == null) ? null : this.typesList.iterator();
  }

  public void addToTypesList(java.util.List elem) {
    if (this.typesList == null) {
      this.typesList = new java.util.ArrayList>();
    }
    this.typesList.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List> getTypesList() {
    return this.typesList;
  }

  public TSInsertTabletsReq setTypesList(@org.apache.thrift.annotation.Nullable java.util.List> typesList) {
    this.typesList = typesList;
    return this;
  }

  public void unsetTypesList() {
    this.typesList = null;
  }

  /** Returns true if field typesList is set (has been assigned a value) and false otherwise */
  public boolean isSetTypesList() {
    return this.typesList != null;
  }

  public void setTypesListIsSet(boolean value) {
    if (!value) {
      this.typesList = null;
    }
  }

  public int getSizeListSize() {
    return (this.sizeList == null) ? 0 : this.sizeList.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator getSizeListIterator() {
    return (this.sizeList == null) ? null : this.sizeList.iterator();
  }

  public void addToSizeList(int elem) {
    if (this.sizeList == null) {
      this.sizeList = new java.util.ArrayList();
    }
    this.sizeList.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List getSizeList() {
    return this.sizeList;
  }

  public TSInsertTabletsReq setSizeList(@org.apache.thrift.annotation.Nullable java.util.List sizeList) {
    this.sizeList = sizeList;
    return this;
  }

  public void unsetSizeList() {
    this.sizeList = null;
  }

  /** Returns true if field sizeList is set (has been assigned a value) and false otherwise */
  public boolean isSetSizeList() {
    return this.sizeList != null;
  }

  public void setSizeListIsSet(boolean value) {
    if (!value) {
      this.sizeList = null;
    }
  }

  public boolean isIsAligned() {
    return this.isAligned;
  }

  public TSInsertTabletsReq setIsAligned(boolean isAligned) {
    this.isAligned = isAligned;
    setIsAlignedIsSet(true);
    return this;
  }

  public void unsetIsAligned() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISALIGNED_ISSET_ID);
  }

  /** Returns true if field isAligned is set (has been assigned a value) and false otherwise */
  public boolean isSetIsAligned() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISALIGNED_ISSET_ID);
  }

  public void setIsAlignedIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISALIGNED_ISSET_ID, value);
  }

  public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case SESSION_ID:
      if (value == null) {
        unsetSessionId();
      } else {
        setSessionId((java.lang.Long)value);
      }
      break;

    case PREFIX_PATHS:
      if (value == null) {
        unsetPrefixPaths();
      } else {
        setPrefixPaths((java.util.List)value);
      }
      break;

    case MEASUREMENTS_LIST:
      if (value == null) {
        unsetMeasurementsList();
      } else {
        setMeasurementsList((java.util.List>)value);
      }
      break;

    case VALUES_LIST:
      if (value == null) {
        unsetValuesList();
      } else {
        setValuesList((java.util.List)value);
      }
      break;

    case TIMESTAMPS_LIST:
      if (value == null) {
        unsetTimestampsList();
      } else {
        setTimestampsList((java.util.List)value);
      }
      break;

    case TYPES_LIST:
      if (value == null) {
        unsetTypesList();
      } else {
        setTypesList((java.util.List>)value);
      }
      break;

    case SIZE_LIST:
      if (value == null) {
        unsetSizeList();
      } else {
        setSizeList((java.util.List)value);
      }
      break;

    case IS_ALIGNED:
      if (value == null) {
        unsetIsAligned();
      } else {
        setIsAligned((java.lang.Boolean)value);
      }
      break;

    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.Object getFieldValue(_Fields field) {
    switch (field) {
    case SESSION_ID:
      return getSessionId();

    case PREFIX_PATHS:
      return getPrefixPaths();

    case MEASUREMENTS_LIST:
      return getMeasurementsList();

    case VALUES_LIST:
      return getValuesList();

    case TIMESTAMPS_LIST:
      return getTimestampsList();

    case TYPES_LIST:
      return getTypesList();

    case SIZE_LIST:
      return getSizeList();

    case IS_ALIGNED:
      return isIsAligned();

    }
    throw new java.lang.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 java.lang.IllegalArgumentException();
    }

    switch (field) {
    case SESSION_ID:
      return isSetSessionId();
    case PREFIX_PATHS:
      return isSetPrefixPaths();
    case MEASUREMENTS_LIST:
      return isSetMeasurementsList();
    case VALUES_LIST:
      return isSetValuesList();
    case TIMESTAMPS_LIST:
      return isSetTimestampsList();
    case TYPES_LIST:
      return isSetTypesList();
    case SIZE_LIST:
      return isSetSizeList();
    case IS_ALIGNED:
      return isSetIsAligned();
    }
    throw new java.lang.IllegalStateException();
  }

  @Override
  public boolean equals(java.lang.Object that) {
    if (that instanceof TSInsertTabletsReq)
      return this.equals((TSInsertTabletsReq)that);
    return false;
  }

  public boolean equals(TSInsertTabletsReq that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_sessionId = true;
    boolean that_present_sessionId = true;
    if (this_present_sessionId || that_present_sessionId) {
      if (!(this_present_sessionId && that_present_sessionId))
        return false;
      if (this.sessionId != that.sessionId)
        return false;
    }

    boolean this_present_prefixPaths = true && this.isSetPrefixPaths();
    boolean that_present_prefixPaths = true && that.isSetPrefixPaths();
    if (this_present_prefixPaths || that_present_prefixPaths) {
      if (!(this_present_prefixPaths && that_present_prefixPaths))
        return false;
      if (!this.prefixPaths.equals(that.prefixPaths))
        return false;
    }

    boolean this_present_measurementsList = true && this.isSetMeasurementsList();
    boolean that_present_measurementsList = true && that.isSetMeasurementsList();
    if (this_present_measurementsList || that_present_measurementsList) {
      if (!(this_present_measurementsList && that_present_measurementsList))
        return false;
      if (!this.measurementsList.equals(that.measurementsList))
        return false;
    }

    boolean this_present_valuesList = true && this.isSetValuesList();
    boolean that_present_valuesList = true && that.isSetValuesList();
    if (this_present_valuesList || that_present_valuesList) {
      if (!(this_present_valuesList && that_present_valuesList))
        return false;
      if (!this.valuesList.equals(that.valuesList))
        return false;
    }

    boolean this_present_timestampsList = true && this.isSetTimestampsList();
    boolean that_present_timestampsList = true && that.isSetTimestampsList();
    if (this_present_timestampsList || that_present_timestampsList) {
      if (!(this_present_timestampsList && that_present_timestampsList))
        return false;
      if (!this.timestampsList.equals(that.timestampsList))
        return false;
    }

    boolean this_present_typesList = true && this.isSetTypesList();
    boolean that_present_typesList = true && that.isSetTypesList();
    if (this_present_typesList || that_present_typesList) {
      if (!(this_present_typesList && that_present_typesList))
        return false;
      if (!this.typesList.equals(that.typesList))
        return false;
    }

    boolean this_present_sizeList = true && this.isSetSizeList();
    boolean that_present_sizeList = true && that.isSetSizeList();
    if (this_present_sizeList || that_present_sizeList) {
      if (!(this_present_sizeList && that_present_sizeList))
        return false;
      if (!this.sizeList.equals(that.sizeList))
        return false;
    }

    boolean this_present_isAligned = true && this.isSetIsAligned();
    boolean that_present_isAligned = true && that.isSetIsAligned();
    if (this_present_isAligned || that_present_isAligned) {
      if (!(this_present_isAligned && that_present_isAligned))
        return false;
      if (this.isAligned != that.isAligned)
        return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    int hashCode = 1;

    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(sessionId);

    hashCode = hashCode * 8191 + ((isSetPrefixPaths()) ? 131071 : 524287);
    if (isSetPrefixPaths())
      hashCode = hashCode * 8191 + prefixPaths.hashCode();

    hashCode = hashCode * 8191 + ((isSetMeasurementsList()) ? 131071 : 524287);
    if (isSetMeasurementsList())
      hashCode = hashCode * 8191 + measurementsList.hashCode();

    hashCode = hashCode * 8191 + ((isSetValuesList()) ? 131071 : 524287);
    if (isSetValuesList())
      hashCode = hashCode * 8191 + valuesList.hashCode();

    hashCode = hashCode * 8191 + ((isSetTimestampsList()) ? 131071 : 524287);
    if (isSetTimestampsList())
      hashCode = hashCode * 8191 + timestampsList.hashCode();

    hashCode = hashCode * 8191 + ((isSetTypesList()) ? 131071 : 524287);
    if (isSetTypesList())
      hashCode = hashCode * 8191 + typesList.hashCode();

    hashCode = hashCode * 8191 + ((isSetSizeList()) ? 131071 : 524287);
    if (isSetSizeList())
      hashCode = hashCode * 8191 + sizeList.hashCode();

    hashCode = hashCode * 8191 + ((isSetIsAligned()) ? 131071 : 524287);
    if (isSetIsAligned())
      hashCode = hashCode * 8191 + ((isAligned) ? 131071 : 524287);

    return hashCode;
  }

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

    int lastComparison = 0;

    lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSessionId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, other.sessionId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetPrefixPaths(), other.isSetPrefixPaths());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPrefixPaths()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixPaths, other.prefixPaths);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetMeasurementsList(), other.isSetMeasurementsList());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetMeasurementsList()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.measurementsList, other.measurementsList);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetValuesList(), other.isSetValuesList());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetValuesList()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valuesList, other.valuesList);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetTimestampsList(), other.isSetTimestampsList());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTimestampsList()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestampsList, other.timestampsList);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetTypesList(), other.isSetTypesList());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTypesList()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typesList, other.typesList);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetSizeList(), other.isSetSizeList());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSizeList()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sizeList, other.sizeList);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetIsAligned(), other.isSetIsAligned());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIsAligned()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAligned, other.isAligned);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }

  @org.apache.thrift.annotation.Nullable
  public _Fields fieldForId(int fieldId) {
    return _Fields.findByThriftId(fieldId);
  }

  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    scheme(iprot).read(iprot, this);
  }

  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    scheme(oprot).write(oprot, this);
  }

  @Override
  public java.lang.String toString() {
    java.lang.StringBuilder sb = new java.lang.StringBuilder("TSInsertTabletsReq(");
    boolean first = true;

    sb.append("sessionId:");
    sb.append(this.sessionId);
    first = false;
    if (!first) sb.append(", ");
    sb.append("prefixPaths:");
    if (this.prefixPaths == null) {
      sb.append("null");
    } else {
      sb.append(this.prefixPaths);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("measurementsList:");
    if (this.measurementsList == null) {
      sb.append("null");
    } else {
      sb.append(this.measurementsList);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("valuesList:");
    if (this.valuesList == null) {
      sb.append("null");
    } else {
      org.apache.thrift.TBaseHelper.toString(this.valuesList, sb);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("timestampsList:");
    if (this.timestampsList == null) {
      sb.append("null");
    } else {
      org.apache.thrift.TBaseHelper.toString(this.timestampsList, sb);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("typesList:");
    if (this.typesList == null) {
      sb.append("null");
    } else {
      sb.append(this.typesList);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("sizeList:");
    if (this.sizeList == null) {
      sb.append("null");
    } else {
      sb.append(this.sizeList);
    }
    first = false;
    if (isSetIsAligned()) {
      if (!first) sb.append(", ");
      sb.append("isAligned:");
      sb.append(this.isAligned);
      first = false;
    }
    sb.append(")");
    return sb.toString();
  }

  public void validate() throws org.apache.thrift.TException {
    // check for required fields
    // alas, we cannot check 'sessionId' because it's a primitive and you chose the non-beans generator.
    if (prefixPaths == null) {
      throw new org.apache.thrift.protocol.TProtocolException("Required field 'prefixPaths' was not present! Struct: " + toString());
    }
    if (measurementsList == null) {
      throw new org.apache.thrift.protocol.TProtocolException("Required field 'measurementsList' was not present! Struct: " + toString());
    }
    if (valuesList == null) {
      throw new org.apache.thrift.protocol.TProtocolException("Required field 'valuesList' was not present! Struct: " + toString());
    }
    if (timestampsList == null) {
      throw new org.apache.thrift.protocol.TProtocolException("Required field 'timestampsList' was not present! Struct: " + toString());
    }
    if (typesList == null) {
      throw new org.apache.thrift.protocol.TProtocolException("Required field 'typesList' was not present! Struct: " + toString());
    }
    if (sizeList == null) {
      throw new org.apache.thrift.protocol.TProtocolException("Required field 'sizeList' was not present! Struct: " + toString());
    }
    // check for sub-struct validity
  }

  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, java.lang.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_bitfield = 0;
      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);
    }
  }

  private static class TSInsertTabletsReqStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public TSInsertTabletsReqStandardScheme getScheme() {
      return new TSInsertTabletsReqStandardScheme();
    }
  }

  private static class TSInsertTabletsReqStandardScheme extends org.apache.thrift.scheme.StandardScheme {

    public void read(org.apache.thrift.protocol.TProtocol iprot, TSInsertTabletsReq 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: // SESSION_ID
            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
              struct.sessionId = iprot.readI64();
              struct.setSessionIdIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // PREFIX_PATHS
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list182 = iprot.readListBegin();
                struct.prefixPaths = new java.util.ArrayList(_list182.size);
                @org.apache.thrift.annotation.Nullable java.lang.String _elem183;
                for (int _i184 = 0; _i184 < _list182.size; ++_i184)
                {
                  _elem183 = iprot.readString();
                  struct.prefixPaths.add(_elem183);
                }
                iprot.readListEnd();
              }
              struct.setPrefixPathsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // MEASUREMENTS_LIST
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list185 = iprot.readListBegin();
                struct.measurementsList = new java.util.ArrayList>(_list185.size);
                @org.apache.thrift.annotation.Nullable java.util.List _elem186;
                for (int _i187 = 0; _i187 < _list185.size; ++_i187)
                {
                  {
                    org.apache.thrift.protocol.TList _list188 = iprot.readListBegin();
                    _elem186 = new java.util.ArrayList(_list188.size);
                    @org.apache.thrift.annotation.Nullable java.lang.String _elem189;
                    for (int _i190 = 0; _i190 < _list188.size; ++_i190)
                    {
                      _elem189 = iprot.readString();
                      _elem186.add(_elem189);
                    }
                    iprot.readListEnd();
                  }
                  struct.measurementsList.add(_elem186);
                }
                iprot.readListEnd();
              }
              struct.setMeasurementsListIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 4: // VALUES_LIST
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list191 = iprot.readListBegin();
                struct.valuesList = new java.util.ArrayList(_list191.size);
                @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem192;
                for (int _i193 = 0; _i193 < _list191.size; ++_i193)
                {
                  _elem192 = iprot.readBinary();
                  struct.valuesList.add(_elem192);
                }
                iprot.readListEnd();
              }
              struct.setValuesListIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 5: // TIMESTAMPS_LIST
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list194 = iprot.readListBegin();
                struct.timestampsList = new java.util.ArrayList(_list194.size);
                @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem195;
                for (int _i196 = 0; _i196 < _list194.size; ++_i196)
                {
                  _elem195 = iprot.readBinary();
                  struct.timestampsList.add(_elem195);
                }
                iprot.readListEnd();
              }
              struct.setTimestampsListIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 6: // TYPES_LIST
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list197 = iprot.readListBegin();
                struct.typesList = new java.util.ArrayList>(_list197.size);
                @org.apache.thrift.annotation.Nullable java.util.List _elem198;
                for (int _i199 = 0; _i199 < _list197.size; ++_i199)
                {
                  {
                    org.apache.thrift.protocol.TList _list200 = iprot.readListBegin();
                    _elem198 = new java.util.ArrayList(_list200.size);
                    int _elem201;
                    for (int _i202 = 0; _i202 < _list200.size; ++_i202)
                    {
                      _elem201 = iprot.readI32();
                      _elem198.add(_elem201);
                    }
                    iprot.readListEnd();
                  }
                  struct.typesList.add(_elem198);
                }
                iprot.readListEnd();
              }
              struct.setTypesListIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 7: // SIZE_LIST
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list203 = iprot.readListBegin();
                struct.sizeList = new java.util.ArrayList(_list203.size);
                int _elem204;
                for (int _i205 = 0; _i205 < _list203.size; ++_i205)
                {
                  _elem204 = iprot.readI32();
                  struct.sizeList.add(_elem204);
                }
                iprot.readListEnd();
              }
              struct.setSizeListIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 8: // IS_ALIGNED
            if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
              struct.isAligned = iprot.readBool();
              struct.setIsAlignedIsSet(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();

      // check for required fields of primitive type, which can't be checked in the validate method
      if (!struct.isSetSessionId()) {
        throw new org.apache.thrift.protocol.TProtocolException("Required field 'sessionId' was not found in serialized data! Struct: " + toString());
      }
      struct.validate();
    }

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

      oprot.writeStructBegin(STRUCT_DESC);
      oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
      oprot.writeI64(struct.sessionId);
      oprot.writeFieldEnd();
      if (struct.prefixPaths != null) {
        oprot.writeFieldBegin(PREFIX_PATHS_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.prefixPaths.size()));
          for (java.lang.String _iter206 : struct.prefixPaths)
          {
            oprot.writeString(_iter206);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.measurementsList != null) {
        oprot.writeFieldBegin(MEASUREMENTS_LIST_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, struct.measurementsList.size()));
          for (java.util.List _iter207 : struct.measurementsList)
          {
            {
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter207.size()));
              for (java.lang.String _iter208 : _iter207)
              {
                oprot.writeString(_iter208);
              }
              oprot.writeListEnd();
            }
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.valuesList != null) {
        oprot.writeFieldBegin(VALUES_LIST_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.valuesList.size()));
          for (java.nio.ByteBuffer _iter209 : struct.valuesList)
          {
            oprot.writeBinary(_iter209);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.timestampsList != null) {
        oprot.writeFieldBegin(TIMESTAMPS_LIST_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.timestampsList.size()));
          for (java.nio.ByteBuffer _iter210 : struct.timestampsList)
          {
            oprot.writeBinary(_iter210);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.typesList != null) {
        oprot.writeFieldBegin(TYPES_LIST_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, struct.typesList.size()));
          for (java.util.List _iter211 : struct.typesList)
          {
            {
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, _iter211.size()));
              for (int _iter212 : _iter211)
              {
                oprot.writeI32(_iter212);
              }
              oprot.writeListEnd();
            }
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.sizeList != null) {
        oprot.writeFieldBegin(SIZE_LIST_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.sizeList.size()));
          for (int _iter213 : struct.sizeList)
          {
            oprot.writeI32(_iter213);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.isSetIsAligned()) {
        oprot.writeFieldBegin(IS_ALIGNED_FIELD_DESC);
        oprot.writeBool(struct.isAligned);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }

  }

  private static class TSInsertTabletsReqTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public TSInsertTabletsReqTupleScheme getScheme() {
      return new TSInsertTabletsReqTupleScheme();
    }
  }

  private static class TSInsertTabletsReqTupleScheme extends org.apache.thrift.scheme.TupleScheme {

    @Override
    public void write(org.apache.thrift.protocol.TProtocol prot, TSInsertTabletsReq struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeI64(struct.sessionId);
      {
        oprot.writeI32(struct.prefixPaths.size());
        for (java.lang.String _iter214 : struct.prefixPaths)
        {
          oprot.writeString(_iter214);
        }
      }
      {
        oprot.writeI32(struct.measurementsList.size());
        for (java.util.List _iter215 : struct.measurementsList)
        {
          {
            oprot.writeI32(_iter215.size());
            for (java.lang.String _iter216 : _iter215)
            {
              oprot.writeString(_iter216);
            }
          }
        }
      }
      {
        oprot.writeI32(struct.valuesList.size());
        for (java.nio.ByteBuffer _iter217 : struct.valuesList)
        {
          oprot.writeBinary(_iter217);
        }
      }
      {
        oprot.writeI32(struct.timestampsList.size());
        for (java.nio.ByteBuffer _iter218 : struct.timestampsList)
        {
          oprot.writeBinary(_iter218);
        }
      }
      {
        oprot.writeI32(struct.typesList.size());
        for (java.util.List _iter219 : struct.typesList)
        {
          {
            oprot.writeI32(_iter219.size());
            for (int _iter220 : _iter219)
            {
              oprot.writeI32(_iter220);
            }
          }
        }
      }
      {
        oprot.writeI32(struct.sizeList.size());
        for (int _iter221 : struct.sizeList)
        {
          oprot.writeI32(_iter221);
        }
      }
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetIsAligned()) {
        optionals.set(0);
      }
      oprot.writeBitSet(optionals, 1);
      if (struct.isSetIsAligned()) {
        oprot.writeBool(struct.isAligned);
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, TSInsertTabletsReq struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      struct.sessionId = iprot.readI64();
      struct.setSessionIdIsSet(true);
      {
        org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
        struct.prefixPaths = new java.util.ArrayList(_list222.size);
        @org.apache.thrift.annotation.Nullable java.lang.String _elem223;
        for (int _i224 = 0; _i224 < _list222.size; ++_i224)
        {
          _elem223 = iprot.readString();
          struct.prefixPaths.add(_elem223);
        }
      }
      struct.setPrefixPathsIsSet(true);
      {
        org.apache.thrift.protocol.TList _list225 = iprot.readListBegin(org.apache.thrift.protocol.TType.LIST);
        struct.measurementsList = new java.util.ArrayList>(_list225.size);
        @org.apache.thrift.annotation.Nullable java.util.List _elem226;
        for (int _i227 = 0; _i227 < _list225.size; ++_i227)
        {
          {
            org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
            _elem226 = new java.util.ArrayList(_list228.size);
            @org.apache.thrift.annotation.Nullable java.lang.String _elem229;
            for (int _i230 = 0; _i230 < _list228.size; ++_i230)
            {
              _elem229 = iprot.readString();
              _elem226.add(_elem229);
            }
          }
          struct.measurementsList.add(_elem226);
        }
      }
      struct.setMeasurementsListIsSet(true);
      {
        org.apache.thrift.protocol.TList _list231 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
        struct.valuesList = new java.util.ArrayList(_list231.size);
        @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem232;
        for (int _i233 = 0; _i233 < _list231.size; ++_i233)
        {
          _elem232 = iprot.readBinary();
          struct.valuesList.add(_elem232);
        }
      }
      struct.setValuesListIsSet(true);
      {
        org.apache.thrift.protocol.TList _list234 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
        struct.timestampsList = new java.util.ArrayList(_list234.size);
        @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem235;
        for (int _i236 = 0; _i236 < _list234.size; ++_i236)
        {
          _elem235 = iprot.readBinary();
          struct.timestampsList.add(_elem235);
        }
      }
      struct.setTimestampsListIsSet(true);
      {
        org.apache.thrift.protocol.TList _list237 = iprot.readListBegin(org.apache.thrift.protocol.TType.LIST);
        struct.typesList = new java.util.ArrayList>(_list237.size);
        @org.apache.thrift.annotation.Nullable java.util.List _elem238;
        for (int _i239 = 0; _i239 < _list237.size; ++_i239)
        {
          {
            org.apache.thrift.protocol.TList _list240 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
            _elem238 = new java.util.ArrayList(_list240.size);
            int _elem241;
            for (int _i242 = 0; _i242 < _list240.size; ++_i242)
            {
              _elem241 = iprot.readI32();
              _elem238.add(_elem241);
            }
          }
          struct.typesList.add(_elem238);
        }
      }
      struct.setTypesListIsSet(true);
      {
        org.apache.thrift.protocol.TList _list243 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
        struct.sizeList = new java.util.ArrayList(_list243.size);
        int _elem244;
        for (int _i245 = 0; _i245 < _list243.size; ++_i245)
        {
          _elem244 = iprot.readI32();
          struct.sizeList.add(_elem244);
        }
      }
      struct.setSizeListIsSet(true);
      java.util.BitSet incoming = iprot.readBitSet(1);
      if (incoming.get(0)) {
        struct.isAligned = iprot.readBool();
        struct.setIsAlignedIsSet(true);
      }
    }
  }

  private static  S scheme(org.apache.thrift.protocol.TProtocol proto) {
    return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy