public final class ListReviewsResponse
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 Google My Business API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
ListReviewsResponse() |
Modifier and Type | Method and Description |
---|---|
ListReviewsResponse |
clone() |
java.lang.Double |
getAverageRating()
The average star rating of all reviews for this location on a scale of 1 to 5, where 5 is the
highest rating.
|
java.lang.String |
getNextPageToken()
If the number of reviews exceeded the requested page size, this field is populated with a token
to fetch the next page of reviews on a subsequent call to ListReviews.
|
java.util.List<Review> |
getReviews()
The reviews.
|
java.lang.Integer |
getTotalReviewCount()
The total number of reviews for this location.
|
ListReviewsResponse |
set(java.lang.String fieldName,
java.lang.Object value) |
ListReviewsResponse |
setAverageRating(java.lang.Double averageRating)
The average star rating of all reviews for this location on a scale of 1 to 5, where 5 is the
highest rating.
|
ListReviewsResponse |
setNextPageToken(java.lang.String nextPageToken)
If the number of reviews exceeded the requested page size, this field is populated with a token
to fetch the next page of reviews on a subsequent call to ListReviews.
|
ListReviewsResponse |
setReviews(java.util.List<Review> reviews)
The reviews.
|
ListReviewsResponse |
setTotalReviewCount(java.lang.Integer totalReviewCount)
The total number of reviews for this location.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Double getAverageRating()
null
for nonepublic ListReviewsResponse setAverageRating(java.lang.Double averageRating)
averageRating
- averageRating or null
for nonepublic java.lang.String getNextPageToken()
null
for nonepublic ListReviewsResponse setNextPageToken(java.lang.String nextPageToken)
nextPageToken
- nextPageToken or null
for nonepublic java.util.List<Review> getReviews()
null
for nonepublic ListReviewsResponse setReviews(java.util.List<Review> reviews)
reviews
- reviews or null
for nonepublic java.lang.Integer getTotalReviewCount()
null
for nonepublic ListReviewsResponse setTotalReviewCount(java.lang.Integer totalReviewCount)
totalReviewCount
- totalReviewCount or null
for nonepublic ListReviewsResponse set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ListReviewsResponse clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011-2018 Google. All Rights Reserved.