<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/chat/v1/contextual_addon.proto

namespace Google\Apps\Chat\V1\ContextualAddOnMarkup\Card;

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

/**
 * Generated from protobuf message <code>google.chat.v1.ContextualAddOnMarkup.Card.CardHeader</code>
 */
class CardHeader extends \Google\Protobuf\Internal\Message
{
    /**
     * The title must be specified. The header has a fixed height: if both a
     * title and subtitle is specified, each takes up one line. If only the
     * title is specified, it takes up both lines.
     *
     * Generated from protobuf field <code>string title = 1;</code>
     */
    protected $title = '';
    /**
     * The subtitle of the card header.
     *
     * Generated from protobuf field <code>string subtitle = 2;</code>
     */
    protected $subtitle = '';
    /**
     * The image's type (for example, square border or circular border).
     *
     * Generated from protobuf field <code>.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3;</code>
     */
    protected $image_style = 0;
    /**
     * The URL of the image in the card header.
     *
     * Generated from protobuf field <code>string image_url = 4;</code>
     */
    protected $image_url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $title
     *           The title must be specified. The header has a fixed height: if both a
     *           title and subtitle is specified, each takes up one line. If only the
     *           title is specified, it takes up both lines.
     *     @type string $subtitle
     *           The subtitle of the card header.
     *     @type int $image_style
     *           The image's type (for example, square border or circular border).
     *     @type string $image_url
     *           The URL of the image in the card header.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce();
        parent::__construct($data);
    }

    /**
     * The title must be specified. The header has a fixed height: if both a
     * title and subtitle is specified, each takes up one line. If only the
     * title is specified, it takes up both lines.
     *
     * Generated from protobuf field <code>string title = 1;</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * The title must be specified. The header has a fixed height: if both a
     * title and subtitle is specified, each takes up one line. If only the
     * title is specified, it takes up both lines.
     *
     * Generated from protobuf field <code>string title = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * The subtitle of the card header.
     *
     * Generated from protobuf field <code>string subtitle = 2;</code>
     * @return string
     */
    public function getSubtitle()
    {
        return $this->subtitle;
    }

    /**
     * The subtitle of the card header.
     *
     * Generated from protobuf field <code>string subtitle = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSubtitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->subtitle = $var;

        return $this;
    }

    /**
     * The image's type (for example, square border or circular border).
     *
     * Generated from protobuf field <code>.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3;</code>
     * @return int
     */
    public function getImageStyle()
    {
        return $this->image_style;
    }

    /**
     * The image's type (for example, square border or circular border).
     *
     * Generated from protobuf field <code>.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setImageStyle($var)
    {
        GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader\ImageStyle::class);
        $this->image_style = $var;

        return $this;
    }

    /**
     * The URL of the image in the card header.
     *
     * Generated from protobuf field <code>string image_url = 4;</code>
     * @return string
     */
    public function getImageUrl()
    {
        return $this->image_url;
    }

    /**
     * The URL of the image in the card header.
     *
     * Generated from protobuf field <code>string image_url = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setImageUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->image_url = $var;

        return $this;
    }

}


