class_docstr: Represents the list of detected objects.
  
  Attributes:
    detections: A list of `Detection` objects.
class_docstr_tok: ["Represents","the","list","of","detected","objects",".","Attributes",":","detections",":","A","list","of","`","Detection","`","objects","."]
docstr: Generates a DetectionList protobuf object.
docstr_tok: ["Generates","a","DetectionList","protobuf","object","."]
code: def to_pb2(self) -> _DetectionListProto:
      """Generates a DetectionList protobuf object."""
      return _DetectionListProto(
          detection=[
              detection.to_pb2() for detection in self.detections
          ]
      )
  
file_path: mediapipe/mediapipe/tasks/python/components/containers/detections.py
imports: import dataclasses
  from typing import Any, List, Optional
  from mediapipe.framework.formats import detection_pb2
  from mediapipe.framework.formats import location_data_pb2
  from mediapipe.tasks.python.components.containers import bounding_box
  from mediapipe.tasks.python.components.containers import category
  from mediapipe.tasks.python.components.containers import keypoint
  from mediapipe.tasks.python.core.optional_dependencies import doc_controls
label_desc: Use image node_id 1 for calling the DetectionResult obj's underlying member method code with example usage: obj.to_pb2() and returns: _DetectionListProto