<?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.InstanceManagedByIgmErrorManagedInstanceError</code>
 */
class InstanceManagedByIgmErrorManagedInstanceError extends \Google\Protobuf\Internal\Message
{
    /**
     * [Output Only] Error code.
     *
     * Generated from protobuf field <code>string code = 3059181;</code>
     */
    private $code = '';
    /**
     * [Output Only] Error message.
     *
     * Generated from protobuf field <code>string message = 149618695;</code>
     */
    private $message = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $code
     *           [Output Only] Error code.
     *     @type string $message
     *           [Output Only] Error message.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * [Output Only] Error code.
     *
     * Generated from protobuf field <code>string code = 3059181;</code>
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * [Output Only] Error code.
     *
     * Generated from protobuf field <code>string code = 3059181;</code>
     * @param string $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->code = $var;

        return $this;
    }

    /**
     * [Output Only] Error message.
     *
     * Generated from protobuf field <code>string message = 149618695;</code>
     * @return string
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * [Output Only] Error message.
     *
     * Generated from protobuf field <code>string message = 149618695;</code>
     * @param string $var
     * @return $this
     */
    public function setMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->message = $var;

        return $this;
    }

}

