Vision/src/V1/AnnotateImageResponse.php
public function setContext($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\ImageAnnotationContext::class);
        $this->context = $var;

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

        return $this;
    }
public function setContext ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Vision \ V1 \ ImageAnnotationContext :: class ) ; $ this -> context = $ var ; return $ this ; }
If present, contextual information is needed to understand where this image
comes from.

Generated from protobuf field <code>.google.cloud.vision.v1.ImageAnnotationContext context = 21;</code>
@param \Google\Cloud\Vision\V1\ImageAnnotationContext $var
@return $this
If present contextual information is needed to understand where this image comes from .