<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\ChatRowOpaqueData\DraftMessage;

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

/**
 * Generated from protobuf message <code>proto.ChatRowOpaqueData.DraftMessage.CtwaContextLinkData</code>
 */
class CtwaContextLinkData extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string context = 1;</code>
     */
    protected $context = null;
    /**
     * Generated from protobuf field <code>optional string sourceUrl = 2;</code>
     */
    protected $sourceUrl = null;
    /**
     * Generated from protobuf field <code>optional string icebreaker = 3;</code>
     */
    protected $icebreaker = null;
    /**
     * Generated from protobuf field <code>optional string phone = 4;</code>
     */
    protected $phone = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $context
     *     @type string $sourceUrl
     *     @type string $icebreaker
     *     @type string $phone
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string context = 1;</code>
     * @return string
     */
    public function getContext()
    {
        return isset($this->context) ? $this->context : '';
    }

    public function hasContext()
    {
        return isset($this->context);
    }

    public function clearContext()
    {
        unset($this->context);
    }

    /**
     * Generated from protobuf field <code>optional string context = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setContext($var)
    {
        GPBUtil::checkString($var, True);
        $this->context = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string sourceUrl = 2;</code>
     * @return string
     */
    public function getSourceUrl()
    {
        return isset($this->sourceUrl) ? $this->sourceUrl : '';
    }

    public function hasSourceUrl()
    {
        return isset($this->sourceUrl);
    }

    public function clearSourceUrl()
    {
        unset($this->sourceUrl);
    }

    /**
     * Generated from protobuf field <code>optional string sourceUrl = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSourceUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->sourceUrl = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string icebreaker = 3;</code>
     * @return string
     */
    public function getIcebreaker()
    {
        return isset($this->icebreaker) ? $this->icebreaker : '';
    }

    public function hasIcebreaker()
    {
        return isset($this->icebreaker);
    }

    public function clearIcebreaker()
    {
        unset($this->icebreaker);
    }

    /**
     * Generated from protobuf field <code>optional string icebreaker = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setIcebreaker($var)
    {
        GPBUtil::checkString($var, True);
        $this->icebreaker = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string phone = 4;</code>
     * @return string
     */
    public function getPhone()
    {
        return isset($this->phone) ? $this->phone : '';
    }

    public function hasPhone()
    {
        return isset($this->phone);
    }

    public function clearPhone()
    {
        unset($this->phone);
    }

    /**
     * Generated from protobuf field <code>optional string phone = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setPhone($var)
    {
        GPBUtil::checkString($var, True);
        $this->phone = $var;

        return $this;
    }

}

