Esempio n. 1
0
 public void MergeFrom(SavedObject other)
 {
     if (other == null)
     {
         return;
     }
     if (other.NodeId != 0)
     {
         NodeId = other.NodeId;
     }
     if (other.NodePath.Length != 0)
     {
         NodePath = other.NodePath;
     }
     if (other.Identifier.Length != 0)
     {
         Identifier = other.Identifier;
     }
     if (other.Metadata.Length != 0)
     {
         Metadata = other.Metadata;
     }
     if (other.version_ != null)
     {
         if (version_ == null)
         {
             Version = new global::ThirdParty.Tensorflow.Python.Keras.Protobuf.VersionDef();
         }
         Version.MergeFrom(other.Version);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 16: {
                    NodeId = input.ReadInt32();
                    break;
                }

                case 26: {
                    NodePath = input.ReadString();
                    break;
                }

                case 34: {
                    Identifier = input.ReadString();
                    break;
                }

                case 42: {
                    Metadata = input.ReadString();
                    break;
                }

                case 50: {
                    if (version_ == null)
                    {
                        Version = new global::ThirdParty.Tensorflow.Python.Keras.Protobuf.VersionDef();
                    }
                    input.ReadMessage(Version);
                    break;
                }
                }
            }
        }