<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/compute/v1/compute.proto

namespace Google\Cloud\Compute\V1;

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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.RouteAsPath</code>
 */
class RouteAsPath extends \Google\Protobuf\Internal\Message
{
    /**
     * [Output Only] The AS numbers of the AS Path.
     *
     * Generated from protobuf field <code>repeated uint32 as_lists = 134112584;</code>
     */
    private $as_lists;
    /**
     * [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
     * Check the PathSegmentType enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string path_segment_type = 513464992;</code>
     */
    protected $path_segment_type = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $as_lists
     *           [Output Only] The AS numbers of the AS Path.
     *     @type string $path_segment_type
     *           [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
     *           Check the PathSegmentType enum for the list of possible values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * [Output Only] The AS numbers of the AS Path.
     *
     * Generated from protobuf field <code>repeated uint32 as_lists = 134112584;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAsLists()
    {
        return $this->as_lists;
    }

    /**
     * [Output Only] The AS numbers of the AS Path.
     *
     * Generated from protobuf field <code>repeated uint32 as_lists = 134112584;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAsLists($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
        $this->as_lists = $arr;

        return $this;
    }

    /**
     * [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
     * Check the PathSegmentType enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string path_segment_type = 513464992;</code>
     * @return string
     */
    public function getPathSegmentType()
    {
        return isset($this->path_segment_type) ? $this->path_segment_type : '';
    }

    public function hasPathSegmentType()
    {
        return isset($this->path_segment_type);
    }

    public function clearPathSegmentType()
    {
        unset($this->path_segment_type);
    }

    /**
     * [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed
     * Check the PathSegmentType enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string path_segment_type = 513464992;</code>
     * @param string $var
     * @return $this
     */
    public function setPathSegmentType($var)
    {
        GPBUtil::checkString($var, True);
        $this->path_segment_type = $var;

        return $this;
    }

}

