Vision/src/V1/DominantColorsAnnotation.php
public function setColors($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\ColorInfo::class);
        $this->colors = $arr;

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

        return $this;
    }
public function setColors ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Vision \ V1 \ ColorInfo :: class ) ; $ this -> colors = $ arr ; return $ this ; }
RGB color values with their score and pixel fraction.

Generated from protobuf field <code>repeated .google.cloud.vision.v1.ColorInfo colors = 1;</code>
@param \Google\Cloud\Vision\V1\ColorInfo[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
RGB color values with their score and pixel fraction .