public TPathsUpdate deepCopy() { return new TPathsUpdate(this); }
public PathsUpdate(long seqNum, boolean hasFullImage) { tPathsUpdate = new TPathsUpdate(hasFullImage, seqNum, new LinkedList<TPathChanges>()); }
/** * Performs a deep copy on <i>other</i>. */ public handle_hms_notification_args(handle_hms_notification_args other) { if (other.isSetPathsUpdate()) { this.pathsUpdate = new TPathsUpdate(other.pathsUpdate); } }
/** * Performs a deep copy on <i>other</i>. */ public TAuthzUpdateResponse(TAuthzUpdateResponse other) { if (other.isSetAuthzPathUpdate()) { List<TPathsUpdate> __this__authzPathUpdate = new ArrayList<TPathsUpdate>(); for (TPathsUpdate other_element : other.authzPathUpdate) { __this__authzPathUpdate.add(new TPathsUpdate(other_element)); } this.authzPathUpdate = __this__authzPathUpdate; } if (other.isSetAuthzPermUpdate()) { List<TPermissionsUpdate> __this__authzPermUpdate = new ArrayList<TPermissionsUpdate>(); for (TPermissionsUpdate other_element : other.authzPermUpdate) { __this__authzPermUpdate.add(new TPermissionsUpdate(other_element)); } this.authzPermUpdate = __this__authzPermUpdate; } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, handle_hms_notification_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.pathsUpdate = new TPathsUpdate(); struct.pathsUpdate.read(iprot); struct.setPathsUpdateIsSet(true); } } }
public void read(org.apache.thrift.protocol.TProtocol iprot, handle_hms_notification_args 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: // PATHS_UPDATE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.pathsUpdate = new TPathsUpdate(); struct.pathsUpdate.read(iprot); struct.setPathsUpdateIsSet(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(); struct.validate(); }
_elem124 = new TPathsUpdate(); _elem124.read(iprot); struct.authzPathUpdate.add(_elem124);
_elem134 = new TPathsUpdate(); _elem134.read(iprot); struct.authzPathUpdate.add(_elem134);