Highlight

class Highlight

Provides information that you can use to highlight a search result so that your users can quickly identify terms in the response.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The zero-based location in the response string where the highlight starts.

Link copied to clipboard

The zero-based location in the response string where the highlight ends.

Link copied to clipboard

Indicates whether the response is the best response. True if this is the best response; otherwise, false.

Link copied to clipboard

The highlight type.

Functions

Link copied to clipboard
inline fun copy(block: Highlight.Builder.() -> Unit = {}): Highlight
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String