title: Get the enum value out from protobuf messages
body: <p>Here is a protobuf message definition:</p>
  
  <pre><code>message People {
    enum PeopleName {
      Alice = 100;
      Bob = 101;
      Cathy = 102;
    }
    optional PeopleName name = 1;
  }
  </code></pre>
  
  <p>I would like to populate the name field based on some strings I created. E.g. in golang:</p>
  
  <pre><code>str := "Cathy"
  </code></pre>
  
  <p>How can I populate the "name" in the protobuf message?</p>