googleapis.homegraph.v1 library

Classes

AgentDeviceId
Third-party device ID for one device.
AgentOtherDeviceId
Alternate third-party device ID.
AgentUsersResourceApi
Device
Third-party device definition.
DeviceInfo
Device information.
DeviceNames
Identifiers used to describe the device.
DevicesResourceApi
Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}.
HomegraphApi
QueryRequest
Request type for the Query call.
QueryRequestInput
Device ID inputs to QueryRequest.
QueryRequestPayload
Payload containing device IDs.
QueryResponse
Response type for the Query call. This should follow the same format as the Google smart home action.devices.QUERY response. [...]
QueryResponsePayload
Payload containing device states information.
ReportStateAndNotificationDevice
The states and notifications specific to a device.
ReportStateAndNotificationRequest
Request type for the ReportStateAndNotification call. It may include states, notifications, or both. States and notifications are defined per device_id (for example, "123" and "456" in the following example). # Example json { "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId": "1234", "payload": { "devices": { "states": { "123": { "on": true }, "456": { "on": true, "brightness": 10 } }, } } }
ReportStateAndNotificationResponse
Response type for the ReportStateAndNotification call.
RequestSyncDevicesRequest
Request type for the RequestSyncDevices call.
RequestSyncDevicesResponse
Response type for the RequestSyncDevices call. Intentionally empty upon success. An HTTP response code is returned with more details upon failure.
StateAndNotificationPayload
Payload containing the state and notification information for devices.
SyncRequest
Request type for the Sync call.
SyncResponse
Response type for the Sync call. This should follow the same format as the Google smart home action.devices.SYNC response. [...]
SyncResponsePayload
Payload containing device information.

Constants

USER_AGENT → const String
'dart-api-client homegraph/v1'

Exceptions / Errors

ApiRequestError
Represents a general error reported by the API endpoint.
DetailedApiRequestError
Represents a specific error reported by the API endpoint.