Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-homegraph/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-homegraph</artifactId>
<version>v1-rev20261020-2.9.2</version>
<version>v1-rev20261023-2.9.2</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-homegraph:v1-rev20261020-2.9.2'
implementation 'com.google.apis:google-api-services-homegraph:v1-rev20261023-2.9.2'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public final class EventData extends com.google.api.client.json.GenericJson {

/**
* Required. The actual event payload.
* Optional. The actual event payload.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand All @@ -51,15 +51,22 @@ public final class EventData extends com.google.api.client.json.GenericJson {
private String eventTime;

/**
* Required. The actual event payload.
* Optional. Contains the dynamic JSON trait event payload.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private JsonTraitEvent jsonTraitEvent;

/**
* Optional. The actual event payload.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.Object> getEvent() {
return event;
}

/**
* Required. The actual event payload.
* Optional. The actual event payload.
* @param event event or {@code null} for none
*/
public EventData setEvent(java.util.Map<String, java.lang.Object> event) {
Expand Down Expand Up @@ -101,6 +108,23 @@ public EventData setEventTime(String eventTime) {
return this;
}

/**
* Optional. Contains the dynamic JSON trait event payload.
* @return value or {@code null} for none
*/
public JsonTraitEvent getJsonTraitEvent() {
return jsonTraitEvent;
}

/**
* Optional. Contains the dynamic JSON trait event payload.
* @param jsonTraitEvent jsonTraitEvent or {@code null} for none
*/
public EventData setJsonTraitEvent(JsonTraitEvent jsonTraitEvent) {
this.jsonTraitEvent = jsonTraitEvent;
return this;
}

@Override
public EventData set(String fieldName, Object value) {
return (EventData) super.set(fieldName, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public final class Events extends com.google.api.client.json.GenericJson {

/**
* Optional. The ID of the provider component if the events are associated with a specific
* component. Optional for WHDM events, required for UDDM events.
* component. Optional for WHDM events, required for UDDM and JSON events.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand All @@ -52,7 +52,7 @@ public final class Events extends com.google.api.client.json.GenericJson {

/**
* Optional. The ID of the provider component if the events are associated with a specific
* component. Optional for WHDM events, required for UDDM events.
* component. Optional for WHDM events, required for UDDM and JSON events.
* @return value or {@code null} for none
*/
public java.lang.String getComponentId() {
Expand All @@ -61,7 +61,7 @@ public java.lang.String getComponentId() {

/**
* Optional. The ID of the provider component if the events are associated with a specific
* component. Optional for WHDM events, required for UDDM events.
* component. Optional for WHDM events, required for UDDM and JSON events.
* @param componentId componentId or {@code null} for none
*/
public Events setComponentId(java.lang.String componentId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.google.api.services.homegraph.v1.model;

/**
* Container for UDDM trait data associated with a device.
* Container for UDDM or JSON trait data associated with a device.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the HomeGraph API. For a detailed explanation see:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.homegraph.v1.model;

/**
* Dynamic JSON event payload conforming to `json_trait_schema.md`.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the HomeGraph API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class JsonTraitEvent extends com.google.api.client.json.GenericJson {

/**
* Optional. Event payload fields conforming to the event's registered JSON Schema.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map<String, java.lang.Object> data;

/**
* Required. Fully qualified event ID: `.` (e.g., `matter.doorLock.lockOperation`,
* `ghp.acme.warranty.claimUpdated`).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;

/**
* Optional. Event payload fields conforming to the event's registered JSON Schema.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.Object> getData() {
return data;
}

/**
* Optional. Event payload fields conforming to the event's registered JSON Schema.
* @param data data or {@code null} for none
*/
public JsonTraitEvent setData(java.util.Map<String, java.lang.Object> data) {
this.data = data;
return this;
}

/**
* Required. Fully qualified event ID: `.` (e.g., `matter.doorLock.lockOperation`,
* `ghp.acme.warranty.claimUpdated`).
* @return value or {@code null} for none
*/
public java.lang.String getId() {
return id;
}

/**
* Required. Fully qualified event ID: `.` (e.g., `matter.doorLock.lockOperation`,
* `ghp.acme.warranty.claimUpdated`).
* @param id id or {@code null} for none
*/
public JsonTraitEvent setId(java.lang.String id) {
this.id = id;
return this;
}

@Override
public JsonTraitEvent set(String fieldName, Object value) {
return (JsonTraitEvent) super.set(fieldName, value);
}

@Override
public JsonTraitEvent clone() {
return (JsonTraitEvent) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class QueryRequest extends com.google.api.client.json.GenericJson {
/**
* Optional. Specifies the type of device data to be returned in the response. This allows callers
* to request traditional Smart Home traits, Unified Device Data Model (UDDM) traits, or both. If
* unspecified, defaults to SMART_HOME_TRAIT_ONLY.
* unspecified, defaults to `SMART_HOME_TRAIT_ONLY`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -86,7 +86,7 @@ public QueryRequest setAgentUserId(java.lang.String agentUserId) {
/**
* Optional. Specifies the type of device data to be returned in the response. This allows callers
* to request traditional Smart Home traits, Unified Device Data Model (UDDM) traits, or both. If
* unspecified, defaults to SMART_HOME_TRAIT_ONLY.
* unspecified, defaults to `SMART_HOME_TRAIT_ONLY`.
* @return value or {@code null} for none
*/
public java.lang.String getDeviceView() {
Expand All @@ -96,7 +96,7 @@ public java.lang.String getDeviceView() {
/**
* Optional. Specifies the type of device data to be returned in the response. This allows callers
* to request traditional Smart Home traits, Unified Device Data Model (UDDM) traits, or both. If
* unspecified, defaults to SMART_HOME_TRAIT_ONLY.
* unspecified, defaults to `SMART_HOME_TRAIT_ONLY`.
* @param deviceView deviceView or {@code null} for none
*/
public QueryRequest setDeviceView(java.lang.String deviceView) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ public final class QueryResponsePayload extends com.google.api.client.json.Gener
private java.util.Map<String, java.util.Map<String, java.lang.Object>> devices;

/**
* Map of device IDs to their Unified Device Data Model (UDDM) trait payloads. This field is
* populated when `device_view` is set to HOME_TRAIT_ONLY or HOME_TRAIT_AND_SMART_HOME_TRAIT.
* Map of device IDs to their Unified Device Data Model (UDDM) or JSON trait payloads. This field
* is populated when `device_view` is set to `HOME_TRAIT_ONLY`, `HOME_TRAIT_AND_SMART_HOME_TRAIT`,
* or `JSON_TRAIT_ONLY`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -101,17 +102,19 @@ public QueryResponsePayload setDevices(java.util.Map<String, java.util.Map<Strin
}

/**
* Map of device IDs to their Unified Device Data Model (UDDM) trait payloads. This field is
* populated when `device_view` is set to HOME_TRAIT_ONLY or HOME_TRAIT_AND_SMART_HOME_TRAIT.
* Map of device IDs to their Unified Device Data Model (UDDM) or JSON trait payloads. This field
* is populated when `device_view` is set to `HOME_TRAIT_ONLY`, `HOME_TRAIT_AND_SMART_HOME_TRAIT`,
* or `JSON_TRAIT_ONLY`.
* @return value or {@code null} for none
*/
public java.util.Map<String, HomeTraitPayload> getHomeTraitPayload() {
return homeTraitPayload;
}

/**
* Map of device IDs to their Unified Device Data Model (UDDM) trait payloads. This field is
* populated when `device_view` is set to HOME_TRAIT_ONLY or HOME_TRAIT_AND_SMART_HOME_TRAIT.
* Map of device IDs to their Unified Device Data Model (UDDM) or JSON trait payloads. This field
* is populated when `device_view` is set to `HOME_TRAIT_ONLY`, `HOME_TRAIT_AND_SMART_HOME_TRAIT`,
* or `JSON_TRAIT_ONLY`.
* @param homeTraitPayload homeTraitPayload or {@code null} for none
*/
public QueryResponsePayload setHomeTraitPayload(java.util.Map<String, HomeTraitPayload> homeTraitPayload) {
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-homegraph/v1/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-homegraph</artifactId>
<version>v1-rev20261020-2.9.2</version>
<name>HomeGraph API v1-rev20261020-2.9.2</name>
<version>v1-rev20261023-2.9.2</version>
<name>HomeGraph API v1-rev20261023-2.9.2</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-homegraph/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-homegraph</artifactId>
<version>v1-rev20261020-2.9.2</version>
<version>v1-rev20261023-2.9.2</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-homegraph:v1-rev20261020-2.9.2'
implementation 'com.google.apis:google-api-services-homegraph:v1-rev20261023-2.9.2'
}
```

Expand Down
Loading