# SportsOrganization

Artifact: [androidx.appsearch:appsearch-builtin-types](https://developer.android.com/jetpack/androidx/releases/appsearch) [View Source](https://cs.android.com/search?q=file:androidx/appsearch/builtintypes/SportsOrganization.java+class:androidx.appsearch.builtintypes.SportsOrganization) Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

*** ** * ** ***


```
@Document(name = "builtin:SportsOrganization")
public class SportsOrganization extends Organization
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [androidx.appsearch.builtintypes.Thing](https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing) |||
|   | ↳ | [androidx.appsearch.builtintypes.Organization](https://developer.android.com/reference/androidx/appsearch/builtintypes/Organization) ||
|   |   | ↳ | [androidx.appsearch.builtintypes.SportsOrganization](https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization) |

Known direct subclasses [SportsTeam](https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsTeam)

|---|---|
| `https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsTeam` | AppSearch document representing a `https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsTeam` entity. |

*** ** * ** ***

AppSearch document representing a `https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization` entity.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/androidx/appsearch/annotation/Document.BuilderProducer public final class https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization.Builder extends https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization.BuilderBase<https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization.Builder>` |
| `@https://developer.android.com/reference/androidx/appsearch/app/ExperimentalAppSearchApi public class https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization.BuilderBase<T extends https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization.BuilderBase<T>> extends https://developer.android.com/reference/androidx/appsearch/builtintypes/Organization.BuilderBase<T>` Builder for `https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization`. |

| ### Public constructors |
|---|
| `@https://developer.android.com/reference/androidx/appsearch/app/ExperimentalAppSearchApi https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization#SportsOrganization(androidx.appsearch.builtintypes.SportsOrganization.BuilderBase<?>)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization.BuilderBase<@https://developer.android.com/reference/androidx/annotation/NonNull ?> builder )` Constructor for `https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization`. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/Color.html` | `https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization#getAccentColor()()` Returns the accent colors of the sports organization as a `https://developer.android.com/reference/android/graphics/Color.html`, if set. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization#getSport()()` Returns the sport of the sports organization, if set. |

### Inherited methods

From [androidx.appsearch.builtintypes.Organization](https://developer.android.com/reference/androidx/appsearch/builtintypes/Organization) `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/appsearch/builtintypes/ImageObject` `https://developer.android.com/reference/androidx/appsearch/builtintypes/Organization#getLogo()()`

Returns the logo of the organization, if set.
From [androidx.appsearch.builtintypes.Thing](https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing) `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/String.html>` `https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getAlternateNames()()`

Returns an unmodifiable list of aliases, if any, for this item.
`long` `https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getCreationTimestampMillis()()`

Returns the creation timestamp, in milliseconds since Unix epoch, of this item.
`@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getDescription()()`

Returns a description of this item.
`int` `https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getDocumentScore()()`

Returns the intrinsic score (or importance) of this item.
`long` `https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getDocumentTtlMillis()()`

Returns the time-to-live timestamp, in milliseconds since `https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getCreationTimestampMillis()`, for this item.
`@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getId()()`

Returns the unique identifier for this item.
`@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` `@https://developer.android.com/reference/androidx/appsearch/app/ExperimentalAppSearchApi
https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getImage()()`

Returns the URL for an image of this item.
`@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getName()()`

Returns the name of this item.
`@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getNamespace()()`

Returns the namespace (or logical grouping) for this item.
`@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/appsearch/builtintypes/PotentialAction>` `@https://developer.android.com/reference/androidx/appsearch/app/ExperimentalAppSearchApi
https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getPotentialActions()()`

Returns the actions that can be taken on this object.
`@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/appsearch/builtintypes/Thing#getUrl()()`

Returns the deeplink URL of this item.

## Public constructors

### SportsOrganization

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
@ExperimentalAppSearchApi
public SportsOrganization(
    @NonNull SportsOrganization.BuilderBase<@NonNull ?> builder
)
```

Constructor for `https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization.BuilderBase<@https://developer.android.com/reference/androidx/annotation/NonNull ?> builder` | The builder to construct the `https://developer.android.com/reference/androidx/appsearch/builtintypes/SportsOrganization` from. |

## Public methods

### getAccentColor

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
public @Nullable Color getAccentColor()
```

Returns the accent colors of the sports organization as a `https://developer.android.com/reference/android/graphics/Color.html`, if set.

### getSport

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
public @NonNull String getSport()
```

Returns the sport of the sports organization, if set.