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

namespace Google\Cloud\SecurityCenter\V1;

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

/**
 * Request message for updating a BigQuery export.
 *
 * Generated from protobuf message <code>google.cloud.securitycenter.v1.UpdateBigQueryExportRequest</code>
 */
class UpdateBigQueryExportRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The BigQuery export being updated.
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $big_query_export = null;
    /**
     * The list of fields to be updated.
     * If empty all mutable fields will be updated.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    private $update_mask = null;

    /**
     * @param \Google\Cloud\SecurityCenter\V1\BigQueryExport $bigQueryExport Required. The BigQuery export being updated.
     * @param \Google\Protobuf\FieldMask                     $updateMask     The list of fields to be updated.
     *                                                                       If empty all mutable fields will be updated.
     *
     * @return \Google\Cloud\SecurityCenter\V1\UpdateBigQueryExportRequest
     *
     * @experimental
     */
    public static function build(\Google\Cloud\SecurityCenter\V1\BigQueryExport $bigQueryExport, \Google\Protobuf\FieldMask $updateMask): self
    {
        return (new self())
            ->setBigQueryExport($bigQueryExport)
            ->setUpdateMask($updateMask);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\SecurityCenter\V1\BigQueryExport $big_query_export
     *           Required. The BigQuery export being updated.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           The list of fields to be updated.
     *           If empty all mutable fields will be updated.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securitycenter\V1\SecuritycenterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The BigQuery export being updated.
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\SecurityCenter\V1\BigQueryExport|null
     */
    public function getBigQueryExport()
    {
        return $this->big_query_export;
    }

    public function hasBigQueryExport()
    {
        return isset($this->big_query_export);
    }

    public function clearBigQueryExport()
    {
        unset($this->big_query_export);
    }

    /**
     * Required. The BigQuery export being updated.
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\SecurityCenter\V1\BigQueryExport $var
     * @return $this
     */
    public function setBigQueryExport($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenter\V1\BigQueryExport::class);
        $this->big_query_export = $var;

        return $this;
    }

    /**
     * The list of fields to be updated.
     * If empty all mutable fields will be updated.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @return \Google\Protobuf\FieldMask|null
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    public function hasUpdateMask()
    {
        return isset($this->update_mask);
    }

    public function clearUpdateMask()
    {
        unset($this->update_mask);
    }

    /**
     * The list of fields to be updated.
     * If empty all mutable fields will be updated.
     *
     * 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;
    }

}

