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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Response message for
 * [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ReadTensorboardUsageResponse</code>
 */
class ReadTensorboardUsageResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Maps year-month (YYYYMM) string to per month usage data.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData> monthly_usage_data = 1;</code>
     */
    private $monthly_usage_data;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $monthly_usage_data
     *           Maps year-month (YYYYMM) string to per month usage data.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce();
        parent::__construct($data);
    }

    /**
     * Maps year-month (YYYYMM) string to per month usage data.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData> monthly_usage_data = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getMonthlyUsageData()
    {
        return $this->monthly_usage_data;
    }

    /**
     * Maps year-month (YYYYMM) string to per month usage data.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData> monthly_usage_data = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setMonthlyUsageData($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ReadTensorboardUsageResponse\PerMonthUsageData::class);
        $this->monthly_usage_data = $arr;

        return $this;
    }

}

