title: Represent an array of objects as a protobuf message
body: <p>I would like to create a protobuf message which represents an array of objects.</p>
  <p><strong>Example</strong></p>
  <pre><code>[
    {
      &quot;firstKey&quot;: &quot;firstValue&quot;,
      &quot;secondKey&quot;: &quot;secondValue&quot;,
    },
    {
      &quot;firstKey&quot;: &quot;firstValue&quot;,
      &quot;secondKey&quot;: &quot;secondValue&quot;,
    },
    ...
  ]
  </code></pre>
  <p><strong>Pseudo code</strong> (not a valid syntax)</p>
  <pre><code>syntax = &quot;proto3&quot;;
  
  message Entry {
    string firstKey = 1;
    string secondKey = 2;
  }
  
  repeated message Response {
    ...Entry;
  }
  </code></pre>
  <p>I cannot find a way to do this. Is it even possible or am I forced to nest it like this?</p>
  <pre><code>syntax = &quot;proto3&quot;;
  
  message Entry {
    string firstKey = 1;
    string secondKey = 2;
  }
  
  message Response {
    repeated Entry data = 2;
  }
  </code></pre>