public final class Webfont
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 Google Fonts Developer 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
Constructor and Description |
---|
Webfont() |
Modifier and Type | Method and Description |
---|---|
Webfont |
clone() |
java.lang.String |
getCategory()
The category of the font.
|
java.lang.String |
getFamily()
The name of the font.
|
java.util.Map<java.lang.String,java.lang.String> |
getFiles()
The font files (with all supported scripts) for each one of the available variants, as a key :
value map.
|
java.lang.String |
getKind()
This kind represents a webfont object in the webfonts service.
|
com.google.api.client.util.DateTime |
getLastModified()
The date (format "yyyy-MM-dd") the font was modified for the last time.
|
java.util.List<java.lang.String> |
getSubsets()
The scripts supported by the font.
|
java.util.List<java.lang.String> |
getVariants()
The available variants for the font.
|
java.lang.String |
getVersion()
The font version.
|
Webfont |
set(java.lang.String fieldName,
java.lang.Object value) |
Webfont |
setCategory(java.lang.String category)
The category of the font.
|
Webfont |
setFamily(java.lang.String family)
The name of the font.
|
Webfont |
setFiles(java.util.Map<java.lang.String,java.lang.String> files)
The font files (with all supported scripts) for each one of the available variants, as a key :
value map.
|
Webfont |
setKind(java.lang.String kind)
This kind represents a webfont object in the webfonts service.
|
Webfont |
setLastModified(com.google.api.client.util.DateTime lastModified)
The date (format "yyyy-MM-dd") the font was modified for the last time.
|
Webfont |
setSubsets(java.util.List<java.lang.String> subsets)
The scripts supported by the font.
|
Webfont |
setVariants(java.util.List<java.lang.String> variants)
The available variants for the font.
|
Webfont |
setVersion(java.lang.String version)
The font version.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getCategory()
null
for nonepublic Webfont setCategory(java.lang.String category)
category
- category or null
for nonepublic java.lang.String getFamily()
null
for nonepublic Webfont setFamily(java.lang.String family)
family
- family or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getFiles()
null
for nonepublic Webfont setFiles(java.util.Map<java.lang.String,java.lang.String> files)
files
- files or null
for nonepublic java.lang.String getKind()
null
for nonepublic Webfont setKind(java.lang.String kind)
kind
- kind or null
for nonepublic com.google.api.client.util.DateTime getLastModified()
null
for nonepublic Webfont setLastModified(com.google.api.client.util.DateTime lastModified)
lastModified
- lastModified or null
for nonepublic java.util.List<java.lang.String> getSubsets()
null
for nonepublic Webfont setSubsets(java.util.List<java.lang.String> subsets)
subsets
- subsets or null
for nonepublic java.util.List<java.lang.String> getVariants()
null
for nonepublic Webfont setVariants(java.util.List<java.lang.String> variants)
variants
- variants or null
for nonepublic java.lang.String getVersion()
null
for nonepublic Webfont setVersion(java.lang.String version)
version
- version or null
for nonepublic Webfont set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Webfont clone()
clone
in class com.google.api.client.json.GenericJson