class_docstr: Simple, type-checked, dict-like container for with submessage values.
class_docstr_tok: ["Simple",",","type-checked",",","dict-like","container","for","with","submessage","values","."]
docstr: get_or_create() is an alias for getitem (ie. map[key]).
  
  Args:
    key: The key to get or create in the map.
  
  This is useful in cases where you want to be explicit that the call is
  mutating the map.  This can avoid lint errors for statements like this
  that otherwise would appear to be pointless statements:
  
    msg.my_map[key]
docstr_tok: ["get_or_create","(",")","is","an","alias","for","getitem","(","ie",".","map","[","key","]",")",".","Args",":","key",":","The","key","to","get","or","create","in","the","map",".","This","is","useful","in","cases","where","you","want","to","be","explicit","that","the","call","is","mutating","the","map",".","This","can","avoid","lint","errors","for","statements","like","this","that","otherwise","would","appear","to","be","pointless","statements",":","msg.my_map","[","key","]"]
code: def get_or_create(self, key):
      """get_or_create() is an alias for getitem (ie. map[key]).
  
      Args:
        key: The key to get or create in the map.
  
      This is useful in cases where you want to be explicit that the call is
      mutating the map.  This can avoid lint errors for statements like this
      that otherwise would appear to be pointless statements:
  
        msg.my_map[key]
      """
      return self[key]
  
imports: import collections
  import sys
label_desc: Use image node_id 3 for calling the MessageMap obj's underlying member method code with example usage: obj.get_or_create(key) and returns: self