<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/jobs.proto

namespace Google\Cloud\Dataflow\V1beta3;

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

/**
 * Metadata available primarily for filtering jobs. Will be included in the
 * ListJob response and Job SUMMARY view.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.JobMetadata</code>
 */
class JobMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The SDK version used to run the job.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SdkVersion sdk_version = 1;</code>
     */
    protected $sdk_version = null;
    /**
     * Identification of a Spanner source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.SpannerIODetails spanner_details = 2;</code>
     */
    private $spanner_details;
    /**
     * Identification of a BigQuery source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.BigQueryIODetails bigquery_details = 3;</code>
     */
    private $bigquery_details;
    /**
     * Identification of a Cloud Bigtable source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.BigTableIODetails big_table_details = 4;</code>
     */
    private $big_table_details;
    /**
     * Identification of a Pub/Sub source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.PubSubIODetails pubsub_details = 5;</code>
     */
    private $pubsub_details;
    /**
     * Identification of a File source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.FileIODetails file_details = 6;</code>
     */
    private $file_details;
    /**
     * Identification of a Datastore source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.DatastoreIODetails datastore_details = 7;</code>
     */
    private $datastore_details;
    /**
     * List of display properties to help UI filter jobs.
     *
     * Generated from protobuf field <code>map<string, string> user_display_properties = 8;</code>
     */
    private $user_display_properties;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dataflow\V1beta3\SdkVersion $sdk_version
     *           The SDK version used to run the job.
     *     @type \Google\Cloud\Dataflow\V1beta3\SpannerIODetails[] $spanner_details
     *           Identification of a Spanner source used in the Dataflow job.
     *     @type \Google\Cloud\Dataflow\V1beta3\BigQueryIODetails[] $bigquery_details
     *           Identification of a BigQuery source used in the Dataflow job.
     *     @type \Google\Cloud\Dataflow\V1beta3\BigTableIODetails[] $big_table_details
     *           Identification of a Cloud Bigtable source used in the Dataflow job.
     *     @type \Google\Cloud\Dataflow\V1beta3\PubSubIODetails[] $pubsub_details
     *           Identification of a Pub/Sub source used in the Dataflow job.
     *     @type \Google\Cloud\Dataflow\V1beta3\FileIODetails[] $file_details
     *           Identification of a File source used in the Dataflow job.
     *     @type \Google\Cloud\Dataflow\V1beta3\DatastoreIODetails[] $datastore_details
     *           Identification of a Datastore source used in the Dataflow job.
     *     @type array|\Google\Protobuf\Internal\MapField $user_display_properties
     *           List of display properties to help UI filter jobs.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce();
        parent::__construct($data);
    }

    /**
     * The SDK version used to run the job.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SdkVersion sdk_version = 1;</code>
     * @return \Google\Cloud\Dataflow\V1beta3\SdkVersion|null
     */
    public function getSdkVersion()
    {
        return $this->sdk_version;
    }

    public function hasSdkVersion()
    {
        return isset($this->sdk_version);
    }

    public function clearSdkVersion()
    {
        unset($this->sdk_version);
    }

    /**
     * The SDK version used to run the job.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SdkVersion sdk_version = 1;</code>
     * @param \Google\Cloud\Dataflow\V1beta3\SdkVersion $var
     * @return $this
     */
    public function setSdkVersion($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\SdkVersion::class);
        $this->sdk_version = $var;

        return $this;
    }

    /**
     * Identification of a Spanner source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.SpannerIODetails spanner_details = 2;</code>
     * @return RepeatedField<\Google\Cloud\Dataflow\V1beta3\SpannerIODetails>
     */
    public function getSpannerDetails()
    {
        return $this->spanner_details;
    }

    /**
     * Identification of a Spanner source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.SpannerIODetails spanner_details = 2;</code>
     * @param \Google\Cloud\Dataflow\V1beta3\SpannerIODetails[] $var
     * @return $this
     */
    public function setSpannerDetails($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\SpannerIODetails::class);
        $this->spanner_details = $arr;

        return $this;
    }

    /**
     * Identification of a BigQuery source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.BigQueryIODetails bigquery_details = 3;</code>
     * @return RepeatedField<\Google\Cloud\Dataflow\V1beta3\BigQueryIODetails>
     */
    public function getBigqueryDetails()
    {
        return $this->bigquery_details;
    }

    /**
     * Identification of a BigQuery source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.BigQueryIODetails bigquery_details = 3;</code>
     * @param \Google\Cloud\Dataflow\V1beta3\BigQueryIODetails[] $var
     * @return $this
     */
    public function setBigqueryDetails($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\BigQueryIODetails::class);
        $this->bigquery_details = $arr;

        return $this;
    }

    /**
     * Identification of a Cloud Bigtable source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.BigTableIODetails big_table_details = 4;</code>
     * @return RepeatedField<\Google\Cloud\Dataflow\V1beta3\BigTableIODetails>
     */
    public function getBigTableDetails()
    {
        return $this->big_table_details;
    }

    /**
     * Identification of a Cloud Bigtable source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.BigTableIODetails big_table_details = 4;</code>
     * @param \Google\Cloud\Dataflow\V1beta3\BigTableIODetails[] $var
     * @return $this
     */
    public function setBigTableDetails($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\BigTableIODetails::class);
        $this->big_table_details = $arr;

        return $this;
    }

    /**
     * Identification of a Pub/Sub source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.PubSubIODetails pubsub_details = 5;</code>
     * @return RepeatedField<\Google\Cloud\Dataflow\V1beta3\PubSubIODetails>
     */
    public function getPubsubDetails()
    {
        return $this->pubsub_details;
    }

    /**
     * Identification of a Pub/Sub source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.PubSubIODetails pubsub_details = 5;</code>
     * @param \Google\Cloud\Dataflow\V1beta3\PubSubIODetails[] $var
     * @return $this
     */
    public function setPubsubDetails($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\PubSubIODetails::class);
        $this->pubsub_details = $arr;

        return $this;
    }

    /**
     * Identification of a File source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.FileIODetails file_details = 6;</code>
     * @return RepeatedField<\Google\Cloud\Dataflow\V1beta3\FileIODetails>
     */
    public function getFileDetails()
    {
        return $this->file_details;
    }

    /**
     * Identification of a File source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.FileIODetails file_details = 6;</code>
     * @param \Google\Cloud\Dataflow\V1beta3\FileIODetails[] $var
     * @return $this
     */
    public function setFileDetails($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\FileIODetails::class);
        $this->file_details = $arr;

        return $this;
    }

    /**
     * Identification of a Datastore source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.DatastoreIODetails datastore_details = 7;</code>
     * @return RepeatedField<\Google\Cloud\Dataflow\V1beta3\DatastoreIODetails>
     */
    public function getDatastoreDetails()
    {
        return $this->datastore_details;
    }

    /**
     * Identification of a Datastore source used in the Dataflow job.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.DatastoreIODetails datastore_details = 7;</code>
     * @param \Google\Cloud\Dataflow\V1beta3\DatastoreIODetails[] $var
     * @return $this
     */
    public function setDatastoreDetails($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\DatastoreIODetails::class);
        $this->datastore_details = $arr;

        return $this;
    }

    /**
     * List of display properties to help UI filter jobs.
     *
     * Generated from protobuf field <code>map<string, string> user_display_properties = 8;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getUserDisplayProperties()
    {
        return $this->user_display_properties;
    }

    /**
     * List of display properties to help UI filter jobs.
     *
     * Generated from protobuf field <code>map<string, string> user_display_properties = 8;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setUserDisplayProperties($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->user_display_properties = $arr;

        return $this;
    }

}

