<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/automl/v1beta1/operations.proto

namespace Google\Cloud\AutoMl\V1beta1\BatchPredictOperationMetadata;

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

/**
 * Further describes this batch predict's output.
 * Supplements
 * [BatchPredictOutputConfig][google.cloud.automl.v1beta1.BatchPredictOutputConfig].
 *
 * Generated from protobuf message <code>google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo</code>
 */
class BatchPredictOutputInfo extends \Google\Protobuf\Internal\Message
{
    protected $output_location;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $gcs_output_directory
     *           The full path of the Google Cloud Storage directory created, into which
     *           the prediction output is written.
     *     @type string $bigquery_output_dataset
     *           The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
     *           format, into which the prediction output is written.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Automl\V1Beta1\Operations::initOnce();
        parent::__construct($data);
    }

    /**
     * The full path of the Google Cloud Storage directory created, into which
     * the prediction output is written.
     *
     * Generated from protobuf field <code>string gcs_output_directory = 1;</code>
     * @return string
     */
    public function getGcsOutputDirectory()
    {
        return $this->readOneof(1);
    }

    public function hasGcsOutputDirectory()
    {
        return $this->hasOneof(1);
    }

    /**
     * The full path of the Google Cloud Storage directory created, into which
     * the prediction output is written.
     *
     * Generated from protobuf field <code>string gcs_output_directory = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setGcsOutputDirectory($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
     * format, into which the prediction output is written.
     *
     * Generated from protobuf field <code>string bigquery_output_dataset = 2;</code>
     * @return string
     */
    public function getBigqueryOutputDataset()
    {
        return $this->readOneof(2);
    }

    public function hasBigqueryOutputDataset()
    {
        return $this->hasOneof(2);
    }

    /**
     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
     * format, into which the prediction output is written.
     *
     * Generated from protobuf field <code>string bigquery_output_dataset = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setBigqueryOutputDataset($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(2, $var);

        return $this;
    }

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

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchPredictOutputInfo::class, \Google\Cloud\AutoMl\V1beta1\BatchPredictOperationMetadata_BatchPredictOutputInfo::class);

