Google Shopping Merchant Accounts V1beta Client - Class CreateRegionRequest (0.3.0)

Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class CreateRegionRequest.

Request message for the CreateRegion method.

Generated from protobuf message google.shopping.merchant.accounts.v1beta.CreateRegionRequest

Namespace

Google \ Shopping \ Merchant \ Accounts \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The account to create a region for. Format: accounts/{account}

↳ region_id string

Required. The identifier for the region, unique over all regions of the same account.

↳ region Google\Shopping\Merchant\Accounts\V1beta\Region

Required. The region to create.

getParent

Required. The account to create a region for.

Format: accounts/{account}

Returns
Type Description
string

setParent

Required. The account to create a region for.

Format: accounts/{account}

Parameter
Name Description
var string
Returns
Type Description
$this

getRegionId

Required. The identifier for the region, unique over all regions of the same account.

Returns
Type Description
string

setRegionId

Required. The identifier for the region, unique over all regions of the same account.

Parameter
Name Description
var string
Returns
Type Description
$this

getRegion

Required. The region to create.

Returns
Type Description
Google\Shopping\Merchant\Accounts\V1beta\Region|null

hasRegion

clearRegion

setRegion

Required. The region to create.

Parameter
Name Description
var Google\Shopping\Merchant\Accounts\V1beta\Region
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The account to create a region for. Format: accounts/{account} Please see Google\Shopping\Merchant\Accounts\V1beta\RegionsServiceClient::accountName() for help formatting this field.

region Google\Shopping\Merchant\Accounts\V1beta\Region

Required. The region to create.

regionId string

Required. The identifier for the region, unique over all regions of the same account.

Returns
Type Description
Google\Shopping\Merchant\Accounts\V1beta\CreateRegionRequest