# DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/python/mod.rs
# Based on "crates/store/re_sdk_types/definitions/rerun/components/timestamp.fbs".

# You can extend this class by creating a "TimestampExt" class in "timestamp_ext.py".

from __future__ import annotations

from .. import datatypes
from .._baseclasses import (
    ComponentBatchMixin,
    ComponentMixin,
)

__all__ = ["Timestamp", "TimestampBatch"]


class Timestamp(datatypes.TimeInt, ComponentMixin):
    """
    **Component**: When the recording started.

    Should be an absolute time, i.e. relative to Unix Epoch.
    """

    _BATCH_TYPE = None
    # You can define your own __init__ function as a member of TimestampExt in timestamp_ext.py

    # Note: there are no fields here because Timestamp delegates to datatypes.TimeInt


class TimestampBatch(datatypes.TimeIntBatch, ComponentBatchMixin):
    _COMPONENT_TYPE: str = "rerun.components.Timestamp"


# This is patched in late to avoid circular dependencies.
Timestamp._BATCH_TYPE = TimestampBatch  # type: ignore[assignment]
