public Object getFieldValue(_Fields field) { switch (field) { case BATCHES: return getBatches(); } throw new IllegalStateException(); }
@Override public int compareTo(submitBatches_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetBatches()).compareTo(other.isSetBatches()); if (lastComparison != 0) { return lastComparison; } if (isSetBatches()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.batches, other.batches); 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.setBatchesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public void read(org.apache.thrift.protocol.TProtocol prot, submitBatches_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 _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.batches = new ArrayList<Batch>(_list53.size); Batch _elem54; for (int _i55 = 0; _i55 < _list53.size; ++_i55) { _elem54 = new Batch(); _elem54.read(iprot); struct.batches.add(_elem54); } } struct.setBatchesIsSet(true); } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, submitBatches_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.batches != null) { oprot.writeFieldBegin(BATCHES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.batches.size())); for (Batch _iter51 : struct.batches) { _iter51.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, submitBatches_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetBatches()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetBatches()) { { oprot.writeI32(struct.batches.size()); for (Batch _iter52 : struct.batches) { _iter52.write(oprot); } } } }
public submitBatches_args deepCopy() { return new submitBatches_args(this); }
public submitBatches_args getEmptyArgsInstance() { return new submitBatches_args(); }
public submitBatches_args getEmptyArgsInstance() { return new submitBatches_args(); }
public boolean equals(submitBatches_args that) { if (that == null) return false; boolean this_present_batches = true && this.isSetBatches(); boolean that_present_batches = true && that.isSetBatches(); if (this_present_batches || that_present_batches) { if (!(this_present_batches && that_present_batches)) return false; if (!this.batches.equals(that.batches)) return false; } return true; }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof submitBatches_args) return this.equals((submitBatches_args)that); return false; }
/** * Performs a deep copy on <i>other</i>. */ public submitBatches_args(submitBatches_args other) { if (other.isSetBatches()) { List<Batch> __this__batches = new ArrayList<Batch>(other.batches.size()); for (Batch other_element : other.batches) { __this__batches.add(new Batch(other_element)); } this.batches = __this__batches; } }
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); } }
public void send_submitBatches(List<Batch> batches) throws org.apache.thrift.TException { submitBatches_args args = new submitBatches_args(); args.setBatches(batches); sendBase("submitBatches", args); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case BATCHES: if (value == null) { unsetBatches(); } else { setBatches((List<Batch>)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 BATCHES: return isSetBatches(); } throw new IllegalStateException(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("submitBatches", org.apache.thrift.protocol.TMessageType.CALL, 0)); submitBatches_args args = new submitBatches_args(); args.setBatches(batches); args.write(prot); prot.writeMessageEnd(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_batches = true && (isSetBatches()); list.add(present_batches); if (present_batches) list.add(batches); return list.hashCode(); }