github.com/matrixorigin/matrixone@v1.2.0/pkg/udf/pythonservice/pyserver/udf_pb2.pyi (about)

     1  from google.protobuf.internal import containers as _containers
     2  from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
     3  from google.protobuf import descriptor as _descriptor
     4  from google.protobuf import message as _message
     5  from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
     6  
     7  DESCRIPTOR: _descriptor.FileDescriptor
     8  
     9  class RequestType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
    10      __slots__ = []
    11      UnknownRequest: _ClassVar[RequestType]
    12      DataRequest: _ClassVar[RequestType]
    13      PkgResponse: _ClassVar[RequestType]
    14  
    15  class ResponseType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
    16      __slots__ = []
    17      UnknownResponse: _ClassVar[ResponseType]
    18      DataResponse: _ClassVar[ResponseType]
    19      PkgRequest: _ClassVar[ResponseType]
    20  
    21  class DataType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
    22      __slots__ = []
    23      UNKNOWN: _ClassVar[DataType]
    24      BOOL: _ClassVar[DataType]
    25      INT8: _ClassVar[DataType]
    26      INT16: _ClassVar[DataType]
    27      INT32: _ClassVar[DataType]
    28      INT64: _ClassVar[DataType]
    29      UINT8: _ClassVar[DataType]
    30      UINT16: _ClassVar[DataType]
    31      UINT32: _ClassVar[DataType]
    32      UINT64: _ClassVar[DataType]
    33      FLOAT32: _ClassVar[DataType]
    34      FLOAT64: _ClassVar[DataType]
    35      CHAR: _ClassVar[DataType]
    36      VARCHAR: _ClassVar[DataType]
    37      TEXT: _ClassVar[DataType]
    38      JSON: _ClassVar[DataType]
    39      UUID: _ClassVar[DataType]
    40      TIME: _ClassVar[DataType]
    41      DATE: _ClassVar[DataType]
    42      DATETIME: _ClassVar[DataType]
    43      TIMESTAMP: _ClassVar[DataType]
    44      DECIMAL64: _ClassVar[DataType]
    45      DECIMAL128: _ClassVar[DataType]
    46      BINARY: _ClassVar[DataType]
    47      VARBINARY: _ClassVar[DataType]
    48      BLOB: _ClassVar[DataType]
    49  UnknownRequest: RequestType
    50  DataRequest: RequestType
    51  PkgResponse: RequestType
    52  UnknownResponse: ResponseType
    53  DataResponse: ResponseType
    54  PkgRequest: ResponseType
    55  UNKNOWN: DataType
    56  BOOL: DataType
    57  INT8: DataType
    58  INT16: DataType
    59  INT32: DataType
    60  INT64: DataType
    61  UINT8: DataType
    62  UINT16: DataType
    63  UINT32: DataType
    64  UINT64: DataType
    65  FLOAT32: DataType
    66  FLOAT64: DataType
    67  CHAR: DataType
    68  VARCHAR: DataType
    69  TEXT: DataType
    70  JSON: DataType
    71  UUID: DataType
    72  TIME: DataType
    73  DATE: DataType
    74  DATETIME: DataType
    75  TIMESTAMP: DataType
    76  DECIMAL64: DataType
    77  DECIMAL128: DataType
    78  BINARY: DataType
    79  VARBINARY: DataType
    80  BLOB: DataType
    81  
    82  class Request(_message.Message):
    83      __slots__ = ["udf", "vectors", "length", "type", "context"]
    84      class ContextEntry(_message.Message):
    85          __slots__ = ["key", "value"]
    86          KEY_FIELD_NUMBER: _ClassVar[int]
    87          VALUE_FIELD_NUMBER: _ClassVar[int]
    88          key: str
    89          value: str
    90          def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
    91      UDF_FIELD_NUMBER: _ClassVar[int]
    92      VECTORS_FIELD_NUMBER: _ClassVar[int]
    93      LENGTH_FIELD_NUMBER: _ClassVar[int]
    94      TYPE_FIELD_NUMBER: _ClassVar[int]
    95      CONTEXT_FIELD_NUMBER: _ClassVar[int]
    96      udf: Udf
    97      vectors: _containers.RepeatedCompositeFieldContainer[DataVector]
    98      length: int
    99      type: RequestType
   100      context: _containers.ScalarMap[str, str]
   101      def __init__(self, udf: _Optional[_Union[Udf, _Mapping]] = ..., vectors: _Optional[_Iterable[_Union[DataVector, _Mapping]]] = ..., length: _Optional[int] = ..., type: _Optional[_Union[RequestType, str]] = ..., context: _Optional[_Mapping[str, str]] = ...) -> None: ...
   102  
   103  class Response(_message.Message):
   104      __slots__ = ["vector", "type"]
   105      VECTOR_FIELD_NUMBER: _ClassVar[int]
   106      TYPE_FIELD_NUMBER: _ClassVar[int]
   107      vector: DataVector
   108      type: ResponseType
   109      def __init__(self, vector: _Optional[_Union[DataVector, _Mapping]] = ..., type: _Optional[_Union[ResponseType, str]] = ...) -> None: ...
   110  
   111  class Udf(_message.Message):
   112      __slots__ = ["handler", "isImport", "body", "importPkg", "retType", "language", "modifiedTime", "db"]
   113      HANDLER_FIELD_NUMBER: _ClassVar[int]
   114      ISIMPORT_FIELD_NUMBER: _ClassVar[int]
   115      BODY_FIELD_NUMBER: _ClassVar[int]
   116      IMPORTPKG_FIELD_NUMBER: _ClassVar[int]
   117      RETTYPE_FIELD_NUMBER: _ClassVar[int]
   118      LANGUAGE_FIELD_NUMBER: _ClassVar[int]
   119      MODIFIEDTIME_FIELD_NUMBER: _ClassVar[int]
   120      DB_FIELD_NUMBER: _ClassVar[int]
   121      handler: str
   122      isImport: bool
   123      body: str
   124      importPkg: Package
   125      retType: DataType
   126      language: str
   127      modifiedTime: str
   128      db: str
   129      def __init__(self, handler: _Optional[str] = ..., isImport: bool = ..., body: _Optional[str] = ..., importPkg: _Optional[_Union[Package, _Mapping]] = ..., retType: _Optional[_Union[DataType, str]] = ..., language: _Optional[str] = ..., modifiedTime: _Optional[str] = ..., db: _Optional[str] = ...) -> None: ...
   130  
   131  class Package(_message.Message):
   132      __slots__ = ["data", "last"]
   133      DATA_FIELD_NUMBER: _ClassVar[int]
   134      LAST_FIELD_NUMBER: _ClassVar[int]
   135      data: bytes
   136      last: bool
   137      def __init__(self, data: _Optional[bytes] = ..., last: bool = ...) -> None: ...
   138  
   139  class DataVector(_message.Message):
   140      __slots__ = ["data", "const", "length", "type", "scale"]
   141      DATA_FIELD_NUMBER: _ClassVar[int]
   142      CONST_FIELD_NUMBER: _ClassVar[int]
   143      LENGTH_FIELD_NUMBER: _ClassVar[int]
   144      TYPE_FIELD_NUMBER: _ClassVar[int]
   145      SCALE_FIELD_NUMBER: _ClassVar[int]
   146      data: _containers.RepeatedCompositeFieldContainer[Data]
   147      const: bool
   148      length: int
   149      type: DataType
   150      scale: int
   151      def __init__(self, data: _Optional[_Iterable[_Union[Data, _Mapping]]] = ..., const: bool = ..., length: _Optional[int] = ..., type: _Optional[_Union[DataType, str]] = ..., scale: _Optional[int] = ...) -> None: ...
   152  
   153  class Data(_message.Message):
   154      __slots__ = ["boolVal", "intVal", "int64Val", "uintVal", "uint64Val", "floatVal", "doubleVal", "stringVal", "bytesVal"]
   155      BOOLVAL_FIELD_NUMBER: _ClassVar[int]
   156      INTVAL_FIELD_NUMBER: _ClassVar[int]
   157      INT64VAL_FIELD_NUMBER: _ClassVar[int]
   158      UINTVAL_FIELD_NUMBER: _ClassVar[int]
   159      UINT64VAL_FIELD_NUMBER: _ClassVar[int]
   160      FLOATVAL_FIELD_NUMBER: _ClassVar[int]
   161      DOUBLEVAL_FIELD_NUMBER: _ClassVar[int]
   162      STRINGVAL_FIELD_NUMBER: _ClassVar[int]
   163      BYTESVAL_FIELD_NUMBER: _ClassVar[int]
   164      boolVal: bool
   165      intVal: int
   166      int64Val: int
   167      uintVal: int
   168      uint64Val: int
   169      floatVal: float
   170      doubleVal: float
   171      stringVal: str
   172      bytesVal: bytes
   173      def __init__(self, boolVal: bool = ..., intVal: _Optional[int] = ..., int64Val: _Optional[int] = ..., uintVal: _Optional[int] = ..., uint64Val: _Optional[int] = ..., floatVal: _Optional[float] = ..., doubleVal: _Optional[float] = ..., stringVal: _Optional[str] = ..., bytesVal: _Optional[bytes] = ...) -> None: ...