public static Message buildRequest ( ByteBuffer request ) { Request req = Request . newBuilder ( ) . setRequest ( ByteString . copyFrom ( request ) ) . build ( ) ; return Message . newBuilder ( ) . setType ( MessageType . REQUEST ) . setRequest ( req ) . build ( ) ; }
Creates a REQUEST message .