com.google.api.services.sheets.v4.model.TextFormat Maven / Gradle / Ivy
/*
* 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: 2017-01-11 18:31:16 UTC)
* on 2017-01-26 at 19:22:02 UTC
* Modify at your own risk.
*/
package com.google.api.services.sheets.v4.model;
/**
* The format of a run of text in a cell. Absent values indicate that the field isn't specified.
*
* 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 Sheets API. For a detailed explanation see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class TextFormat extends com.google.api.client.json.GenericJson {
/**
* True if the text is bold.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean bold;
/**
* The font family.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String fontFamily;
/**
* The size of the font.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer fontSize;
/**
* The foreground color of the text.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Color foregroundColor;
/**
* True if the text is italicized.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean italic;
/**
* True if the text has a strikethrough.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean strikethrough;
/**
* True if the text is underlined.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean underline;
/**
* True if the text is bold.
* @return value or {@code null} for none
*/
public java.lang.Boolean getBold() {
return bold;
}
/**
* True if the text is bold.
* @param bold bold or {@code null} for none
*/
public TextFormat setBold(java.lang.Boolean bold) {
this.bold = bold;
return this;
}
/**
* The font family.
* @return value or {@code null} for none
*/
public java.lang.String getFontFamily() {
return fontFamily;
}
/**
* The font family.
* @param fontFamily fontFamily or {@code null} for none
*/
public TextFormat setFontFamily(java.lang.String fontFamily) {
this.fontFamily = fontFamily;
return this;
}
/**
* The size of the font.
* @return value or {@code null} for none
*/
public java.lang.Integer getFontSize() {
return fontSize;
}
/**
* The size of the font.
* @param fontSize fontSize or {@code null} for none
*/
public TextFormat setFontSize(java.lang.Integer fontSize) {
this.fontSize = fontSize;
return this;
}
/**
* The foreground color of the text.
* @return value or {@code null} for none
*/
public Color getForegroundColor() {
return foregroundColor;
}
/**
* The foreground color of the text.
* @param foregroundColor foregroundColor or {@code null} for none
*/
public TextFormat setForegroundColor(Color foregroundColor) {
this.foregroundColor = foregroundColor;
return this;
}
/**
* True if the text is italicized.
* @return value or {@code null} for none
*/
public java.lang.Boolean getItalic() {
return italic;
}
/**
* True if the text is italicized.
* @param italic italic or {@code null} for none
*/
public TextFormat setItalic(java.lang.Boolean italic) {
this.italic = italic;
return this;
}
/**
* True if the text has a strikethrough.
* @return value or {@code null} for none
*/
public java.lang.Boolean getStrikethrough() {
return strikethrough;
}
/**
* True if the text has a strikethrough.
* @param strikethrough strikethrough or {@code null} for none
*/
public TextFormat setStrikethrough(java.lang.Boolean strikethrough) {
this.strikethrough = strikethrough;
return this;
}
/**
* True if the text is underlined.
* @return value or {@code null} for none
*/
public java.lang.Boolean getUnderline() {
return underline;
}
/**
* True if the text is underlined.
* @param underline underline or {@code null} for none
*/
public TextFormat setUnderline(java.lang.Boolean underline) {
this.underline = underline;
return this;
}
@Override
public TextFormat set(String fieldName, Object value) {
return (TextFormat) super.set(fieldName, value);
}
@Override
public TextFormat clone() {
return (TextFormat) super.clone();
}
}