Google Shopping Merchant Accounts V1 Client - Class RadiusArea (1.3.0)

Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class RadiusArea.

A radius area that defines the region area.

Generated from protobuf message google.shopping.merchant.accounts.v1.Region.RadiusArea

Namespace

Google \ Shopping \ Merchant \ Accounts \ V1 \ Region

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ region_code string

Required. CLDR territory code or the country the radius area applies to.

↳ lat_lng Google\Type\LatLng

Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.

↳ radius float

Required. The radius distance of the area.

↳ radius_units int

Optional. The unit of the radius.

getRegionCode

Required. CLDR territory code or the country the radius area applies to.

Returns
Type Description
string

setRegionCode

Required. CLDR territory code or the country the radius area applies to.

Parameter
Name Description
var string
Returns
Type Description
$this

getLatLng

Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.

Returns
Type Description
Google\Type\LatLng|null

hasLatLng

clearLatLng

setLatLng

Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.

Parameter
Name Description
var Google\Type\LatLng
Returns
Type Description
$this

getRadius

Required. The radius distance of the area.

Returns
Type Description
float

setRadius

Required. The radius distance of the area.

Parameter
Name Description
var float
Returns
Type Description
$this

getRadiusUnits

Optional. The unit of the radius.

Returns
Type Description
int Enum of type RadiusUnits.

setRadiusUnits

Optional. The unit of the radius.

Parameter
Name Description
var int

Enum of type RadiusUnits.

Returns
Type Description
$this