class_docstr: Options for the interactive segmenter task.
  
  Attributes:
    base_options: Base options for the interactive segmenter task.
    output_confidence_masks: Whether to output confidence masks.
    output_category_mask: Whether to output category mask.
class_docstr_tok: ["Options","for","the","interactive","segmenter","task",".","Attributes",":","base_options",":","Base","options","for","the","interactive","segmenter","task",".","output_confidence_masks",":","Whether","to","output","confidence","masks",".","output_category_mask",":","Whether","to","output","category","mask","."]
docstr: Generates an ImageSegmenterGraphOptions protobuf object.
docstr_tok: ["Generates","an","ImageSegmenterGraphOptions","protobuf","object","."]
code: def to_pb2(self) -> _ImageSegmenterGraphOptionsProto:
      """Generates an ImageSegmenterGraphOptions protobuf object."""
      base_options_proto = self.base_options.to_pb2()
      base_options_proto.use_stream_mode = False
      segmenter_options_proto = _SegmenterOptionsProto()
      return _ImageSegmenterGraphOptionsProto(
          base_options=base_options_proto,
          segmenter_options=segmenter_options_proto,
      )
  
imports: import dataclasses
  import enum
  from typing import List, Optional
  from mediapipe.python import packet_creator
  from mediapipe.python import packet_getter
  from mediapipe.python._framework_bindings import image
  from mediapipe.tasks.cc.vision.image_segmenter.proto import image_segmenter_graph_options_pb2
  from mediapipe.tasks.cc.vision.image_segmenter.proto import segmenter_options_pb2
  from mediapipe.tasks.python.components.containers import keypoint
  from mediapipe.tasks.python.core import base_options
  from mediapipe.tasks.python.core import task_info
  from mediapipe.tasks.python.core.optional_dependencies import doc_controls
  from mediapipe.tasks.python.vision.core import base_vision_task_api
  from mediapipe.tasks.python.vision.core import image_processing_options
  from mediapipe.tasks.python.vision.core import vision_task_running_mode
  from mediapipe.util import render_data_pb2
label_desc: Use image node_id 1 for calling the InteractiveSegmenterOptions obj's underlying member method code with example usage: obj.to_pb2() and returns: _ImageSegmenterGraphOptionsProto