public static class Storefront.GenericFile extends AbstractResponse<Storefront.GenericFile> implements Storefront.MetafieldReference, Storefront.Node
optimisticData, responseData| Constructor and Description |
|---|
GenericFile() |
GenericFile(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlt()
A word or phrase to indicate the contents of a file.
|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
A globally-unique ID.
|
java.lang.String |
getMimeType()
The MIME type of the file.
|
java.lang.Integer |
getOriginalFileSize()
The size of the original file in bytes.
|
Storefront.Image |
getPreviewImage()
The preview image for the file.
|
java.lang.String |
getUrl()
The URL of the file.
|
Storefront.GenericFile |
setAlt(java.lang.String arg) |
Storefront.GenericFile |
setMimeType(java.lang.String arg) |
Storefront.GenericFile |
setOriginalFileSize(java.lang.Integer arg) |
Storefront.GenericFile |
setPreviewImage(Storefront.Image arg) |
Storefront.GenericFile |
setUrl(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic GenericFile()
public GenericFile(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.MetafieldReferencegetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic java.lang.String getAlt()
public Storefront.GenericFile setAlt(java.lang.String arg)
public ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic java.lang.String getMimeType()
public Storefront.GenericFile setMimeType(java.lang.String arg)
public java.lang.Integer getOriginalFileSize()
public Storefront.GenericFile setOriginalFileSize(java.lang.Integer arg)
public Storefront.Image getPreviewImage()
public Storefront.GenericFile setPreviewImage(Storefront.Image arg)
public java.lang.String getUrl()
public Storefront.GenericFile setUrl(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.GenericFile>