Class QueryUtterancesResult


  • public final class QueryUtterancesResult
    extends Object
    Result for utterances query.
    • Constructor Detail

      • QueryUtterancesResult

        public QueryUtterancesResult()
    • Method Detail

      • sampleUtterance

        public SampleUtterance sampleUtterance()
        Get the sampleUtterance property: A sample utterance.
        Returns:
        the sampleUtterance value.
      • withSampleUtterance

        public QueryUtterancesResult withSampleUtterance​(SampleUtterance sampleUtterance)
        Set the sampleUtterance property: A sample utterance.
        Parameters:
        sampleUtterance - the sampleUtterance value to set.
        Returns:
        the QueryUtterancesResult object itself.
      • score

        public Float score()
        Get the score property: Score of a sample utterance.
        Returns:
        the score value.
      • withScore

        public QueryUtterancesResult withScore​(Float score)
        Set the score property: Score of a sample utterance.
        Parameters:
        score - the score value to set.
        Returns:
        the QueryUtterancesResult object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.