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

namespace Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction;

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

/**
 * Represents a workflow action that will run against BigQuery.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction</code>
 */
class BigQueryAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The generated BigQuery SQL script that will be executed.
     *
     * Generated from protobuf field <code>string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $sql_script = '';
    /**
     * Output only. The ID of the BigQuery job that executed the SQL in
     * sql_script. Only set once the job has started to run.
     *
     * Generated from protobuf field <code>string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $job_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $sql_script
     *           Output only. The generated BigQuery SQL script that will be executed.
     *     @type string $job_id
     *           Output only. The ID of the BigQuery job that executed the SQL in
     *           sql_script. Only set once the job has started to run.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The generated BigQuery SQL script that will be executed.
     *
     * Generated from protobuf field <code>string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getSqlScript()
    {
        return $this->sql_script;
    }

    /**
     * Output only. The generated BigQuery SQL script that will be executed.
     *
     * Generated from protobuf field <code>string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setSqlScript($var)
    {
        GPBUtil::checkString($var, True);
        $this->sql_script = $var;

        return $this;
    }

    /**
     * Output only. The ID of the BigQuery job that executed the SQL in
     * sql_script. Only set once the job has started to run.
     *
     * Generated from protobuf field <code>string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getJobId()
    {
        return $this->job_id;
    }

    /**
     * Output only. The ID of the BigQuery job that executed the SQL in
     * sql_script. Only set once the job has started to run.
     *
     * Generated from protobuf field <code>string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setJobId($var)
    {
        GPBUtil::checkString($var, True);
        $this->job_id = $var;

        return $this;
    }

}


