|
| 1 | +""" |
| 2 | +@generated by mypy-protobuf. Do not edit manually! |
| 3 | +isort:skip_file |
| 4 | +""" |
| 5 | + |
| 6 | +import builtins |
| 7 | +import collections.abc |
| 8 | +import google.protobuf.descriptor |
| 9 | +import google.protobuf.internal.containers |
| 10 | +import google.protobuf.internal.enum_type_wrapper |
| 11 | +import google.protobuf.message |
| 12 | +import sys |
| 13 | +import typing |
| 14 | + |
| 15 | +if sys.version_info >= (3, 10): |
| 16 | + import typing as typing_extensions |
| 17 | +else: |
| 18 | + import typing_extensions |
| 19 | + |
| 20 | +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor |
| 21 | + |
| 22 | +class _ShowDataOutputFormat: |
| 23 | + ValueType = typing.NewType("ValueType", builtins.int) |
| 24 | + V: typing_extensions.TypeAlias = ValueType |
| 25 | + |
| 26 | +class _ShowDataOutputFormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ShowDataOutputFormat.ValueType], builtins.type): |
| 27 | + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor |
| 28 | + SHOW_DATA_OUTPUT_FORMAT_UNSPECIFIED: _ShowDataOutputFormat.ValueType # 0 |
| 29 | + SHOW_DATA_OUTPUT_FORMAT_TEXT: _ShowDataOutputFormat.ValueType # 1 |
| 30 | + SHOW_DATA_OUTPUT_FORMAT_CSV: _ShowDataOutputFormat.ValueType # 2 |
| 31 | + SHOW_DATA_OUTPUT_FORMAT_TSV: _ShowDataOutputFormat.ValueType # 3 |
| 32 | + SHOW_DATA_OUTPUT_FORMAT_JSON: _ShowDataOutputFormat.ValueType # 4 |
| 33 | + SHOW_DATA_OUTPUT_FORMAT_NDJSON: _ShowDataOutputFormat.ValueType # 5 |
| 34 | + SHOW_DATA_OUTPUT_FORMAT_YML: _ShowDataOutputFormat.ValueType # 6 |
| 35 | + |
| 36 | +class ShowDataOutputFormat(_ShowDataOutputFormat, metaclass=_ShowDataOutputFormatEnumTypeWrapper): |
| 37 | + """Output format for list command""" |
| 38 | + |
| 39 | +SHOW_DATA_OUTPUT_FORMAT_UNSPECIFIED: ShowDataOutputFormat.ValueType # 0 |
| 40 | +SHOW_DATA_OUTPUT_FORMAT_TEXT: ShowDataOutputFormat.ValueType # 1 |
| 41 | +SHOW_DATA_OUTPUT_FORMAT_CSV: ShowDataOutputFormat.ValueType # 2 |
| 42 | +SHOW_DATA_OUTPUT_FORMAT_TSV: ShowDataOutputFormat.ValueType # 3 |
| 43 | +SHOW_DATA_OUTPUT_FORMAT_JSON: ShowDataOutputFormat.ValueType # 4 |
| 44 | +SHOW_DATA_OUTPUT_FORMAT_NDJSON: ShowDataOutputFormat.ValueType # 5 |
| 45 | +SHOW_DATA_OUTPUT_FORMAT_YML: ShowDataOutputFormat.ValueType # 6 |
| 46 | +global___ShowDataOutputFormat = ShowDataOutputFormat |
| 47 | + |
| 48 | +@typing.final |
| 49 | +class ShowDataOutput(google.protobuf.message.Message): |
| 50 | + """Event emitted when displaying inline data (e.g., from show command). |
| 51 | + This event replaces the dbt-core ShowNode event (Q041) for inline data display. |
| 52 | + """ |
| 53 | + |
| 54 | + DESCRIPTOR: google.protobuf.descriptor.Descriptor |
| 55 | + |
| 56 | + OUTPUT_FORMAT_FIELD_NUMBER: builtins.int |
| 57 | + CONTENT_FIELD_NUMBER: builtins.int |
| 58 | + NODE_NAME_FIELD_NUMBER: builtins.int |
| 59 | + IS_INLINE_FIELD_NUMBER: builtins.int |
| 60 | + UNIQUE_ID_FIELD_NUMBER: builtins.int |
| 61 | + COLUMNS_FIELD_NUMBER: builtins.int |
| 62 | + DBT_CORE_EVENT_CODE_FIELD_NUMBER: builtins.int |
| 63 | + output_format: global___ShowDataOutputFormat.ValueType |
| 64 | + """Format of the output""" |
| 65 | + content: builtins.str |
| 66 | + """The data in the specified format (e.g., pretty-printed table)""" |
| 67 | + node_name: builtins.str |
| 68 | + """Name of the node being shown (e.g., "my_model" or "inline")""" |
| 69 | + is_inline: builtins.bool |
| 70 | + """Whether this is an inline/ad-hoc query (true) or a defined node (false)""" |
| 71 | + unique_id: builtins.str |
| 72 | + """The unique_id of the node being shown (e.g., "model.my_project.my_model"). |
| 73 | + Unset for ad-hoc queries |
| 74 | + """ |
| 75 | + dbt_core_event_code: builtins.str |
| 76 | + """Legacy dbt core event code for backward compatibility (always "Q041")""" |
| 77 | + @property |
| 78 | + def columns(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: |
| 79 | + """Column names for the data""" |
| 80 | + |
| 81 | + def __init__( |
| 82 | + self, |
| 83 | + *, |
| 84 | + output_format: global___ShowDataOutputFormat.ValueType = ..., |
| 85 | + content: builtins.str = ..., |
| 86 | + node_name: builtins.str = ..., |
| 87 | + is_inline: builtins.bool = ..., |
| 88 | + unique_id: builtins.str | None = ..., |
| 89 | + columns: collections.abc.Iterable[builtins.str] | None = ..., |
| 90 | + dbt_core_event_code: builtins.str = ..., |
| 91 | + ) -> None: ... |
| 92 | + def HasField(self, field_name: typing.Literal["_unique_id", b"_unique_id", "unique_id", b"unique_id"]) -> builtins.bool: ... |
| 93 | + def ClearField(self, field_name: typing.Literal["_unique_id", b"_unique_id", "columns", b"columns", "content", b"content", "dbt_core_event_code", b"dbt_core_event_code", "is_inline", b"is_inline", "node_name", b"node_name", "output_format", b"output_format", "unique_id", b"unique_id"]) -> None: ... |
| 94 | + def WhichOneof(self, oneof_group: typing.Literal["_unique_id", b"_unique_id"]) -> typing.Literal["unique_id"] | None: ... |
| 95 | + |
| 96 | +global___ShowDataOutput = ShowDataOutput |
0 commit comments