class_docstr: Contains the classification results of a model.
  
  Attributes:
    classifications: A list of `Classifications` objects, each for a head of the
      model.
    timestamp_ms: The optional timestamp (in milliseconds) of the start of the
      chunk of data corresponding to these results. This is only used for
      classification on time series (e.g. audio classification). In these use
      cases, the amount of data to process might exceed the maximum size that
      the model can process: to solve this, the input data is split into
      multiple chunks starting at different timestamps.
class_docstr_tok: ["Contains","the","classification","results","of","a","model",".","Attributes",":","classifications",":","A","list","of","`","Classifications","`","objects",",","each","for","a","head","of","the","model",".","timestamp_ms",":","The","optional","timestamp","(","in","milliseconds",")","of","the","start","of","the","chunk","of","data","corresponding","to","these","results",".","This","is","only","used","for","classification","on","time","series","(","e.g",".","audio","classification",")",".","In","these","use","cases",",","the","amount","of","data","to","process","might","exceed","the","maximum","size","that","the","model","can","process",":","to","solve","this",",","the","input","data","is","split","into","multiple","chunks","starting","at","different","timestamps","."]
docstr: Generates a ClassificationResult protobuf object.
docstr_tok: ["Generates","a","ClassificationResult","protobuf","object","."]
code: def to_pb2(self) -> _ClassificationResultProto:
      """Generates a ClassificationResult protobuf object."""
      return _ClassificationResultProto(
          classifications=[
              classification.to_pb2()
              for classification in self.classifications
          ],
          timestamp_ms=self.timestamp_ms,
      )
  
file_path: mediapipe/mediapipe/tasks/python/components/containers/classification_result.py
imports: import dataclasses
  from typing import List, Optional
  from mediapipe.framework.formats import classification_pb2
  from mediapipe.tasks.cc.components.containers.proto import classifications_pb2
  from mediapipe.tasks.python.components.containers import category
  from mediapipe.tasks.python.core.optional_dependencies import doc_controls
label_desc: Use image node_id 1 for calling the ClassificationResult obj's underlying member method code with example usage: obj.to_pb2() and returns: _ClassificationResultProto