
target.apidocs.com.google.api.services.webfonts.model.Webfont.html Maven / Gradle / Ivy
Webfont (Web Fonts Developer API v1-rev20200819-1.32.1)
com.google.api.services.webfonts.model
Class Webfont
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.webfonts.model.Webfont
-
public final class Webfont
extends GenericJson
Metadata describing a family of fonts.
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 Web Fonts Developer API. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Webfont()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Webfont
clone()
String
getCategory()
The category of the font.
String
getFamily()
The name of the font.
Map<String,String>
getFiles()
The font files (with all supported scripts) for each one of the available variants, as a key :
value map.
String
getKind()
This kind represents a webfont object in the webfonts service.
String
getLastModified()
The date (format "yyyy-MM-dd") the font was modified for the last time.
List<String>
getSubsets()
The scripts supported by the font.
List<String>
getVariants()
The available variants for the font.
String
getVersion()
The font version.
Webfont
set(String fieldName,
Object value)
Webfont
setCategory(String category)
The category of the font.
Webfont
setFamily(String family)
The name of the font.
Webfont
setFiles(Map<String,String> files)
The font files (with all supported scripts) for each one of the available variants, as a key :
value map.
Webfont
setKind(String kind)
This kind represents a webfont object in the webfonts service.
Webfont
setLastModified(String lastModified)
The date (format "yyyy-MM-dd") the font was modified for the last time.
Webfont
setSubsets(List<String> subsets)
The scripts supported by the font.
Webfont
setVariants(List<String> variants)
The available variants for the font.
Webfont
setVersion(String version)
The font version.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCategory
public String getCategory()
The category of the font.
- Returns:
- value or
null
for none
-
setCategory
public Webfont setCategory(String category)
The category of the font.
- Parameters:
category
- category or null
for none
-
getFamily
public String getFamily()
The name of the font.
- Returns:
- value or
null
for none
-
setFamily
public Webfont setFamily(String family)
The name of the font.
- Parameters:
family
- family or null
for none
-
getFiles
public Map<String,String> getFiles()
The font files (with all supported scripts) for each one of the available variants, as a key :
value map.
- Returns:
- value or
null
for none
-
setFiles
public Webfont setFiles(Map<String,String> files)
The font files (with all supported scripts) for each one of the available variants, as a key :
value map.
- Parameters:
files
- files or null
for none
-
getKind
public String getKind()
This kind represents a webfont object in the webfonts service.
- Returns:
- value or
null
for none
-
setKind
public Webfont setKind(String kind)
This kind represents a webfont object in the webfonts service.
- Parameters:
kind
- kind or null
for none
-
getLastModified
public String getLastModified()
The date (format "yyyy-MM-dd") the font was modified for the last time.
- Returns:
- value or
null
for none
-
setLastModified
public Webfont setLastModified(String lastModified)
The date (format "yyyy-MM-dd") the font was modified for the last time.
- Parameters:
lastModified
- lastModified or null
for none
-
getSubsets
public List<String> getSubsets()
The scripts supported by the font.
- Returns:
- value or
null
for none
-
setSubsets
public Webfont setSubsets(List<String> subsets)
The scripts supported by the font.
- Parameters:
subsets
- subsets or null
for none
-
getVariants
public List<String> getVariants()
The available variants for the font.
- Returns:
- value or
null
for none
-
setVariants
public Webfont setVariants(List<String> variants)
The available variants for the font.
- Parameters:
variants
- variants or null
for none
-
getVersion
public String getVersion()
The font version.
- Returns:
- value or
null
for none
-
setVersion
public Webfont setVersion(String version)
The font version.
- Parameters:
version
- version or null
for none
-
set
public Webfont set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Webfont clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy