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

namespace Google\Cloud\CloudDms\V1;

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

/**
 * Error message of a verification Migration job.
 *
 * Generated from protobuf message <code>google.cloud.clouddms.v1.MigrationJobVerificationError</code>
 */
class MigrationJobVerificationError extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. An instance of ErrorCode specifying the error that occurred.
     *
     * Generated from protobuf field <code>.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $error_code = 0;
    /**
     * Output only. A formatted message with further details about the error and a CTA.
     *
     * Generated from protobuf field <code>string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $error_message = '';
    /**
     * Output only. A specific detailed error message, if supplied by the engine.
     *
     * Generated from protobuf field <code>string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $error_detail_message = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $error_code
     *           Output only. An instance of ErrorCode specifying the error that occurred.
     *     @type string $error_message
     *           Output only. A formatted message with further details about the error and a CTA.
     *     @type string $error_detail_message
     *           Output only. A specific detailed error message, if supplied by the engine.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Clouddms\V1\ClouddmsResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. An instance of ErrorCode specifying the error that occurred.
     *
     * Generated from protobuf field <code>.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getErrorCode()
    {
        return $this->error_code;
    }

    /**
     * Output only. An instance of ErrorCode specifying the error that occurred.
     *
     * Generated from protobuf field <code>.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setErrorCode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\CloudDms\V1\MigrationJobVerificationError\ErrorCode::class);
        $this->error_code = $var;

        return $this;
    }

    /**
     * Output only. A formatted message with further details about the error and a CTA.
     *
     * Generated from protobuf field <code>string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getErrorMessage()
    {
        return $this->error_message;
    }

    /**
     * Output only. A formatted message with further details about the error and a CTA.
     *
     * Generated from protobuf field <code>string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setErrorMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->error_message = $var;

        return $this;
    }

    /**
     * Output only. A specific detailed error message, if supplied by the engine.
     *
     * Generated from protobuf field <code>string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getErrorDetailMessage()
    {
        return $this->error_detail_message;
    }

    /**
     * Output only. A specific detailed error message, if supplied by the engine.
     *
     * Generated from protobuf field <code>string error_detail_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setErrorDetailMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->error_detail_message = $var;

        return $this;
    }

}

