public TPathChanges deepCopy() { return new TPathChanges(this); }
public TPathChanges newPathChange(String authzObject) { TPathChanges pathChanges = new TPathChanges(authzObject, new LinkedList<List<String>>(), new LinkedList<List<String>>()); tPathsUpdate.addToPathChanges(pathChanges); return pathChanges; }
/** * Performs a deep copy on <i>other</i>. */ public TPathsUpdate(TPathsUpdate other) { __isset_bitfield = other.__isset_bitfield; this.hasFullImage = other.hasFullImage; if (other.isSetPathsDump()) { this.pathsDump = new TPathsDump(other.pathsDump); } this.seqNum = other.seqNum; if (other.isSetPathChanges()) { List<TPathChanges> __this__pathChanges = new ArrayList<TPathChanges>(); for (TPathChanges other_element : other.pathChanges) { __this__pathChanges.add(new TPathChanges(other_element)); } this.pathChanges = __this__pathChanges; } }
_elem60 = new TPathChanges(); _elem60.read(iprot); struct.pathChanges.add(_elem60);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TPathsUpdate struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.hasFullImage = iprot.readBool(); struct.setHasFullImageIsSet(true); struct.seqNum = iprot.readI64(); struct.setSeqNumIsSet(true); { org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.pathChanges = new ArrayList<TPathChanges>(_list63.size); for (int _i64 = 0; _i64 < _list63.size; ++_i64) { TPathChanges _elem65; // required _elem65 = new TPathChanges(); _elem65.read(iprot); struct.pathChanges.add(_elem65); } } struct.setPathChangesIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.pathsDump = new TPathsDump(); struct.pathsDump.read(iprot); struct.setPathsDumpIsSet(true); } } }