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

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

The message that the merchant will receive to notify about product status change event

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

Namespace

Google \ Shopping \ Merchant \ Notifications \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ account string

The target account that owns the entity that changed. Format : accounts/{merchant_id}

↳ managing_account string

The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : accounts/{service_provider_id}

↳ resource_type int

The resource that changed, in this case it will always be Product.

↳ attribute int

The attribute in the resource that changed, in this case it will be always Status.

↳ changes array<ProductChange>

A message to describe the change that happened to the product

↳ resource_id string

The product id.

↳ resource string

The product name. Format: {product.name=accounts/{account}/products/{product}}

getAccount

The target account that owns the entity that changed.

Format : accounts/{merchant_id}

Returns
Type Description
string

hasAccount

clearAccount

setAccount

The target account that owns the entity that changed.

Format : accounts/{merchant_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getManagingAccount

The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : accounts/{service_provider_id}

Returns
Type Description
string

hasManagingAccount

clearManagingAccount

setManagingAccount

The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : accounts/{service_provider_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceType

The resource that changed, in this case it will always be Product.

Returns
Type Description
int

hasResourceType

clearResourceType

setResourceType

The resource that changed, in this case it will always be Product.

Parameter
Name Description
var int
Returns
Type Description
$this

getAttribute

The attribute in the resource that changed, in this case it will be always Status.

Returns
Type Description
int

hasAttribute

clearAttribute

setAttribute

The attribute in the resource that changed, in this case it will be always Status.

Parameter
Name Description
var int
Returns
Type Description
$this

getChanges

A message to describe the change that happened to the product

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setChanges

A message to describe the change that happened to the product

Parameter
Name Description
var array<ProductChange>
Returns
Type Description
$this

getResourceId

The product id.

Returns
Type Description
string

hasResourceId

clearResourceId

setResourceId

The product id.

Parameter
Name Description
var string
Returns
Type Description
$this

getResource

The product name.

Format: {product.name=accounts/{account}/products/{product}}

Returns
Type Description
string

hasResource

clearResource

setResource

The product name.

Format: {product.name=accounts/{account}/products/{product}}

Parameter
Name Description
var string
Returns
Type Description
$this