From c012b5eccfb75a0e103a1ccb3046ee2e72c1de83 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 12 May 2026 18:19:59 -0700 Subject: [PATCH] Regenerate homegraph client --- src/HomeGraphService/DeviceMetadata.php | 50 +++++++++++++++++++ src/HomeGraphService/QueryRequest.php | 24 +++++++++ src/HomeGraphService/QueryResponsePayload.php | 20 ++++++++ 3 files changed, 94 insertions(+) create mode 100644 src/HomeGraphService/DeviceMetadata.php diff --git a/src/HomeGraphService/DeviceMetadata.php b/src/HomeGraphService/DeviceMetadata.php new file mode 100644 index 00000000000..f58996f113b --- /dev/null +++ b/src/HomeGraphService/DeviceMetadata.php @@ -0,0 +1,50 @@ +traitCommitTimestamps = $traitCommitTimestamps; + } + /** + * @return string[] + */ + public function getTraitCommitTimestamps() + { + return $this->traitCommitTimestamps; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DeviceMetadata::class, 'Google_Service_HomeGraphService_DeviceMetadata'); diff --git a/src/HomeGraphService/QueryRequest.php b/src/HomeGraphService/QueryRequest.php index e081c6fc785..8da7ef42aa1 100644 --- a/src/HomeGraphService/QueryRequest.php +++ b/src/HomeGraphService/QueryRequest.php @@ -26,6 +26,13 @@ class QueryRequest extends \Google\Collection * @var string */ public $agentUserId; + /** + * Optional. If true, the response will include device metadata in the + * device_metadata field. + * + * @var bool + */ + public $includeDeviceMetadata; protected $inputsType = QueryRequestInput::class; protected $inputsDataType = 'array'; /** @@ -51,6 +58,23 @@ public function getAgentUserId() { return $this->agentUserId; } + /** + * Optional. If true, the response will include device metadata in the + * device_metadata field. + * + * @param bool $includeDeviceMetadata + */ + public function setIncludeDeviceMetadata($includeDeviceMetadata) + { + $this->includeDeviceMetadata = $includeDeviceMetadata; + } + /** + * @return bool + */ + public function getIncludeDeviceMetadata() + { + return $this->includeDeviceMetadata; + } /** * Required. Inputs containing third-party device IDs for which to get the * device states. diff --git a/src/HomeGraphService/QueryResponsePayload.php b/src/HomeGraphService/QueryResponsePayload.php index f819a9059da..74c92831e62 100644 --- a/src/HomeGraphService/QueryResponsePayload.php +++ b/src/HomeGraphService/QueryResponsePayload.php @@ -19,6 +19,8 @@ class QueryResponsePayload extends \Google\Model { + protected $deviceMetadataType = DeviceMetadata::class; + protected $deviceMetadataDataType = 'map'; /** * States of the devices. Map of third-party device ID to struct of device * states. @@ -27,6 +29,24 @@ class QueryResponsePayload extends \Google\Model */ public $devices; + /** + * Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last + * Spanner commit timestamp. If a trait has no recorded timestamp, it will be + * omitted from this map. + * + * @param DeviceMetadata[] $deviceMetadata + */ + public function setDeviceMetadata($deviceMetadata) + { + $this->deviceMetadata = $deviceMetadata; + } + /** + * @return DeviceMetadata[] + */ + public function getDeviceMetadata() + { + return $this->deviceMetadata; + } /** * States of the devices. Map of third-party device ID to struct of device * states.