forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DatastoreTable infra object (feast-dev#2140)
* Add DatastoreTable infra object Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Switch to StringValue Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Initialize Datastore client in __init__ Signed-off-by: Felix Wang <wangfelix98@gmail.com>
- Loading branch information
1 parent
107eddc
commit 3cd9678
Showing
3 changed files
with
143 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// * Copyright 2021 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 java_package = "feast.proto.core"; | ||
option java_outer_classname = "DatastoreTableProto"; | ||
option go_package = "github.com/feast-dev/feast/sdk/go/protos/feast/core"; | ||
|
||
import "google/protobuf/wrappers.proto"; | ||
|
||
// Represents a Datastore table | ||
message DatastoreTable { | ||
// Feast project of the table | ||
string project = 1; | ||
|
||
// Name of the table | ||
string name = 2; | ||
|
||
// GCP project id | ||
google.protobuf.StringValue project_id = 3; | ||
|
||
// Datastore namespace | ||
google.protobuf.StringValue namespace = 4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters