<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/generator_evaluation.proto

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Generator evaluation input config.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.GeneratorEvaluationConfig</code>
 */
class GeneratorEvaluationConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The config/source of input data.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $input_data_config = null;
    /**
     * Required. The output Cloud Storage bucket path to store eval files, e.g.
     * per_summary_accuracy_score report. This path is provided by customer and
     * files stored in it are visible to customer, no internal data should be
     * stored in this path.
     *
     * Generated from protobuf field <code>string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $output_gcs_bucket_path = '';
    protected $evaluation_feature_config;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dialogflow\V2\GeneratorEvaluationConfig\InputDataConfig $input_data_config
     *           Required. The config/source of input data.
     *     @type string $output_gcs_bucket_path
     *           Required. The output Cloud Storage bucket path to store eval files, e.g.
     *           per_summary_accuracy_score report. This path is provided by customer and
     *           files stored in it are visible to customer, no internal data should be
     *           stored in this path.
     *     @type \Google\Cloud\Dialogflow\V2\GeneratorEvaluationConfig\SummarizationConfig $summarization_config
     *           Evaluation configs for summarization generator.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\GeneratorEvaluation::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The config/source of input data.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\Dialogflow\V2\GeneratorEvaluationConfig\InputDataConfig|null
     */
    public function getInputDataConfig()
    {
        return $this->input_data_config;
    }

    public function hasInputDataConfig()
    {
        return isset($this->input_data_config);
    }

    public function clearInputDataConfig()
    {
        unset($this->input_data_config);
    }

    /**
     * Required. The config/source of input data.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.GeneratorEvaluationConfig.InputDataConfig input_data_config = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Dialogflow\V2\GeneratorEvaluationConfig\InputDataConfig $var
     * @return $this
     */
    public function setInputDataConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\GeneratorEvaluationConfig\InputDataConfig::class);
        $this->input_data_config = $var;

        return $this;
    }

    /**
     * Required. The output Cloud Storage bucket path to store eval files, e.g.
     * per_summary_accuracy_score report. This path is provided by customer and
     * files stored in it are visible to customer, no internal data should be
     * stored in this path.
     *
     * Generated from protobuf field <code>string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getOutputGcsBucketPath()
    {
        return $this->output_gcs_bucket_path;
    }

    /**
     * Required. The output Cloud Storage bucket path to store eval files, e.g.
     * per_summary_accuracy_score report. This path is provided by customer and
     * files stored in it are visible to customer, no internal data should be
     * stored in this path.
     *
     * Generated from protobuf field <code>string output_gcs_bucket_path = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setOutputGcsBucketPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->output_gcs_bucket_path = $var;

        return $this;
    }

    /**
     * Evaluation configs for summarization generator.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3;</code>
     * @return \Google\Cloud\Dialogflow\V2\GeneratorEvaluationConfig\SummarizationConfig|null
     */
    public function getSummarizationConfig()
    {
        return $this->readOneof(3);
    }

    public function hasSummarizationConfig()
    {
        return $this->hasOneof(3);
    }

    /**
     * Evaluation configs for summarization generator.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.GeneratorEvaluationConfig.SummarizationConfig summarization_config = 3;</code>
     * @param \Google\Cloud\Dialogflow\V2\GeneratorEvaluationConfig\SummarizationConfig $var
     * @return $this
     */
    public function setSummarizationConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\GeneratorEvaluationConfig\SummarizationConfig::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getEvaluationFeatureConfig()
    {
        return $this->whichOneof("evaluation_feature_config");
    }

}

