<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/api/serviceusage/v1/resources.proto

namespace Google\Cloud\ServiceUsage\V1;

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

/**
 * The operation metadata returned for the batchend services operation.
 *
 * Generated from protobuf message <code>google.api.serviceusage.v1.OperationMetadata</code>
 */
class OperationMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The full name of the resources that this operation is directly
     * associated with.
     *
     * Generated from protobuf field <code>repeated string resource_names = 2;</code>
     */
    private $resource_names;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $resource_names
     *           The full name of the resources that this operation is directly
     *           associated with.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Api\Serviceusage\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * The full name of the resources that this operation is directly
     * associated with.
     *
     * Generated from protobuf field <code>repeated string resource_names = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getResourceNames()
    {
        return $this->resource_names;
    }

    /**
     * The full name of the resources that this operation is directly
     * associated with.
     *
     * Generated from protobuf field <code>repeated string resource_names = 2;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setResourceNames($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->resource_names = $arr;

        return $this;
    }

}

