public EndpointEvent setCreateTime(long createTime) { this.createTime = createTime; setCreateTimeIsSet(true); return this; }
@Override public void clear() { this.uuid = null; this.sender = null; this.eventData = null; setCreateTimeIsSet(false); this.createTime = 0; setVersionIsSet(false); this.version = 0; }
public EndpointEvent( String uuid, ByteBuffer sender, ByteBuffer eventData, long createTime, int version) { this(); this.uuid = uuid; this.sender = org.apache.thrift.TBaseHelper.copyBinary(sender); this.eventData = org.apache.thrift.TBaseHelper.copyBinary(eventData); this.createTime = createTime; setCreateTimeIsSet(true); this.version = version; setVersionIsSet(true); }
if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.createTime = iprot.readI64(); struct.setCreateTimeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, EndpointEvent struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.uuid = iprot.readString(); struct.setUuidIsSet(true); } if (incoming.get(1)) { struct.sender = iprot.readBinary(); struct.setSenderIsSet(true); } if (incoming.get(2)) { struct.eventData = iprot.readBinary(); struct.setEventDataIsSet(true); } if (incoming.get(3)) { struct.createTime = iprot.readI64(); struct.setCreateTimeIsSet(true); } if (incoming.get(4)) { struct.version = iprot.readI32(); struct.setVersionIsSet(true); } } }