Vision/src/V1/Image.php
public function setSource($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\ImageSource::class);
        $this->source = $var;

        return $this;
    }
public function setSource($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\ImageSource::class);
        $this->source = $var;

        return $this;
    }
public function setSource ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Vision \ V1 \ ImageSource :: class ) ; $ this -> source = $ var ; return $ this ; }
Google Cloud Storage image location, or publicly-accessible image
URL. If both `content` and `source` are provided for an image, `content`
takes precedence and is used to perform the image annotation request.

Generated from protobuf field <code>.google.cloud.vision.v1.ImageSource source = 2;</code>
@param \Google\Cloud\Vision\V1\ImageSource $var
@return $this
Google Cloud Storage image location or publicly - accessible image URL . If both content and source are provided for an image content takes precedence and is used to perform the image annotation request .