<?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;

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

/**
 * Definition of a slice.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice</code>
 */
class Slice extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The dimension of the slice.
     * Well-known dimensions are:
     *   * `annotationSpec`: This slice is on the test data that has either
     *     ground truth or prediction with
     *     [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name]
     *     equals to
     *     [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value].
     *
     * Generated from protobuf field <code>string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $dimension = '';
    /**
     * Output only. The value of the dimension in this slice.
     *
     * Generated from protobuf field <code>string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $value = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $dimension
     *           Output only. The dimension of the slice.
     *           Well-known dimensions are:
     *             * `annotationSpec`: This slice is on the test data that has either
     *               ground truth or prediction with
     *               [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name]
     *               equals to
     *               [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value].
     *     @type string $value
     *           Output only. The value of the dimension in this slice.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelEvaluationSlice::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The dimension of the slice.
     * Well-known dimensions are:
     *   * `annotationSpec`: This slice is on the test data that has either
     *     ground truth or prediction with
     *     [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name]
     *     equals to
     *     [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value].
     *
     * Generated from protobuf field <code>string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getDimension()
    {
        return $this->dimension;
    }

    /**
     * Output only. The dimension of the slice.
     * Well-known dimensions are:
     *   * `annotationSpec`: This slice is on the test data that has either
     *     ground truth or prediction with
     *     [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name]
     *     equals to
     *     [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value].
     *
     * Generated from protobuf field <code>string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setDimension($var)
    {
        GPBUtil::checkString($var, True);
        $this->dimension = $var;

        return $this;
    }

    /**
     * Output only. The value of the dimension in this slice.
     *
     * Generated from protobuf field <code>string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Output only. The value of the dimension in this slice.
     *
     * Generated from protobuf field <code>string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkString($var, True);
        $this->value = $var;

        return $this;
    }

}


