-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathLabelView.proto
More file actions
96 lines (74 loc) · 2.98 KB
/
LabelView.proto
File metadata and controls
96 lines (74 loc) · 2.98 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
//
// 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.
//
syntax = "proto3";
package feast.core;
option go_package = "github.com/feast-dev/feast/go/protos/feast/core";
option java_outer_classname = "LabelViewProto";
option java_package = "feast.proto.core";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "feast/core/DataSource.proto";
import "feast/core/Feature.proto";
message LabelView {
LabelViewSpec spec = 1;
LabelViewMeta meta = 2;
}
enum ConflictResolutionPolicy {
LAST_WRITE_WINS = 0;
LABELER_PRIORITY = 1;
MAJORITY_VOTE = 2;
}
// Next available id: 16
message LabelViewSpec {
// Name of the label view. Must be unique. Not updated.
string name = 1;
// Name of Feast project that this label view belongs to.
string project = 2;
// List of names of entities associated with this label view.
repeated string entities = 3;
// List of specifications for each label field defined as part of this label view.
repeated FeatureSpecV2 features = 4;
// User defined metadata.
map<string, string> tags = 5;
// Labels older than ttl will be excluded from online serving.
google.protobuf.Duration ttl = 6;
// DataSource (typically a PushSource) that feeds label data into this view.
DataSource source = 7;
// Whether labels should be served from the online store.
bool online = 8;
// Description of the label view.
string description = 9;
// Owner of the label view.
string owner = 10;
// List of specifications for each entity column.
repeated FeatureSpecV2 entity_columns = 11;
// The schema field that identifies the labeler (e.g. "labeler").
string labeler_field = 12;
// How conflicting labels from different labelers are resolved.
// Enforced for offline store reads; online store uses LAST_WRITE_WINS.
ConflictResolutionPolicy conflict_policy = 13;
// DEPRECATED: retain_history is always true (offline store always appends).
// Field kept for backwards wire compatibility; ignored by the SDK.
bool retain_history = 14 [deprecated = true];
// Optional name of the FeatureView whose entities this label view annotates.
string reference_feature_view = 15;
}
message LabelViewMeta {
// Time when this Label View was created.
google.protobuf.Timestamp created_timestamp = 1;
// Time when this Label View was last updated.
google.protobuf.Timestamp last_updated_timestamp = 2;
}