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

namespace Google\Cloud\CloudControlsPartner\V1beta\EkmConnection;

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

/**
 * Information around the error that occurred if the connection state is
 * anything other than available or unspecified
 *
 * Generated from protobuf message <code>google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError</code>
 */
class ConnectionError extends \Google\Protobuf\Internal\Message
{
    /**
     * The error domain for the error
     *
     * Generated from protobuf field <code>string error_domain = 1;</code>
     */
    protected $error_domain = '';
    /**
     * The error message for the error
     *
     * Generated from protobuf field <code>string error_message = 2;</code>
     */
    protected $error_message = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $error_domain
     *           The error domain for the error
     *     @type string $error_message
     *           The error message for the error
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce();
        parent::__construct($data);
    }

    /**
     * The error domain for the error
     *
     * Generated from protobuf field <code>string error_domain = 1;</code>
     * @return string
     */
    public function getErrorDomain()
    {
        return $this->error_domain;
    }

    /**
     * The error domain for the error
     *
     * Generated from protobuf field <code>string error_domain = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setErrorDomain($var)
    {
        GPBUtil::checkString($var, True);
        $this->error_domain = $var;

        return $this;
    }

    /**
     * The error message for the error
     *
     * Generated from protobuf field <code>string error_message = 2;</code>
     * @return string
     */
    public function getErrorMessage()
    {
        return $this->error_message;
    }

    /**
     * The error message for the error
     *
     * Generated from protobuf field <code>string error_message = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setErrorMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->error_message = $var;

        return $this;
    }

}


