public Object getFieldValue(_Fields field) { switch (field) { case OPERATIONS_SERVERS_LIST: return getOperationsServersList(); } throw new IllegalStateException(); }
@Override public int compareTo(onOperationsServerListUpdate_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetOperationsServersList()).compareTo(other.isSetOperationsServersList()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationsServersList()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationsServersList, other.operationsServersList); 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.setOperationsServersListIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public void read(org.apache.thrift.protocol.TProtocol prot, onOperationsServerListUpdate_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 _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.operationsServersList = new ArrayList<ThriftOperationsServer>(_list5.size); ThriftOperationsServer _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = new ThriftOperationsServer(); _elem6.read(iprot); struct.operationsServersList.add(_elem6); } } struct.setOperationsServersListIsSet(true); } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, onOperationsServerListUpdate_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.operationsServersList != null) { oprot.writeFieldBegin(OPERATIONS_SERVERS_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.operationsServersList.size())); for (ThriftOperationsServer _iter3 : struct.operationsServersList) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, onOperationsServerListUpdate_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetOperationsServersList()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetOperationsServersList()) { { oprot.writeI32(struct.operationsServersList.size()); for (ThriftOperationsServer _iter4 : struct.operationsServersList) { _iter4.write(oprot); } } } }
public onOperationsServerListUpdate_args getEmptyArgsInstance() { return new onOperationsServerListUpdate_args(); }
public onOperationsServerListUpdate_args deepCopy() { return new onOperationsServerListUpdate_args(this); }
public onOperationsServerListUpdate_args getEmptyArgsInstance() { return new onOperationsServerListUpdate_args(); }
public boolean equals(onOperationsServerListUpdate_args that) { if (that == null) return false; boolean this_present_operationsServersList = true && this.isSetOperationsServersList(); boolean that_present_operationsServersList = true && that.isSetOperationsServersList(); if (this_present_operationsServersList || that_present_operationsServersList) { if (!(this_present_operationsServersList && that_present_operationsServersList)) return false; if (!this.operationsServersList.equals(that.operationsServersList)) return false; } return true; }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof onOperationsServerListUpdate_args) return this.equals((onOperationsServerListUpdate_args)that); return false; }
/** 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 OPERATIONS_SERVERS_LIST: return isSetOperationsServersList(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_operationsServersList = true && (isSetOperationsServersList()); list.add(present_operationsServersList); if (present_operationsServersList) list.add(operationsServersList); return list.hashCode(); }
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); } }
/** * Performs a deep copy on <i>other</i>. */ public onOperationsServerListUpdate_args(onOperationsServerListUpdate_args other) { if (other.isSetOperationsServersList()) { this.operationsServersList = other.operationsServersList; } }
public void send_onOperationsServerListUpdate(List<ThriftOperationsServer> operationsServersList) throws org.apache.thrift.TException { onOperationsServerListUpdate_args args = new onOperationsServerListUpdate_args(); args.setOperationsServersList(operationsServersList); sendBase("onOperationsServerListUpdate", args); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("onOperationsServerListUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0)); onOperationsServerListUpdate_args args = new onOperationsServerListUpdate_args(); args.setOperationsServersList(operationsServersList); args.write(prot); prot.writeMessageEnd(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case OPERATIONS_SERVERS_LIST: if (value == null) { unsetOperationsServersList(); } else { setOperationsServersList((List<ThriftOperationsServer>)value); } break; } }