<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: class_sig.proto

namespace Proto;

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

/**
 * Centroid and BasicBlock: http://dl.acm.org/citation.cfm?id=2568286
 *
 * Generated from protobuf message <code>proto.Centroid</code>
 */
class Centroid extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>double x = 1;</code>
     */
    private $x = 0.0;
    /**
     * Generated from protobuf field <code>double y = 2;</code>
     */
    private $y = 0.0;
    /**
     * Generated from protobuf field <code>double z = 3;</code>
     */
    private $z = 0.0;
    /**
     * Generated from protobuf field <code>int32 w = 4;</code>
     */
    private $w = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $x
     *     @type float $y
     *     @type float $z
     *     @type int $w
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClassSig::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>double x = 1;</code>
     * @return float
     */
    public function getX()
    {
        return $this->x;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>double y = 2;</code>
     * @return float
     */
    public function getY()
    {
        return $this->y;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>double z = 3;</code>
     * @return float
     */
    public function getZ()
    {
        return $this->z;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 w = 4;</code>
     * @return int
     */
    public function getW()
    {
        return $this->w;
    }

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

        return $this;
    }

}

