Google Shopping Merchant Products V1 Client - Class QuestionAndAnswer (1.7.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class QuestionAndAnswer.

The question and answer for the product.

Generated from protobuf message google.shopping.merchant.products.v1.ProductAttributes.QuestionAndAnswer

Namespace

Google \ Shopping \ Merchant \ Products \ V1 \ ProductAttributes

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ question string

Required. The question text.

↳ answer string

Required. The answer text.

getQuestion

Required. The question text.

Returns
Type Description
string

setQuestion

Required. The question text.

Parameter
Name Description
var string
Returns
Type Description
$this

getAnswer

Required. The answer text.

Returns
Type Description
string

setAnswer

Required. The answer text.

Parameter
Name Description
var string
Returns
Type Description
$this