1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633
|
/*
* 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://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.sheets.v4.model;
/**
* The specifications of a chart.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ChartSpec extends com.google.api.client.json.GenericJson {
/**
* The alternative text that describes the chart. This is often used for accessibility.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String altText;
/**
* The background color of the entire chart. Not applicable to Org charts.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Color backgroundColor;
/**
* The background color of the entire chart. Not applicable to Org charts. If background_color is
* also set, this field takes precedence.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ColorStyle backgroundColorStyle;
/**
* A basic chart specification, can be one of many kinds of charts. See BasicChartType for the
* list of all charts this supports.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private BasicChartSpec basicChart;
/**
* A bubble chart specification.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private BubbleChartSpec bubbleChart;
/**
* A candlestick chart specification.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private CandlestickChartSpec candlestickChart;
/**
* If present, the field contains data source chart specific properties.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DataSourceChartProperties dataSourceChartProperties;
/**
* The filters applied to the source data of the chart. Only supported for data source charts.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<FilterSpec> filterSpecs;
/**
* The name of the font to use by default for all chart text (e.g. title, axis labels, legend). If
* a font is specified for a specific part of the chart it will override this font name.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String fontName;
/**
* Determines how the charts will use hidden rows or columns.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String hiddenDimensionStrategy;
/**
* A histogram chart specification.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private HistogramChartSpec histogramChart;
/**
* True to make a chart fill the entire space in which it's rendered with minimum padding. False
* to use the default padding. (Not applicable to Geo and Org charts.)
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean maximized;
/**
* An org chart specification.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OrgChartSpec orgChart;
/**
* A pie chart specification.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PieChartSpec pieChart;
/**
* A scorecard chart specification.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ScorecardChartSpec scorecardChart;
/**
* The order to sort the chart data by. Only a single sort spec is supported. Only supported for
* data source charts.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<SortSpec> sortSpecs;
/**
* The subtitle of the chart.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String subtitle;
/**
* The subtitle text format. Strikethrough, underline, and link are not supported.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TextFormat subtitleTextFormat;
/**
* The subtitle text position. This field is optional.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TextPosition subtitleTextPosition;
/**
* The title of the chart.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String title;
/**
* The title text format. Strikethrough, underline, and link are not supported.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TextFormat titleTextFormat;
/**
* The title text position. This field is optional.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TextPosition titleTextPosition;
/**
* A treemap chart specification.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TreemapChartSpec treemapChart;
/**
* A waterfall chart specification.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private WaterfallChartSpec waterfallChart;
/**
* The alternative text that describes the chart. This is often used for accessibility.
* @return value or {@code null} for none
*/
public java.lang.String getAltText() {
return altText;
}
/**
* The alternative text that describes the chart. This is often used for accessibility.
* @param altText altText or {@code null} for none
*/
public ChartSpec setAltText(java.lang.String altText) {
this.altText = altText;
return this;
}
/**
* The background color of the entire chart. Not applicable to Org charts.
* @return value or {@code null} for none
*/
public Color getBackgroundColor() {
return backgroundColor;
}
/**
* The background color of the entire chart. Not applicable to Org charts.
* @param backgroundColor backgroundColor or {@code null} for none
*/
public ChartSpec setBackgroundColor(Color backgroundColor) {
this.backgroundColor = backgroundColor;
return this;
}
/**
* The background color of the entire chart. Not applicable to Org charts. If background_color is
* also set, this field takes precedence.
* @return value or {@code null} for none
*/
public ColorStyle getBackgroundColorStyle() {
return backgroundColorStyle;
}
/**
* The background color of the entire chart. Not applicable to Org charts. If background_color is
* also set, this field takes precedence.
* @param backgroundColorStyle backgroundColorStyle or {@code null} for none
*/
public ChartSpec setBackgroundColorStyle(ColorStyle backgroundColorStyle) {
this.backgroundColorStyle = backgroundColorStyle;
return this;
}
/**
* A basic chart specification, can be one of many kinds of charts. See BasicChartType for the
* list of all charts this supports.
* @return value or {@code null} for none
*/
public BasicChartSpec getBasicChart() {
return basicChart;
}
/**
* A basic chart specification, can be one of many kinds of charts. See BasicChartType for the
* list of all charts this supports.
* @param basicChart basicChart or {@code null} for none
*/
public ChartSpec setBasicChart(BasicChartSpec basicChart) {
this.basicChart = basicChart;
return this;
}
/**
* A bubble chart specification.
* @return value or {@code null} for none
*/
public BubbleChartSpec getBubbleChart() {
return bubbleChart;
}
/**
* A bubble chart specification.
* @param bubbleChart bubbleChart or {@code null} for none
*/
public ChartSpec setBubbleChart(BubbleChartSpec bubbleChart) {
this.bubbleChart = bubbleChart;
return this;
}
/**
* A candlestick chart specification.
* @return value or {@code null} for none
*/
public CandlestickChartSpec getCandlestickChart() {
return candlestickChart;
}
/**
* A candlestick chart specification.
* @param candlestickChart candlestickChart or {@code null} for none
*/
public ChartSpec setCandlestickChart(CandlestickChartSpec candlestickChart) {
this.candlestickChart = candlestickChart;
return this;
}
/**
* If present, the field contains data source chart specific properties.
* @return value or {@code null} for none
*/
public DataSourceChartProperties getDataSourceChartProperties() {
return dataSourceChartProperties;
}
/**
* If present, the field contains data source chart specific properties.
* @param dataSourceChartProperties dataSourceChartProperties or {@code null} for none
*/
public ChartSpec setDataSourceChartProperties(DataSourceChartProperties dataSourceChartProperties) {
this.dataSourceChartProperties = dataSourceChartProperties;
return this;
}
/**
* The filters applied to the source data of the chart. Only supported for data source charts.
* @return value or {@code null} for none
*/
public java.util.List<FilterSpec> getFilterSpecs() {
return filterSpecs;
}
/**
* The filters applied to the source data of the chart. Only supported for data source charts.
* @param filterSpecs filterSpecs or {@code null} for none
*/
public ChartSpec setFilterSpecs(java.util.List<FilterSpec> filterSpecs) {
this.filterSpecs = filterSpecs;
return this;
}
/**
* The name of the font to use by default for all chart text (e.g. title, axis labels, legend). If
* a font is specified for a specific part of the chart it will override this font name.
* @return value or {@code null} for none
*/
public java.lang.String getFontName() {
return fontName;
}
/**
* The name of the font to use by default for all chart text (e.g. title, axis labels, legend). If
* a font is specified for a specific part of the chart it will override this font name.
* @param fontName fontName or {@code null} for none
*/
public ChartSpec setFontName(java.lang.String fontName) {
this.fontName = fontName;
return this;
}
/**
* Determines how the charts will use hidden rows or columns.
* @return value or {@code null} for none
*/
public java.lang.String getHiddenDimensionStrategy() {
return hiddenDimensionStrategy;
}
/**
* Determines how the charts will use hidden rows or columns.
* @param hiddenDimensionStrategy hiddenDimensionStrategy or {@code null} for none
*/
public ChartSpec setHiddenDimensionStrategy(java.lang.String hiddenDimensionStrategy) {
this.hiddenDimensionStrategy = hiddenDimensionStrategy;
return this;
}
/**
* A histogram chart specification.
* @return value or {@code null} for none
*/
public HistogramChartSpec getHistogramChart() {
return histogramChart;
}
/**
* A histogram chart specification.
* @param histogramChart histogramChart or {@code null} for none
*/
public ChartSpec setHistogramChart(HistogramChartSpec histogramChart) {
this.histogramChart = histogramChart;
return this;
}
/**
* True to make a chart fill the entire space in which it's rendered with minimum padding. False
* to use the default padding. (Not applicable to Geo and Org charts.)
* @return value or {@code null} for none
*/
public java.lang.Boolean getMaximized() {
return maximized;
}
/**
* True to make a chart fill the entire space in which it's rendered with minimum padding. False
* to use the default padding. (Not applicable to Geo and Org charts.)
* @param maximized maximized or {@code null} for none
*/
public ChartSpec setMaximized(java.lang.Boolean maximized) {
this.maximized = maximized;
return this;
}
/**
* An org chart specification.
* @return value or {@code null} for none
*/
public OrgChartSpec getOrgChart() {
return orgChart;
}
/**
* An org chart specification.
* @param orgChart orgChart or {@code null} for none
*/
public ChartSpec setOrgChart(OrgChartSpec orgChart) {
this.orgChart = orgChart;
return this;
}
/**
* A pie chart specification.
* @return value or {@code null} for none
*/
public PieChartSpec getPieChart() {
return pieChart;
}
/**
* A pie chart specification.
* @param pieChart pieChart or {@code null} for none
*/
public ChartSpec setPieChart(PieChartSpec pieChart) {
this.pieChart = pieChart;
return this;
}
/**
* A scorecard chart specification.
* @return value or {@code null} for none
*/
public ScorecardChartSpec getScorecardChart() {
return scorecardChart;
}
/**
* A scorecard chart specification.
* @param scorecardChart scorecardChart or {@code null} for none
*/
public ChartSpec setScorecardChart(ScorecardChartSpec scorecardChart) {
this.scorecardChart = scorecardChart;
return this;
}
/**
* The order to sort the chart data by. Only a single sort spec is supported. Only supported for
* data source charts.
* @return value or {@code null} for none
*/
public java.util.List<SortSpec> getSortSpecs() {
return sortSpecs;
}
/**
* The order to sort the chart data by. Only a single sort spec is supported. Only supported for
* data source charts.
* @param sortSpecs sortSpecs or {@code null} for none
*/
public ChartSpec setSortSpecs(java.util.List<SortSpec> sortSpecs) {
this.sortSpecs = sortSpecs;
return this;
}
/**
* The subtitle of the chart.
* @return value or {@code null} for none
*/
public java.lang.String getSubtitle() {
return subtitle;
}
/**
* The subtitle of the chart.
* @param subtitle subtitle or {@code null} for none
*/
public ChartSpec setSubtitle(java.lang.String subtitle) {
this.subtitle = subtitle;
return this;
}
/**
* The subtitle text format. Strikethrough, underline, and link are not supported.
* @return value or {@code null} for none
*/
public TextFormat getSubtitleTextFormat() {
return subtitleTextFormat;
}
/**
* The subtitle text format. Strikethrough, underline, and link are not supported.
* @param subtitleTextFormat subtitleTextFormat or {@code null} for none
*/
public ChartSpec setSubtitleTextFormat(TextFormat subtitleTextFormat) {
this.subtitleTextFormat = subtitleTextFormat;
return this;
}
/**
* The subtitle text position. This field is optional.
* @return value or {@code null} for none
*/
public TextPosition getSubtitleTextPosition() {
return subtitleTextPosition;
}
/**
* The subtitle text position. This field is optional.
* @param subtitleTextPosition subtitleTextPosition or {@code null} for none
*/
public ChartSpec setSubtitleTextPosition(TextPosition subtitleTextPosition) {
this.subtitleTextPosition = subtitleTextPosition;
return this;
}
/**
* The title of the chart.
* @return value or {@code null} for none
*/
public java.lang.String getTitle() {
return title;
}
/**
* The title of the chart.
* @param title title or {@code null} for none
*/
public ChartSpec setTitle(java.lang.String title) {
this.title = title;
return this;
}
/**
* The title text format. Strikethrough, underline, and link are not supported.
* @return value or {@code null} for none
*/
public TextFormat getTitleTextFormat() {
return titleTextFormat;
}
/**
* The title text format. Strikethrough, underline, and link are not supported.
* @param titleTextFormat titleTextFormat or {@code null} for none
*/
public ChartSpec setTitleTextFormat(TextFormat titleTextFormat) {
this.titleTextFormat = titleTextFormat;
return this;
}
/**
* The title text position. This field is optional.
* @return value or {@code null} for none
*/
public TextPosition getTitleTextPosition() {
return titleTextPosition;
}
/**
* The title text position. This field is optional.
* @param titleTextPosition titleTextPosition or {@code null} for none
*/
public ChartSpec setTitleTextPosition(TextPosition titleTextPosition) {
this.titleTextPosition = titleTextPosition;
return this;
}
/**
* A treemap chart specification.
* @return value or {@code null} for none
*/
public TreemapChartSpec getTreemapChart() {
return treemapChart;
}
/**
* A treemap chart specification.
* @param treemapChart treemapChart or {@code null} for none
*/
public ChartSpec setTreemapChart(TreemapChartSpec treemapChart) {
this.treemapChart = treemapChart;
return this;
}
/**
* A waterfall chart specification.
* @return value or {@code null} for none
*/
public WaterfallChartSpec getWaterfallChart() {
return waterfallChart;
}
/**
* A waterfall chart specification.
* @param waterfallChart waterfallChart or {@code null} for none
*/
public ChartSpec setWaterfallChart(WaterfallChartSpec waterfallChart) {
this.waterfallChart = waterfallChart;
return this;
}
@Override
public ChartSpec set(String fieldName, Object value) {
return (ChartSpec) super.set(fieldName, value);
}
@Override
public ChartSpec clone() {
return (ChartSpec) super.clone();
}
}
|