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

namespace Google\Cloud\ConfigDelivery\V1;

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

/**
 * Information representing an error encountered during rolling out
 * configurations.
 *
 * Generated from protobuf message <code>google.cloud.configdelivery.v1.FleetPackageError</code>
 */
class FleetPackageError extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. A description of the error.
     *
     * Generated from protobuf field <code>string error_message = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $error_message = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $error_message
     *           Optional. A description of the error.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Configdelivery\V1\ConfigDelivery::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. A description of the error.
     *
     * Generated from protobuf field <code>string error_message = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getErrorMessage()
    {
        return $this->error_message;
    }

    /**
     * Optional. A description of the error.
     *
     * Generated from protobuf field <code>string error_message = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setErrorMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->error_message = $var;

        return $this;
    }

}

