public static class Storefront.MetaobjectField extends AbstractResponse<Storefront.MetaobjectField>
optimisticData, responseData| Constructor and Description |
|---|
MetaobjectField() |
MetaobjectField(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getKey()
The field key.
|
Storefront.MetafieldReference |
getReference()
A referenced object if the field type is a resource reference.
|
Storefront.MetafieldReferenceConnection |
getReferences()
A list of referenced objects if the field type is a resource reference list.
|
java.lang.String |
getType()
The type name of the field.
|
java.lang.String |
getValue()
The field value.
|
Storefront.MetaobjectField |
setKey(java.lang.String arg) |
Storefront.MetaobjectField |
setReference(Storefront.MetafieldReference arg) |
Storefront.MetaobjectField |
setReferences(Storefront.MetafieldReferenceConnection arg) |
Storefront.MetaobjectField |
setType(java.lang.String arg) |
Storefront.MetaobjectField |
setValue(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic MetaobjectField()
public MetaobjectField(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public java.lang.String getKey()
public Storefront.MetaobjectField setKey(java.lang.String arg)
public Storefront.MetafieldReference getReference()
public Storefront.MetaobjectField setReference(Storefront.MetafieldReference arg)
public Storefront.MetafieldReferenceConnection getReferences()
public Storefront.MetaobjectField setReferences(Storefront.MetafieldReferenceConnection arg)
public java.lang.String getType()
public Storefront.MetaobjectField setType(java.lang.String arg)
public java.lang.String getValue()
public Storefront.MetaobjectField setValue(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.MetaobjectField>