Google Shopping Merchant Accounts V1beta Client - Class Distance (1.4.1)Stay organized with collectionsSave and categorize content based on your preferences.
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 messagegoogle.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-30 UTC."],[],[]]