class_docstr: SingleDocumentRequest represents a request containing only 1 document, which is used for streaming endpoints.
  Similar to DataRequest but has a `document` field instead of `data`
docstr: Decompress the buffer into a DataRequestProto
docstr_tok: ["Decompress","the","buffer","into","a","DataRequestProto"]
code: def _decompress(self):
      """Decompress the buffer into a DataRequestProto"""
      if self.buffer:
          self._pb_body = jina_pb2.SingleDocumentRequestProto()
          self._pb_body.ParseFromString(self.buffer)
          self.buffer = None
      elif self.is_decompressed_wo_data:
          self._pb_body_old = self._pb_body
          self._pb_body = jina_pb2.SingleDocumentRequestProto()
          self._pb_body.ParseFromString(
              self._pb_body_old.SerializePartialToString()
          )
          del self._pb_body_old
      else:
          raise ValueError("the buffer is already decompressed")
  
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 11 for calling the SingleDocumentRequest obj's underlying member method code with example usage: obj._decompress() without return types