public void MergeFrom(Response other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.Error.Length != 0)
     {
         Error = other.Error;
     }
     if (other.result_ != null)
     {
         if (result_ == null)
         {
             result_ = new global::ResultDTO();
         }
         Result.MergeFrom(other.Result);
     }
     if (other.user_ != null)
     {
         if (user_ == null)
         {
             user_ = new global::UserDTO();
         }
         User.MergeFrom(other.User);
     }
     participants_.Add(other.participants_);
     participantsDTO_.Add(other.participantsDTO_);
 }
    public void MergeFrom(pb::CodedInputStream input)
    {
        uint tag;

        while ((tag = input.ReadTag()) != 0)
        {
            switch (tag)
            {
            default:
                input.SkipLastField();
                break;

            case 8: {
                type_ = (global::Response.Types.ResponseType)input.ReadEnum();
                break;
            }

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

            case 26: {
                if (result_ == null)
                {
                    result_ = new global::ResultDTO();
                }
                input.ReadMessage(result_);
                break;
            }

            case 34: {
                if (user_ == null)
                {
                    user_ = new global::UserDTO();
                }
                input.ReadMessage(user_);
                break;
            }

            case 42: {
                participants_.AddEntriesFrom(input, _repeated_participants_codec);
                break;
            }

            case 50: {
                participantsDTO_.AddEntriesFrom(input, _repeated_participantsDTO_codec);
                break;
            }
            }
        }
    }
    public void MergeFrom(pb::CodedInputStream input)
    {
        uint tag;

        while ((tag = input.ReadTag()) != 0)
        {
            switch (tag)
            {
            default:
                input.SkipLastField();
                break;

            case 8: {
                type_ = (global::Request.Types.RequestType)input.ReadEnum();
                break;
            }

            case 18: {
                global::UserDTO subBuilder = new global::UserDTO();
                if (payloadCase_ == PayloadOneofCase.User)
                {
                    subBuilder.MergeFrom(User);
                }
                input.ReadMessage(subBuilder);
                User = subBuilder;
                break;
            }

            case 26: {
                global::ResultDTO subBuilder = new global::ResultDTO();
                if (payloadCase_ == PayloadOneofCase.Result)
                {
                    subBuilder.MergeFrom(Result);
                }
                input.ReadMessage(subBuilder);
                Result = subBuilder;
                break;
            }

            case 32: {
                IdStage = input.ReadInt64();
                break;
            }
            }
        }
    }