Google Shopping Merchant Reviews V1beta Client - Class ProductReview (0.1.0)

Reference documentation and code samples for the Google Shopping Merchant Reviews V1beta Client class ProductReview.

A review for a product. For more information, see Introduction to Product Review Feeds

Generated from protobuf message google.shopping.merchant.reviews.v1beta.ProductReview

Namespace

Google \ Shopping \ Merchant \ Reviews \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. The name of the product review. Format: "{productreview.name=accounts/{account}/productReviews/{productReview}}"

↳ product_review_id string

Required. The permanent, unique identifier for the product review in the publisher’s system.

↳ attributes ProductReviewAttributes

Optional. A list of product review attributes.

↳ custom_attributes array<Google\Shopping\Type\CustomAttribute>

Optional. A list of custom (merchant-provided) attributes.

↳ data_source string

Output only. The primary data source of the product review.

↳ product_review_status ProductReviewStatus

Output only. The status of a product review, data validation issues, that is, information about a product review computed asynchronously.

getName

Identifier. The name of the product review.

Format: "{productreview.name=accounts/{account}/productReviews/{productReview}}"

Returns
Type Description
string

setName

Identifier. The name of the product review.

Format: "{productreview.name=accounts/{account}/productReviews/{productReview}}"

Parameter
Name Description
var string
Returns
Type Description
$this

getProductReviewId

Required. The permanent, unique identifier for the product review in the publisher’s system.

Returns
Type Description
string

setProductReviewId

Required. The permanent, unique identifier for the product review in the publisher’s system.

Parameter
Name Description
var string
Returns
Type Description
$this

getAttributes

Optional. A list of product review attributes.

Returns
Type Description
ProductReviewAttributes|null

hasAttributes

clearAttributes

setAttributes

Optional. A list of product review attributes.

Parameter
Name Description
var ProductReviewAttributes
Returns
Type Description
$this

getCustomAttributes

Optional. A list of custom (merchant-provided) attributes.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setCustomAttributes

Optional. A list of custom (merchant-provided) attributes.

Parameter
Name Description
var array<Google\Shopping\Type\CustomAttribute>
Returns
Type Description
$this

getDataSource

Output only. The primary data source of the product review.

Returns
Type Description
string

setDataSource

Output only. The primary data source of the product review.

Parameter
Name Description
var string
Returns
Type Description
$this

getProductReviewStatus

Output only. The status of a product review, data validation issues, that is, information about a product review computed asynchronously.

Returns
Type Description
ProductReviewStatus|null

hasProductReviewStatus

clearProductReviewStatus

setProductReviewStatus

Output only. The status of a product review, data validation issues, that is, information about a product review computed asynchronously.

Parameter
Name Description
var ProductReviewStatus
Returns
Type Description
$this