<?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 = 440379652;</code>
     */
    private $actual_service = null;
    /**
     * 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 = null;
    /**
     * Host portion of the URL.
     *
     * Generated from protobuf field <code>string host = 3208616;</code>
     */
    private $host = null;
    /**
     * Path portion including query parameters in the URL.
     *
     * Generated from protobuf field <code>string path = 3433509;</code>
     */
    private $path = null;

    /**
     * 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 = 440379652;</code>
     * @return string
     */
    public function getActualService()
    {
        return isset($this->actual_service) ? $this->actual_service : '';
    }

    public function hasActualService()
    {
        return isset($this->actual_service);
    }

    public function clearActualService()
    {
        unset($this->actual_service);
    }

    /**
     * BackendService or BackendBucket returned by load balancer.
     *
     * Generated from protobuf field <code>string actual_service = 440379652;</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 isset($this->expected_service) ? $this->expected_service : '';
    }

    public function hasExpectedService()
    {
        return isset($this->expected_service);
    }

    public function clearExpectedService()
    {
        unset($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 isset($this->host) ? $this->host : '';
    }

    public function hasHost()
    {
        return isset($this->host);
    }

    public function clearHost()
    {
        unset($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 isset($this->path) ? $this->path : '';
    }

    public function hasPath()
    {
        return isset($this->path);
    }

    public function clearPath()
    {
        unset($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;
    }

}

