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: Get the DocumentArray class to be used for deserialization.
  .. # noqa: DAR101
docstr_tok: ["Get","the","DocumentArray","class","to","be","used","for","deserialization",".","..","#","noqa",":","DAR101"]
code: def document_cls(self, item_type: Type["Document"]):
      """Get the DocumentArray class to be used for deserialization.
      .. # noqa: DAR101"""
      self._document_cls = item_type
  
      if self._data is not None:
          self.data.document_cls = item_type
  
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 3 for calling the SingleDocumentRequest obj's underlying member method code with example usage: obj.document_cls(item_type) without return types