Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010 Google Inc.
   *
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
   * in compliance with the License. You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software distributed under the License
  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  * or implied. See the License for the specific language governing permissions and limitations under
  * the License.
  */
 /*
  * This code was generated by https://code.google.com/p/google-apis-client-generator/
  * (build: 2014-07-09 17:08:39 UTC)
  * on 2014-07-14 at 23:00:25 UTC 
  * Modify at your own risk.
  */
 
 package com.google.api.services.webfonts.model;

Model definition for Webfont.

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: http://code.google.com/p/google-http-java-client/wiki/JSON

Author(s):
Google, Inc.
 
 @SuppressWarnings("javadoc")
 public final class Webfont extends com.google.api.client.json.GenericJson {

  
The category of the font. The value may be null.
 
   private java.lang.String category;

  
The name of the font. The value may be null.
 
   private java.lang.String family;

  
The font files (with all supported scripts) for each one of the available variants, as a key : value map. The value may be null.
 
   private java.util.Map<Stringjava.lang.Stringfiles;

  
This kind represents a webfont object in the webfonts service. The value may be null.
 
   private java.lang.String kind;

  
The date (format "yyyy-MM-dd") the font was modified for the last time. The value may be null.
 
The scripts supported by the font. The value may be null.
 
   private java.util.List<java.lang.Stringsubsets;

  
The available variants for the font. The value may be null.
 
   private java.util.List<java.lang.Stringvariants;

  
The font version. The value may be null.
 
   private java.lang.String version;

  
The category of the font.

Returns:
value or null for none
 
   public java.lang.String getCategory() {
     return ;
  }

  
The category of the font.

Parameters:
category category or null for none
  public Webfont setCategory(java.lang.String category) {
    this. = category;
    return this;
  }

  
The name of the font.

Returns:
value or null for none
  public java.lang.String getFamily() {
    return ;
  }

  
The name of the font.

Parameters:
family family or null for none
  public Webfont setFamily(java.lang.String family) {
    this. = family;
    return this;
  }

  
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
  public java.util.Map<Stringjava.lang.StringgetFiles() {
    return ;
  }

  
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
  public Webfont setFiles(java.util.Map<Stringjava.lang.Stringfiles) {
    this. = files;
    return this;
  }

  
This kind represents a webfont object in the webfonts service.

Returns:
value or null for none
  public java.lang.String getKind() {
    return ;
  }

  
This kind represents a webfont object in the webfonts service.

Parameters:
kind kind or null for none
  public Webfont setKind(java.lang.String kind) {
    this. = kind;
    return this;
  }

  
The date (format "yyyy-MM-dd") the font was modified for the last time.

Returns:
value or null for none
    return ;
  }

  
The date (format "yyyy-MM-dd") the font was modified for the last time.

Parameters:
lastModified lastModified or null for none
  public Webfont setLastModified(com.google.api.client.util.DateTime lastModified) {
    this. = lastModified;
    return this;
  }

  
The scripts supported by the font.

Returns:
value or null for none
    return ;
  }

  
The scripts supported by the font.

Parameters:
subsets subsets or null for none
  public Webfont setSubsets(java.util.List<java.lang.Stringsubsets) {
    this. = subsets;
    return this;
  }

  
The available variants for the font.

Returns:
value or null for none
    return ;
  }

  
The available variants for the font.

Parameters:
variants variants or null for none
  public Webfont setVariants(java.util.List<java.lang.Stringvariants) {
    this. = variants;
    return this;
  }

  
The font version.

Returns:
value or null for none
  public java.lang.String getVersion() {
    return ;
  }

  
The font version.

Parameters:
version version or null for none
  public Webfont setVersion(java.lang.String version) {
    this. = version;
    return this;
  }
  public Webfont set(String fieldNameObject value) {
    return (Webfontsuper.set(fieldNamevalue);
  }
  public Webfont clone() {
    return (Webfontsuper.clone();
  }
New to GrepCode? Check out our FAQ X