-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathLabelView_pb2.pyi
More file actions
195 lines (173 loc) · 8.73 KB
/
LabelView_pb2.pyi
File metadata and controls
195 lines (173 loc) · 8.73 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
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
Copyright 2026 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.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 _ConflictResolutionPolicy:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType
class _ConflictResolutionPolicyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConflictResolutionPolicy.ValueType], builtins.type): # noqa: F821
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
LAST_WRITE_WINS: _ConflictResolutionPolicy.ValueType # 0
LABELER_PRIORITY: _ConflictResolutionPolicy.ValueType # 1
MAJORITY_VOTE: _ConflictResolutionPolicy.ValueType # 2
class ConflictResolutionPolicy(_ConflictResolutionPolicy, metaclass=_ConflictResolutionPolicyEnumTypeWrapper): ...
LAST_WRITE_WINS: ConflictResolutionPolicy.ValueType # 0
LABELER_PRIORITY: ConflictResolutionPolicy.ValueType # 1
MAJORITY_VOTE: ConflictResolutionPolicy.ValueType # 2
global___ConflictResolutionPolicy = ConflictResolutionPolicy
class LabelView(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
SPEC_FIELD_NUMBER: builtins.int
META_FIELD_NUMBER: builtins.int
@property
def spec(self) -> global___LabelViewSpec: ...
@property
def meta(self) -> global___LabelViewMeta: ...
def __init__(
self,
*,
spec: global___LabelViewSpec | None = ...,
meta: global___LabelViewMeta | 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___LabelView = LabelView
class LabelViewSpec(google.protobuf.message.Message):
"""Next available id: 16"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
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: ...
NAME_FIELD_NUMBER: builtins.int
PROJECT_FIELD_NUMBER: builtins.int
ENTITIES_FIELD_NUMBER: builtins.int
FEATURES_FIELD_NUMBER: builtins.int
TAGS_FIELD_NUMBER: builtins.int
TTL_FIELD_NUMBER: builtins.int
SOURCE_FIELD_NUMBER: builtins.int
ONLINE_FIELD_NUMBER: builtins.int
DESCRIPTION_FIELD_NUMBER: builtins.int
OWNER_FIELD_NUMBER: builtins.int
ENTITY_COLUMNS_FIELD_NUMBER: builtins.int
LABELER_FIELD_FIELD_NUMBER: builtins.int
CONFLICT_POLICY_FIELD_NUMBER: builtins.int
RETAIN_HISTORY_FIELD_NUMBER: builtins.int
REFERENCE_FEATURE_VIEW_FIELD_NUMBER: builtins.int
name: builtins.str
"""Name of the label view. Must be unique. Not updated."""
project: builtins.str
"""Name of Feast project that this label view belongs to."""
@property
def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""List of names of entities associated with this label view."""
@property
def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]:
"""List of specifications for each label field defined as part of this label view."""
@property
def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
"""User defined metadata."""
@property
def ttl(self) -> google.protobuf.duration_pb2.Duration:
"""Labels older than ttl will be excluded from online serving."""
@property
def source(self) -> feast.core.DataSource_pb2.DataSource:
"""DataSource (typically a PushSource) that feeds label data into this view."""
online: builtins.bool
"""Whether labels should be served from the online store."""
description: builtins.str
"""Description of the label view."""
owner: builtins.str
"""Owner of the label view."""
@property
def entity_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]:
"""List of specifications for each entity column."""
labeler_field: builtins.str
"""The schema field that identifies the labeler (e.g. "labeler")."""
conflict_policy: global___ConflictResolutionPolicy.ValueType
"""How conflicting labels from different labelers are resolved.
Enforced for offline store reads; online store uses LAST_WRITE_WINS.
"""
retain_history: builtins.bool
"""DEPRECATED: retain_history is always true (offline store always appends).
Field kept for backwards wire compatibility; ignored by the SDK.
"""
reference_feature_view: builtins.str
"""Optional name of the FeatureView whose entities this label view annotates."""
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 = ...,
tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
ttl: google.protobuf.duration_pb2.Duration | None = ...,
source: feast.core.DataSource_pb2.DataSource | None = ...,
online: builtins.bool = ...,
description: builtins.str = ...,
owner: builtins.str = ...,
entity_columns: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ...,
labeler_field: builtins.str = ...,
conflict_policy: global___ConflictResolutionPolicy.ValueType = ...,
retain_history: builtins.bool = ...,
reference_feature_view: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["source", b"source", "ttl", b"ttl"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["conflict_policy", b"conflict_policy", "description", b"description", "entities", b"entities", "entity_columns", b"entity_columns", "features", b"features", "labeler_field", b"labeler_field", "name", b"name", "online", b"online", "owner", b"owner", "project", b"project", "reference_feature_view", b"reference_feature_view", "retain_history", b"retain_history", "source", b"source", "tags", b"tags", "ttl", b"ttl"]) -> None: ...
global___LabelViewSpec = LabelViewSpec
class LabelViewMeta(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int
LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int
@property
def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Time when this Label View was created."""
@property
def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Time when this Label View was last updated."""
def __init__(
self,
*,
created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
) -> 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", "last_updated_timestamp", b"last_updated_timestamp"]) -> None: ...
global___LabelViewMeta = LabelViewMeta