Skip to content

Commit 2e87fa9

Browse files
committed
chore: auto-gen by protobufs
triggered by commit: instill-ai/protobufs@516f31b
1 parent c35a045 commit 2e87fa9

File tree

4 files changed

+148
-157
lines changed

4 files changed

+148
-157
lines changed

artifact/artifact/v1alpha/artifact_pb2.py

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

artifact/artifact/v1alpha/artifact_pb2.pyi

Lines changed: 53 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,73 +1058,64 @@ class DeleteCatalogResponse(google.protobuf.message.Message):
10581058
global___DeleteCatalogResponse = DeleteCatalogResponse
10591059

10601060
@typing_extensions.final
1061-
class FilePosition(google.protobuf.message.Message):
1062-
"""FilePosition represents a position within a file using a specific unit.
1063-
The position can be multi-dimensional based on the unit type:
1064-
- 1 element for 1D positions (characters, pages, time)
1065-
- 2 elements for 2D positions (pixels: [x, y])
1066-
- N elements for N-dimensional positions
1067-
"""
1061+
class File(google.protobuf.message.Message):
1062+
"""file"""
10681063

10691064
DESCRIPTOR: google.protobuf.descriptor.Descriptor
10701065

1071-
class _Unit:
1072-
ValueType = typing.NewType("ValueType", builtins.int)
1073-
V: typing_extensions.TypeAlias = ValueType
1066+
@typing_extensions.final
1067+
class Position(google.protobuf.message.Message):
1068+
"""Position represents a position within a file using a specific unit. The
1069+
number of dimensions of the position value depends on the unit type.
1070+
"""
10741071

1075-
class _UnitEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FilePosition._Unit.ValueType], builtins.type):
1076-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
1077-
UNIT_UNSPECIFIED: FilePosition._Unit.ValueType # 0
1072+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1073+
1074+
class _Unit:
1075+
ValueType = typing.NewType("ValueType", builtins.int)
1076+
V: typing_extensions.TypeAlias = ValueType
1077+
1078+
class _UnitEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[File.Position._Unit.ValueType], builtins.type):
1079+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
1080+
UNIT_UNSPECIFIED: File.Position._Unit.ValueType # 0
1081+
"""Unspecified."""
1082+
UNIT_CHARACTER: File.Position._Unit.ValueType # 1
1083+
"""Character positions (for Markdown and other text files)."""
1084+
UNIT_PAGE: File.Position._Unit.ValueType # 2
1085+
"""Page positions (for documents)."""
1086+
UNIT_TIME_MS: File.Position._Unit.ValueType # 3
1087+
"""Time positions in milliseconds (for audio/video files)."""
1088+
UNIT_PIXEL: File.Position._Unit.ValueType # 4
1089+
"""Pixel positions (for images and other 2D content)."""
1090+
1091+
class Unit(_Unit, metaclass=_UnitEnumTypeWrapper):
1092+
"""Unit of measurement for a position within a file."""
1093+
1094+
UNIT_UNSPECIFIED: File.Position.Unit.ValueType # 0
10781095
"""Unspecified."""
1079-
UNIT_CHARACTER: FilePosition._Unit.ValueType # 1
1096+
UNIT_CHARACTER: File.Position.Unit.ValueType # 1
10801097
"""Character positions (for Markdown and other text files)."""
1081-
UNIT_PAGE: FilePosition._Unit.ValueType # 2
1098+
UNIT_PAGE: File.Position.Unit.ValueType # 2
10821099
"""Page positions (for documents)."""
1083-
UNIT_TIME_MS: FilePosition._Unit.ValueType # 3
1100+
UNIT_TIME_MS: File.Position.Unit.ValueType # 3
10841101
"""Time positions in milliseconds (for audio/video files)."""
1085-
UNIT_PIXEL: FilePosition._Unit.ValueType # 4
1102+
UNIT_PIXEL: File.Position.Unit.ValueType # 4
10861103
"""Pixel positions (for images and other 2D content)."""
10871104

1088-
class Unit(_Unit, metaclass=_UnitEnumTypeWrapper):
1089-
"""Unit describes the unit of measurement for a position within a file."""
1090-
1091-
UNIT_UNSPECIFIED: FilePosition.Unit.ValueType # 0
1092-
"""Unspecified."""
1093-
UNIT_CHARACTER: FilePosition.Unit.ValueType # 1
1094-
"""Character positions (for Markdown and other text files)."""
1095-
UNIT_PAGE: FilePosition.Unit.ValueType # 2
1096-
"""Page positions (for documents)."""
1097-
UNIT_TIME_MS: FilePosition.Unit.ValueType # 3
1098-
"""Time positions in milliseconds (for audio/video files)."""
1099-
UNIT_PIXEL: FilePosition.Unit.ValueType # 4
1100-
"""Pixel positions (for images and other 2D content)."""
1101-
1102-
UNIT_FIELD_NUMBER: builtins.int
1103-
COORDINATES_FIELD_NUMBER: builtins.int
1104-
unit: global___FilePosition.Unit.ValueType
1105-
"""Unit of measurement for the position"""
1106-
@property
1107-
def coordinates(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
1108-
"""Position coordinates as an array
1109-
For 1D: [position]
1110-
For 2D: [x, y]
1111-
For 3D: [x, y, z], etc.
1112-
"""
1113-
def __init__(
1114-
self,
1115-
*,
1116-
unit: global___FilePosition.Unit.ValueType = ...,
1117-
coordinates: collections.abc.Iterable[builtins.int] | None = ...,
1118-
) -> None: ...
1119-
def ClearField(self, field_name: typing_extensions.Literal["coordinates", b"coordinates", "unit", b"unit"]) -> None: ...
1120-
1121-
global___FilePosition = FilePosition
1122-
1123-
@typing_extensions.final
1124-
class File(google.protobuf.message.Message):
1125-
"""file"""
1126-
1127-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1105+
UNIT_FIELD_NUMBER: builtins.int
1106+
COORDINATES_FIELD_NUMBER: builtins.int
1107+
unit: global___File.Position.Unit.ValueType
1108+
"""Unit of measurement for the position."""
1109+
@property
1110+
def coordinates(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
1111+
"""Position value."""
1112+
def __init__(
1113+
self,
1114+
*,
1115+
unit: global___File.Position.Unit.ValueType = ...,
1116+
coordinates: collections.abc.Iterable[builtins.int] | None = ...,
1117+
) -> None: ...
1118+
def ClearField(self, field_name: typing_extensions.Literal["coordinates", b"coordinates", "unit", b"unit"]) -> None: ...
11281119

11291120
FILE_UID_FIELD_NUMBER: builtins.int
11301121
NAME_FIELD_NUMBER: builtins.int
@@ -1224,10 +1215,10 @@ class File(google.protobuf.message.Message):
12241215
pipeline to improve the conversion performance).
12251216
"""
12261217
@property
1227-
def length(self) -> global___FilePosition:
1228-
"""Length of the file in the specified unit type. It is defined as a
1229-
FilePosition, so it reflects the number of positions (the unit will depend
1230-
on the file type) that can be accessed in the file.
1218+
def length(self) -> global___File.Position:
1219+
"""Length of the file in the specified unit type. It is defined as the number
1220+
of positions (the unit will depend on the file type) that can be accessed
1221+
in the file.
12311222
"""
12321223
def __init__(
12331224
self,
@@ -1253,7 +1244,7 @@ class File(google.protobuf.message.Message):
12531244
summary: builtins.str = ...,
12541245
download_url: builtins.str = ...,
12551246
converting_pipeline: builtins.str | None = ...,
1256-
length: global___FilePosition | None = ...,
1247+
length: global___File.Position | None = ...,
12571248
) -> None: ...
12581249
def HasField(self, field_name: typing_extensions.Literal["_converting_pipeline", b"_converting_pipeline", "_external_metadata", b"_external_metadata", "converting_pipeline", b"converting_pipeline", "create_time", b"create_time", "delete_time", b"delete_time", "external_metadata", b"external_metadata", "length", b"length", "update_time", b"update_time"]) -> builtins.bool: ...
12591250
def ClearField(self, field_name: typing_extensions.Literal["_converting_pipeline", b"_converting_pipeline", "_external_metadata", b"_external_metadata", "catalog_uid", b"catalog_uid", "content", b"content", "converting_pipeline", b"converting_pipeline", "create_time", b"create_time", "creator_uid", b"creator_uid", "delete_time", b"delete_time", "download_url", b"download_url", "external_metadata", b"external_metadata", "file_uid", b"file_uid", "length", b"length", "name", b"name", "object_uid", b"object_uid", "owner_uid", b"owner_uid", "process_outcome", b"process_outcome", "process_status", b"process_status", "retrievable", b"retrievable", "size", b"size", "summary", b"summary", "total_chunks", b"total_chunks", "total_tokens", b"total_tokens", "type", b"type", "update_time", b"update_time"]) -> None: ...

0 commit comments

Comments
 (0)