Vision/src/V1/EntityAnnotation.php
public function setLocations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\LocationInfo::class);
        $this->locations = $arr;

        return $this;
    }
public function setLocations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\LocationInfo::class);
        $this->locations = $arr;

        return $this;
    }
public function setLocations ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Vision \ V1 \ LocationInfo :: class ) ; $ this -> locations = $ arr ; return $ this ; }
The location information for the detected entity. Multiple
`LocationInfo` elements can be present because one location may
indicate the location of the scene in the image, and another location
may indicate the location of the place where the image was taken.
Location information is usually present for landmarks.

Generated from protobuf field <code>repeated .google.cloud.vision.v1.LocationInfo locations = 8;</code>
@param \Google\Cloud\Vision\V1\LocationInfo[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The location information for the detected entity . Multiple LocationInfo elements can be present because one location may indicate the location of the scene in the image and another location may indicate the location of the place where the image was taken . Location information is usually present for landmarks .