예제 #1
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 (mapSize_ == null)
                    {
                        mapSize_ = new global::CyberLife.Protobuff.MapSize();
                    }
                    input.ReadMessage(mapSize_);
                    break;
                }

                case 18: {
                    phenomenaMetadata_.AddEntriesFrom(input, _repeated_phenomenaMetadata_codec);
                    break;
                }
                }
            }
        }
예제 #2
0
 public void MergeFrom(EnvironmentMetadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.mapSize_ != null)
     {
         if (mapSize_ == null)
         {
             mapSize_ = new global::CyberLife.Protobuff.MapSize();
         }
         MapSize.MergeFrom(other.MapSize);
     }
     phenomenaMetadata_.Add(other.phenomenaMetadata_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }