forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataSource_pb2.pyi
More file actions
578 lines (517 loc) · 27.1 KB
/
DataSource_pb2.pyi
File metadata and controls
578 lines (517 loc) · 27.1 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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
"""
@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.
"""
import builtins
import collections.abc
import feast.core.DataFormat_pb2
import feast.core.Feature_pb2
import feast.types.Value_pb2
import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import google.protobuf.timestamp_pb2
import sys
import typing
if sys.version_info >= (3, 10):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
class DataSource(google.protobuf.message.Message):
"""Defines a Data Source that can be used source Feature data
Next available id: 28
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class _SourceType:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _SourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DataSource._SourceType.ValueType], builtins.type): # noqa: F821
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
INVALID: DataSource._SourceType.ValueType # 0
BATCH_FILE: DataSource._SourceType.ValueType # 1
BATCH_SNOWFLAKE: DataSource._SourceType.ValueType # 8
BATCH_BIGQUERY: DataSource._SourceType.ValueType # 2
BATCH_REDSHIFT: DataSource._SourceType.ValueType # 5
STREAM_KAFKA: DataSource._SourceType.ValueType # 3
STREAM_KINESIS: DataSource._SourceType.ValueType # 4
CUSTOM_SOURCE: DataSource._SourceType.ValueType # 6
REQUEST_SOURCE: DataSource._SourceType.ValueType # 7
PUSH_SOURCE: DataSource._SourceType.ValueType # 9
BATCH_TRINO: DataSource._SourceType.ValueType # 10
BATCH_SPARK: DataSource._SourceType.ValueType # 11
BATCH_ATHENA: DataSource._SourceType.ValueType # 12
class SourceType(_SourceType, metaclass=_SourceTypeEnumTypeWrapper):
"""Type of Data Source.
Next available id: 12
"""
INVALID: DataSource.SourceType.ValueType # 0
BATCH_FILE: DataSource.SourceType.ValueType # 1
BATCH_SNOWFLAKE: DataSource.SourceType.ValueType # 8
BATCH_BIGQUERY: DataSource.SourceType.ValueType # 2
BATCH_REDSHIFT: DataSource.SourceType.ValueType # 5
STREAM_KAFKA: DataSource.SourceType.ValueType # 3
STREAM_KINESIS: DataSource.SourceType.ValueType # 4
CUSTOM_SOURCE: DataSource.SourceType.ValueType # 6
REQUEST_SOURCE: DataSource.SourceType.ValueType # 7
PUSH_SOURCE: DataSource.SourceType.ValueType # 9
BATCH_TRINO: DataSource.SourceType.ValueType # 10
BATCH_SPARK: DataSource.SourceType.ValueType # 11
BATCH_ATHENA: DataSource.SourceType.ValueType # 12
class TagsEntry(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.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: ...
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
class FieldMappingEntry(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.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: ...
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
class SourceMeta(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
EARLIESTEVENTTIMESTAMP_FIELD_NUMBER: builtins.int
LATESTEVENTTIMESTAMP_FIELD_NUMBER: builtins.int
@property
def earliestEventTimestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
@property
def latestEventTimestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
def __init__(
self,
*,
earliestEventTimestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
latestEventTimestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["earliestEventTimestamp", b"earliestEventTimestamp", "latestEventTimestamp", b"latestEventTimestamp"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["earliestEventTimestamp", b"earliestEventTimestamp", "latestEventTimestamp", b"latestEventTimestamp"]) -> None: ...
class FileOptions(google.protobuf.message.Message):
"""Defines options for DataSource that sources features from a file"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FILE_FORMAT_FIELD_NUMBER: builtins.int
URI_FIELD_NUMBER: builtins.int
S3_ENDPOINT_OVERRIDE_FIELD_NUMBER: builtins.int
@property
def file_format(self) -> feast.core.DataFormat_pb2.FileFormat: ...
uri: builtins.str
"""Target URL of file to retrieve and source features from.
s3://path/to/file for AWS S3 storage
gs://path/to/file for GCP GCS storage
file:///path/to/file for local storage
"""
s3_endpoint_override: builtins.str
"""override AWS S3 storage endpoint with custom S3 endpoint"""
def __init__(
self,
*,
file_format: feast.core.DataFormat_pb2.FileFormat | None = ...,
uri: builtins.str = ...,
s3_endpoint_override: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["file_format", b"file_format"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["file_format", b"file_format", "s3_endpoint_override", b"s3_endpoint_override", "uri", b"uri"]) -> None: ...
class BigQueryOptions(google.protobuf.message.Message):
"""Defines options for DataSource that sources features from a BigQuery Query"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TABLE_FIELD_NUMBER: builtins.int
QUERY_FIELD_NUMBER: builtins.int
table: builtins.str
"""Full table reference in the form of [project:dataset.table]"""
query: builtins.str
"""SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective
entity columns
"""
def __init__(
self,
*,
table: builtins.str = ...,
query: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["query", b"query", "table", b"table"]) -> None: ...
class TrinoOptions(google.protobuf.message.Message):
"""Defines options for DataSource that sources features from a Trino Query"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TABLE_FIELD_NUMBER: builtins.int
QUERY_FIELD_NUMBER: builtins.int
table: builtins.str
"""Full table reference in the form of [project:dataset.table]"""
query: builtins.str
"""SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective
entity columns
"""
def __init__(
self,
*,
table: builtins.str = ...,
query: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["query", b"query", "table", b"table"]) -> None: ...
class KafkaOptions(google.protobuf.message.Message):
"""Defines options for DataSource that sources features from Kafka messages.
Each message should be a Protobuf that can be decoded with the generated
Java Protobuf class at the given class path
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
KAFKA_BOOTSTRAP_SERVERS_FIELD_NUMBER: builtins.int
TOPIC_FIELD_NUMBER: builtins.int
MESSAGE_FORMAT_FIELD_NUMBER: builtins.int
WATERMARK_DELAY_THRESHOLD_FIELD_NUMBER: builtins.int
kafka_bootstrap_servers: builtins.str
"""Comma separated list of Kafka bootstrap servers. Used for feature tables without a defined source host[:port]]"""
topic: builtins.str
"""Kafka topic to collect feature data from."""
@property
def message_format(self) -> feast.core.DataFormat_pb2.StreamFormat:
"""Defines the stream data format encoding feature/entity data in Kafka messages."""
@property
def watermark_delay_threshold(self) -> google.protobuf.duration_pb2.Duration:
"""Watermark delay threshold for stream data"""
def __init__(
self,
*,
kafka_bootstrap_servers: builtins.str = ...,
topic: builtins.str = ...,
message_format: feast.core.DataFormat_pb2.StreamFormat | None = ...,
watermark_delay_threshold: google.protobuf.duration_pb2.Duration | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["message_format", b"message_format", "watermark_delay_threshold", b"watermark_delay_threshold"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["kafka_bootstrap_servers", b"kafka_bootstrap_servers", "message_format", b"message_format", "topic", b"topic", "watermark_delay_threshold", b"watermark_delay_threshold"]) -> None: ...
class KinesisOptions(google.protobuf.message.Message):
"""Defines options for DataSource that sources features from Kinesis records.
Each record should be a Protobuf that can be decoded with the generated
Java Protobuf class at the given class path
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
REGION_FIELD_NUMBER: builtins.int
STREAM_NAME_FIELD_NUMBER: builtins.int
RECORD_FORMAT_FIELD_NUMBER: builtins.int
region: builtins.str
"""AWS region of the Kinesis stream"""
stream_name: builtins.str
"""Name of the Kinesis stream to obtain feature data from."""
@property
def record_format(self) -> feast.core.DataFormat_pb2.StreamFormat:
"""Defines the data format encoding the feature/entity data in Kinesis records.
Kinesis Data Sources support Avro and Proto as data formats.
"""
def __init__(
self,
*,
region: builtins.str = ...,
stream_name: builtins.str = ...,
record_format: feast.core.DataFormat_pb2.StreamFormat | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["record_format", b"record_format"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["record_format", b"record_format", "region", b"region", "stream_name", b"stream_name"]) -> None: ...
class RedshiftOptions(google.protobuf.message.Message):
"""Defines options for DataSource that sources features from a Redshift Query"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TABLE_FIELD_NUMBER: builtins.int
QUERY_FIELD_NUMBER: builtins.int
SCHEMA_FIELD_NUMBER: builtins.int
DATABASE_FIELD_NUMBER: builtins.int
table: builtins.str
"""Redshift table name"""
query: builtins.str
"""SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective
entity columns
"""
schema: builtins.str
"""Redshift schema name"""
database: builtins.str
"""Redshift database name"""
def __init__(
self,
*,
table: builtins.str = ...,
query: builtins.str = ...,
schema: builtins.str = ...,
database: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["database", b"database", "query", b"query", "schema", b"schema", "table", b"table"]) -> None: ...
class AthenaOptions(google.protobuf.message.Message):
"""Defines options for DataSource that sources features from a Athena Query"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TABLE_FIELD_NUMBER: builtins.int
QUERY_FIELD_NUMBER: builtins.int
DATABASE_FIELD_NUMBER: builtins.int
DATA_SOURCE_FIELD_NUMBER: builtins.int
table: builtins.str
"""Athena table name"""
query: builtins.str
"""SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective
entity columns
"""
database: builtins.str
"""Athena database name"""
data_source: builtins.str
"""Athena schema name"""
def __init__(
self,
*,
table: builtins.str = ...,
query: builtins.str = ...,
database: builtins.str = ...,
data_source: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["data_source", b"data_source", "database", b"database", "query", b"query", "table", b"table"]) -> None: ...
class SnowflakeOptions(google.protobuf.message.Message):
"""Defines options for DataSource that sources features from a Snowflake Query"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TABLE_FIELD_NUMBER: builtins.int
QUERY_FIELD_NUMBER: builtins.int
SCHEMA_FIELD_NUMBER: builtins.int
DATABASE_FIELD_NUMBER: builtins.int
table: builtins.str
"""Snowflake table name"""
query: builtins.str
"""SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective
entity columns
"""
schema: builtins.str
"""Snowflake schema name"""
database: builtins.str
"""Snowflake schema name"""
def __init__(
self,
*,
table: builtins.str = ...,
query: builtins.str = ...,
schema: builtins.str = ...,
database: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["database", b"database", "query", b"query", "schema", b"schema", "table", b"table"]) -> None: ...
class SparkOptions(google.protobuf.message.Message):
"""Defines options for DataSource that sources features from a spark table/query"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TABLE_FIELD_NUMBER: builtins.int
QUERY_FIELD_NUMBER: builtins.int
PATH_FIELD_NUMBER: builtins.int
FILE_FORMAT_FIELD_NUMBER: builtins.int
DATE_PARTITION_COLUMN_FORMAT_FIELD_NUMBER: builtins.int
table: builtins.str
"""Table name"""
query: builtins.str
"""Spark SQl query that returns the table, this is an alternative to `table`"""
path: builtins.str
"""Path from which spark can read the table, this is an alternative to `table`"""
file_format: builtins.str
"""Format of files at `path` (e.g. parquet, avro, etc)"""
date_partition_column_format: builtins.str
"""Date Format of date partition column (e.g. %Y-%m-%d)"""
def __init__(
self,
*,
table: builtins.str = ...,
query: builtins.str = ...,
path: builtins.str = ...,
file_format: builtins.str = ...,
date_partition_column_format: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["date_partition_column_format", b"date_partition_column_format", "file_format", b"file_format", "path", b"path", "query", b"query", "table", b"table"]) -> None: ...
class CustomSourceOptions(google.protobuf.message.Message):
"""Defines configuration for custom third-party data sources."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CONFIGURATION_FIELD_NUMBER: builtins.int
configuration: builtins.bytes
"""Serialized configuration information for the data source. The implementer of the custom data source is
responsible for serializing and deserializing data from bytes
"""
def __init__(
self,
*,
configuration: builtins.bytes = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["configuration", b"configuration"]) -> None: ...
class RequestDataOptions(google.protobuf.message.Message):
"""Defines options for DataSource that sources features from request data"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class DeprecatedSchemaEntry(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
KEY_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
key: builtins.str
value: feast.types.Value_pb2.ValueType.Enum.ValueType
def __init__(
self,
*,
key: builtins.str = ...,
value: feast.types.Value_pb2.ValueType.Enum.ValueType = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
DEPRECATED_SCHEMA_FIELD_NUMBER: builtins.int
SCHEMA_FIELD_NUMBER: builtins.int
@property
def deprecated_schema(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, feast.types.Value_pb2.ValueType.Enum.ValueType]:
"""Mapping of feature name to type"""
@property
def schema(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: ...
def __init__(
self,
*,
deprecated_schema: collections.abc.Mapping[builtins.str, feast.types.Value_pb2.ValueType.Enum.ValueType] | None = ...,
schema: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["deprecated_schema", b"deprecated_schema", "schema", b"schema"]) -> None: ...
class PushOptions(google.protobuf.message.Message):
"""Defines options for DataSource that supports pushing data to it. This allows data to be pushed to
the online store on-demand, such as by stream consumers.
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
NAME_FIELD_NUMBER: builtins.int
PROJECT_FIELD_NUMBER: builtins.int
DESCRIPTION_FIELD_NUMBER: builtins.int
TAGS_FIELD_NUMBER: builtins.int
OWNER_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
FIELD_MAPPING_FIELD_NUMBER: builtins.int
TIMESTAMP_FIELD_FIELD_NUMBER: builtins.int
DATE_PARTITION_COLUMN_FIELD_NUMBER: builtins.int
CREATED_TIMESTAMP_COLUMN_FIELD_NUMBER: builtins.int
DATA_SOURCE_CLASS_TYPE_FIELD_NUMBER: builtins.int
BATCH_SOURCE_FIELD_NUMBER: builtins.int
META_FIELD_NUMBER: builtins.int
FILE_OPTIONS_FIELD_NUMBER: builtins.int
BIGQUERY_OPTIONS_FIELD_NUMBER: builtins.int
KAFKA_OPTIONS_FIELD_NUMBER: builtins.int
KINESIS_OPTIONS_FIELD_NUMBER: builtins.int
REDSHIFT_OPTIONS_FIELD_NUMBER: builtins.int
REQUEST_DATA_OPTIONS_FIELD_NUMBER: builtins.int
CUSTOM_OPTIONS_FIELD_NUMBER: builtins.int
SNOWFLAKE_OPTIONS_FIELD_NUMBER: builtins.int
PUSH_OPTIONS_FIELD_NUMBER: builtins.int
SPARK_OPTIONS_FIELD_NUMBER: builtins.int
TRINO_OPTIONS_FIELD_NUMBER: builtins.int
ATHENA_OPTIONS_FIELD_NUMBER: builtins.int
name: builtins.str
"""Unique name of data source within the project"""
project: builtins.str
"""Name of Feast project that this data source belongs to."""
description: builtins.str
@property
def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
owner: builtins.str
type: global___DataSource.SourceType.ValueType
@property
def field_mapping(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
"""Defines mapping between fields in the sourced data
and fields in parent FeatureTable.
"""
timestamp_field: builtins.str
"""Must specify event timestamp column name"""
date_partition_column: builtins.str
"""(Optional) Specify partition column
useful for file sources
"""
created_timestamp_column: builtins.str
"""Must specify creation timestamp column name"""
data_source_class_type: builtins.str
"""This is an internal field that is represents the python class for the data source object a proto object represents.
This should be set by feast, and not by users.
The field is used primarily by custom data sources and is mandatory for them to set. Feast may set it for
first party sources as well.
"""
@property
def batch_source(self) -> global___DataSource:
"""Optional batch source for streaming sources for historical features and materialization."""
@property
def meta(self) -> global___DataSource.SourceMeta: ...
@property
def file_options(self) -> global___DataSource.FileOptions: ...
@property
def bigquery_options(self) -> global___DataSource.BigQueryOptions: ...
@property
def kafka_options(self) -> global___DataSource.KafkaOptions: ...
@property
def kinesis_options(self) -> global___DataSource.KinesisOptions: ...
@property
def redshift_options(self) -> global___DataSource.RedshiftOptions: ...
@property
def request_data_options(self) -> global___DataSource.RequestDataOptions: ...
@property
def custom_options(self) -> global___DataSource.CustomSourceOptions: ...
@property
def snowflake_options(self) -> global___DataSource.SnowflakeOptions: ...
@property
def push_options(self) -> global___DataSource.PushOptions: ...
@property
def spark_options(self) -> global___DataSource.SparkOptions: ...
@property
def trino_options(self) -> global___DataSource.TrinoOptions: ...
@property
def athena_options(self) -> global___DataSource.AthenaOptions: ...
def __init__(
self,
*,
name: builtins.str = ...,
project: builtins.str = ...,
description: builtins.str = ...,
tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
owner: builtins.str = ...,
type: global___DataSource.SourceType.ValueType = ...,
field_mapping: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
timestamp_field: builtins.str = ...,
date_partition_column: builtins.str = ...,
created_timestamp_column: builtins.str = ...,
data_source_class_type: builtins.str = ...,
batch_source: global___DataSource | None = ...,
meta: global___DataSource.SourceMeta | None = ...,
file_options: global___DataSource.FileOptions | None = ...,
bigquery_options: global___DataSource.BigQueryOptions | None = ...,
kafka_options: global___DataSource.KafkaOptions | None = ...,
kinesis_options: global___DataSource.KinesisOptions | None = ...,
redshift_options: global___DataSource.RedshiftOptions | None = ...,
request_data_options: global___DataSource.RequestDataOptions | None = ...,
custom_options: global___DataSource.CustomSourceOptions | None = ...,
snowflake_options: global___DataSource.SnowflakeOptions | None = ...,
push_options: global___DataSource.PushOptions | None = ...,
spark_options: global___DataSource.SparkOptions | None = ...,
trino_options: global___DataSource.TrinoOptions | None = ...,
athena_options: global___DataSource.AthenaOptions | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["athena_options", b"athena_options", "batch_source", b"batch_source", "bigquery_options", b"bigquery_options", "custom_options", b"custom_options", "file_options", b"file_options", "kafka_options", b"kafka_options", "kinesis_options", b"kinesis_options", "meta", b"meta", "options", b"options", "push_options", b"push_options", "redshift_options", b"redshift_options", "request_data_options", b"request_data_options", "snowflake_options", b"snowflake_options", "spark_options", b"spark_options", "trino_options", b"trino_options"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["athena_options", b"athena_options", "batch_source", b"batch_source", "bigquery_options", b"bigquery_options", "created_timestamp_column", b"created_timestamp_column", "custom_options", b"custom_options", "data_source_class_type", b"data_source_class_type", "date_partition_column", b"date_partition_column", "description", b"description", "field_mapping", b"field_mapping", "file_options", b"file_options", "kafka_options", b"kafka_options", "kinesis_options", b"kinesis_options", "meta", b"meta", "name", b"name", "options", b"options", "owner", b"owner", "project", b"project", "push_options", b"push_options", "redshift_options", b"redshift_options", "request_data_options", b"request_data_options", "snowflake_options", b"snowflake_options", "spark_options", b"spark_options", "tags", b"tags", "timestamp_field", b"timestamp_field", "trino_options", b"trino_options", "type", b"type"]) -> None: ...
def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["file_options", "bigquery_options", "kafka_options", "kinesis_options", "redshift_options", "request_data_options", "custom_options", "snowflake_options", "push_options", "spark_options", "trino_options", "athena_options"] | None: ...
global___DataSource = DataSource
class DataSourceList(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
DATASOURCES_FIELD_NUMBER: builtins.int
@property
def datasources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DataSource]: ...
def __init__(
self,
*,
datasources: collections.abc.Iterable[global___DataSource] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["datasources", b"datasources"]) -> None: ...
global___DataSourceList = DataSourceList