Information about a review of the place.
Nested Class Summary
class | Review.Builder | Builder for Review . |
Inherited Constant Summary
Public Constructor Summary
Review()
|
Public Method Summary
static Review.Builder | |
abstract String |
getAttribution()
Returns the attribution that must be shown to the user if this review is displayed.
|
abstract AuthorAttribution |
getAuthorAttribution()
Returns this review's
AuthorAttribution . |
abstract String |
getOriginalText()
Returns the text of the review in its original language.
|
abstract String |
getOriginalTextLanguageCode()
Returns the language code of the original text of the review.
|
abstract String |
getPublishTime()
Returns the publish time for the review, expressed in "yyyy-MM-dd HH:mm:ss" format of UTC
timezone.
|
abstract Double |
getRating()
Returns a whole number between 1.0 and 5.0 (inclusive), meaning the number of stars.
|
abstract String |
getRelativePublishTimeDescription()
Returns a human-readable description of the relative publish time of a review, such as "a month
ago", or "in the last week", based on the time elapsed.
|
abstract String |
getText()
Returns the text of the review.
|
abstract String |
getTextLanguageCode()
Returns the language code of the text of the review.
|
Inherited Method Summary
Public Constructors
public Review ()
Public Methods
public static Review.Builder builder (Double rating, AuthorAttribution authorAttribution)
Returns a Review.Builder
.
Parameters
rating | |
---|---|
authorAttribution |
public abstract String getAttribution ()
Returns the attribution that must be shown to the user if this review is displayed.
See Other Attribution Requirements for more details.
Returns
- The attribution in HTML format.
public abstract String getOriginalTextLanguageCode ()
Returns the language code of the original text of the review.
public abstract String getPublishTime ()
Returns the publish time for the review, expressed in "yyyy-MM-dd HH:mm:ss" format of UTC timezone.
public abstract Double getRating ()
Returns a whole number between 1.0 and 5.0 (inclusive), meaning the number of stars.
public abstract String getRelativePublishTimeDescription ()
Returns a human-readable description of the relative publish time of a review, such as "a month ago", or "in the last week", based on the time elapsed.