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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Details of operations that perform update PersistentResource.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.UpdatePersistentResourceOperationMetadata</code>
 */
class UpdatePersistentResourceOperationMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Operation metadata for PersistentResource.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;</code>
     */
    protected $generic_metadata = null;
    /**
     * Progress Message for Update LRO
     *
     * Generated from protobuf field <code>string progress_message = 2;</code>
     */
    protected $progress_message = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata
     *           Operation metadata for PersistentResource.
     *     @type string $progress_message
     *           Progress Message for Update LRO
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\PersistentResourceService::initOnce();
        parent::__construct($data);
    }

    /**
     * Operation metadata for PersistentResource.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;</code>
     * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null
     */
    public function getGenericMetadata()
    {
        return $this->generic_metadata;
    }

    public function hasGenericMetadata()
    {
        return isset($this->generic_metadata);
    }

    public function clearGenericMetadata()
    {
        unset($this->generic_metadata);
    }

    /**
     * Operation metadata for PersistentResource.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;</code>
     * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var
     * @return $this
     */
    public function setGenericMetadata($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class);
        $this->generic_metadata = $var;

        return $this;
    }

    /**
     * Progress Message for Update LRO
     *
     * Generated from protobuf field <code>string progress_message = 2;</code>
     * @return string
     */
    public function getProgressMessage()
    {
        return $this->progress_message;
    }

    /**
     * Progress Message for Update LRO
     *
     * Generated from protobuf field <code>string progress_message = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setProgressMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->progress_message = $var;

        return $this;
    }

}

