public static Message buildQueryReply ( String leader ) { QueryReply reply = QueryReply . newBuilder ( ) . setLeader ( leader ) . build ( ) ; return Message . newBuilder ( ) . setType ( MessageType . QUERY_LEADER_REPLY ) . setReply ( reply ) . build ( ) ; }
Creates a QUERY_REPLY message .