@Override public void read(org.apache.thrift.protocol.TProtocol prot, WatchRepositoryResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } } }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof Revision) return this.equals((Revision)that); return false; }
public Revision( int major, int minor) { this(); this.major = major; setMajorIsSet(true); this.minor = minor; setMinorIsSet(true); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case MAJOR: if (value == null) { unsetMajor(); } else { setMajor((Integer)value); } break; case MINOR: if (value == null) { unsetMinor(); } else { setMinor((Integer)value); } break; } }
public Revision deepCopy() { return new Revision(this); }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.major = iprot.readI32(); struct.setMajorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.minor = iprot.readI32(); struct.setMinorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (!struct.isSetMajor()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'major' was not found in serialized data! Struct: " + toString()); if (!struct.isSetMinor()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'minor' was not found in serialized data! Struct: " + toString()); struct.validate();
/** 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 MAJOR: return isSetMajor(); case MINOR: return isSetMinor(); } throw new IllegalStateException(); }
public Revision setMajor(int major) { this.major = major; setMajorIsSet(true); return this; }
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_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); } }
public Revision deepCopy() { return new Revision(this); }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.major = iprot.readI32(); struct.setMajorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.minor = iprot.readI32(); struct.setMinorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (!struct.isSetMajor()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'major' was not found in serialized data! Struct: " + toString()); if (!struct.isSetMinor()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'minor' was not found in serialized data! Struct: " + toString()); struct.validate();
public void setFieldValue(_Fields field, Object value) { switch (field) { case MAJOR: if (value == null) { unsetMajor(); } else { setMajor((Integer)value); } break; case MINOR: if (value == null) { unsetMinor(); } else { setMinor((Integer)value); } break; } }
@Override public void clear() { setMajorIsSet(false); this.major = 0; setMinorIsSet(false); this.minor = 0; }
/** 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 MAJOR: return isSetMajor(); case MINOR: return isSetMinor(); } throw new IllegalStateException(); }
public Revision setMajor(int major) { this.major = major; setMajorIsSet(true); return this; }
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_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); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, WatchRepositoryResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } } }
/** * Performs a deep copy on <i>other</i>. */ public WatchRepositoryResult(WatchRepositoryResult other) { if (other.isSetRevision()) { this.revision = new Revision(other.revision); } }