public static class Storefront.Location extends AbstractResponse<Storefront.Location> implements Storefront.HasMetafields, Storefront.MetafieldParentResource, Storefront.Node
optimisticData, responseData| Modifier and Type | Method and Description |
|---|---|
Storefront.LocationAddress |
getAddress()
The address of the location.
|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
A globally-unique ID.
|
Storefront.Metafield |
getMetafield()
Returns a metafield found by namespace and key.
|
java.util.List<Storefront.Metafield> |
getMetafields()
The metafields associated with the resource matching the supplied list of namespaces and keys.
|
java.lang.String |
getName()
The name of the location.
|
Storefront.Location |
setAddress(Storefront.LocationAddress arg) |
Storefront.Location |
setMetafield(Storefront.Metafield arg) |
Storefront.Location |
setMetafields(java.util.List<Storefront.Metafield> arg) |
Storefront.Location |
setName(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Location()
public Location(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.HasMetafieldsgetGraphQlTypeName in interface Storefront.MetafieldParentResourcegetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic Storefront.LocationAddress getAddress()
public Storefront.Location setAddress(Storefront.LocationAddress arg)
public ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic Storefront.Metafield getMetafield()
getMetafield in interface Storefront.HasMetafieldspublic Storefront.Location setMetafield(Storefront.Metafield arg)
public java.util.List<Storefront.Metafield> getMetafields()
getMetafields in interface Storefront.HasMetafieldspublic Storefront.Location setMetafields(java.util.List<Storefront.Metafield> arg)
public java.lang.String getName()
public Storefront.Location setName(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Location>