/** Performs a deep copy on <i>other</i>. */ public Appl(Appl other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.isSetId()) { this.id = other.id; } if (other.isSetType()) { this.type = other.type; } this.excuteAction = other.excuteAction; if (other.isSetExcuteDescribe()) { this.excuteDescribe = other.excuteDescribe; } if (other.isSetPkgName()) { this.pkgName = other.pkgName; } if (other.isSetLevel()) { this.level = other.level; } if (other.isSetCategory()) { this.category = other.category; } if (other.isSetName()) { this.name = other.name; } }
public void write(org.apache.thrift.protocol.TProtocol oprot, Appl struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.id != null) { oprot.writeFieldBegin(ID_FIELD_DESC); oprot.writeString(struct.id); oprot.writeFieldEnd(); } if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeString(struct.type); oprot.writeFieldEnd(); } oprot.writeFieldBegin(EXCUTE_ACTION_FIELD_DESC); oprot.writeI32(struct.excuteAction); oprot.writeFieldEnd(); if (struct.excuteDescribe != null) { oprot.writeFieldBegin(EXCUTE_DESCRIBE_FIELD_DESC); oprot.writeString(struct.excuteDescribe); oprot.writeFieldEnd(); } if (struct.pkgName != null) { oprot.writeFieldBegin(PKG_NAME_FIELD_DESC); oprot.writeString(struct.pkgName); oprot.writeFieldEnd(); } if (struct.level != null) { oprot.writeFieldBegin(LEVEL_FIELD_DESC); oprot.writeString(struct.level); oprot.writeFieldEnd(); } if (struct.category != null) { oprot.writeFieldBegin(CATEGORY_FIELD_DESC); oprot.writeString(struct.category); oprot.writeFieldEnd(); } if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void read(org.apache.thrift.protocol.TProtocol iprot, Appl 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: // ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.id = iprot.readString(); struct.setIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.type = iprot.readString(); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EXCUTE_ACTION if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.excuteAction = iprot.readI32(); struct.setExcuteActionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EXCUTE_DESCRIBE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.excuteDescribe = iprot.readString(); struct.setExcuteDescribeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // PKG_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.pkgName = iprot.readString(); struct.setPkgNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // LEVEL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.level = iprot.readString(); struct.setLevelIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // CATEGORY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.category = iprot.readString(); struct.setCategoryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 8: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(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(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); }
public int compareTo(Appl other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; Appl typedOther = (Appl) other; lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetExcuteAction()).compareTo(typedOther.isSetExcuteAction()); if (lastComparison != 0) { return lastComparison; } if (isSetExcuteAction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.excuteAction, typedOther.excuteAction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetExcuteDescribe()).compareTo(typedOther.isSetExcuteDescribe()); if (lastComparison != 0) { return lastComparison; } if (isSetExcuteDescribe()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.excuteDescribe, typedOther.excuteDescribe); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPkgName()).compareTo(typedOther.isSetPkgName()); if (lastComparison != 0) { return lastComparison; } if (isSetPkgName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pkgName, typedOther.pkgName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetLevel()).compareTo(typedOther.isSetLevel()); if (lastComparison != 0) { return lastComparison; } if (isSetLevel()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.level, typedOther.level); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory()); if (lastComparison != 0) { return lastComparison; } if (isSetCategory()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(Appl that) { if (that == null) return false; boolean this_present_id = true && this.isSetId(); boolean that_present_id = true && that.isSetId(); if (this_present_id || that_present_id) { if (!(this_present_id && that_present_id)) return false; if (!this.id.equals(that.id)) return false; } boolean this_present_type = true && this.isSetType(); boolean that_present_type = true && that.isSetType(); if (this_present_type || that_present_type) { if (!(this_present_type && that_present_type)) return false; if (!this.type.equals(that.type)) return false; } boolean this_present_excuteAction = true; boolean that_present_excuteAction = true; if (this_present_excuteAction || that_present_excuteAction) { if (!(this_present_excuteAction && that_present_excuteAction)) return false; if (this.excuteAction != that.excuteAction) return false; } boolean this_present_excuteDescribe = true && this.isSetExcuteDescribe(); boolean that_present_excuteDescribe = true && that.isSetExcuteDescribe(); if (this_present_excuteDescribe || that_present_excuteDescribe) { if (!(this_present_excuteDescribe && that_present_excuteDescribe)) return false; if (!this.excuteDescribe.equals(that.excuteDescribe)) return false; } boolean this_present_pkgName = true && this.isSetPkgName(); boolean that_present_pkgName = true && that.isSetPkgName(); if (this_present_pkgName || that_present_pkgName) { if (!(this_present_pkgName && that_present_pkgName)) return false; if (!this.pkgName.equals(that.pkgName)) return false; } boolean this_present_level = true && this.isSetLevel(); boolean that_present_level = true && that.isSetLevel(); if (this_present_level || that_present_level) { if (!(this_present_level && that_present_level)) return false; if (!this.level.equals(that.level)) return false; } boolean this_present_category = true && this.isSetCategory(); boolean that_present_category = true && that.isSetCategory(); if (this_present_category || that_present_category) { if (!(this_present_category && that_present_category)) return false; if (!this.category.equals(that.category)) return false; } boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } return true; }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Appl struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(8); if (incoming.get(0)) { struct.id = iprot.readString(); struct.setIdIsSet(true); } if (incoming.get(1)) { struct.type = iprot.readString(); struct.setTypeIsSet(true); } if (incoming.get(2)) { struct.excuteAction = iprot.readI32(); struct.setExcuteActionIsSet(true); } if (incoming.get(3)) { struct.excuteDescribe = iprot.readString(); struct.setExcuteDescribeIsSet(true); } if (incoming.get(4)) { struct.pkgName = iprot.readString(); struct.setPkgNameIsSet(true); } if (incoming.get(5)) { struct.level = iprot.readString(); struct.setLevelIsSet(true); } if (incoming.get(6)) { struct.category = iprot.readString(); struct.setCategoryIsSet(true); } if (incoming.get(7)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Appl struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetId()) { optionals.set(0); } if (struct.isSetType()) { optionals.set(1); } if (struct.isSetExcuteAction()) { optionals.set(2); } if (struct.isSetExcuteDescribe()) { optionals.set(3); } if (struct.isSetPkgName()) { optionals.set(4); } if (struct.isSetLevel()) { optionals.set(5); } if (struct.isSetCategory()) { optionals.set(6); } if (struct.isSetName()) { optionals.set(7); } oprot.writeBitSet(optionals, 8); if (struct.isSetId()) { oprot.writeString(struct.id); } if (struct.isSetType()) { oprot.writeString(struct.type); } if (struct.isSetExcuteAction()) { oprot.writeI32(struct.excuteAction); } if (struct.isSetExcuteDescribe()) { oprot.writeString(struct.excuteDescribe); } if (struct.isSetPkgName()) { oprot.writeString(struct.pkgName); } if (struct.isSetLevel()) { oprot.writeString(struct.level); } if (struct.isSetCategory()) { oprot.writeString(struct.category); } if (struct.isSetName()) { oprot.writeString(struct.name); } }