Package-level declarations

Types

Link copied to clipboard
data class AlternateNames(var primary: String, var localized: String?, var abbreviation: String?)

A set of names for a single entity.

Link copied to clipboard
interface Disposable
Link copied to clipboard
typealias FfiConverterTypeJsonValue = FfiConverterString
Link copied to clipboard
data class FtsMatchInfo(var prefix: Boolean, var stemming: Boolean)

Additional data about how an FTS match was made

Link copied to clipboard
data class Geoname(var geonameId: Long, var geonameType: GeonameType, var name: String, var countryCode: String, var featureClass: String, var featureCode: String, var adminDivisionCodes: Map<UByte, String>, var population: ULong, var latitude: String, var longitude: String)

A single geographic place.

Link copied to clipboard
data class GeonameAlternates(var geoname: AlternateNames, var country: AlternateNames?, var adminDivisions: Map<UByte, AlternateNames>)

Alternate names for a geoname and its country and admin divisions.

Link copied to clipboard
data class GeonameMatch(var geoname: Geoname, var matchType: GeonameMatchType, var prefix: Boolean)

A fetched geoname with info on how it was matched.

Link copied to clipboard
Link copied to clipboard
sealed class GeonameType

The type of a geoname.

Link copied to clipboard
Link copied to clipboard

What should be interrupted when SuggestStore::interrupt is called?

Link copied to clipboard
typealias JsonValue = String

Typealias from the type name used in the UDL file to the builtin type. This is needed because the UDL type name is used in function/method signatures. It's also what we have an external type that references a custom type.

Link copied to clipboard
data class LabeledTimingSample(var label: String, var value: ULong)

Single sample for a Glean labeled_timing_distribution

Link copied to clipboard
data class QueryWithMetricsResult(var suggestions: List<Suggestion>, var queryTimes: List<LabeledTimingSample>)
Link copied to clipboard

The error type for all Suggest component operations. These errors are exposed to your application, which should handle them as needed.

Link copied to clipboard
data class SuggestGlobalConfig(var showLessFrequentlyCap: Int)

Global Suggest configuration data.

Link copied to clipboard
data class SuggestIngestionConstraints(var providers: List<SuggestionProvider>? = null, var providerConstraints: SuggestionProviderConstraints? = null, var emptyOnly: Boolean = false)

Constraints limit which suggestions to ingest from Remote Settings.

Link copied to clipboard
data class SuggestIngestionMetrics(var ingestionTimes: List<LabeledTimingSample>, var downloadTimes: List<LabeledTimingSample>)

Ingestion metrics

Link copied to clipboard
sealed class Suggestion

A suggestion from the database to show in the address bar.

Link copied to clipboard

A provider is a source of search suggestions. Please preserve the integer values after removing or adding providers. Provider configs are associated with integer keys stored in the database.

Link copied to clipboard
data class SuggestionProviderConstraints(var dynamicSuggestionTypes: List<String>? = null, var ampAlternativeMatching: AmpMatchingStrategy? = null)

Some providers manage multiple suggestion subtypes. Queries, ingests, and other operations on those providers must be constrained to a desired subtype.

Link copied to clipboard
data class SuggestionQuery(var keyword: String, var providers: List<SuggestionProvider>, var providerConstraints: SuggestionProviderConstraints? = null, var limit: Int? = null)

A query for suggestions to show in the address bar.

Link copied to clipboard

Per-provider configuration data.

Link copied to clipboard

The store is the entry point to the Suggest component. It incrementally downloads suggestions from the Remote Settings service, stores them in a local database, and returns them in response to user queries.

Link copied to clipboard
Link copied to clipboard

The store is the entry point to the Suggest component. It incrementally downloads suggestions from the Remote Settings service, stores them in a local database, and returns them in response to user queries.

Link copied to clipboard

Subject type for Yelp suggestion.

Functions

Link copied to clipboard
fun rawSuggestionUrlMatches(rawUrl: String, cookedUrl: String): Boolean

Determines whether a "raw" sponsored suggestion URL is equivalent to a "cooked" URL. The two URLs are equivalent if they are identical except for their replaced template parameters, which can be different.