Google Shopping Merchant Notifications V1beta Client - Class ProductChange (0.1.1)

Reference documentation and code samples for the Google Shopping Merchant Notifications V1beta Client class ProductChange.

The change that happened to the product including old value, new value, country code as the region code and reporting context.

Generated from protobuf message google.shopping.merchant.notifications.v1beta.ProductChange

Namespace

Google \ Shopping \ Merchant \ Notifications \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ old_value string

The old value of the changed resource or attribute.

↳ new_value string

The new value of the changed resource or attribute.

↳ region_code string

Countries that have the change (if applicable)

↳ reporting_context int

Reporting contexts that have the change (if applicable)

getOldValue

The old value of the changed resource or attribute.

Returns
Type Description
string

hasOldValue

clearOldValue

setOldValue

The old value of the changed resource or attribute.

Parameter
Name Description
var string
Returns
Type Description
$this

getNewValue

The new value of the changed resource or attribute.

Returns
Type Description
string

hasNewValue

clearNewValue

setNewValue

The new value of the changed resource or attribute.

Parameter
Name Description
var string
Returns
Type Description
$this

getRegionCode

Countries that have the change (if applicable)

Returns
Type Description
string

hasRegionCode

clearRegionCode

setRegionCode

Countries that have the change (if applicable)

Parameter
Name Description
var string
Returns
Type Description
$this

getReportingContext

Reporting contexts that have the change (if applicable)

Returns
Type Description
int

hasReportingContext

clearReportingContext

setReportingContext

Reporting contexts that have the change (if applicable)

Parameter
Name Description
var int
Returns
Type Description
$this