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); } }
@Override protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case NOT_FOUND: Boolean not_found = (Boolean)value_; oprot.writeBool(not_found); return; case VALUE: ByteBuffer value = (ByteBuffer)value_; oprot.writeBinary(value); return; case XCEPTION: HankException xception = (HankException)value_; xception.write(oprot); return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField_); } }
@Override protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case NOT_FOUND: Boolean not_found = (Boolean)value_; oprot.writeBool(not_found); return; case VALUE: ByteBuffer value = (ByteBuffer)value_; oprot.writeBinary(value); return; case XCEPTION: HankException xception = (HankException)value_; xception.write(oprot); return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField_); } }
@Override protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case RESPONSES: List<HankResponse> responses = (List<HankResponse>)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, responses.size())); for (HankResponse _iter7 : responses) { _iter7.write(oprot); } oprot.writeListEnd(); } return; case XCEPTION: HankException xception = (HankException)value_; xception.write(oprot); return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField_); } }
@Override protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case RESPONSES: List<HankResponse> responses = (List<HankResponse>)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, responses.size())); for (HankResponse _iter3 : responses) { _iter3.write(oprot); } oprot.writeListEnd(); } return; case XCEPTION: HankException xception = (HankException)value_; xception.write(oprot); return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField_); } }