class_docstr: The base mixin class of all Jina types.
  
  .. note::
      - All Jina types should inherit from this class.
      - All subclass should have ``self._pb_body``
      - All subclass should implement ``__init__`` with the possibility of initializing from ``None``, e.g.:
  
          .. highlight:: python
          .. code-block:: python
  
              class MyJinaType(ProtoTypeMixin):
                  def __init__(self, proto: Optional[jina_pb2.SomePbMsg] = None):
                      self._pb_body = proto or jina_pb2.SomePbMsg()
class_docstr_tok: ["The","base","mixin","class","of","all","Jina","types",".","..","note",":",":","-","All","Jina","types","should","inherit","from","this","class",".","-","All","subclass","should","have","``","self._pb_body","``","-","All","subclass","should","implement","``","__init__","``","with","the","possibility","of","initializing","from","``","None","``",",","e.g",".",":","..","highlight",":",":","python","..","code-block",":",":","python","class","MyJinaType","(","ProtoTypeMixin",")",":","def","__init__","(","self",",","proto",":","Optional","[","jina_pb2.SomePbMsg","]","=","None",")",":","self._pb_body","=","proto","or","jina_pb2.SomePbMsg","(",")"]
docstr: Copy the content of target
  
  :param other: the document to copy from
docstr_tok: ["Copy","the","content","of","target",":","param","other",":","the","document","to","copy","from"]
code: def CopyFrom(self: T, other: T) -> None:
      """Copy the content of target
  
      :param other: the document to copy from
      """
      self._pb_body.CopyFrom(other._pb_body)
  
file_path: jina/jina/types/mixin.py
imports: from typing import Dict
  from jina.helper import TYPE_CHECKING, T, deprecate_by, typename
label_desc: Use image node_id 11 for calling the ProtoTypeMixin obj's underlying member method code with example usage: obj.CopyFrom(other) without return types