# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class ReferenceSynced(object):
    _types = {
        "source_document_id": str,
        "source_block_id": str,
    }

    def __init__(self, d=None):
        self.source_document_id: Optional[str] = None
        self.source_block_id: Optional[str] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "ReferenceSyncedBuilder":
        return ReferenceSyncedBuilder()


class ReferenceSyncedBuilder(object):
    def __init__(self) -> None:
        self._reference_synced = ReferenceSynced()

    def source_document_id(self, source_document_id: str) -> "ReferenceSyncedBuilder":
        self._reference_synced.source_document_id = source_document_id
        return self

    def source_block_id(self, source_block_id: str) -> "ReferenceSyncedBuilder":
        self._reference_synced.source_block_id = source_block_id
        return self

    def build(self) -> "ReferenceSynced":
        return self._reference_synced
