<?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;

/**
 * A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.RequestMirrorPolicy</code>
 */
class RequestMirrorPolicy extends \Google\Protobuf\Internal\Message
{
    /**
     * The full or partial URL to the BackendService resource being mirrored to.
     *
     * Generated from protobuf field <code>string backend_service = 38510602;</code>
     */
    private $backend_service = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $backend_service
     *           The full or partial URL to the BackendService resource being mirrored to.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The full or partial URL to the BackendService resource being mirrored to.
     *
     * Generated from protobuf field <code>string backend_service = 38510602;</code>
     * @return string
     */
    public function getBackendService()
    {
        return $this->backend_service;
    }

    /**
     * The full or partial URL to the BackendService resource being mirrored to.
     *
     * Generated from protobuf field <code>string backend_service = 38510602;</code>
     * @param string $var
     * @return $this
     */
    public function setBackendService($var)
    {
        GPBUtil::checkString($var, True);
        $this->backend_service = $var;

        return $this;
    }

}

