37 lines
912 B
Python
37 lines
912 B
Python
![]() |
# 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 KeyPoint(object):
|
||
|
_types = {
|
||
|
"name": str,
|
||
|
"description": str,
|
||
|
}
|
||
|
|
||
|
def __init__(self, d=None):
|
||
|
self.name: Optional[str] = None
|
||
|
self.description: Optional[str] = None
|
||
|
init(self, d, self._types)
|
||
|
|
||
|
@staticmethod
|
||
|
def builder() -> "KeyPointBuilder":
|
||
|
return KeyPointBuilder()
|
||
|
|
||
|
|
||
|
class KeyPointBuilder(object):
|
||
|
def __init__(self) -> None:
|
||
|
self._key_point = KeyPoint()
|
||
|
|
||
|
def name(self, name: str) -> "KeyPointBuilder":
|
||
|
self._key_point.name = name
|
||
|
return self
|
||
|
|
||
|
def description(self, description: str) -> "KeyPointBuilder":
|
||
|
self._key_point.description = description
|
||
|
return self
|
||
|
|
||
|
def build(self) -> "KeyPoint":
|
||
|
return self._key_point
|