public Object getFieldValue(_Fields field) { switch (field) { case UPDATES: return getUpdates(); } throw new IllegalStateException(); }
@Override public int compareTo(sendUserConfigurationUpdates_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUpdates()).compareTo(other.isSetUpdates()); if (lastComparison != 0) { return lastComparison; } if (isSetUpdates()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updates, other.updates); if (lastComparison != 0) { return lastComparison; } } return 0; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
struct.setUpdatesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public void read(org.apache.thrift.protocol.TProtocol prot, sendUserConfigurationUpdates_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.updates = new ArrayList<UserConfigurationUpdate>(_list29.size); UserConfigurationUpdate _elem30; for (int _i31 = 0; _i31 < _list29.size; ++_i31) { _elem30 = new UserConfigurationUpdate(); _elem30.read(iprot); struct.updates.add(_elem30); } } struct.setUpdatesIsSet(true); } } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, sendUserConfigurationUpdates_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUpdates()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetUpdates()) { { oprot.writeI32(struct.updates.size()); for (UserConfigurationUpdate _iter28 : struct.updates) { _iter28.write(oprot); } } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, sendUserConfigurationUpdates_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.updates != null) { oprot.writeFieldBegin(UPDATES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.updates.size())); for (UserConfigurationUpdate _iter27 : struct.updates) { _iter27.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public sendUserConfigurationUpdates_args deepCopy() { return new sendUserConfigurationUpdates_args(this); }
public sendUserConfigurationUpdates_args getEmptyArgsInstance() { return new sendUserConfigurationUpdates_args(); }
public sendUserConfigurationUpdates_args getEmptyArgsInstance() { return new sendUserConfigurationUpdates_args(); }
public boolean equals(sendUserConfigurationUpdates_args that) { if (that == null) return false; boolean this_present_updates = true && this.isSetUpdates(); boolean that_present_updates = true && that.isSetUpdates(); if (this_present_updates || that_present_updates) { if (!(this_present_updates && that_present_updates)) return false; if (!this.updates.equals(that.updates)) return false; } return true; }
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sendUserConfigurationUpdates_args) return this.equals((sendUserConfigurationUpdates_args)that); return false; }
/** * Performs a deep copy on <i>other</i>. */ public sendUserConfigurationUpdates_args(sendUserConfigurationUpdates_args other) { if (other.isSetUpdates()) { List<UserConfigurationUpdate> __this__updates = new ArrayList<UserConfigurationUpdate>(other.updates.size()); for (UserConfigurationUpdate other_element : other.updates) { __this__updates.add(new UserConfigurationUpdate(other_element)); } this.updates = __this__updates; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case UPDATES: if (value == null) { unsetUpdates(); } else { setUpdates((List<UserConfigurationUpdate>)value); } break; } }
/** 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 UPDATES: return isSetUpdates(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_updates = true && (isSetUpdates()); list.add(present_updates); if (present_updates) list.add(updates); return list.hashCode(); }
public void send_sendUserConfigurationUpdates(List<UserConfigurationUpdate> updates) throws org.apache.thrift.TException { sendUserConfigurationUpdates_args args = new sendUserConfigurationUpdates_args(); args.setUpdates(updates); sendBase("sendUserConfigurationUpdates", args); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendUserConfigurationUpdates", org.apache.thrift.protocol.TMessageType.CALL, 0)); sendUserConfigurationUpdates_args args = new sendUserConfigurationUpdates_args(); args.setUpdates(updates); args.write(prot); prot.writeMessageEnd(); }