Skip to content

Commit a32f00d

Browse files
1 parent 87fcca4 commit a32f00d

8 files changed

Lines changed: 292 additions & 11 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-rev20260523-2.0.0</version>
25+
<version>v1-rev20260604-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-rev20260523-2.0.0'
38+
implementation 'com.google.apis:google-api-services-homegraph:v1-rev20260604-2.0.0'
3939
}
4040
```
4141

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
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+
* Component of a provider 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 Component extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Child components.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<Component> childComponents;
38+
39+
/**
40+
* Required. List of Device types associated with this component. Supported device types are
41+
* defined in cs//depot/google3/home/homeservicelayer/uddm/types/uddm_device_types.proto and the
42+
* type string is the enum name, for example: ON_OFF_LIGHT => "ON_OFF_LIGHT".
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<java.lang.String> deviceTypes;
47+
48+
/**
49+
* Required. ID of the component from the device provider.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String id;
54+
55+
/**
56+
* Required. List of trait data associated with the component.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.util.List<TraitData> traitData;
61+
62+
/**
63+
* Optional. Child components.
64+
* @return value or {@code null} for none
65+
*/
66+
public java.util.List<Component> getChildComponents() {
67+
return childComponents;
68+
}
69+
70+
/**
71+
* Optional. Child components.
72+
* @param childComponents childComponents or {@code null} for none
73+
*/
74+
public Component setChildComponents(java.util.List<Component> childComponents) {
75+
this.childComponents = childComponents;
76+
return this;
77+
}
78+
79+
/**
80+
* Required. List of Device types associated with this component. Supported device types are
81+
* defined in cs//depot/google3/home/homeservicelayer/uddm/types/uddm_device_types.proto and the
82+
* type string is the enum name, for example: ON_OFF_LIGHT => "ON_OFF_LIGHT".
83+
* @return value or {@code null} for none
84+
*/
85+
public java.util.List<java.lang.String> getDeviceTypes() {
86+
return deviceTypes;
87+
}
88+
89+
/**
90+
* Required. List of Device types associated with this component. Supported device types are
91+
* defined in cs//depot/google3/home/homeservicelayer/uddm/types/uddm_device_types.proto and the
92+
* type string is the enum name, for example: ON_OFF_LIGHT => "ON_OFF_LIGHT".
93+
* @param deviceTypes deviceTypes or {@code null} for none
94+
*/
95+
public Component setDeviceTypes(java.util.List<java.lang.String> deviceTypes) {
96+
this.deviceTypes = deviceTypes;
97+
return this;
98+
}
99+
100+
/**
101+
* Required. ID of the component from the device provider.
102+
* @return value or {@code null} for none
103+
*/
104+
public java.lang.String getId() {
105+
return id;
106+
}
107+
108+
/**
109+
* Required. ID of the component from the device provider.
110+
* @param id id or {@code null} for none
111+
*/
112+
public Component setId(java.lang.String id) {
113+
this.id = id;
114+
return this;
115+
}
116+
117+
/**
118+
* Required. List of trait data associated with the component.
119+
* @return value or {@code null} for none
120+
*/
121+
public java.util.List<TraitData> getTraitData() {
122+
return traitData;
123+
}
124+
125+
/**
126+
* Required. List of trait data associated with the component.
127+
* @param traitData traitData or {@code null} for none
128+
*/
129+
public Component setTraitData(java.util.List<TraitData> traitData) {
130+
this.traitData = traitData;
131+
return this;
132+
}
133+
134+
@Override
135+
public Component set(String fieldName, Object value) {
136+
return (Component) super.set(fieldName, value);
137+
}
138+
139+
@Override
140+
public Component clone() {
141+
return (Component) super.clone();
142+
}
143+
144+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
* Container for UDDM trait data associated with a 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 HomeTraitPayload extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The root component of the device as reported by the provider.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private Component rootComponent;
38+
39+
/**
40+
* The root component of the device as reported by the provider.
41+
* @return value or {@code null} for none
42+
*/
43+
public Component getRootComponent() {
44+
return rootComponent;
45+
}
46+
47+
/**
48+
* The root component of the device as reported by the provider.
49+
* @param rootComponent rootComponent or {@code null} for none
50+
*/
51+
public HomeTraitPayload setRootComponent(Component rootComponent) {
52+
this.rootComponent = rootComponent;
53+
return this;
54+
}
55+
56+
@Override
57+
public HomeTraitPayload set(String fieldName, Object value) {
58+
return (HomeTraitPayload) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public HomeTraitPayload clone() {
63+
return (HomeTraitPayload) super.clone();
64+
}
65+
66+
}

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ 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. Specifies the type of device data to be returned in the response. This allows callers
41+
* to request traditional Smart Home traits, Unified Device Data Model (UDDM) traits, or both. If
42+
* unspecified, defaults to SMART_HOME_TRAIT_ONLY.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String deviceView;
47+
3948
/**
4049
* Optional. If true, the response will include device metadata in the device_metadata field.
4150
* The value may be {@code null}.
@@ -74,6 +83,27 @@ public QueryRequest setAgentUserId(java.lang.String agentUserId) {
7483
return this;
7584
}
7685

86+
/**
87+
* Optional. Specifies the type of device data to be returned in the response. This allows callers
88+
* to request traditional Smart Home traits, Unified Device Data Model (UDDM) traits, or both. If
89+
* unspecified, defaults to SMART_HOME_TRAIT_ONLY.
90+
* @return value or {@code null} for none
91+
*/
92+
public java.lang.String getDeviceView() {
93+
return deviceView;
94+
}
95+
96+
/**
97+
* Optional. Specifies the type of device data to be returned in the response. This allows callers
98+
* to request traditional Smart Home traits, Unified Device Data Model (UDDM) traits, or both. If
99+
* unspecified, defaults to SMART_HOME_TRAIT_ONLY.
100+
* @param deviceView deviceView or {@code null} for none
101+
*/
102+
public QueryRequest setDeviceView(java.lang.String deviceView) {
103+
this.deviceView = deviceView;
104+
return this;
105+
}
106+
77107
/**
78108
* Optional. If true, the response will include device metadata in the device_metadata field.
79109
* @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
@@ -50,6 +50,20 @@ public final class QueryResponsePayload extends com.google.api.client.json.Gener
5050
@com.google.api.client.util.Key
5151
private java.util.Map<String, java.util.Map<String, java.lang.Object>> devices;
5252

53+
/**
54+
* Map of device IDs to their Unified Device Data Model (UDDM) trait payloads. This field is
55+
* populated when `device_view` is set to HOME_TRAIT_ONLY or HOME_TRAIT_AND_SMART_HOME_TRAIT.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.util.Map<String, HomeTraitPayload> homeTraitPayload;
60+
61+
static {
62+
// hack to force ProGuard to consider HomeTraitPayload used, since otherwise it would be stripped out
63+
// see https://github.com/google/google-api-java-client/issues/543
64+
com.google.api.client.util.Data.nullOf(HomeTraitPayload.class);
65+
}
66+
5367
/**
5468
* Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit
5569
* timestamp. If a trait has no recorded timestamp, it will be omitted from this map.
@@ -86,6 +100,25 @@ public QueryResponsePayload setDevices(java.util.Map<String, java.util.Map<Strin
86100
return this;
87101
}
88102

103+
/**
104+
* Map of device IDs to their Unified Device Data Model (UDDM) trait payloads. This field is
105+
* populated when `device_view` is set to HOME_TRAIT_ONLY or HOME_TRAIT_AND_SMART_HOME_TRAIT.
106+
* @return value or {@code null} for none
107+
*/
108+
public java.util.Map<String, HomeTraitPayload> getHomeTraitPayload() {
109+
return homeTraitPayload;
110+
}
111+
112+
/**
113+
* Map of device IDs to their Unified Device Data Model (UDDM) trait payloads. This field is
114+
* populated when `device_view` is set to HOME_TRAIT_ONLY or HOME_TRAIT_AND_SMART_HOME_TRAIT.
115+
* @param homeTraitPayload homeTraitPayload or {@code null} for none
116+
*/
117+
public QueryResponsePayload setHomeTraitPayload(java.util.Map<String, HomeTraitPayload> homeTraitPayload) {
118+
this.homeTraitPayload = homeTraitPayload;
119+
return this;
120+
}
121+
89122
@Override
90123
public QueryResponsePayload set(String fieldName, Object value) {
91124
return (QueryResponsePayload) super.set(fieldName, value);

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@
1818

1919
/**
2020
* Request type for the [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService.Rep
21-
* ortStateAndNotification) call. It may include states, notifications, or both. States and
22-
* notifications are defined per `device_id` (for example, "123" and "456" in the following
23-
* example). Example: ```json { "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId":
24-
* "1234", "payload": { "devices": { "states": { "123": { "on": true }, "456": { "on": true,
25-
* "brightness": 10 }, }, } } } ```
21+
* ortStateAndNotification) call. It may include states, notifications, home_traits, home_events, or
22+
* any combination thereof. Smart Home Device Traits (SHDT) `states` and `notifications` are defined
23+
* per `device_id` (for example, "123" and "456" in the following example). Google Home Traits
24+
* `home_traits` and `home_events` are lists of updates or events, each associated with a
25+
* `device_id` (for example, "789" in the following example). Example: ```json { "requestId":
26+
* "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId": "1234", "payload": { "devices": {
27+
* "states": { "123": { "on": true }, "456": { "on": true, "brightness": 10 }, }, "homeTraits": [ {
28+
* "deviceId": "789", "components": [ { "componentId": "main", "traitData": [ { "trait": { "@type":
29+
* "type.googleapis.com/home.graph.v1.OnOffTrait", "onOff": true } } ] } ] } ], "homeEvents": [ {
30+
* "deviceId": "789", "events": [ { "componentId": "main", "events": [ { "eventId": "event-123",
31+
* "eventTime": "2026-01-01T00:00:00Z", "event": { "@type":
32+
* "type.googleapis.com/home.graph.v1.DoorbellPressTrait.DoorbellPressedEvent" } } ] } ] } ] } } }
33+
* ```
2634
*
2735
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2836
* transmitted over HTTP when working with the HomeGraph API. For a detailed explanation see:

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-rev20260523-2.0.0</version>
12-
<name>HomeGraph API v1-rev20260523-2.0.0</name>
11+
<version>v1-rev20260604-2.0.0</version>
12+
<name>HomeGraph API v1-rev20260604-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-rev20260523-2.0.0</version>
25+
<version>v1-rev20260604-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-rev20260523-2.0.0'
38+
implementation 'com.google.apis:google-api-services-homegraph:v1-rev20260604-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)