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

namespace Google\Cloud\NetworkServices\V1;

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

/**
 * GatewayRouteView defines view-only resource for Routes to a Gateway
 *
 * Generated from protobuf message <code>google.cloud.networkservices.v1.GatewayRouteView</code>
 */
class GatewayRouteView extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Identifier. Full path name of the GatewayRouteView resource.
     * Format:
     *   projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * Output only. Project number where the route exists.
     *
     * Generated from protobuf field <code>int64 route_project_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $route_project_number = 0;
    /**
     * Output only. Location where the route exists.
     *
     * Generated from protobuf field <code>string route_location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $route_location = '';
    /**
     * Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
     *
     * Generated from protobuf field <code>string route_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $route_type = '';
    /**
     * Output only. The resource id for the route.
     *
     * Generated from protobuf field <code>string route_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $route_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Output only. Identifier. Full path name of the GatewayRouteView resource.
     *           Format:
     *             projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
     *     @type int|string $route_project_number
     *           Output only. Project number where the route exists.
     *     @type string $route_location
     *           Output only. Location where the route exists.
     *     @type string $route_type
     *           Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
     *     @type string $route_id
     *           Output only. The resource id for the route.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Networkservices\V1\RouteView::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Identifier. Full path name of the GatewayRouteView resource.
     * Format:
     *   projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Output only. Identifier. Full path name of the GatewayRouteView resource.
     * Format:
     *   projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. Project number where the route exists.
     *
     * Generated from protobuf field <code>int64 route_project_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getRouteProjectNumber()
    {
        return $this->route_project_number;
    }

    /**
     * Output only. Project number where the route exists.
     *
     * Generated from protobuf field <code>int64 route_project_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setRouteProjectNumber($var)
    {
        GPBUtil::checkInt64($var);
        $this->route_project_number = $var;

        return $this;
    }

    /**
     * Output only. Location where the route exists.
     *
     * Generated from protobuf field <code>string route_location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getRouteLocation()
    {
        return $this->route_location;
    }

    /**
     * Output only. Location where the route exists.
     *
     * Generated from protobuf field <code>string route_location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setRouteLocation($var)
    {
        GPBUtil::checkString($var, True);
        $this->route_location = $var;

        return $this;
    }

    /**
     * Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
     *
     * Generated from protobuf field <code>string route_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getRouteType()
    {
        return $this->route_type;
    }

    /**
     * Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
     *
     * Generated from protobuf field <code>string route_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setRouteType($var)
    {
        GPBUtil::checkString($var, True);
        $this->route_type = $var;

        return $this;
    }

    /**
     * Output only. The resource id for the route.
     *
     * Generated from protobuf field <code>string route_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getRouteId()
    {
        return $this->route_id;
    }

    /**
     * Output only. The resource id for the route.
     *
     * Generated from protobuf field <code>string route_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setRouteId($var)
    {
        GPBUtil::checkString($var, True);
        $this->route_id = $var;

        return $this;
    }

}

