public Author deepCopy() { return new Author(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof Author) return this.equals((Author)that); return false; }
/** * Performs a deep copy on <i>other</i>. */ public Author(Author other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetEmail()) { this.email = other.email; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case EMAIL: if (value == null) { unsetEmail(); } else { setEmail((String)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.email = iprot.readString(); struct.setEmailIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Author struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(true); struct.email = iprot.readString(); struct.setEmailIsSet(true); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { 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); } }
/** * Performs a deep copy on <i>other</i>. */ public Author(Author other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetEmail()) { this.email = other.email; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case EMAIL: if (value == null) { unsetEmail(); } else { setEmail((String)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.email = iprot.readString(); struct.setEmailIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Author struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(true); struct.email = iprot.readString(); struct.setEmailIsSet(true); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { 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); } }
/** 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 NAME: return isSetName(); case EMAIL: return isSetEmail(); } throw new IllegalStateException(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Commit struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); struct.author = new Author(); struct.author.read(iprot); struct.setAuthorIsSet(true); struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); struct.summary = iprot.readString(); struct.setSummaryIsSet(true); struct.detail = new Comment(); struct.detail.read(iprot); struct.setDetailIsSet(true); { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.diffs = new ArrayList<Change>(_list13.size); Change _elem14; for (int _i15 = 0; _i15 < _list13.size; ++_i15) { _elem14 = new Change(); _elem14.read(iprot); struct.diffs.add(_elem14); } } struct.setDiffsIsSet(true); } }
public Author deepCopy() { return new Author(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof Author) return this.equals((Author)that); return false; }