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

namespace Google\Cloud\BigQuery\DataTransfer\V1;

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

/**
 * Represents the request of the UpdateDataSourceDefinition method.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.datatransfer.v1.UpdateDataSourceDefinitionRequest</code>
 */
class UpdateDataSourceDefinitionRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Data source definition.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;</code>
     */
    private $data_source_definition = null;
    /**
     * Update field mask.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    private $update_mask = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\BigQuery\DataTransfer\V1\DataSourceDefinition $data_source_definition
     *           Data source definition.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Update field mask.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Datatransfer\V1\Datasource::initOnce();
        parent::__construct($data);
    }

    /**
     * Data source definition.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;</code>
     * @return \Google\Cloud\BigQuery\DataTransfer\V1\DataSourceDefinition
     */
    public function getDataSourceDefinition()
    {
        return $this->data_source_definition;
    }

    /**
     * Data source definition.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.datatransfer.v1.DataSourceDefinition data_source_definition = 1;</code>
     * @param \Google\Cloud\BigQuery\DataTransfer\V1\DataSourceDefinition $var
     * @return $this
     */
    public function setDataSourceDefinition($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\DataTransfer\V1\DataSourceDefinition::class);
        $this->data_source_definition = $var;

        return $this;
    }

    /**
     * Update field mask.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @return \Google\Protobuf\FieldMask
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    /**
     * Update field mask.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @param \Google\Protobuf\FieldMask $var
     * @return $this
     */
    public function setUpdateMask($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
        $this->update_mask = $var;

        return $this;
    }

}

