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

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

Maximum delivery radius.

This is only required for the local delivery shipment type.

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

Namespace

Google \ Shopping \ Merchant \ Accounts \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ value int|string

Integer value of distance.

↳ unit int

Unit can differ based on country, it is parameterized to include miles and kilometers.

getValue

Integer value of distance.

Returns
Type Description
int|string

hasValue

clearValue

setValue

Integer value of distance.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getUnit

Unit can differ based on country, it is parameterized to include miles and kilometers.

Returns
Type Description
int

hasUnit

clearUnit

setUnit

Unit can differ based on country, it is parameterized to include miles and kilometers.

Parameter
Name Description
var int
Returns
Type Description
$this