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

namespace PhpWA\Protocol\Proto\AIRichResponseLatexMetadata;

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

/**
 * Generated from protobuf message <code>proto.AIRichResponseLatexMetadata.AIRichResponseLatexExpression</code>
 */
class AIRichResponseLatexExpression extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string latexExpression = 1;</code>
     */
    protected $latexExpression = null;
    /**
     * Generated from protobuf field <code>optional string url = 2;</code>
     */
    protected $url = null;
    /**
     * Generated from protobuf field <code>optional double width = 3;</code>
     */
    protected $width = null;
    /**
     * Generated from protobuf field <code>optional double height = 4;</code>
     */
    protected $height = null;
    /**
     * Generated from protobuf field <code>optional double fontHeight = 5;</code>
     */
    protected $fontHeight = null;
    /**
     * Generated from protobuf field <code>optional double imageTopPadding = 6;</code>
     */
    protected $imageTopPadding = null;
    /**
     * Generated from protobuf field <code>optional double imageLeadingPadding = 7;</code>
     */
    protected $imageLeadingPadding = null;
    /**
     * Generated from protobuf field <code>optional double imageBottomPadding = 8;</code>
     */
    protected $imageBottomPadding = null;
    /**
     * Generated from protobuf field <code>optional double imageTrailingPadding = 9;</code>
     */
    protected $imageTrailingPadding = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $latexExpression
     *     @type string $url
     *     @type float $width
     *     @type float $height
     *     @type float $fontHeight
     *     @type float $imageTopPadding
     *     @type float $imageLeadingPadding
     *     @type float $imageBottomPadding
     *     @type float $imageTrailingPadding
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasLatexExpression()
    {
        return isset($this->latexExpression);
    }

    public function clearLatexExpression()
    {
        unset($this->latexExpression);
    }

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

        return $this;
    }

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

    public function hasUrl()
    {
        return isset($this->url);
    }

    public function clearUrl()
    {
        unset($this->url);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double width = 3;</code>
     * @return float
     */
    public function getWidth()
    {
        return isset($this->width) ? $this->width : 0.0;
    }

    public function hasWidth()
    {
        return isset($this->width);
    }

    public function clearWidth()
    {
        unset($this->width);
    }

    /**
     * Generated from protobuf field <code>optional double width = 3;</code>
     * @param float $var
     * @return $this
     */
    public function setWidth($var)
    {
        GPBUtil::checkDouble($var);
        $this->width = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double height = 4;</code>
     * @return float
     */
    public function getHeight()
    {
        return isset($this->height) ? $this->height : 0.0;
    }

    public function hasHeight()
    {
        return isset($this->height);
    }

    public function clearHeight()
    {
        unset($this->height);
    }

    /**
     * Generated from protobuf field <code>optional double height = 4;</code>
     * @param float $var
     * @return $this
     */
    public function setHeight($var)
    {
        GPBUtil::checkDouble($var);
        $this->height = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double fontHeight = 5;</code>
     * @return float
     */
    public function getFontHeight()
    {
        return isset($this->fontHeight) ? $this->fontHeight : 0.0;
    }

    public function hasFontHeight()
    {
        return isset($this->fontHeight);
    }

    public function clearFontHeight()
    {
        unset($this->fontHeight);
    }

    /**
     * Generated from protobuf field <code>optional double fontHeight = 5;</code>
     * @param float $var
     * @return $this
     */
    public function setFontHeight($var)
    {
        GPBUtil::checkDouble($var);
        $this->fontHeight = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double imageTopPadding = 6;</code>
     * @return float
     */
    public function getImageTopPadding()
    {
        return isset($this->imageTopPadding) ? $this->imageTopPadding : 0.0;
    }

    public function hasImageTopPadding()
    {
        return isset($this->imageTopPadding);
    }

    public function clearImageTopPadding()
    {
        unset($this->imageTopPadding);
    }

    /**
     * Generated from protobuf field <code>optional double imageTopPadding = 6;</code>
     * @param float $var
     * @return $this
     */
    public function setImageTopPadding($var)
    {
        GPBUtil::checkDouble($var);
        $this->imageTopPadding = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double imageLeadingPadding = 7;</code>
     * @return float
     */
    public function getImageLeadingPadding()
    {
        return isset($this->imageLeadingPadding) ? $this->imageLeadingPadding : 0.0;
    }

    public function hasImageLeadingPadding()
    {
        return isset($this->imageLeadingPadding);
    }

    public function clearImageLeadingPadding()
    {
        unset($this->imageLeadingPadding);
    }

    /**
     * Generated from protobuf field <code>optional double imageLeadingPadding = 7;</code>
     * @param float $var
     * @return $this
     */
    public function setImageLeadingPadding($var)
    {
        GPBUtil::checkDouble($var);
        $this->imageLeadingPadding = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double imageBottomPadding = 8;</code>
     * @return float
     */
    public function getImageBottomPadding()
    {
        return isset($this->imageBottomPadding) ? $this->imageBottomPadding : 0.0;
    }

    public function hasImageBottomPadding()
    {
        return isset($this->imageBottomPadding);
    }

    public function clearImageBottomPadding()
    {
        unset($this->imageBottomPadding);
    }

    /**
     * Generated from protobuf field <code>optional double imageBottomPadding = 8;</code>
     * @param float $var
     * @return $this
     */
    public function setImageBottomPadding($var)
    {
        GPBUtil::checkDouble($var);
        $this->imageBottomPadding = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double imageTrailingPadding = 9;</code>
     * @return float
     */
    public function getImageTrailingPadding()
    {
        return isset($this->imageTrailingPadding) ? $this->imageTrailingPadding : 0.0;
    }

    public function hasImageTrailingPadding()
    {
        return isset($this->imageTrailingPadding);
    }

    public function clearImageTrailingPadding()
    {
        unset($this->imageTrailingPadding);
    }

    /**
     * Generated from protobuf field <code>optional double imageTrailingPadding = 9;</code>
     * @param float $var
     * @return $this
     */
    public function setImageTrailingPadding($var)
    {
        GPBUtil::checkDouble($var);
        $this->imageTrailingPadding = $var;

        return $this;
    }

}

