Vision/src/V1/ImageProperties.php
public function setDominantColors($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\DominantColorsAnnotation::class);
        $this->dominant_colors = $var;

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

        return $this;
    }
public function setDominantColors ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Vision \ V1 \ DominantColorsAnnotation :: class ) ; $ this -> dominant_colors = $ var ; return $ this ; }
If present, dominant colors completed successfully.

Generated from protobuf field <code>.google.cloud.vision.v1.DominantColorsAnnotation dominant_colors = 1;</code>
@param \Google\Cloud\Vision\V1\DominantColorsAnnotation $var
@return $this
If present dominant colors completed successfully .