Class SearchMatchV2.Builder

    • Constructor Detail

      • Builder

        protected Builder​(MetadataV2 metadata)
    • Method Detail

      • withMatchType

        public SearchMatchV2.Builder withMatchType​(SearchMatchTypeV2 matchType)
        Set value for optional field.
        Parameters:
        matchType - The type of the match.
        Returns:
        this builder
      • withHighlightSpans

        public SearchMatchV2.Builder withHighlightSpans​(java.util.List<HighlightSpan> highlightSpans)
        Set value for optional field.
        Parameters:
        highlightSpans - The list of HighlightSpan determines which parts of the file title should be highlighted. Must not contain a null item.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.