<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/retail/v2/common.proto

namespace Google\Cloud\Retail\V2;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * The color information of a [Product][google.cloud.retail.v2.Product].
 *
 * Generated from protobuf message <code>google.cloud.retail.v2.ColorInfo</code>
 */
class ColorInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The standard color families. Strongly recommended to use the following
     * standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple",
     * "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and
     * "Mixed". Normally it is expected to have only 1 color family. May consider
     * using single "Mixed" instead of multiple values.
     * A maximum of 5 values are allowed. Each value must be a UTF-8 encoded
     * string with a length limit of 128 characters. Otherwise, an
     * INVALID_ARGUMENT error is returned.
     * Google Merchant Center property
     * [color](https://support.google.com/merchants/answer/6324487). Schema.org
     * property [Product.color](https://schema.org/color).
     *
     * Generated from protobuf field <code>repeated string color_families = 1;</code>
     */
    private $color_families;
    /**
     * The color display names, which may be different from standard color family
     * names, such as the color aliases used in the website frontend. Normally
     * it is expected to have only 1 color. May consider using single "Mixed"
     * instead of multiple values.
     * A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded
     * string with a length limit of 128 characters. Otherwise, an
     * INVALID_ARGUMENT error is returned.
     * Google Merchant Center property
     * [color](https://support.google.com/merchants/answer/6324487). Schema.org
     * property [Product.color](https://schema.org/color).
     *
     * Generated from protobuf field <code>repeated string colors = 2;</code>
     */
    private $colors;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $color_families
     *           The standard color families. Strongly recommended to use the following
     *           standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple",
     *           "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and
     *           "Mixed". Normally it is expected to have only 1 color family. May consider
     *           using single "Mixed" instead of multiple values.
     *           A maximum of 5 values are allowed. Each value must be a UTF-8 encoded
     *           string with a length limit of 128 characters. Otherwise, an
     *           INVALID_ARGUMENT error is returned.
     *           Google Merchant Center property
     *           [color](https://support.google.com/merchants/answer/6324487). Schema.org
     *           property [Product.color](https://schema.org/color).
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $colors
     *           The color display names, which may be different from standard color family
     *           names, such as the color aliases used in the website frontend. Normally
     *           it is expected to have only 1 color. May consider using single "Mixed"
     *           instead of multiple values.
     *           A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded
     *           string with a length limit of 128 characters. Otherwise, an
     *           INVALID_ARGUMENT error is returned.
     *           Google Merchant Center property
     *           [color](https://support.google.com/merchants/answer/6324487). Schema.org
     *           property [Product.color](https://schema.org/color).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Retail\V2\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * The standard color families. Strongly recommended to use the following
     * standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple",
     * "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and
     * "Mixed". Normally it is expected to have only 1 color family. May consider
     * using single "Mixed" instead of multiple values.
     * A maximum of 5 values are allowed. Each value must be a UTF-8 encoded
     * string with a length limit of 128 characters. Otherwise, an
     * INVALID_ARGUMENT error is returned.
     * Google Merchant Center property
     * [color](https://support.google.com/merchants/answer/6324487). Schema.org
     * property [Product.color](https://schema.org/color).
     *
     * Generated from protobuf field <code>repeated string color_families = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getColorFamilies()
    {
        return $this->color_families;
    }

    /**
     * The standard color families. Strongly recommended to use the following
     * standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple",
     * "Green", "Cyan", "Blue", "Brown", "White", "Gray", "Black" and
     * "Mixed". Normally it is expected to have only 1 color family. May consider
     * using single "Mixed" instead of multiple values.
     * A maximum of 5 values are allowed. Each value must be a UTF-8 encoded
     * string with a length limit of 128 characters. Otherwise, an
     * INVALID_ARGUMENT error is returned.
     * Google Merchant Center property
     * [color](https://support.google.com/merchants/answer/6324487). Schema.org
     * property [Product.color](https://schema.org/color).
     *
     * Generated from protobuf field <code>repeated string color_families = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setColorFamilies($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->color_families = $arr;

        return $this;
    }

    /**
     * The color display names, which may be different from standard color family
     * names, such as the color aliases used in the website frontend. Normally
     * it is expected to have only 1 color. May consider using single "Mixed"
     * instead of multiple values.
     * A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded
     * string with a length limit of 128 characters. Otherwise, an
     * INVALID_ARGUMENT error is returned.
     * Google Merchant Center property
     * [color](https://support.google.com/merchants/answer/6324487). Schema.org
     * property [Product.color](https://schema.org/color).
     *
     * Generated from protobuf field <code>repeated string colors = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getColors()
    {
        return $this->colors;
    }

    /**
     * The color display names, which may be different from standard color family
     * names, such as the color aliases used in the website frontend. Normally
     * it is expected to have only 1 color. May consider using single "Mixed"
     * instead of multiple values.
     * A maximum of 25 colors are allowed. Each value must be a UTF-8 encoded
     * string with a length limit of 128 characters. Otherwise, an
     * INVALID_ARGUMENT error is returned.
     * Google Merchant Center property
     * [color](https://support.google.com/merchants/answer/6324487). Schema.org
     * property [Product.color](https://schema.org/color).
     *
     * Generated from protobuf field <code>repeated string colors = 2;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setColors($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->colors = $arr;

        return $this;
    }

}

