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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.Point</code>
 */
class Point extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional int32 xDeprecated = 1;</code>
     */
    protected $xDeprecated = null;
    /**
     * Generated from protobuf field <code>optional int32 yDeprecated = 2;</code>
     */
    protected $yDeprecated = null;
    /**
     * Generated from protobuf field <code>optional double x = 3;</code>
     */
    protected $x = null;
    /**
     * Generated from protobuf field <code>optional double y = 4;</code>
     */
    protected $y = null;

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

    /**
     * Generated from protobuf field <code>optional int32 xDeprecated = 1;</code>
     * @return int
     */
    public function getXDeprecated()
    {
        return isset($this->xDeprecated) ? $this->xDeprecated : 0;
    }

    public function hasXDeprecated()
    {
        return isset($this->xDeprecated);
    }

    public function clearXDeprecated()
    {
        unset($this->xDeprecated);
    }

    /**
     * Generated from protobuf field <code>optional int32 xDeprecated = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setXDeprecated($var)
    {
        GPBUtil::checkInt32($var);
        $this->xDeprecated = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int32 yDeprecated = 2;</code>
     * @return int
     */
    public function getYDeprecated()
    {
        return isset($this->yDeprecated) ? $this->yDeprecated : 0;
    }

    public function hasYDeprecated()
    {
        return isset($this->yDeprecated);
    }

    public function clearYDeprecated()
    {
        unset($this->yDeprecated);
    }

    /**
     * Generated from protobuf field <code>optional int32 yDeprecated = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setYDeprecated($var)
    {
        GPBUtil::checkInt32($var);
        $this->yDeprecated = $var;

        return $this;
    }

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

    public function hasX()
    {
        return isset($this->x);
    }

    public function clearX()
    {
        unset($this->x);
    }

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

        return $this;
    }

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

    public function hasY()
    {
        return isset($this->y);
    }

    public function clearY()
    {
        unset($this->y);
    }

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

        return $this;
    }

}

