Class ResponseProcessor

    • Method Detail

      • isCollapse

        public boolean isCollapse()
        Is this variant instance of kind collapse?
      • collapse

        public CollapseResponseProcessor collapse()
        Get the collapse variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not the collapse kind.
      • isPersonalizeSearchRanking

        public boolean isPersonalizeSearchRanking()
        Is this variant instance of kind personalize_search_ranking?
      • personalizeSearchRanking

        public PersonalizeSearchRankingResponseProcessor personalizeSearchRanking()
        Get the personalize_search_ranking variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not the personalize_search_ranking kind.
      • isRenameField

        public boolean isRenameField()
        Is this variant instance of kind rename_field?
      • renameField

        public RenameFieldResponseProcessor renameField()
        Get the rename_field variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not the rename_field kind.
      • isRerank

        public boolean isRerank()
        Is this variant instance of kind rerank?
      • rerank

        public RerankResponseProcessor rerank()
        Get the rerank variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not the rerank kind.
      • isRetrievalAugmentedGeneration

        public boolean isRetrievalAugmentedGeneration()
        Is this variant instance of kind retrieval_augmented_generation?
      • retrievalAugmentedGeneration

        public RetrievalAugmentedGenerationResponseProcessor retrievalAugmentedGeneration()
        Get the retrieval_augmented_generation variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not the retrieval_augmented_generation kind.
      • isSort

        public boolean isSort()
        Is this variant instance of kind sort?
      • sort

        public SortResponseProcessor sort()
        Get the sort variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not the sort kind.
      • isSplit

        public boolean isSplit()
        Is this variant instance of kind split?
      • split

        public SplitResponseProcessor split()
        Get the split variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not the split kind.
      • isTruncateHits

        public boolean isTruncateHits()
        Is this variant instance of kind truncate_hits?
      • truncateHits

        public TruncateHitsResponseProcessor truncateHits()
        Get the truncate_hits variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not the truncate_hits kind.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object