Skip to content

Commit c977e05

Browse files
Auto-generated from proto v1.0.388
1 parent 9f99117 commit c977e05

File tree

3 files changed

+74
-2
lines changed

3 files changed

+74
-2
lines changed

dbtlabs/proto/public/v1/events/fusion/log/log_pb2.py

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dbtlabs/proto/public/v1/events/fusion/log/log_pb2.pyi

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,73 @@ class LogMessage(google.protobuf.message.Message):
7979
def WhichOneof(self, oneof_group: typing.Literal["_unique_id", b"_unique_id"]) -> typing.Literal["unique_id"] | None: ...
8080

8181
global___LogMessage = LogMessage
82+
83+
@typing.final
84+
class UserLogMessage(google.protobuf.message.Message):
85+
"""Event emitted when user explicitly logs messages via jinja's print() or log() functions.
86+
This event maps to dbt-core's JinjaLogInfo (I061-I063) events.
87+
"""
88+
89+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
90+
91+
IS_PRINT_FIELD_NUMBER: builtins.int
92+
DBT_CORE_EVENT_CODE_FIELD_NUMBER: builtins.int
93+
UNIQUE_ID_FIELD_NUMBER: builtins.int
94+
PHASE_FIELD_NUMBER: builtins.int
95+
PACKAGE_NAME_FIELD_NUMBER: builtins.int
96+
LINE_FIELD_NUMBER: builtins.int
97+
COLUMN_FIELD_NUMBER: builtins.int
98+
RELATIVE_PATH_FIELD_NUMBER: builtins.int
99+
is_print: builtins.bool
100+
"""True if this message was emitted via print(), false if via log()"""
101+
dbt_core_event_code: builtins.str
102+
"""Legacy dbt-core event code:
103+
- "I062" (JinjaLogInfo) for log info level
104+
- "I063" (JinjaLogDebug) for log debug level
105+
- "I061" (JinjaLogWarning) for log warning level
106+
- "Z052" (PrintEvent) for print statements
107+
"""
108+
unique_id: builtins.str
109+
"""If this log message is emitted in the context of a specific node,
110+
this field should be set to the node's unique FQN.
111+
"""
112+
phase: dbtlabs.proto.public.v1.events.fusion.phase.phase_pb2.ExecutionPhase.ValueType
113+
"""Execution phase (if known) during which this log was emitted."""
114+
package_name: builtins.str
115+
"""Package name (project or dependency) from which this log was emitted."""
116+
line: builtins.int
117+
"""Location within the SQL/Jinja file where print() or log() was called.
118+
Line number (1-indexed) of the print/log call in the SQL file.
119+
"""
120+
column: builtins.int
121+
"""Column number (0-indexed) of the print/log call in the SQL file."""
122+
relative_path: builtins.str
123+
"""Relative path to the SQL file containing the print/log call."""
124+
def __init__(
125+
self,
126+
*,
127+
is_print: builtins.bool = ...,
128+
dbt_core_event_code: builtins.str = ...,
129+
unique_id: builtins.str | None = ...,
130+
phase: dbtlabs.proto.public.v1.events.fusion.phase.phase_pb2.ExecutionPhase.ValueType | None = ...,
131+
package_name: builtins.str | None = ...,
132+
line: builtins.int | None = ...,
133+
column: builtins.int | None = ...,
134+
relative_path: builtins.str | None = ...,
135+
) -> None: ...
136+
def HasField(self, field_name: typing.Literal["_column", b"_column", "_line", b"_line", "_package_name", b"_package_name", "_phase", b"_phase", "_relative_path", b"_relative_path", "_unique_id", b"_unique_id", "column", b"column", "line", b"line", "package_name", b"package_name", "phase", b"phase", "relative_path", b"relative_path", "unique_id", b"unique_id"]) -> builtins.bool: ...
137+
def ClearField(self, field_name: typing.Literal["_column", b"_column", "_line", b"_line", "_package_name", b"_package_name", "_phase", b"_phase", "_relative_path", b"_relative_path", "_unique_id", b"_unique_id", "column", b"column", "dbt_core_event_code", b"dbt_core_event_code", "is_print", b"is_print", "line", b"line", "package_name", b"package_name", "phase", b"phase", "relative_path", b"relative_path", "unique_id", b"unique_id"]) -> None: ...
138+
@typing.overload
139+
def WhichOneof(self, oneof_group: typing.Literal["_column", b"_column"]) -> typing.Literal["column"] | None: ...
140+
@typing.overload
141+
def WhichOneof(self, oneof_group: typing.Literal["_line", b"_line"]) -> typing.Literal["line"] | None: ...
142+
@typing.overload
143+
def WhichOneof(self, oneof_group: typing.Literal["_package_name", b"_package_name"]) -> typing.Literal["package_name"] | None: ...
144+
@typing.overload
145+
def WhichOneof(self, oneof_group: typing.Literal["_phase", b"_phase"]) -> typing.Literal["phase"] | None: ...
146+
@typing.overload
147+
def WhichOneof(self, oneof_group: typing.Literal["_relative_path", b"_relative_path"]) -> typing.Literal["relative_path"] | None: ...
148+
@typing.overload
149+
def WhichOneof(self, oneof_group: typing.Literal["_unique_id", b"_unique_id"]) -> typing.Literal["unique_id"] | None: ...
150+
151+
global___UserLogMessage = UserLogMessage

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
long_description = fh.read()
55

66
package_name = "dbt-protos"
7-
package_version = "v1.0.386"
7+
package_version = "v1.0.388"
88

99
setuptools.setup(
1010
name=package_name,

0 commit comments

Comments
 (0)