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

namespace Google\Cloud\AIPlatform\V1\ModelEvaluationSlice\Slice;

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

/**
 * Specification for how the data should be sliced.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec</code>
 */
class SliceSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Mapping configuration for this SliceSpec.
     * The key is the name of the feature.
     * By default, the key will be prefixed by "instance" as a dictionary
     * prefix for Vertex Batch Predictions output format.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig> configs = 1;</code>
     */
    private $configs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $configs
     *           Mapping configuration for this SliceSpec.
     *           The key is the name of the feature.
     *           By default, the key will be prefixed by "instance" as a dictionary
     *           prefix for Vertex Batch Predictions output format.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelEvaluationSlice::initOnce();
        parent::__construct($data);
    }

    /**
     * Mapping configuration for this SliceSpec.
     * The key is the name of the feature.
     * By default, the key will be prefixed by "instance" as a dictionary
     * prefix for Vertex Batch Predictions output format.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig> configs = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getConfigs()
    {
        return $this->configs;
    }

    /**
     * Mapping configuration for this SliceSpec.
     * The key is the name of the feature.
     * By default, the key will be prefixed by "instance" as a dictionary
     * prefix for Vertex Batch Predictions output format.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec.SliceConfig> configs = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setConfigs($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ModelEvaluationSlice\Slice\SliceSpec\SliceConfig::class);
        $this->configs = $arr;

        return $this;
    }

}


