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 override int GetHashCode()
        {
            int hash = 1;

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (unityOutput_ != null)
            {
                hash ^= UnityOutput.GetHashCode();
            }
            if (unityInput_ != null)
            {
                hash ^= UnityInput.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }