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

namespace PhpWA\Protocol\Proto\AIRichResponseCodeMetadata;

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

/**
 * Generated from protobuf message <code>proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock</code>
 */
class AIRichResponseCodeBlock extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;</code>
     */
    protected $highlightType = null;
    /**
     * Generated from protobuf field <code>optional string codeContent = 2;</code>
     */
    protected $codeContent = null;

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

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;</code>
     * @return int
     */
    public function getHighlightType()
    {
        return isset($this->highlightType) ? $this->highlightType : 0;
    }

    public function hasHighlightType()
    {
        return isset($this->highlightType);
    }

    public function clearHighlightType()
    {
        unset($this->highlightType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setHighlightType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\AIRichResponseCodeMetadata\AIRichResponseCodeHighlightType::class);
        $this->highlightType = $var;

        return $this;
    }

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

    public function hasCodeContent()
    {
        return isset($this->codeContent);
    }

    public function clearCodeContent()
    {
        unset($this->codeContent);
    }

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

        return $this;
    }

}

