in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java [743:787]
public void write(org.apache.thrift.protocol.TProtocol oprot, SetupMessageStruct struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(LEAF_NUM_FIELD_DESC);
oprot.writeI32(struct.leafNum);
oprot.writeFieldEnd();
if (struct.identities != null) {
oprot.writeFieldBegin(IDENTITIES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.identities.size()));
for (java.lang.String _iter7 : struct.identities)
{
oprot.writeString(_iter7);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.ephemeralKeys != null) {
oprot.writeFieldBegin(EPHEMERAL_KEYS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, struct.ephemeralKeys.size()));
for (java.util.Map.Entry<java.lang.Integer, java.lang.String> _iter8 : struct.ephemeralKeys.entrySet())
{
oprot.writeI32(_iter8.getKey());
oprot.writeString(_iter8.getValue());
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
if (struct.keyExchangeKey != null) {
oprot.writeFieldBegin(KEY_EXCHANGE_KEY_FIELD_DESC);
oprot.writeBinary(struct.keyExchangeKey);
oprot.writeFieldEnd();
}
if (struct.tree != null) {
oprot.writeFieldBegin(TREE_FIELD_DESC);
struct.tree.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}