Пример #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 8: {
                    VectorObservationSize = input.ReadInt32();
                    break;
                }

                case 16: {
                    NumStackedVectorObservations = input.ReadInt32();
                    break;
                }

                case 24: {
                    VectorActionSize = input.ReadInt32();
                    break;
                }

                case 34: {
                    cameraResolutions_.AddEntriesFrom(input, _repeated_cameraResolutions_codec);
                    break;
                }

                case 42: {
                    vectorActionDescriptions_.AddEntriesFrom(input, _repeated_vectorActionDescriptions_codec);
                    break;
                }

                case 48: {
                    vectorActionSpaceType_ = (global::MLAgents.CommunicatorObjects.SpaceTypeProto)input.ReadEnum();
                    break;
                }

                case 56: {
                    vectorObservationSpaceType_ = (global::MLAgents.CommunicatorObjects.SpaceTypeProto)input.ReadEnum();
                    break;
                }

                case 66: {
                    BrainName = input.ReadString();
                    break;
                }

                case 72: {
                    brainType_ = (global::MLAgents.CommunicatorObjects.BrainTypeProto)input.ReadEnum();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 26:
                case 24: {
                    vectorActionSize_.AddEntriesFrom(input, _repeated_vectorActionSize_codec);
                    break;
                }

                case 42: {
                    vectorActionDescriptions_.AddEntriesFrom(input, _repeated_vectorActionDescriptions_codec);
                    break;
                }

                case 48: {
                    vectorActionSpaceType_ = (global::MLAgents.CommunicatorObjects.SpaceTypeProto)input.ReadEnum();
                    break;
                }

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

                case 64: {
                    IsTraining = input.ReadBool();
                    break;
                }
                }
            }
        }