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

namespace Messages;

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

/**
 * Generated from protobuf message <code>Messages.SliceControl</code>
 */
class SliceControl extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>repeated double center = 2;</code>
     */
    private $center;
    /**
     * Generated from protobuf field <code>repeated double normal = 3;</code>
     */
    private $normal;
    /**
     * Generated from protobuf field <code>bool intersect = 4;</code>
     */
    protected $intersect = false;
    /**
     * Generated from protobuf field <code>bool negative = 5;</code>
     */
    protected $negative = false;
    /**
     * Generated from protobuf field <code>bool positive = 6;</code>
     */
    protected $positive = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *     @type float[]|\Google\Protobuf\Internal\RepeatedField $center
     *     @type float[]|\Google\Protobuf\Internal\RepeatedField $normal
     *     @type bool $intersect
     *     @type bool $negative
     *     @type bool $positive
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Meta::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated double center = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCenter()
    {
        return $this->center;
    }

    /**
     * Generated from protobuf field <code>repeated double center = 2;</code>
     * @param float[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCenter($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE);
        $this->center = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated double normal = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getNormal()
    {
        return $this->normal;
    }

    /**
     * Generated from protobuf field <code>repeated double normal = 3;</code>
     * @param float[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setNormal($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE);
        $this->normal = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool intersect = 4;</code>
     * @return bool
     */
    public function getIntersect()
    {
        return $this->intersect;
    }

    /**
     * Generated from protobuf field <code>bool intersect = 4;</code>
     * @param bool $var
     * @return $this
     */
    public function setIntersect($var)
    {
        GPBUtil::checkBool($var);
        $this->intersect = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool negative = 5;</code>
     * @return bool
     */
    public function getNegative()
    {
        return $this->negative;
    }

    /**
     * Generated from protobuf field <code>bool negative = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setNegative($var)
    {
        GPBUtil::checkBool($var);
        $this->negative = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool positive = 6;</code>
     * @return bool
     */
    public function getPositive()
    {
        return $this->positive;
    }

    /**
     * Generated from protobuf field <code>bool positive = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setPositive($var)
    {
        GPBUtil::checkBool($var);
        $this->positive = $var;

        return $this;
    }

}

