<?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.TestFailure</code>
 */
class TestFailure extends \Google\Protobuf\Internal\Message
{
    /**
     * BackendService or BackendBucket returned by load balancer.
     *
     * Generated from protobuf field <code>string actual_service = 171944196;</code>
     */
    private $actual_service = '';
    /**
     * Expected BackendService or BackendBucket resource the given URL should be mapped to.
     *
     * Generated from protobuf field <code>string expected_service = 133987374;</code>
     */
    private $expected_service = '';
    /**
     * Host portion of the URL.
     *
     * Generated from protobuf field <code>string host = 3208616;</code>
     */
    private $host = '';
    /**
     * Path portion including query parameters in the URL.
     *
     * Generated from protobuf field <code>string path = 3433509;</code>
     */
    private $path = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $actual_service
     *           BackendService or BackendBucket returned by load balancer.
     *     @type string $expected_service
     *           Expected BackendService or BackendBucket resource the given URL should be mapped to.
     *     @type string $host
     *           Host portion of the URL.
     *     @type string $path
     *           Path portion including query parameters in the URL.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * BackendService or BackendBucket returned by load balancer.
     *
     * Generated from protobuf field <code>string actual_service = 171944196;</code>
     * @return string
     */
    public function getActualService()
    {
        return $this->actual_service;
    }

    /**
     * BackendService or BackendBucket returned by load balancer.
     *
     * Generated from protobuf field <code>string actual_service = 171944196;</code>
     * @param string $var
     * @return $this
     */
    public function setActualService($var)
    {
        GPBUtil::checkString($var, True);
        $this->actual_service = $var;

        return $this;
    }

    /**
     * Expected BackendService or BackendBucket resource the given URL should be mapped to.
     *
     * Generated from protobuf field <code>string expected_service = 133987374;</code>
     * @return string
     */
    public function getExpectedService()
    {
        return $this->expected_service;
    }

    /**
     * Expected BackendService or BackendBucket resource the given URL should be mapped to.
     *
     * Generated from protobuf field <code>string expected_service = 133987374;</code>
     * @param string $var
     * @return $this
     */
    public function setExpectedService($var)
    {
        GPBUtil::checkString($var, True);
        $this->expected_service = $var;

        return $this;
    }

    /**
     * Host portion of the URL.
     *
     * Generated from protobuf field <code>string host = 3208616;</code>
     * @return string
     */
    public function getHost()
    {
        return $this->host;
    }

    /**
     * Host portion of the URL.
     *
     * Generated from protobuf field <code>string host = 3208616;</code>
     * @param string $var
     * @return $this
     */
    public function setHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->host = $var;

        return $this;
    }

    /**
     * Path portion including query parameters in the URL.
     *
     * Generated from protobuf field <code>string path = 3433509;</code>
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * Path portion including query parameters in the URL.
     *
     * Generated from protobuf field <code>string path = 3433509;</code>
     * @param string $var
     * @return $this
     */
    public function setPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->path = $var;

        return $this;
    }

}

