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

namespace Google\Cloud\Dataplex\V1\DataDocumentationResult;

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

/**
 * Generated metadata about the table.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.DataDocumentationResult.TableResult</code>
 */
class TableResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The service-qualified full resource name of the cloud
     * resource. Ex:
     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $name = '';
    /**
     * Output only. Generated description of the table.
     *
     * Generated from protobuf field <code>string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $overview = '';
    /**
     * Output only. Schema of the table with generated metadata of the columns
     * in the schema.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $schema = null;
    /**
     * Output only. Sample SQL queries for the table.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $queries;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Output only. The service-qualified full resource name of the cloud
     *           resource. Ex:
     *           //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
     *     @type string $overview
     *           Output only. Generated description of the table.
     *     @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema $schema
     *           Output only. Schema of the table with generated metadata of the columns
     *           in the schema.
     *     @type array<\Google\Cloud\Dataplex\V1\DataDocumentationResult\Query>|\Google\Protobuf\Internal\RepeatedField $queries
     *           Output only. Sample SQL queries for the table.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The service-qualified full resource name of the cloud
     * resource. Ex:
     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Output only. The service-qualified full resource name of the cloud
     * resource. Ex:
     * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. Generated description of the table.
     *
     * Generated from protobuf field <code>string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getOverview()
    {
        return $this->overview;
    }

    /**
     * Output only. Generated description of the table.
     *
     * Generated from protobuf field <code>string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setOverview($var)
    {
        GPBUtil::checkString($var, True);
        $this->overview = $var;

        return $this;
    }

    /**
     * Output only. Schema of the table with generated metadata of the columns
     * in the schema.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema|null
     */
    public function getSchema()
    {
        return $this->schema;
    }

    public function hasSchema()
    {
        return isset($this->schema);
    }

    public function clearSchema()
    {
        unset($this->schema);
    }

    /**
     * Output only. Schema of the table with generated metadata of the columns
     * in the schema.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema $var
     * @return $this
     */
    public function setSchema($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema::class);
        $this->schema = $var;

        return $this;
    }

    /**
     * Output only. Sample SQL queries for the table.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getQueries()
    {
        return $this->queries;
    }

    /**
     * Output only. Sample SQL queries for the table.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param array<\Google\Cloud\Dataplex\V1\DataDocumentationResult\Query>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setQueries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query::class);
        $this->queries = $arr;

        return $this;
    }

}


