Google Cloud Chronicle Client - Class Location (0.9.0)

Reference documentation and code samples for the Google Cloud Chronicle Client class Location.

Information about a location.

Generated from protobuf message google.backstory.Location

Namespace

Google \ Backstory

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ city string

The city.

↳ state string

The state.

↳ country_or_region string

The country or region.

↳ name string

Custom location name (e.g. building or site name like "London Office"). For cloud environments, this is the region (e.g. "us-west2").

↳ desk_name string

Desk name or individual location, typically for an employee in an office. (e.g. "IN-BLR-BCPC-11-1121D").

↳ floor_name string

Floor name, number or a combination of the two for a building. (e.g. "1-A").

↳ region_latitude float

Deprecated: use region_coordinates.

↳ region_longitude float

Deprecated: use region_coordinates.

↳ region_coordinates Google\Type\LatLng

Coordinates for the associated region. See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.

getCity

The city.

Returns
Type Description
string

setCity

The city.

Parameter
Name Description
var string
Returns
Type Description
$this

getState

The state.

Returns
Type Description
string

setState

The state.

Parameter
Name Description
var string
Returns
Type Description
$this

getCountryOrRegion

The country or region.

Returns
Type Description
string

setCountryOrRegion

The country or region.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

Custom location name (e.g. building or site name like "London Office").

For cloud environments, this is the region (e.g. "us-west2").

Returns
Type Description
string

setName

Custom location name (e.g. building or site name like "London Office").

For cloud environments, this is the region (e.g. "us-west2").

Parameter
Name Description
var string
Returns
Type Description
$this

getDeskName

Desk name or individual location, typically for an employee in an office.

(e.g. "IN-BLR-BCPC-11-1121D").

Returns
Type Description
string

setDeskName

Desk name or individual location, typically for an employee in an office.

(e.g. "IN-BLR-BCPC-11-1121D").

Parameter
Name Description
var string
Returns
Type Description
$this

getFloorName

Floor name, number or a combination of the two for a building.

(e.g. "1-A").

Returns
Type Description
string

setFloorName

Floor name, number or a combination of the two for a building.

(e.g. "1-A").

Parameter
Name Description
var string
Returns
Type Description
$this

getRegionLatitude

Deprecated: use region_coordinates.

Returns
Type Description
float

setRegionLatitude

Deprecated: use region_coordinates.

Parameter
Name Description
var float
Returns
Type Description
$this

getRegionLongitude

Deprecated: use region_coordinates.

Returns
Type Description
float

setRegionLongitude

Deprecated: use region_coordinates.

Parameter
Name Description
var float
Returns
Type Description
$this

getRegionCoordinates

Coordinates for the associated region.

See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.

Returns
Type Description
Google\Type\LatLng|null

hasRegionCoordinates

clearRegionCoordinates

setRegionCoordinates

Coordinates for the associated region.

See https://cloud.google.com/vision/docs/reference/rest/v1/LatLng for a description of the fields.

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