class_docstr: SqlColumnType has issues with serialization, so using this union-style type.
class_docstr_tok: ["SqlColumnType","has","issues","with","serialization",",","so","using","this","union-style","type","."]
code: def union_value(self) -> SqlColumnType:  # noqa: D
      if self.str_value is not None:
          return self.str_value
      elif self.int_value is not None:
          return self.int_value
      elif self.float_value is not None:
          return self.float_value
      elif self.datetime_value is not None:
          return self.datetime_value
      elif self.date_value is not None:
          return self.date_value
      elif self.bool_value is not None:
          return self.bool_value
      raise RuntimeError(
          "No values are set - this should have been prevented by the post init"
      )
  
imports: from __future__ import annotations
  import datetime
  from collections import OrderedDict
  from dataclasses import dataclass
  from typing import Any, Mapping, Optional, Tuple
  from dbt_semantic_interfaces.dataclass_serialization import SerializableDataclass
  from metricflow.assert_one_arg import assert_exactly_one_arg_set
  from metricflow.sql.sql_column_type import SqlColumnType
label_desc: Use image node_id 2 for calling the SqlBindParameterValue obj's underlying member method code with example usage: obj.union_value() and returns: self, self, self, self, self, self