public void MergeFrom(UnityRLInitializationInputProto other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Seed != 0)
     {
         Seed = other.Seed;
     }
     if (other.CommunicationVersion.Length != 0)
     {
         CommunicationVersion = other.CommunicationVersion;
     }
     if (other.PackageVersion.Length != 0)
     {
         PackageVersion = other.PackageVersion;
     }
     if (other.capabilities_ != null)
     {
         if (capabilities_ == null)
         {
             capabilities_ = new global::Unity.MLAgents.CommunicatorObjects.UnityRLCapabilitiesProto();
         }
         Capabilities.MergeFrom(other.Capabilities);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #2
0
 public void MergeFrom(UnityRLInitializationOutputProto other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.CommunicationVersion.Length != 0)
     {
         CommunicationVersion = other.CommunicationVersion;
     }
     if (other.LogPath.Length != 0)
     {
         LogPath = other.LogPath;
     }
     brainParameters_.Add(other.brainParameters_);
     if (other.PackageVersion.Length != 0)
     {
         PackageVersion = other.PackageVersion;
     }
     if (other.capabilities_ != null)
     {
         if (capabilities_ == null)
         {
             capabilities_ = new global::Unity.MLAgents.CommunicatorObjects.UnityRLCapabilitiesProto();
         }
         Capabilities.MergeFrom(other.Capabilities);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #3
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: {
                    Name = input.ReadString();
                    break;
                }

                case 18: {
                    CommunicationVersion = input.ReadString();
                    break;
                }

                case 26: {
                    LogPath = input.ReadString();
                    break;
                }

                case 42: {
                    brainParameters_.AddEntriesFrom(input, _repeated_brainParameters_codec);
                    break;
                }

                case 58: {
                    PackageVersion = input.ReadString();
                    break;
                }

                case 66: {
                    if (capabilities_ == null)
                    {
                        capabilities_ = new global::Unity.MLAgents.CommunicatorObjects.UnityRLCapabilitiesProto();
                    }
                    input.ReadMessage(capabilities_);
                    break;
                }
                }
            }
        }
예제 #4
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 8: {
                    Seed = input.ReadInt32();
                    break;
                }

                case 18: {
                    CommunicationVersion = input.ReadString();
                    break;
                }

                case 26: {
                    PackageVersion = input.ReadString();
                    break;
                }

                case 34: {
                    if (capabilities_ == null)
                    {
                        capabilities_ = new global::Unity.MLAgents.CommunicatorObjects.UnityRLCapabilitiesProto();
                    }
                    input.ReadMessage(capabilities_);
                    break;
                }

                case 40: {
                    NumAreas = input.ReadInt32();
                    break;
                }
                }
            }
        }