| 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
|
|
|