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 (rlOutput_ == null) { rlOutput_ = new global::Unity.MLAgents.CommunicatorObjects.UnityRLOutputProto(); } input.ReadMessage(rlOutput_); break; } case 18: { if (rlInitializationOutput_ == null) { rlInitializationOutput_ = new global::Unity.MLAgents.CommunicatorObjects.UnityRLInitializationOutputProto(); } input.ReadMessage(rlInitializationOutput_); break; } } } }
public void MergeFrom(UnityOutputProto other) { if (other == null) { return; } if (other.rlOutput_ != null) { if (rlOutput_ == null) { rlOutput_ = new global::Unity.MLAgents.CommunicatorObjects.UnityRLOutputProto(); } RlOutput.MergeFrom(other.RlOutput); } if (other.rlInitializationOutput_ != null) { if (rlInitializationOutput_ == null) { rlInitializationOutput_ = new global::Unity.MLAgents.CommunicatorObjects.UnityRLInitializationOutputProto(); } RlInitializationOutput.MergeFrom(other.RlInitializationOutput); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }