target.apidocs.com.google.api.services.content.model.Table.html Maven / Gradle / Ivy
Table (Content API for Shopping v2-rev20210911-1.32.1)
com.google.api.services.content.model
Class Table
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.Table
-
public final class Table
extends GenericJson
Model definition for Table.
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 Content API for Shopping. 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
Table()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Table
clone()
Headers
getColumnHeaders()
Headers of the table's columns.
String
getName()
Name of the table.
Headers
getRowHeaders()
Headers of the table's rows.
List<Row>
getRows()
The list of rows that constitute the table.
Table
set(String fieldName,
Object value)
Table
setColumnHeaders(Headers columnHeaders)
Headers of the table's columns.
Table
setName(String name)
Name of the table.
Table
setRowHeaders(Headers rowHeaders)
Headers of the table's rows.
Table
setRows(List<Row> rows)
The list of rows that constitute the table.
-
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
-
getColumnHeaders
public Headers getColumnHeaders()
Headers of the table's columns. Optional: if not set then the table has only one dimension.
- Returns:
- value or
null
for none
-
setColumnHeaders
public Table setColumnHeaders(Headers columnHeaders)
Headers of the table's columns. Optional: if not set then the table has only one dimension.
- Parameters:
columnHeaders
- columnHeaders or null
for none
-
getName
public String getName()
Name of the table. Required for subtables, ignored for the main table.
- Returns:
- value or
null
for none
-
setName
public Table setName(String name)
Name of the table. Required for subtables, ignored for the main table.
- Parameters:
name
- name or null
for none
-
getRowHeaders
public Headers getRowHeaders()
Headers of the table's rows. Required.
- Returns:
- value or
null
for none
-
setRowHeaders
public Table setRowHeaders(Headers rowHeaders)
Headers of the table's rows. Required.
- Parameters:
rowHeaders
- rowHeaders or null
for none
-
getRows
public List<Row> getRows()
The list of rows that constitute the table. Must have the same length as `rowHeaders`.
Required.
- Returns:
- value or
null
for none
-
setRows
public Table setRows(List<Row> rows)
The list of rows that constitute the table. Must have the same length as `rowHeaders`.
Required.
- Parameters:
rows
- rows or null
for none
-
set
public Table set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Table clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy