[NB] Add example returning Protocol Buffer message

 - Add `pin_state` method to demonstrate returning a Protocol Buffer
   message.
 - See #2.