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); } }
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); } }
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 write(org.apache.thrift.protocol.TProtocol oprot, Annotation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeString(struct.value); oprot.writeFieldEnd(); } if (struct.host != null) { if (struct.isSetHost()) { oprot.writeFieldBegin(HOST_FIELD_DESC); struct.host.write(oprot); oprot.writeFieldEnd(); } } if (struct.isSetDuration()) { oprot.writeFieldBegin(DURATION_FIELD_DESC); oprot.writeI32(struct.duration); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, BinaryAnnotation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeBinary(struct.value); oprot.writeFieldEnd(); } if (struct.annotation_type != null) { oprot.writeFieldBegin(ANNOTATION_TYPE_FIELD_DESC); oprot.writeI32(struct.annotation_type.getValue()); oprot.writeFieldEnd(); } if (struct.host != null) { if (struct.isSetHost()) { oprot.writeFieldBegin(HOST_FIELD_DESC); struct.host.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Annotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetHost()) { optionals.set(2); } oprot.writeBitSet(optionals, 4); if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetValue()) { oprot.writeString(struct.value); } if (struct.isSetHost()) { struct.host.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Annotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetHost()) { optionals.set(2); } oprot.writeBitSet(optionals, 4); if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetValue()) { oprot.writeString(struct.value); } if (struct.isSetHost()) { struct.host.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Annotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetHost()) { optionals.set(2); } if (struct.isSetDuration()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetValue()) { oprot.writeString(struct.value); } if (struct.isSetHost()) { struct.host.write(oprot); } if (struct.isSetDuration()) { oprot.writeI32(struct.duration); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BinaryAnnotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetAnnotation_type()) { optionals.set(2); } if (struct.isSetHost()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetAnnotation_type()) { oprot.writeI32(struct.annotation_type.getValue()); } if (struct.isSetHost()) { struct.host.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BinaryAnnotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetAnnotation_type()) { optionals.set(2); } if (struct.isSetHost()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetAnnotation_type()) { oprot.writeI32(struct.annotation_type.getValue()); } if (struct.isSetHost()) { struct.host.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BinaryAnnotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetAnnotation_type()) { optionals.set(2); } if (struct.isSetHost()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetAnnotation_type()) { oprot.writeI32(struct.annotation_type.getValue()); } if (struct.isSetHost()) { struct.host.write(oprot); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, Annotation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeString(struct.value); oprot.writeFieldEnd(); } if (struct.host != null) { if (struct.isSetHost()) { oprot.writeFieldBegin(HOST_FIELD_DESC); struct.host.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Annotation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeString(struct.value); oprot.writeFieldEnd(); } if (struct.host != null) { if (struct.isSetHost()) { oprot.writeFieldBegin(HOST_FIELD_DESC); struct.host.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, BinaryAnnotation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeBinary(struct.value); oprot.writeFieldEnd(); } if (struct.annotation_type != null) { oprot.writeFieldBegin(ANNOTATION_TYPE_FIELD_DESC); oprot.writeI32(struct.annotation_type.getValue()); oprot.writeFieldEnd(); } if (struct.host != null) { if (struct.isSetHost()) { oprot.writeFieldBegin(HOST_FIELD_DESC); struct.host.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, BinaryAnnotation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeBinary(struct.value); oprot.writeFieldEnd(); } if (struct.annotation_type != null) { oprot.writeFieldBegin(ANNOTATION_TYPE_FIELD_DESC); oprot.writeI32(struct.annotation_type.getValue()); oprot.writeFieldEnd(); } if (struct.host != null) { if (struct.isSetHost()) { oprot.writeFieldBegin(HOST_FIELD_DESC); struct.host.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }