forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataFormat_pb2.pyi
More file actions
333 lines (284 loc) · 13.9 KB
/
DataFormat_pb2.pyi
File metadata and controls
333 lines (284 loc) · 13.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
Copyright 2020 The Feast Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from collections import abc as _abc
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf.internal import containers as _containers
import builtins as _builtins
import sys
import typing as _typing
if sys.version_info >= (3, 10):
from typing import TypeAlias as _TypeAlias
else:
from typing_extensions import TypeAlias as _TypeAlias
if sys.version_info >= (3, 13):
from warnings import deprecated as _deprecated
else:
from typing_extensions import deprecated as _deprecated
DESCRIPTOR: _descriptor.FileDescriptor
@_typing.final
class FileFormat(_message.Message):
"""Defines the file format encoding the features/entity data in files"""
DESCRIPTOR: _descriptor.Descriptor
@_typing.final
class ParquetFormat(_message.Message):
"""Defines options for the Parquet data format"""
DESCRIPTOR: _descriptor.Descriptor
def __init__(
self,
) -> None: ...
PARQUET_FORMAT_FIELD_NUMBER: _builtins.int
DELTA_FORMAT_FIELD_NUMBER: _builtins.int
@_builtins.property
def parquet_format(self) -> Global___FileFormat.ParquetFormat: ...
@_builtins.property
@_deprecated("""This field has been marked as deprecated using proto field options.""")
def delta_format(self) -> Global___TableFormat.DeltaFormat:
"""Deprecated: Delta Lake is a table format, not a file format.
Use TableFormat.DeltaFormat instead for Delta Lake support.
"""
def __init__(
self,
*,
parquet_format: Global___FileFormat.ParquetFormat | None = ...,
delta_format: Global___TableFormat.DeltaFormat | None = ...,
) -> None: ...
_HasFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"] # noqa: Y015
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
_WhichOneofReturnType_format: _TypeAlias = _typing.Literal["parquet_format", "delta_format"] # noqa: Y015
_WhichOneofArgType_format: _TypeAlias = _typing.Literal["format", b"format"] # noqa: Y015
def WhichOneof(self, oneof_group: _WhichOneofArgType_format) -> _WhichOneofReturnType_format | None: ...
Global___FileFormat: _TypeAlias = FileFormat # noqa: Y015
@_typing.final
class TableFormat(_message.Message):
DESCRIPTOR: _descriptor.Descriptor
@_typing.final
class IcebergFormat(_message.Message):
"""Defines options for Apache Iceberg table format"""
DESCRIPTOR: _descriptor.Descriptor
@_typing.final
class PropertiesEntry(_message.Message):
DESCRIPTOR: _descriptor.Descriptor
KEY_FIELD_NUMBER: _builtins.int
VALUE_FIELD_NUMBER: _builtins.int
key: _builtins.str
value: _builtins.str
def __init__(
self,
*,
key: _builtins.str = ...,
value: _builtins.str = ...,
) -> None: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
CATALOG_FIELD_NUMBER: _builtins.int
NAMESPACE_FIELD_NUMBER: _builtins.int
PROPERTIES_FIELD_NUMBER: _builtins.int
catalog: _builtins.str
"""Optional catalog name for the Iceberg table"""
namespace: _builtins.str
"""Optional namespace (schema/database) within the catalog"""
@_builtins.property
def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]:
"""Additional properties for Iceberg configuration
Examples: warehouse location, snapshot-id, as-of-timestamp, etc.
"""
def __init__(
self,
*,
catalog: _builtins.str = ...,
namespace: _builtins.str = ...,
properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
) -> None: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["catalog", b"catalog", "namespace", b"namespace", "properties", b"properties"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
@_typing.final
class DeltaFormat(_message.Message):
"""Defines options for Delta Lake table format"""
DESCRIPTOR: _descriptor.Descriptor
@_typing.final
class PropertiesEntry(_message.Message):
DESCRIPTOR: _descriptor.Descriptor
KEY_FIELD_NUMBER: _builtins.int
VALUE_FIELD_NUMBER: _builtins.int
key: _builtins.str
value: _builtins.str
def __init__(
self,
*,
key: _builtins.str = ...,
value: _builtins.str = ...,
) -> None: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
CHECKPOINT_LOCATION_FIELD_NUMBER: _builtins.int
PROPERTIES_FIELD_NUMBER: _builtins.int
checkpoint_location: _builtins.str
"""Optional checkpoint location for Delta transaction logs"""
@_builtins.property
def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]:
"""Additional properties for Delta configuration
Examples: auto-optimize settings, vacuum settings, etc.
"""
def __init__(
self,
*,
checkpoint_location: _builtins.str = ...,
properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
) -> None: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["checkpoint_location", b"checkpoint_location", "properties", b"properties"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
@_typing.final
class HudiFormat(_message.Message):
"""Defines options for Apache Hudi table format"""
DESCRIPTOR: _descriptor.Descriptor
@_typing.final
class PropertiesEntry(_message.Message):
DESCRIPTOR: _descriptor.Descriptor
KEY_FIELD_NUMBER: _builtins.int
VALUE_FIELD_NUMBER: _builtins.int
key: _builtins.str
value: _builtins.str
def __init__(
self,
*,
key: _builtins.str = ...,
value: _builtins.str = ...,
) -> None: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
TABLE_TYPE_FIELD_NUMBER: _builtins.int
RECORD_KEY_FIELD_NUMBER: _builtins.int
PRECOMBINE_FIELD_FIELD_NUMBER: _builtins.int
PROPERTIES_FIELD_NUMBER: _builtins.int
table_type: _builtins.str
"""Type of Hudi table (COPY_ON_WRITE or MERGE_ON_READ)"""
record_key: _builtins.str
"""Field(s) that uniquely identify a record"""
precombine_field: _builtins.str
"""Field used to determine the latest version of a record"""
@_builtins.property
def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]:
"""Additional properties for Hudi configuration
Examples: compaction strategy, indexing options, etc.
"""
def __init__(
self,
*,
table_type: _builtins.str = ...,
record_key: _builtins.str = ...,
precombine_field: _builtins.str = ...,
properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
) -> None: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["precombine_field", b"precombine_field", "properties", b"properties", "record_key", b"record_key", "table_type", b"table_type"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
ICEBERG_FORMAT_FIELD_NUMBER: _builtins.int
DELTA_FORMAT_FIELD_NUMBER: _builtins.int
HUDI_FORMAT_FIELD_NUMBER: _builtins.int
@_builtins.property
def iceberg_format(self) -> Global___TableFormat.IcebergFormat: ...
@_builtins.property
def delta_format(self) -> Global___TableFormat.DeltaFormat: ...
@_builtins.property
def hudi_format(self) -> Global___TableFormat.HudiFormat: ...
def __init__(
self,
*,
iceberg_format: Global___TableFormat.IcebergFormat | None = ...,
delta_format: Global___TableFormat.DeltaFormat | None = ...,
hudi_format: Global___TableFormat.HudiFormat | None = ...,
) -> None: ...
_HasFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"] # noqa: Y015
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
_WhichOneofReturnType_format: _TypeAlias = _typing.Literal["iceberg_format", "delta_format", "hudi_format"] # noqa: Y015
_WhichOneofArgType_format: _TypeAlias = _typing.Literal["format", b"format"] # noqa: Y015
def WhichOneof(self, oneof_group: _WhichOneofArgType_format) -> _WhichOneofReturnType_format | None: ...
Global___TableFormat: _TypeAlias = TableFormat # noqa: Y015
@_typing.final
class StreamFormat(_message.Message):
"""Defines the data format encoding features/entity data in data streams"""
DESCRIPTOR: _descriptor.Descriptor
@_typing.final
class ProtoFormat(_message.Message):
"""Defines options for the protobuf data format"""
DESCRIPTOR: _descriptor.Descriptor
CLASS_PATH_FIELD_NUMBER: _builtins.int
class_path: _builtins.str
"""Classpath to the generated Java Protobuf class that can be used to decode
Feature data from the obtained stream message
"""
def __init__(
self,
*,
class_path: _builtins.str = ...,
) -> None: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["class_path", b"class_path"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
@_typing.final
class AvroFormat(_message.Message):
"""Defines options for the avro data format"""
DESCRIPTOR: _descriptor.Descriptor
SCHEMA_JSON_FIELD_NUMBER: _builtins.int
schema_json: _builtins.str
"""Optional if used in a File DataSource as schema is embedded in avro file.
Specifies the schema of the Avro message as JSON string.
"""
def __init__(
self,
*,
schema_json: _builtins.str = ...,
) -> None: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["schema_json", b"schema_json"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
@_typing.final
class JsonFormat(_message.Message):
DESCRIPTOR: _descriptor.Descriptor
SCHEMA_JSON_FIELD_NUMBER: _builtins.int
schema_json: _builtins.str
def __init__(
self,
*,
schema_json: _builtins.str = ...,
) -> None: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["schema_json", b"schema_json"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
AVRO_FORMAT_FIELD_NUMBER: _builtins.int
PROTO_FORMAT_FIELD_NUMBER: _builtins.int
JSON_FORMAT_FIELD_NUMBER: _builtins.int
@_builtins.property
def avro_format(self) -> Global___StreamFormat.AvroFormat: ...
@_builtins.property
def proto_format(self) -> Global___StreamFormat.ProtoFormat: ...
@_builtins.property
def json_format(self) -> Global___StreamFormat.JsonFormat: ...
def __init__(
self,
*,
avro_format: Global___StreamFormat.AvroFormat | None = ...,
proto_format: Global___StreamFormat.ProtoFormat | None = ...,
json_format: Global___StreamFormat.JsonFormat | None = ...,
) -> None: ...
_HasFieldArgType: _TypeAlias = _typing.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"] # noqa: Y015
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
_ClearFieldArgType: _TypeAlias = _typing.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"] # noqa: Y015
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
_WhichOneofReturnType_format: _TypeAlias = _typing.Literal["avro_format", "proto_format", "json_format"] # noqa: Y015
_WhichOneofArgType_format: _TypeAlias = _typing.Literal["format", b"format"] # noqa: Y015
def WhichOneof(self, oneof_group: _WhichOneofArgType_format) -> _WhichOneofReturnType_format | None: ...
Global___StreamFormat: _TypeAlias = StreamFormat # noqa: Y015