Class QueryDTO


  • public class QueryDTO
    extends Object
    POST body schema to query the knowledgebase.
    • Constructor Detail

      • QueryDTO

        public QueryDTO()
    • Method Detail

      • qnaId

        public String qnaId()
        Get the qnaId value.
        Returns:
        the qnaId value
      • withQnaId

        public QueryDTO withQnaId​(String qnaId)
        Set the qnaId value.
        Parameters:
        qnaId - the qnaId value to set
        Returns:
        the QueryDTO object itself.
      • question

        public String question()
        Get the question value.
        Returns:
        the question value
      • withQuestion

        public QueryDTO withQuestion​(String question)
        Set the question value.
        Parameters:
        question - the question value to set
        Returns:
        the QueryDTO object itself.
      • top

        public Integer top()
        Get the top value.
        Returns:
        the top value
      • withTop

        public QueryDTO withTop​(Integer top)
        Set the top value.
        Parameters:
        top - the top value to set
        Returns:
        the QueryDTO object itself.
      • userId

        public String userId()
        Get the userId value.
        Returns:
        the userId value
      • withUserId

        public QueryDTO withUserId​(String userId)
        Set the userId value.
        Parameters:
        userId - the userId value to set
        Returns:
        the QueryDTO object itself.
      • isTest

        public Boolean isTest()
        Get the isTest value.
        Returns:
        the isTest value
      • withIsTest

        public QueryDTO withIsTest​(Boolean isTest)
        Set the isTest value.
        Parameters:
        isTest - the isTest value to set
        Returns:
        the QueryDTO object itself.
      • scoreThreshold

        public Double scoreThreshold()
        Get the scoreThreshold value.
        Returns:
        the scoreThreshold value
      • withScoreThreshold

        public QueryDTO withScoreThreshold​(Double scoreThreshold)
        Set the scoreThreshold value.
        Parameters:
        scoreThreshold - the scoreThreshold value to set
        Returns:
        the QueryDTO object itself.
      • context

        public QueryDTOContext context()
        Get the context value.
        Returns:
        the context value
      • withContext

        public QueryDTO withContext​(QueryDTOContext context)
        Set the context value.
        Parameters:
        context - the context value to set
        Returns:
        the QueryDTO object itself.
      • rankerType

        public String rankerType()
        Get the rankerType value.
        Returns:
        the rankerType value
      • withRankerType

        public QueryDTO withRankerType​(String rankerType)
        Set the rankerType value.
        Parameters:
        rankerType - the rankerType value to set
        Returns:
        the QueryDTO object itself.
      • strictFilters

        public List<MetadataDTO> strictFilters()
        Get the strictFilters value.
        Returns:
        the strictFilters value
      • withStrictFilters

        public QueryDTO withStrictFilters​(List<MetadataDTO> strictFilters)
        Set the strictFilters value.
        Parameters:
        strictFilters - the strictFilters value to set
        Returns:
        the QueryDTO object itself.
      • strictFiltersCompoundOperationType

        public StrictFiltersCompoundOperationType strictFiltersCompoundOperationType()
        Get the strictFiltersCompoundOperationType value.
        Returns:
        the strictFiltersCompoundOperationType value
      • withStrictFiltersCompoundOperationType

        public QueryDTO withStrictFiltersCompoundOperationType​(StrictFiltersCompoundOperationType strictFiltersCompoundOperationType)
        Set the strictFiltersCompoundOperationType value.
        Parameters:
        strictFiltersCompoundOperationType - the strictFiltersCompoundOperationType value to set
        Returns:
        the QueryDTO object itself.
      • answerSpanRequest

        public QueryDTOAnswerSpanRequest answerSpanRequest()
        Get the answerSpanRequest value.
        Returns:
        the answerSpanRequest value
      • withAnswerSpanRequest

        public QueryDTO withAnswerSpanRequest​(QueryDTOAnswerSpanRequest answerSpanRequest)
        Set the answerSpanRequest value.
        Parameters:
        answerSpanRequest - the answerSpanRequest value to set
        Returns:
        the QueryDTO object itself.