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

namespace Messages;

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

/**
 * Generated from protobuf message <code>Messages.Coupling</code>
 */
class Coupling extends \Google\Protobuf\Internal\Message
{
    /**
     * s---
     *
     * Generated from protobuf field <code>string source_system = 1;</code>
     */
    protected $source_system = '';
    /**
     * ---t
     *
     * Generated from protobuf field <code>string target_system = 2;</code>
     */
    protected $target_system = '';
    /**
     * uid is only valid within a given session
     *
     * Generated from protobuf field <code>int64 source_uid = 3;</code>
     */
    protected $source_uid = 0;
    /**
     * uid is only valid within a given session
     *
     * Generated from protobuf field <code>int64 target_uid = 4;</code>
     */
    protected $target_uid = 0;
    /**
     * s---
     *
     * Generated from protobuf field <code>.Messages.Zone source_region = 5;</code>
     */
    protected $source_region = null;
    /**
     * ---t
     *
     * Generated from protobuf field <code>.Messages.Zone target_region = 6;</code>
     */
    protected $target_region = null;
    /**
     *reserved
     *
     * Generated from protobuf field <code>uint32 sampling_mode = 9;</code>
     */
    protected $sampling_mode = 0;
    /**
     * Generated from protobuf field <code>string name = 10;</code>
     */
    protected $name = '';
    /**
     * s---wo---w1---w2---t
     *
     * Generated from protobuf field <code>repeated string dofs = 11;</code>
     */
    private $dofs;
    /**
     * Generated from protobuf field <code>.Messages.Representation representation = 12;</code>
     */
    protected $representation = null;
    /**
     * s----Z Z----t
     *
     * Generated from protobuf field <code>bool enabled = 13;</code>
     */
    protected $enabled = false;
    /**
     * s---------->t
     *
     * Generated from protobuf field <code>bool forward = 14;</code>
     */
    protected $forward = false;
    /**
     * s<----------t
     *
     * Generated from protobuf field <code>bool reverse = 15;</code>
     */
    protected $reverse = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $source_system
     *           s---
     *     @type string $target_system
     *           ---t
     *     @type int|string $source_uid
     *           uid is only valid within a given session
     *     @type int|string $target_uid
     *           uid is only valid within a given session
     *     @type \Messages\Zone $source_region
     *           s---
     *     @type \Messages\Zone $target_region
     *           ---t
     *     @type int $sampling_mode
     *          reserved
     *     @type string $name
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $dofs
     *           s---wo---w1---w2---t
     *     @type \Messages\Representation $representation
     *     @type bool $enabled
     *           s----Z Z----t
     *     @type bool $forward
     *           s---------->t
     *     @type bool $reverse
     *           s<----------t
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Concept::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * ---t
     *
     * Generated from protobuf field <code>string target_system = 2;</code>
     * @return string
     */
    public function getTargetSystem()
    {
        return $this->target_system;
    }

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

        return $this;
    }

    /**
     * uid is only valid within a given session
     *
     * Generated from protobuf field <code>int64 source_uid = 3;</code>
     * @return int|string
     */
    public function getSourceUid()
    {
        return $this->source_uid;
    }

    /**
     * uid is only valid within a given session
     *
     * Generated from protobuf field <code>int64 source_uid = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setSourceUid($var)
    {
        GPBUtil::checkInt64($var);
        $this->source_uid = $var;

        return $this;
    }

    /**
     * uid is only valid within a given session
     *
     * Generated from protobuf field <code>int64 target_uid = 4;</code>
     * @return int|string
     */
    public function getTargetUid()
    {
        return $this->target_uid;
    }

    /**
     * uid is only valid within a given session
     *
     * Generated from protobuf field <code>int64 target_uid = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTargetUid($var)
    {
        GPBUtil::checkInt64($var);
        $this->target_uid = $var;

        return $this;
    }

    /**
     * s---
     *
     * Generated from protobuf field <code>.Messages.Zone source_region = 5;</code>
     * @return \Messages\Zone|null
     */
    public function getSourceRegion()
    {
        return $this->source_region;
    }

    public function hasSourceRegion()
    {
        return isset($this->source_region);
    }

    public function clearSourceRegion()
    {
        unset($this->source_region);
    }

    /**
     * s---
     *
     * Generated from protobuf field <code>.Messages.Zone source_region = 5;</code>
     * @param \Messages\Zone $var
     * @return $this
     */
    public function setSourceRegion($var)
    {
        GPBUtil::checkMessage($var, \Messages\Zone::class);
        $this->source_region = $var;

        return $this;
    }

    /**
     * ---t
     *
     * Generated from protobuf field <code>.Messages.Zone target_region = 6;</code>
     * @return \Messages\Zone|null
     */
    public function getTargetRegion()
    {
        return $this->target_region;
    }

    public function hasTargetRegion()
    {
        return isset($this->target_region);
    }

    public function clearTargetRegion()
    {
        unset($this->target_region);
    }

    /**
     * ---t
     *
     * Generated from protobuf field <code>.Messages.Zone target_region = 6;</code>
     * @param \Messages\Zone $var
     * @return $this
     */
    public function setTargetRegion($var)
    {
        GPBUtil::checkMessage($var, \Messages\Zone::class);
        $this->target_region = $var;

        return $this;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>uint32 sampling_mode = 9;</code>
     * @return int
     */
    public function getSamplingMode()
    {
        return $this->sampling_mode;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>uint32 sampling_mode = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setSamplingMode($var)
    {
        GPBUtil::checkUint32($var);
        $this->sampling_mode = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * s---wo---w1---w2---t
     *
     * Generated from protobuf field <code>repeated string dofs = 11;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDofs()
    {
        return $this->dofs;
    }

    /**
     * s---wo---w1---w2---t
     *
     * Generated from protobuf field <code>repeated string dofs = 11;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDofs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->dofs = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.Messages.Representation representation = 12;</code>
     * @return \Messages\Representation|null
     */
    public function getRepresentation()
    {
        return $this->representation;
    }

    public function hasRepresentation()
    {
        return isset($this->representation);
    }

    public function clearRepresentation()
    {
        unset($this->representation);
    }

    /**
     * Generated from protobuf field <code>.Messages.Representation representation = 12;</code>
     * @param \Messages\Representation $var
     * @return $this
     */
    public function setRepresentation($var)
    {
        GPBUtil::checkMessage($var, \Messages\Representation::class);
        $this->representation = $var;

        return $this;
    }

    /**
     * s----Z Z----t
     *
     * Generated from protobuf field <code>bool enabled = 13;</code>
     * @return bool
     */
    public function getEnabled()
    {
        return $this->enabled;
    }

    /**
     * s----Z Z----t
     *
     * Generated from protobuf field <code>bool enabled = 13;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->enabled = $var;

        return $this;
    }

    /**
     * s---------->t
     *
     * Generated from protobuf field <code>bool forward = 14;</code>
     * @return bool
     */
    public function getForward()
    {
        return $this->forward;
    }

    /**
     * s---------->t
     *
     * Generated from protobuf field <code>bool forward = 14;</code>
     * @param bool $var
     * @return $this
     */
    public function setForward($var)
    {
        GPBUtil::checkBool($var);
        $this->forward = $var;

        return $this;
    }

    /**
     * s<----------t
     *
     * Generated from protobuf field <code>bool reverse = 15;</code>
     * @return bool
     */
    public function getReverse()
    {
        return $this->reverse;
    }

    /**
     * s<----------t
     *
     * Generated from protobuf field <code>bool reverse = 15;</code>
     * @param bool $var
     * @return $this
     */
    public function setReverse($var)
    {
        GPBUtil::checkBool($var);
        $this->reverse = $var;

        return $this;
    }

}

