# ClimateStateRequest

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/hardware/climate/ClimateStateRequest.java+class:androidx.car.app.hardware.climate.ClimateStateRequest) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

*** ** * ** ***


```
@CarProtocol
@RequiresCarApi(value = 5)
class ClimateStateRequest<T>
```

<br />

*** ** * ** ***

Allows specification of a request for setting the car climate states using string flags and car zones.

Applications need to use `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest.Builder` to create a `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest`.

| Parameters |
|---|---|
| `<T>` | data type of request value |

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest.Builder<T>` A builder of `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest#getCarZones()()` Returns a list of CarZones which are included in this request. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest#getRequestedFeature()()` Returns a feature flag in @ClimateProfileRequest.ClimateProfileFeature which is included in this request. |
| `T` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest#getRequestedValue()()` Returns the requested value which is included in this request. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest#toString()()` |

## Public functions

### equals

```
fun equals(o: Any!): Boolean
```

### getCarZones

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun getCarZones(): (Mutable)List<CarZone!>
```

Returns a list of CarZones which are included in this request.

### getRequestedFeature

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun getRequestedFeature(): Int
```

Returns a feature flag in @ClimateProfileRequest.ClimateProfileFeature which is included in this request.

### getRequestedValue

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun getRequestedValue(): T
```

Returns the requested value which is included in this request.

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String
```