if (isSetSize()) { if (!first) sb.append(", "); sb.append("size:");
if (isSetSize()) { if (!first) sb.append(", "); sb.append("size:");
public boolean equals(Data that) { if (that == null) return false; boolean this_present_bodyHash = true && this.isSetBodyHash(); boolean that_present_bodyHash = true && that.isSetBodyHash(); if (this_present_bodyHash || that_present_bodyHash) { if (!(this_present_bodyHash && that_present_bodyHash)) return false; if (TBaseHelper.compareTo(this.bodyHash, that.bodyHash) != 0) return false; } boolean this_present_size = true && this.isSetSize(); boolean that_present_size = true && that.isSetSize(); if (this_present_size || that_present_size) { if (!(this_present_size && that_present_size)) return false; if (this.size != that.size) return false; } boolean this_present_body = true && this.isSetBody(); boolean that_present_body = true && that.isSetBody(); if (this_present_body || that_present_body) { if (!(this_present_body && that_present_body)) return false; if (TBaseHelper.compareTo(this.body, that.body) != 0) return false; } return true; }
public boolean equals(Data that) { if (that == null) return false; boolean this_present_bodyHash = true && this.isSetBodyHash(); boolean that_present_bodyHash = true && that.isSetBodyHash(); if (this_present_bodyHash || that_present_bodyHash) { if (!(this_present_bodyHash && that_present_bodyHash)) return false; if (TBaseHelper.compareTo(this.bodyHash, that.bodyHash) != 0) return false; } boolean this_present_size = true && this.isSetSize(); boolean that_present_size = true && that.isSetSize(); if (this_present_size || that_present_size) { if (!(this_present_size && that_present_size)) return false; if (this.size != that.size) return false; } boolean this_present_body = true && this.isSetBody(); boolean that_present_body = true && that.isSetBody(); if (this_present_body || that_present_body) { if (!(this_present_body && that_present_body)) return false; if (TBaseHelper.compareTo(this.body, that.body) != 0) return false; } return true; }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.bodyHash != null) { if (isSetBodyHash()) { oprot.writeFieldBegin(BODY_HASH_FIELD_DESC); oprot.writeBinary(this.bodyHash); oprot.writeFieldEnd(); } } if (isSetSize()) { oprot.writeFieldBegin(SIZE_FIELD_DESC); oprot.writeI32(this.size); oprot.writeFieldEnd(); } if (this.body != null) { if (isSetBody()) { oprot.writeFieldBegin(BODY_FIELD_DESC); oprot.writeBinary(this.body); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.bodyHash != null) { if (isSetBodyHash()) { oprot.writeFieldBegin(BODY_HASH_FIELD_DESC); oprot.writeBinary(this.bodyHash); oprot.writeFieldEnd(); } } if (isSetSize()) { oprot.writeFieldBegin(SIZE_FIELD_DESC); oprot.writeI32(this.size); oprot.writeFieldEnd(); } if (this.body != null) { if (isSetBody()) { oprot.writeFieldBegin(BODY_FIELD_DESC); oprot.writeBinary(this.body); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }