public Object getFieldValue(_Fields field) { switch (field) { case MESSAGES: return getMessages(); } throw new IllegalStateException(); }
public int compareTo(Log_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; Log_args typedOther = (Log_args)other; lastComparison = Boolean.valueOf(isSetMessages()).compareTo(typedOther.isSetMessages()); if (lastComparison != 0) { return lastComparison; } if (isSetMessages()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.messages, typedOther.messages); 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.setMessagesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
struct.setMessagesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
struct.setMessagesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Log_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.messages = new ArrayList<LogEntry>(_list5.size); for (int _i6 = 0; _i6 < _list5.size; ++_i6) { LogEntry _elem7; // required _elem7 = new LogEntry(); _elem7.read(iprot); struct.messages.add(_elem7); } } struct.setMessagesIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Log_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.messages = new ArrayList<LogEntry>(_list5.size); for (int _i6 = 0; _i6 < _list5.size; ++_i6) { LogEntry _elem7; // required _elem7 = new LogEntry(); _elem7.read(iprot); struct.messages.add(_elem7); } } struct.setMessagesIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Log_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.messages = new ArrayList<LogEntry>(_list5.size); for (int _i6 = 0; _i6 < _list5.size; ++_i6) { LogEntry _elem7; // required _elem7 = new LogEntry(); _elem7.read(iprot); struct.messages.add(_elem7); } } struct.setMessagesIsSet(true); } } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Log_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetMessages()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMessages()) { { oprot.writeI32(struct.messages.size()); for (LogEntry _iter4 : struct.messages) { _iter4.write(oprot); } } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, Log_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.messages != null) { oprot.writeFieldBegin(MESSAGES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.messages.size())); for (LogEntry _iter3 : struct.messages) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Log_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.messages != null) { oprot.writeFieldBegin(MESSAGES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.messages.size())); for (LogEntry _iter3 : struct.messages) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Log_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.messages != null) { oprot.writeFieldBegin(MESSAGES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.messages.size())); for (LogEntry _iter3 : struct.messages) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public int compareTo(Log_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; Log_args typedOther = (Log_args)other; lastComparison = Boolean.valueOf(isSetMessages()).compareTo(typedOther.isSetMessages()); if (lastComparison != 0) { return lastComparison; } if (isSetMessages()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.messages, typedOther.messages); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Log_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetMessages()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMessages()) { { oprot.writeI32(struct.messages.size()); for (LogEntry _iter4 : struct.messages) { _iter4.write(oprot); } } } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Log_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetMessages()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMessages()) { { oprot.writeI32(struct.messages.size()); for (LogEntry _iter4 : struct.messages) { _iter4.write(oprot); } } } }
public int compareTo(Log_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; Log_args typedOther = (Log_args)other; lastComparison = Boolean.valueOf(isSetMessages()).compareTo(typedOther.isSetMessages()); if (lastComparison != 0) { return lastComparison; } if (isSetMessages()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.messages, typedOther.messages); if (lastComparison != 0) { return lastComparison; } } return 0; }
public Log_args deepCopy() { return new Log_args(this); }
public Log_args deepCopy() { return new Log_args(this); }
public Log_args getEmptyArgsInstance() { return new Log_args(); }