@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_schema = true && (isSetSchema()); list.add(present_schema); if (present_schema) list.add(schema); boolean present_plugins = true && (isSetPlugins()); list.add(present_plugins); if (present_plugins) list.add(plugins); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_schema = true && (isSetSchema()); list.add(present_schema); if (present_schema) list.add(schema); boolean present_plugins = true && (isSetPlugins()); list.add(present_plugins); if (present_plugins) list.add(plugins); return list.hashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); case SCHEMA: return isSetSchema(); case PLUGINS: return isSetPlugins(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); case SCHEMA: return isSetSchema(); case PLUGINS: return isSetPlugins(); } throw new IllegalStateException(); }
if (isSetSchema()) { if (!first) sb.append(", "); sb.append("schema:");
if (isSetSchema()) { if (!first) sb.append(", "); sb.append("schema:");
lastComparison = Boolean.valueOf(isSetSchema()).compareTo(other.isSetSchema()); if (lastComparison != 0) { return lastComparison; if (isSetSchema()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, other.schema); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetSchema()).compareTo(other.isSetSchema()); if (lastComparison != 0) { return lastComparison; if (isSetSchema()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, other.schema); if (lastComparison != 0) {
/** * 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; } }
if (struct.isSetSchema()) { oprot.writeFieldBegin(SCHEMA_FIELD_DESC); struct.schema.write(oprot);
public boolean equals(Project that) { if (that == null) 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; } boolean this_present_schema = true && this.isSetSchema(); boolean that_present_schema = true && that.isSetSchema(); if (this_present_schema || that_present_schema) { if (!(this_present_schema && that_present_schema)) return false; if (!this.schema.equals(that.schema)) return false; } boolean this_present_plugins = true && this.isSetPlugins(); boolean that_present_plugins = true && that.isSetPlugins(); if (this_present_plugins || that_present_plugins) { if (!(this_present_plugins && that_present_plugins)) return false; if (!this.plugins.equals(that.plugins)) return false; } return true; }
if (struct.isSetSchema()) { oprot.writeFieldBegin(SCHEMA_FIELD_DESC); struct.schema.write(oprot);
public boolean equals(Project that) { if (that == null) 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; } boolean this_present_schema = true && this.isSetSchema(); boolean that_present_schema = true && that.isSetSchema(); if (this_present_schema || that_present_schema) { if (!(this_present_schema && that_present_schema)) return false; if (!this.schema.equals(that.schema)) return false; } boolean this_present_plugins = true && this.isSetPlugins(); boolean that_present_plugins = true && that.isSetPlugins(); if (this_present_plugins || that_present_plugins) { if (!(this_present_plugins && that_present_plugins)) return false; if (!this.plugins.equals(that.plugins)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Project struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.name); BitSet optionals = new BitSet(); if (struct.isSetSchema()) { optionals.set(0); } if (struct.isSetPlugins()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSchema()) { struct.schema.write(oprot); } if (struct.isSetPlugins()) { { oprot.writeI32(struct.plugins.size()); for (Plugin _iter44 : struct.plugins) { _iter44.write(oprot); } } } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Project struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.name); BitSet optionals = new BitSet(); if (struct.isSetSchema()) { optionals.set(0); } if (struct.isSetPlugins()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSchema()) { struct.schema.write(oprot); } if (struct.isSetPlugins()) { { oprot.writeI32(struct.plugins.size()); for (Plugin _iter36 : struct.plugins) { _iter36.write(oprot); } } } }