class_docstr: Represents a DataRequest used for exchanging :class:`docarray.DocumentArray` with and within a Flow.
  
  When calling :meth:`~jina.clients.mixin.PostMixin.post` on any Jina client,
  the provided input :class:`docarray.DocumentArray` will be
  converted to a :class:`DataRequest` before being sent to a Flow.
docstr: Cast ``self`` to a :class:`jina_pb2.DataRequestProto`. Laziness will be broken and serialization will be recomputed when calling.
  :meth:`SerializeToString`.
  :return: DataRequestProto protobuf instance
docstr_tok: ["Cast","``","self","``","to","a",":","class",":","`","jina_pb2.DataRequestProto","`",".","Laziness","will","be","broken","and","serialization","will","be","recomputed","when","calling",".",":","meth",":","`","SerializeToString","`",".",":","return",":","DataRequestProto","protobuf","instance"]
code: def proto_with_data(
      self,
  ) -> "jina_pb2.DataRequestProto":
      """
      Cast ``self`` to a :class:`jina_pb2.DataRequestProto`. Laziness will be broken and serialization will be recomputed when calling.
      :meth:`SerializeToString`.
      :return: DataRequestProto protobuf instance
      """
      if not self.is_decompressed_with_data:
          self._decompress()
      return self._pb_body
  
imports: import copy
  from typing import Dict, Optional, Type, TypeVar, Union
  from google.protobuf import json_format
  from jina._docarray import DocumentArray, Document, docarray_v2
  from jina.excepts import BadRequestType
  from jina.helper import random_identity, typename
  from jina.proto import jina_pb2
  from jina.types.request import Request
label_desc: Use image node_id 9 for calling the DataRequest obj's underlying member method code with example usage: obj.proto_with_data() and returns: self