public Plugin deepCopy() { return new Plugin(this); }
public Plugin deepCopy() { return new Plugin(this); }
/** * Performs a deep copy on <i>other</i>. */ public Project(Project other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetSchema()) { this.schema = new Schema(other.schema); } if (other.isSetPlugins()) { List<Plugin> __this__plugins = new ArrayList<Plugin>(other.plugins.size()); for (Plugin other_element : other.plugins) { __this__plugins.add(new Plugin(other_element)); } this.plugins = __this__plugins; } }
/** * Performs a deep copy on <i>other</i>. */ public Project(Project other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetSchema()) { this.schema = new Schema(other.schema); } if (other.isSetPlugins()) { List<Plugin> __this__plugins = new ArrayList<Plugin>(other.plugins.size()); for (Plugin other_element : other.plugins) { __this__plugins.add(new Plugin(other_element)); } this.plugins = __this__plugins; } }
for (int _i34 = 0; _i34 < _list32.size; ++_i34) _elem33 = new Plugin(); _elem33.read(iprot); struct.plugins.add(_elem33);
for (int _i42 = 0; _i42 < _list40.size; ++_i42) _elem41 = new Plugin(); _elem41.read(iprot); struct.plugins.add(_elem41);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Project struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.schema = new Schema(); struct.schema.read(iprot); struct.setSchemaIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.plugins = new ArrayList<Plugin>(_list37.size); Plugin _elem38; for (int _i39 = 0; _i39 < _list37.size; ++_i39) { _elem38 = new Plugin(); _elem38.read(iprot); struct.plugins.add(_elem38); } } struct.setPluginsIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Project struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.schema = new Schema(); struct.schema.read(iprot); struct.setSchemaIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.plugins = new ArrayList<Plugin>(_list45.size); Plugin _elem46; for (int _i47 = 0; _i47 < _list45.size; ++_i47) { _elem46 = new Plugin(); _elem46.read(iprot); struct.plugins.add(_elem46); } } struct.setPluginsIsSet(true); } } }