Example #1
0
 public void MergeFrom(PassOverrides other)
 {
     if (other == null)
     {
         return;
     }
     if (other.imageIds_ != null)
     {
         if (imageIds_ == null)
         {
             ImageIds = new global::PKIo.ImageIds();
         }
         ImageIds.MergeFrom(other.ImageIds);
     }
     locations_.Add(other.locations_);
     beacons_.Add(other.beacons_);
     links_.Add(other.links_);
     if (other.colors_ != null)
     {
         if (colors_ == null)
         {
             Colors = new global::PKIo.Colors();
         }
         Colors.MergeFrom(other.Colors);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #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: {
                    if (imageIds_ == null)
                    {
                        ImageIds = new global::PKIo.ImageIds();
                    }
                    input.ReadMessage(ImageIds);
                    break;
                }

                case 26: {
                    locations_.AddEntriesFrom(input, _repeated_locations_codec);
                    break;
                }

                case 34: {
                    beacons_.AddEntriesFrom(input, _repeated_beacons_codec);
                    break;
                }

                case 42: {
                    links_.AddEntriesFrom(input, _repeated_links_codec);
                    break;
                }

                case 50: {
                    if (colors_ == null)
                    {
                        Colors = new global::PKIo.Colors();
                    }
                    input.ReadMessage(Colors);
                    break;
                }
                }
            }
        }