public PluginOperationReturnDef deepCopy() { return new PluginOperationReturnDef(this); }
public PluginOperationReturnDef deepCopy() { return new PluginOperationReturnDef(this); }
/** * Performs a deep copy on <i>other</i>. */ public PluginOperation(PluginOperation other) { if (other.isSetPluginName()) { this.pluginName = other.pluginName; } if (other.isSetOperationName()) { this.operationName = other.operationName; } if (other.isSetParamDefs()) { List<PluginOperationParamDef> __this__paramDefs = new ArrayList<PluginOperationParamDef>(other.paramDefs.size()); for (PluginOperationParamDef other_element : other.paramDefs) { __this__paramDefs.add(new PluginOperationParamDef(other_element)); } this.paramDefs = __this__paramDefs; } if (other.isSetReturnDef()) { this.returnDef = new PluginOperationReturnDef(other.returnDef); } if (other.isSetComment()) { this.comment = new Comment(other.comment); } }
/** * Performs a deep copy on <i>other</i>. */ public PluginOperation(PluginOperation other) { if (other.isSetPluginName()) { this.pluginName = other.pluginName; } if (other.isSetOperationName()) { this.operationName = other.operationName; } if (other.isSetParamDefs()) { List<PluginOperationParamDef> __this__paramDefs = new ArrayList<PluginOperationParamDef>(other.paramDefs.size()); for (PluginOperationParamDef other_element : other.paramDefs) { __this__paramDefs.add(new PluginOperationParamDef(other_element)); } this.paramDefs = __this__paramDefs; } if (other.isSetReturnDef()) { this.returnDef = new PluginOperationReturnDef(other.returnDef); } if (other.isSetComment()) { this.comment = new Comment(other.comment); } }
case 4: // RETURN_DEF if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.returnDef = new PluginOperationReturnDef(); struct.returnDef.read(iprot); struct.setReturnDefIsSet(true);
case 4: // RETURN_DEF if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.returnDef = new PluginOperationReturnDef(); struct.returnDef.read(iprot); struct.setReturnDefIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, PluginOperation struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.pluginName = iprot.readString(); struct.setPluginNameIsSet(true); struct.operationName = iprot.readString(); struct.setOperationNameIsSet(true); { org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.paramDefs = new ArrayList<PluginOperationParamDef>(_list37.size); PluginOperationParamDef _elem38; for (int _i39 = 0; _i39 < _list37.size; ++_i39) { _elem38 = new PluginOperationParamDef(); _elem38.read(iprot); struct.paramDefs.add(_elem38); } } struct.setParamDefsIsSet(true); struct.returnDef = new PluginOperationReturnDef(); struct.returnDef.read(iprot); struct.setReturnDefIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, PluginOperation struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.pluginName = iprot.readString(); struct.setPluginNameIsSet(true); struct.operationName = iprot.readString(); struct.setOperationNameIsSet(true); { org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.paramDefs = new ArrayList<PluginOperationParamDef>(_list29.size); PluginOperationParamDef _elem30; for (int _i31 = 0; _i31 < _list29.size; ++_i31) { _elem30 = new PluginOperationParamDef(); _elem30.read(iprot); struct.paramDefs.add(_elem30); } } struct.setParamDefsIsSet(true); struct.returnDef = new PluginOperationReturnDef(); struct.returnDef.read(iprot); struct.setReturnDefIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } } }