Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: common/api/dm/service/v1/proto_gae.gen.go

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: fix imports and make dummy.go a real file Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/api/dm/service/v1/pb.discovery.go ('k') | common/api/dm/service/v1/quest_desc_normalize.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/api/dm/service/v1/proto_gae.gen.go
diff --git a/common/api/dm/service/v1/proto_gae.gen.go b/common/api/dm/service/v1/proto_gae.gen.go
index a92d3886c09d7ee4bb2b2a3b4ca68d2c28549f5f..60c534dbbb500696110cec90631f3b35e327dc5a 100644
--- a/common/api/dm/service/v1/proto_gae.gen.go
+++ b/common/api/dm/service/v1/proto_gae.gen.go
@@ -12,6 +12,52 @@ import (
"github.com/luci/gae/service/datastore"
)
+var _ datastore.PropertyConverter = (*AbnormalFinish)(nil)
+
+// ToProperty implements datastore.PropertyConverter. It causes an embedded
+// 'AbnormalFinish' to serialize to an unindexed '[]byte' when used with the
+// "github.com/luci/gae" library.
+func (p *AbnormalFinish) ToProperty() (prop datastore.Property, err error) {
+ data, err := proto.Marshal(p)
+ if err == nil {
+ prop.SetValue(data, datastore.NoIndex)
+ }
+ return
+}
+
+// FromProperty implements datastore.PropertyConverter. It parses a '[]byte'
+// into an embedded 'AbnormalFinish' when used with the "github.com/luci/gae" library.
+func (p *AbnormalFinish) FromProperty(prop datastore.Property) error {
+ data, err := prop.Project(datastore.PTBytes)
+ if err != nil {
+ return err
+ }
+ return proto.Unmarshal(data.([]byte), p)
+}
+
+var _ datastore.PropertyConverter = (*Execution_Auth)(nil)
+
+// ToProperty implements datastore.PropertyConverter. It causes an embedded
+// 'Execution_Auth' to serialize to an unindexed '[]byte' when used with the
+// "github.com/luci/gae" library.
+func (p *Execution_Auth) ToProperty() (prop datastore.Property, err error) {
+ data, err := proto.Marshal(p)
+ if err == nil {
+ prop.SetValue(data, datastore.NoIndex)
+ }
+ return
+}
+
+// FromProperty implements datastore.PropertyConverter. It parses a '[]byte'
+// into an embedded 'Execution_Auth' when used with the "github.com/luci/gae" library.
+func (p *Execution_Auth) FromProperty(prop datastore.Property) error {
+ data, err := prop.Project(datastore.PTBytes)
+ if err != nil {
+ return err
+ }
+ return proto.Unmarshal(data.([]byte), p)
+}
+
var _ datastore.PropertyConverter = (*Quest_Desc)(nil)
// ToProperty implements datastore.PropertyConverter. It causes an embedded
« no previous file with comments | « common/api/dm/service/v1/pb.discovery.go ('k') | common/api/dm/service/v1/quest_desc_normalize.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698