public void MergeFrom(UnityMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::MLAgents.CommunicatorObjects.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.unityOutput_ != null)
     {
         if (unityOutput_ == null)
         {
             unityOutput_ = new global::MLAgents.CommunicatorObjects.UnityOutput();
         }
         UnityOutput.MergeFrom(other.UnityOutput);
     }
     if (other.unityInput_ != null)
     {
         if (unityInput_ == null)
         {
             unityInput_ = new global::MLAgents.CommunicatorObjects.UnityInput();
         }
         UnityInput.MergeFrom(other.UnityInput);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        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 (header_ == null)
                    {
                        header_ = new global::MLAgents.CommunicatorObjects.Header();
                    }
                    input.ReadMessage(header_);
                    break;
                }

                case 18: {
                    if (unityOutput_ == null)
                    {
                        unityOutput_ = new global::MLAgents.CommunicatorObjects.UnityOutput();
                    }
                    input.ReadMessage(unityOutput_);
                    break;
                }

                case 26: {
                    if (unityInput_ == null)
                    {
                        unityInput_ = new global::MLAgents.CommunicatorObjects.UnityInput();
                    }
                    input.ReadMessage(unityInput_);
                    break;
                }
                }
            }
        }