forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFeatureTable_pb2.pyi
More file actions
166 lines (149 loc) · 7.22 KB
/
Copy pathFeatureTable_pb2.pyi
File metadata and controls
166 lines (149 loc) · 7.22 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
"""
@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.DataSource_pb2
import feast.core.Feature_pb2
import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.internal.containers
import google.protobuf.message
import google.protobuf.timestamp_pb2
import sys
if sys.version_info >= (3, 8):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
class FeatureTable(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
SPEC_FIELD_NUMBER: builtins.int
META_FIELD_NUMBER: builtins.int
@property
def spec(self) -> global___FeatureTableSpec:
"""User-specified specifications of this feature table."""
@property
def meta(self) -> global___FeatureTableMeta:
"""System-populated metadata for this feature table."""
def __init__(
self,
*,
spec: global___FeatureTableSpec | None = ...,
meta: global___FeatureTableMeta | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ...
global___FeatureTable = FeatureTable
class FeatureTableSpec(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class LabelsEntry(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: ...
NAME_FIELD_NUMBER: builtins.int
PROJECT_FIELD_NUMBER: builtins.int
ENTITIES_FIELD_NUMBER: builtins.int
FEATURES_FIELD_NUMBER: builtins.int
LABELS_FIELD_NUMBER: builtins.int
MAX_AGE_FIELD_NUMBER: builtins.int
BATCH_SOURCE_FIELD_NUMBER: builtins.int
STREAM_SOURCE_FIELD_NUMBER: builtins.int
name: builtins.str
"""Name of the feature table. Must be unique. Not updated."""
project: builtins.str
"""Name of Feast project that this feature table belongs to."""
@property
def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""List names of entities to associate with the Features defined in this
Feature Table. Not updatable.
"""
@property
def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]:
"""List of features specifications for each feature defined with this feature table."""
@property
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
"""User defined metadata"""
@property
def max_age(self) -> google.protobuf.duration_pb2.Duration:
"""Features in this feature table can only be retrieved from online serving
younger than max age. Age is measured as the duration of time between
the feature's event timestamp and when the feature is retrieved
Feature values outside max age will be returned as unset values and indicated to end user
"""
@property
def batch_source(self) -> feast.core.DataSource_pb2.DataSource:
"""Batch/Offline DataSource to source batch/offline feature data.
Only batch DataSource can be specified
(ie source type should start with 'BATCH_')
"""
@property
def stream_source(self) -> feast.core.DataSource_pb2.DataSource:
"""Stream/Online DataSource to source stream/online feature data.
Only stream DataSource can be specified
(ie source type should start with 'STREAM_')
"""
def __init__(
self,
*,
name: builtins.str = ...,
project: builtins.str = ...,
entities: collections.abc.Iterable[builtins.str] | None = ...,
features: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ...,
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
max_age: google.protobuf.duration_pb2.Duration | None = ...,
batch_source: feast.core.DataSource_pb2.DataSource | None = ...,
stream_source: feast.core.DataSource_pb2.DataSource | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "max_age", b"max_age", "stream_source", b"stream_source"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "entities", b"entities", "features", b"features", "labels", b"labels", "max_age", b"max_age", "name", b"name", "project", b"project", "stream_source", b"stream_source"]) -> None: ...
global___FeatureTableSpec = FeatureTableSpec
class FeatureTableMeta(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int
LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int
REVISION_FIELD_NUMBER: builtins.int
HASH_FIELD_NUMBER: builtins.int
@property
def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Time where this Feature Table is created"""
@property
def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Time where this Feature Table is last updated"""
revision: builtins.int
"""Auto incrementing revision no. of this Feature Table"""
hash: builtins.str
"""Hash entities, features, batch_source and stream_source to inform JobService if
jobs should be restarted should hash change
"""
def __init__(
self,
*,
created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
revision: builtins.int = ...,
hash: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "hash", b"hash", "last_updated_timestamp", b"last_updated_timestamp", "revision", b"revision"]) -> None: ...
global___FeatureTableMeta = FeatureTableMeta