public final class PageInfo
extends com.google.api.client.json.GenericJson
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 YouTube Data API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
PageInfo() |
Modifier and Type | Method and Description |
---|---|
PageInfo |
clone() |
java.lang.Integer |
getResultsPerPage()
The number of results included in the API response.
|
java.lang.Integer |
getTotalResults()
The total number of results in the result set.
|
PageInfo |
set(java.lang.String fieldName,
java.lang.Object value) |
PageInfo |
setResultsPerPage(java.lang.Integer resultsPerPage)
The number of results included in the API response.
|
PageInfo |
setTotalResults(java.lang.Integer totalResults)
The total number of results in the result set.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.Integer getResultsPerPage()
null
for nonepublic PageInfo setResultsPerPage(java.lang.Integer resultsPerPage)
resultsPerPage
- resultsPerPage or null
for nonepublic java.lang.Integer getTotalResults()
null
for nonepublic PageInfo setTotalResults(java.lang.Integer totalResults)
totalResults
- totalResults or null
for nonepublic PageInfo set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public PageInfo clone()
clone
in class com.google.api.client.json.GenericJson