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

namespace Google\Cloud\AutoMl\V1beta1;

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

/**
 * A representation of a row in a relational table.
 *
 * Generated from protobuf message <code>google.cloud.automl.v1beta1.Row</code>
 */
class Row extends \Google\Protobuf\Internal\Message
{
    /**
     * Input Only.
     * The resource IDs of the column specs describing the columns of the row.
     * If set must contain, but possibly in a different order, all input feature
     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
     * of the Model this row is being passed to.
     * Note: The below `values` field must match order of this field, if this
     * field is set.
     *
     * Generated from protobuf field <code>repeated string column_spec_ids = 2;</code>
     */
    private $column_spec_ids;
    /**
     * Input Only.
     * The values of the row cells, given in the same order as the
     * column_spec_ids, or, if not set, then in the same order as input feature
     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
     * of the Model this row is being passed to.
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Value values = 3;</code>
     */
    private $values;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $column_spec_ids
     *           Input Only.
     *           The resource IDs of the column specs describing the columns of the row.
     *           If set must contain, but possibly in a different order, all input feature
     *           [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
     *           of the Model this row is being passed to.
     *           Note: The below `values` field must match order of this field, if this
     *           field is set.
     *     @type \Google\Protobuf\Value[]|\Google\Protobuf\Internal\RepeatedField $values
     *           Input Only.
     *           The values of the row cells, given in the same order as the
     *           column_spec_ids, or, if not set, then in the same order as input feature
     *           [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
     *           of the Model this row is being passed to.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Automl\V1Beta1\DataItems::initOnce();
        parent::__construct($data);
    }

    /**
     * Input Only.
     * The resource IDs of the column specs describing the columns of the row.
     * If set must contain, but possibly in a different order, all input feature
     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
     * of the Model this row is being passed to.
     * Note: The below `values` field must match order of this field, if this
     * field is set.
     *
     * Generated from protobuf field <code>repeated string column_spec_ids = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getColumnSpecIds()
    {
        return $this->column_spec_ids;
    }

    /**
     * Input Only.
     * The resource IDs of the column specs describing the columns of the row.
     * If set must contain, but possibly in a different order, all input feature
     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
     * of the Model this row is being passed to.
     * Note: The below `values` field must match order of this field, if this
     * field is set.
     *
     * Generated from protobuf field <code>repeated string column_spec_ids = 2;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setColumnSpecIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->column_spec_ids = $arr;

        return $this;
    }

    /**
     * Input Only.
     * The values of the row cells, given in the same order as the
     * column_spec_ids, or, if not set, then in the same order as input feature
     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
     * of the Model this row is being passed to.
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Value values = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getValues()
    {
        return $this->values;
    }

    /**
     * Input Only.
     * The values of the row cells, given in the same order as the
     * column_spec_ids, or, if not set, then in the same order as input feature
     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
     * of the Model this row is being passed to.
     *
     * Generated from protobuf field <code>repeated .google.protobuf.Value values = 3;</code>
     * @param \Google\Protobuf\Value[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class);
        $this->values = $arr;

        return $this;
    }

}

