public final class DeviceNames
extends com.google.api.client.json.GenericJson
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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DeviceNames() |
Modifier and Type | Method and Description |
---|---|
DeviceNames |
clone() |
List<String> |
getDefaultNames()
List of names provided by the manufacturer rather than the user, such as serial numbers, SKUs,
etc.
|
String |
getName()
Primary name of the device, generally provided by the user.
|
List<String> |
getNicknames()
Additional names provided by the user for the device.
|
DeviceNames |
set(String fieldName,
Object value) |
DeviceNames |
setDefaultNames(List<String> defaultNames)
List of names provided by the manufacturer rather than the user, such as serial numbers, SKUs,
etc.
|
DeviceNames |
setName(String name)
Primary name of the device, generally provided by the user.
|
DeviceNames |
setNicknames(List<String> nicknames)
Additional names provided by the user for the device.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<String> getDefaultNames()
null
for nonepublic DeviceNames setDefaultNames(List<String> defaultNames)
defaultNames
- defaultNames or null
for nonepublic String getName()
null
for nonepublic DeviceNames setName(String name)
name
- name or null
for nonepublic List<String> getNicknames()
null
for nonepublic DeviceNames setNicknames(List<String> nicknames)
nicknames
- nicknames or null
for nonepublic DeviceNames set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public DeviceNames clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.