title: How to implement a list of maps in Protocol Buffers?
body: <p>I'm looking to create a gRPC response that returns a list of maps. Here is what I imagined the structure being:</p>
  
  <pre><code>message GetSettingsResponse {
      repeated map&lt;string, string&gt; settings = 1;
  }
  </code></pre>
  
  <p>Repeating maps is not supported, however, and  I had to nest the map in a separate message to make it work:</p>
  
  <pre><code>message GetSettingsResponse {
      repeated Setting settings = 1;
  }
  
  message Setting {
      map&lt;string, string&gt; setting = 1;
  }
  </code></pre>
  
  <p>This works, but it forces us to write some confusing code on both the client and server. Is there any way to avoid this solution and get closer to my desired structure?</p>