Namespace Google.Apis.HomeGraphService.v1.Data
Classes
AgentDeviceId
Third-party device ID for one device.
AgentOtherDeviceId
Alternate third-party device ID.
Device
Third-party device definition.
DeviceInfo
Device information.
DeviceNames
Identifiers used to describe the device.
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); }
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. Example:
json { "requestId":
"ff36a3cc-ec34-11e6-b1a0-64510650abcf", "payload": { "devices": { "123": { "on": true, "online": true }, "456":
{ "on": true, "online": true, "brightness": 80, "color": { "name": "cerulean", "spectrumRGB": 31655 } } } } }
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. Example:
json { "requestId":
"ff36a3cc-ec34-11e6-b1a0-64510650abcf", "payload": { "agentUserId": "1836.15267389", "devices": [{ "id": "123",
"type": "action.devices.types.OUTLET", "traits": [ "action.devices.traits.OnOff" ], "name": { "defaultNames":
["My Outlet 1234"], "name": "Night light", "nicknames": ["wall plug"] }, "willReportState": false, "deviceInfo":
{ "manufacturer": "lights-out-inc", "model": "hs1234", "hwVersion": "3.2", "swVersion": "11.4" }, "customData":
{ "fooValue": 74, "barValue": true, "bazValue": "foo" } }] } }
SyncResponsePayload
Payload containing device information.