public LogEntry deepCopy() { return new LogEntry(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof LogEntry) return this.equals((LogEntry)that); return false; }
public Object getFieldValue(_Fields field) { switch (field) { case CATEGORY: return getCategory(); case MESSAGE: return getMessage(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public LogEntry(LogEntry other) { if (other.isSetCategory()) { this.category = other.category; } if (other.isSetMessage()) { this.message = other.message; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case CATEGORY: if (value == null) { unsetCategory(); } else { setCategory((String)value); } break; case MESSAGE: if (value == null) { unsetMessage(); } else { setMessage((String)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.category = iprot.readString(); struct.setCategoryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.message = iprot.readString(); struct.setMessageIsSet(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, LogEntry struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.category = iprot.readString(); struct.setCategoryIsSet(true); } if (incoming.get(1)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); } } }
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); } }
/** * Performs a deep copy on <i>other</i>. */ public LogEntry(LogEntry other) { if (other.isSetCategory()) { this.category = other.category; } if (other.isSetMessage()) { this.message = other.message; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case CATEGORY: if (value == null) { unsetCategory(); } else { setCategory((String)value); } break; case MESSAGE: if (value == null) { unsetMessage(); } else { setMessage((String)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.category = iprot.readString(); struct.setCategoryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.message = iprot.readString(); struct.setMessageIsSet(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, LogEntry struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.category = iprot.readString(); struct.setCategoryIsSet(true); } if (incoming.get(1)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); } } }
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); } }
/** * Performs a deep copy on <i>other</i>. */ public LogEntry(LogEntry other) { if (other.isSetCategory()) { this.category = other.category; } if (other.isSetMessage()) { this.message = other.message; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case CATEGORY: if (value == null) { unsetCategory(); } else { setCategory((String)value); } break; case MESSAGE: if (value == null) { unsetMessage(); } else { setMessage((String)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.category = iprot.readString(); struct.setCategoryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.message = iprot.readString(); struct.setMessageIsSet(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); } } }
public Object getFieldValue(_Fields field) { switch (field) { case CATEGORY: return getCategory(); case MESSAGE: return getMessage(); } throw new IllegalStateException(); }