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

namespace Google\Cloud\AIPlatform\V1\FeatureView;

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

/**
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.FeatureView.BigQuerySource</code>
 */
class BigQuerySource extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The BigQuery view URI that will be materialized on each sync
     * trigger based on FeatureView.SyncConfig.
     *
     * Generated from protobuf field <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $uri = '';
    /**
     * Required. Columns to construct entity_id / row keys.
     *
     * Generated from protobuf field <code>repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $entity_id_columns;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $uri
     *           Required. The BigQuery view URI that will be materialized on each sync
     *           trigger based on FeatureView.SyncConfig.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $entity_id_columns
     *           Required. Columns to construct entity_id / row keys.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureView::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The BigQuery view URI that will be materialized on each sync
     * trigger based on FeatureView.SyncConfig.
     *
     * Generated from protobuf field <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * Required. The BigQuery view URI that will be materialized on each sync
     * trigger based on FeatureView.SyncConfig.
     *
     * Generated from protobuf field <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->uri = $var;

        return $this;
    }

    /**
     * Required. Columns to construct entity_id / row keys.
     *
     * Generated from protobuf field <code>repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getEntityIdColumns()
    {
        return $this->entity_id_columns;
    }

    /**
     * Required. Columns to construct entity_id / row keys.
     *
     * Generated from protobuf field <code>repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setEntityIdColumns($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->entity_id_columns = $arr;

        return $this;
    }

}


