# - [smarthome](https://developers.home.google.com/reference/local-home/modules/smarthome.html).
- [ReportState](https://developers.home.google.com/reference/local-home/modules/smarthome.reportstate.html).
- [Response](https://developers.home.google.com/reference/local-home/modules/smarthome.reportstate.response.html).
- Builder

`ReportState.Response.Builder` allows the app to build ReportState
payload.

## Index

### Methods

- [build](https://developers.home.google.com/reference/local-home/classes/smarthome.reportstate.response.builder#build)
- [setRequestId](https://developers.home.google.com/reference/local-home/classes/smarthome.reportstate.response.builder#setrequestid)
- [setState](https://developers.home.google.com/reference/local-home/classes/smarthome.reportstate.response.builder#setstate)

## Methods

### build

- build ( ) : [Payload](https://developers.home.google.com/reference/local-home/interfaces/smarthome.reportstate.response.payload.html)
- Build ParseNotification Response, which is somewhat same as
  ReportState request (expect agentUserId).

  #### Returns [Payload](https://developers.home.google.com/reference/local-home/interfaces/smarthome.reportstate.response.payload.html)

### setRequestId

- setRequestId ( requestId : string ) : this
-

  #### Parameters

  -

    ##### requestId: string

    Request ID of the intent.

  #### Returns this

### setState

- setState ( deviceId : string , deviceState : unknown ) : this
-

  #### Parameters

  -

    ##### deviceId: string

    Device ID of the device.
  -

    ##### deviceState: unknown

    If execution was successful, provide new state of
    the device.

  #### Returns this