public void read(org.apache.thrift.protocol.TProtocol iprot, CompleteFileTOptions 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: // UFS_LENGTH if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.ufsLength = iprot.readI64(); struct.setUfsLengthIsSet(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 struct.validate(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, CompleteFileTOptions struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.ufsLength = iprot.readI64(); struct.setUfsLengthIsSet(true); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, CompleteFileTOptions struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUfsLength()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetUfsLength()) { oprot.writeI64(struct.ufsLength); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, CompleteFileTOptions struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetUfsLength()) { oprot.writeFieldBegin(UFS_LENGTH_FIELD_DESC); oprot.writeI64(struct.ufsLength); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public int compareTo(CompleteFileTOptions other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUfsLength()).compareTo(other.isSetUfsLength()); if (lastComparison != 0) { return lastComparison; } if (isSetUfsLength()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ufsLength, other.ufsLength); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(CompleteFileTOptions that) { if (that == null) return false; boolean this_present_ufsLength = true && this.isSetUfsLength(); boolean that_present_ufsLength = true && that.isSetUfsLength(); if (this_present_ufsLength || that_present_ufsLength) { if (!(this_present_ufsLength && that_present_ufsLength)) return false; if (this.ufsLength != that.ufsLength) return false; } return true; }