Class _Resource
- java.lang.Object
-
- com.shopify.graphql.support.AbstractResponse<_Resource>
-
- org.topbraidlive.client.java.graphql.platform._Resource
-
- All Implemented Interfaces:
Serializable
public class _Resource extends AbstractResponse<_Resource>
A resource for which only the URI, label and types can be queried.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.shopify.graphql.support.AbstractResponse
optimisticData, responseData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getGraphQlTypeName()
String
getLabel()
A human-readable display label.List<_Resource>
getType()
The type(s) of the resource.ID
getUri()
The URI of the resource._Resource
setLabel(String arg)
_Resource
setType(List<_Resource> arg)
_Resource
setUri(ID arg)
boolean
unwrapsToObject(String key)
-
Methods inherited from class com.shopify.graphql.support.AbstractResponse
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAlias
-
-
-
-
Constructor Detail
-
_Resource
public _Resource()
-
_Resource
public _Resource(com.google.gson.JsonObject fields) throws SchemaViolationError
- Throws:
SchemaViolationError
-
-
Method Detail
-
getGraphQlTypeName
public String getGraphQlTypeName()
-
getUri
public ID getUri()
The URI of the resource.
-
getLabel
public String getLabel()
A human-readable display label.
-
unwrapsToObject
public boolean unwrapsToObject(String key)
- Specified by:
unwrapsToObject
in classAbstractResponse<_Resource>
-
-