Пример #1
0
 public void MergeFrom(StartUp other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Udid.Length != 0)
     {
         Udid = other.Udid;
     }
     if (other.Fbid.Length != 0)
     {
         Fbid = other.Fbid;
     }
     if (other.Platform.Length != 0)
     {
         Platform = other.Platform;
     }
     if (other.version_ != null)
     {
         if (version_ == null)
         {
             version_ = new global::Com.Inferno.Protos.VersionProto();
         }
         Version.MergeFrom(other.Version);
     }
     if (other.StaticDataHash.Length != 0)
     {
         StaticDataHash = other.StaticDataHash;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #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 10: {
                    Udid = input.ReadString();
                    break;
                }

                case 18: {
                    Fbid = input.ReadString();
                    break;
                }

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

                case 34: {
                    if (version_ == null)
                    {
                        version_ = new global::Com.Inferno.Protos.VersionProto();
                    }
                    input.ReadMessage(version_);
                    break;
                }

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