<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v21/resources/campaign.proto

namespace Google\Ads\GoogleAds\V21\Resources\Campaign;

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

/**
 * Settings that control the visual appearance of your brand in a campaign's
 * automatically generated assets and formats. Only applicable to Performance
 * Max campaigns.
 *
 * Generated from protobuf message <code>google.ads.googleads.v21.resources.Campaign.BrandGuidelines</code>
 */
class BrandGuidelines extends \Google\Protobuf\Internal\Message
{
    /**
     * The main brand color, entered as a hex code (e.g., #00ff00). You must
     * provide the main_color if you provide an accent_color.
     *
     * Generated from protobuf field <code>string main_color = 1;</code>
     */
    protected $main_color = '';
    /**
     * The accent brand color, entered as a hex code (e.g., #00ff00). You must
     * provide the accent_color if you provide a main_color.
     *
     * Generated from protobuf field <code>string accent_color = 2;</code>
     */
    protected $accent_color = '';
    /**
     * The brand's font family. Must be one of the following Google Fonts (case
     * sensitive): Open Sans, Roboto, Montserrat, Poppins, Lato, Oswald,
     * Playfair Display, Roboto Slab.
     *
     * Generated from protobuf field <code>string predefined_font_family = 3;</code>
     */
    protected $predefined_font_family = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $main_color
     *           The main brand color, entered as a hex code (e.g., #00ff00). You must
     *           provide the main_color if you provide an accent_color.
     *     @type string $accent_color
     *           The accent brand color, entered as a hex code (e.g., #00ff00). You must
     *           provide the accent_color if you provide a main_color.
     *     @type string $predefined_font_family
     *           The brand's font family. Must be one of the following Google Fonts (case
     *           sensitive): Open Sans, Roboto, Montserrat, Poppins, Lato, Oswald,
     *           Playfair Display, Roboto Slab.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V21\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * The main brand color, entered as a hex code (e.g., #00ff00). You must
     * provide the main_color if you provide an accent_color.
     *
     * Generated from protobuf field <code>string main_color = 1;</code>
     * @return string
     */
    public function getMainColor()
    {
        return $this->main_color;
    }

    /**
     * The main brand color, entered as a hex code (e.g., #00ff00). You must
     * provide the main_color if you provide an accent_color.
     *
     * Generated from protobuf field <code>string main_color = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setMainColor($var)
    {
        GPBUtil::checkString($var, True);
        $this->main_color = $var;

        return $this;
    }

    /**
     * The accent brand color, entered as a hex code (e.g., #00ff00). You must
     * provide the accent_color if you provide a main_color.
     *
     * Generated from protobuf field <code>string accent_color = 2;</code>
     * @return string
     */
    public function getAccentColor()
    {
        return $this->accent_color;
    }

    /**
     * The accent brand color, entered as a hex code (e.g., #00ff00). You must
     * provide the accent_color if you provide a main_color.
     *
     * Generated from protobuf field <code>string accent_color = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAccentColor($var)
    {
        GPBUtil::checkString($var, True);
        $this->accent_color = $var;

        return $this;
    }

    /**
     * The brand's font family. Must be one of the following Google Fonts (case
     * sensitive): Open Sans, Roboto, Montserrat, Poppins, Lato, Oswald,
     * Playfair Display, Roboto Slab.
     *
     * Generated from protobuf field <code>string predefined_font_family = 3;</code>
     * @return string
     */
    public function getPredefinedFontFamily()
    {
        return $this->predefined_font_family;
    }

    /**
     * The brand's font family. Must be one of the following Google Fonts (case
     * sensitive): Open Sans, Roboto, Montserrat, Poppins, Lato, Oswald,
     * Playfair Display, Roboto Slab.
     *
     * Generated from protobuf field <code>string predefined_font_family = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setPredefinedFontFamily($var)
    {
        GPBUtil::checkString($var, True);
        $this->predefined_font_family = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BrandGuidelines::class, \Google\Ads\GoogleAds\V21\Resources\Campaign_BrandGuidelines::class);

