<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck</code>
 */
class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. [Output Only] Errors encountered during bulk instance operation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.Error error = 96784904;</code>
     */
    protected $error = null;
    /**
     * Output only. [Output Only] Timestamp of the last progress check of bulk instance
     * operation. Timestamp is in RFC3339 text format.
     *
     * Generated from protobuf field <code>optional string timestamp = 55126294;</code>
     */
    protected $timestamp = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\Error $error
     *           Output only. [Output Only] Errors encountered during bulk instance operation.
     *     @type string $timestamp
     *           Output only. [Output Only] Timestamp of the last progress check of bulk instance
     *           operation. Timestamp is in RFC3339 text format.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. [Output Only] Errors encountered during bulk instance operation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.Error error = 96784904;</code>
     * @return \Google\Cloud\Compute\V1\Error|null
     */
    public function getError()
    {
        return $this->error;
    }

    public function hasError()
    {
        return isset($this->error);
    }

    public function clearError()
    {
        unset($this->error);
    }

    /**
     * Output only. [Output Only] Errors encountered during bulk instance operation.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.Error error = 96784904;</code>
     * @param \Google\Cloud\Compute\V1\Error $var
     * @return $this
     */
    public function setError($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\Error::class);
        $this->error = $var;

        return $this;
    }

    /**
     * Output only. [Output Only] Timestamp of the last progress check of bulk instance
     * operation. Timestamp is in RFC3339 text format.
     *
     * Generated from protobuf field <code>optional string timestamp = 55126294;</code>
     * @return string
     */
    public function getTimestamp()
    {
        return isset($this->timestamp) ? $this->timestamp : '';
    }

    public function hasTimestamp()
    {
        return isset($this->timestamp);
    }

    public function clearTimestamp()
    {
        unset($this->timestamp);
    }

    /**
     * Output only. [Output Only] Timestamp of the last progress check of bulk instance
     * operation. Timestamp is in RFC3339 text format.
     *
     * Generated from protobuf field <code>optional string timestamp = 55126294;</code>
     * @param string $var
     * @return $this
     */
    public function setTimestamp($var)
    {
        GPBUtil::checkString($var, True);
        $this->timestamp = $var;

        return $this;
    }

}

