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

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: self review 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
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..19e644c7835e920610ca2c446d0d6d9d803b3c59 100644
--- a/common/api/dm/service/v1/proto_gae.gen.go
+++ b/common/api/dm/service/v1/proto_gae.gen.go
@@ -1,6 +1,6 @@
-// Copyright 2016 The LUCI Authors. All rights reserved.
-// Use of this source code is governed under the Apache License, Version 2.0
-// that can be found in the LICENSE file.
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
// AUTOGENERATED: Do not edit
@@ -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

Powered by Google App Engine
This is Rietveld 408576698