Пример #1
0
 public void MergeFrom(VersionDetail other)
 {
     if (other == null)
     {
         return;
     }
     if (other.DataVersion.Length != 0)
     {
         DataVersion = other.DataVersion;
     }
     if (other.androidVersion_ != null)
     {
         if (androidVersion_ == null)
         {
             AndroidVersion = new global::gen.msg.VersionInfo();
         }
         AndroidVersion.MergeFrom(other.AndroidVersion);
     }
     if (other.iOSVersion_ != null)
     {
         if (iOSVersion_ == null)
         {
             IOSVersion = new global::gen.msg.VersionInfo();
         }
         IOSVersion.MergeFrom(other.IOSVersion);
     }
     _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: {
                    DataVersion = input.ReadString();
                    break;
                }

                case 18: {
                    if (androidVersion_ == null)
                    {
                        AndroidVersion = new global::gen.msg.VersionInfo();
                    }
                    input.ReadMessage(AndroidVersion);
                    break;
                }

                case 26: {
                    if (iOSVersion_ == null)
                    {
                        IOSVersion = new global::gen.msg.VersionInfo();
                    }
                    input.ReadMessage(IOSVersion);
                    break;
                }
                }
            }
        }