@@ -30,21 +30,46 @@ message Store {
3030 CASSANDRA = 3 ;
3131 }
3232
33+ message RedisConfig {
34+ string host = 1 ;
35+ int32 port = 2 ;
36+ }
37+
38+ message BigQueryConfig {
39+ string projectId = 1 ;
40+ string datasetId = 2 ;
41+ }
42+
43+ message CassandraConfig {
44+ string host = 1 ;
45+ int32 port = 2 ;
46+ }
47+
48+ message Subscription {
49+ // Name of featureSet to subscribe to.
50+ string name = 1 ;
51+
52+ // Versions of the given featureSet that will be ingested into this store.
53+ // Valid options for version:
54+ // latest: only subscribe to latest version of feature set
55+ // [version number]: pin to a specific version
56+ // >[version number]: subscribe to all versions larger than or equal to [version number]
57+ string version = 2 ;
58+ }
59+
3360 // Name of the store.
3461 string name = 1 ;
3562
3663 // Type of store.
3764 StoreType type = 2 ;
3865
39- // URI to connect to the database. Should contain all necessary information
40- // to connect to and write/read to the store.
41- string databaseURI = 3 ;
42-
43- // Feature sets to subscribe to. Regex strings are allowed, in the form of
44- // featureSetId:version.
45- // Valid options for version:
46- // latest: only subscribe to latest version of feature set
47- // [version number]: pin to a specific version
48- // [version number]^: subscribe to all versions larger than or equal to [version number]
49- repeated string subscriptions = 4 ;
66+ // Feature sets to subscribe to.
67+ repeated Subscription subscriptions = 4 ;
68+
69+ // Configuration to connect to the store. Required.
70+ oneof config {
71+ RedisConfig RedisConfig = 11 ;
72+ BigQueryConfig BigQueryConfig = 12 ;
73+ CassandraConfig CassandraConfig = 13 ;
74+ }
5075}
0 commit comments