Skip to content

Commit 4d3feab

Browse files
1 parent 6dfa658 commit 4d3feab

6 files changed

Lines changed: 132 additions & 6 deletions

File tree

clients/google-api-services-homegraph/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-homegraph</artifactId>
25-
<version>v1-rev20260414-2.0.0</version>
25+
<version>v1-rev20260508-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-homegraph:v1-rev20260414-2.0.0'
38+
implementation 'com.google.apis:google-api-services-homegraph:v1-rev20260508-2.0.0'
3939
}
4040
```
4141

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.homegraph.v1.model;
18+
19+
/**
20+
* Metadata for traits of a single device.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the HomeGraph API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class DeviceMetadata extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit
34+
* timestamp.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.Map<String, String> traitCommitTimestamps;
39+
40+
/**
41+
* Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit
42+
* timestamp.
43+
* @return value or {@code null} for none
44+
*/
45+
public java.util.Map<String, String> getTraitCommitTimestamps() {
46+
return traitCommitTimestamps;
47+
}
48+
49+
/**
50+
* Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit
51+
* timestamp.
52+
* @param traitCommitTimestamps traitCommitTimestamps or {@code null} for none
53+
*/
54+
public DeviceMetadata setTraitCommitTimestamps(java.util.Map<String, String> traitCommitTimestamps) {
55+
this.traitCommitTimestamps = traitCommitTimestamps;
56+
return this;
57+
}
58+
59+
@Override
60+
public DeviceMetadata set(String fieldName, Object value) {
61+
return (DeviceMetadata) super.set(fieldName, value);
62+
}
63+
64+
@Override
65+
public DeviceMetadata clone() {
66+
return (DeviceMetadata) super.clone();
67+
}
68+
69+
}

clients/google-api-services-homegraph/v1/2.0.0/com/google/api/services/homegraph/v1/model/QueryRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public final class QueryRequest extends com.google.api.client.json.GenericJson {
3636
@com.google.api.client.util.Key
3737
private java.lang.String agentUserId;
3838

39+
/**
40+
* Optional. If true, the response will include device metadata in the device_metadata field.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.Boolean includeDeviceMetadata;
45+
3946
/**
4047
* Required. Inputs containing third-party device IDs for which to get the device states.
4148
* The value may be {@code null}.
@@ -67,6 +74,23 @@ public QueryRequest setAgentUserId(java.lang.String agentUserId) {
6774
return this;
6875
}
6976

77+
/**
78+
* Optional. If true, the response will include device metadata in the device_metadata field.
79+
* @return value or {@code null} for none
80+
*/
81+
public java.lang.Boolean getIncludeDeviceMetadata() {
82+
return includeDeviceMetadata;
83+
}
84+
85+
/**
86+
* Optional. If true, the response will include device metadata in the device_metadata field.
87+
* @param includeDeviceMetadata includeDeviceMetadata or {@code null} for none
88+
*/
89+
public QueryRequest setIncludeDeviceMetadata(java.lang.Boolean includeDeviceMetadata) {
90+
this.includeDeviceMetadata = includeDeviceMetadata;
91+
return this;
92+
}
93+
7094
/**
7195
* Required. Inputs containing third-party device IDs for which to get the device states.
7296
* @return value or {@code null} for none

clients/google-api-services-homegraph/v1/2.0.0/com/google/api/services/homegraph/v1/model/QueryResponsePayload.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,46 @@
2929
@SuppressWarnings("javadoc")
3030
public final class QueryResponsePayload extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit
34+
* timestamp. If a trait has no recorded timestamp, it will be omitted from this map.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.Map<String, DeviceMetadata> deviceMetadata;
39+
40+
static {
41+
// hack to force ProGuard to consider DeviceMetadata used, since otherwise it would be stripped out
42+
// see https://github.com/google/google-api-java-client/issues/543
43+
com.google.api.client.util.Data.nullOf(DeviceMetadata.class);
44+
}
45+
3246
/**
3347
* States of the devices. Map of third-party device ID to struct of device states.
3448
* The value may be {@code null}.
3549
*/
3650
@com.google.api.client.util.Key
3751
private java.util.Map<String, java.util.Map<String, java.lang.Object>> devices;
3852

53+
/**
54+
* Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit
55+
* timestamp. If a trait has no recorded timestamp, it will be omitted from this map.
56+
* @return value or {@code null} for none
57+
*/
58+
public java.util.Map<String, DeviceMetadata> getDeviceMetadata() {
59+
return deviceMetadata;
60+
}
61+
62+
/**
63+
* Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit
64+
* timestamp. If a trait has no recorded timestamp, it will be omitted from this map.
65+
* @param deviceMetadata deviceMetadata or {@code null} for none
66+
*/
67+
public QueryResponsePayload setDeviceMetadata(java.util.Map<String, DeviceMetadata> deviceMetadata) {
68+
this.deviceMetadata = deviceMetadata;
69+
return this;
70+
}
71+
3972
/**
4073
* States of the devices. Map of third-party device ID to struct of device states.
4174
* @return value or {@code null} for none

clients/google-api-services-homegraph/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-homegraph</artifactId>
11-
<version>v1-rev20260414-2.0.0</version>
12-
<name>HomeGraph API v1-rev20260414-2.0.0</name>
11+
<version>v1-rev20260508-2.0.0</version>
12+
<name>HomeGraph API v1-rev20260508-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-homegraph/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-homegraph</artifactId>
25-
<version>v1-rev20260414-2.0.0</version>
25+
<version>v1-rev20260508-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-homegraph:v1-rev20260414-2.0.0'
38+
implementation 'com.google.apis:google-api-services-homegraph:v1-rev20260508-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)