title: How do you create a Protobuf Struct from a Python Dict?
body: <p>I get the following attribute error</p>
  
  <blockquote>
    <p>AttributeError: 'Struct' object has no attribute 'fields'</p>
  </blockquote>
  
  <p>if I want to use the <code>update</code> method of <a href="https://github.com/protocolbuffers/protobuf/blob/master/python/google/protobuf/internal/well_known_types.py" rel="noreferrer"><code>google.protobuf.internal.well_known_types.Struct</code></a></p>
  
  <p>Protobuf version is 3.71. </p>
  
  <hr>
  
  <p><strong>MWE</strong>:</p>
  
  <pre><code>from google.protobuf.internal.well_known_types import Struct
  
  s = Struct()
  s.update({"key": "value"})
  </code></pre>
  
  <hr>
  
  <p>The bigger context of this question is that I want to create a message  with a <code>google.protobuf.Struct</code> field in python for sending to pass to the generated RPC client. </p>
  
  <p>Can anyone help? </p>