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

namespace Google\Cloud\Dataform\V1;

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

/**
 * Represents an action identifier. If the action writes output, the output
 * will be written to the referenced database object.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1.Target</code>
 */
class Target extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The action's database (Google Cloud project ID) .
     *
     * Generated from protobuf field <code>string database = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $database = '';
    /**
     * Optional. The action's schema (BigQuery dataset ID), within `database`.
     *
     * Generated from protobuf field <code>string schema = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $schema = '';
    /**
     * Optional. The action's name, within `database` and `schema`.
     *
     * Generated from protobuf field <code>string name = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $database
     *           Optional. The action's database (Google Cloud project ID) .
     *     @type string $schema
     *           Optional. The action's schema (BigQuery dataset ID), within `database`.
     *     @type string $name
     *           Optional. The action's name, within `database` and `schema`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The action's database (Google Cloud project ID) .
     *
     * Generated from protobuf field <code>string database = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getDatabase()
    {
        return $this->database;
    }

    /**
     * Optional. The action's database (Google Cloud project ID) .
     *
     * Generated from protobuf field <code>string database = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setDatabase($var)
    {
        GPBUtil::checkString($var, True);
        $this->database = $var;

        return $this;
    }

    /**
     * Optional. The action's schema (BigQuery dataset ID), within `database`.
     *
     * Generated from protobuf field <code>string schema = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getSchema()
    {
        return $this->schema;
    }

    /**
     * Optional. The action's schema (BigQuery dataset ID), within `database`.
     *
     * Generated from protobuf field <code>string schema = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setSchema($var)
    {
        GPBUtil::checkString($var, True);
        $this->schema = $var;

        return $this;
    }

    /**
     * Optional. The action's name, within `database` and `schema`.
     *
     * Generated from protobuf field <code>string name = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Optional. The action's name, within `database` and `schema`.
     *
     * Generated from protobuf field <code>string name = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

}

