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

namespace Google\Cloud\AIPlatform\V1\ImportFeatureValuesRequest;

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

/**
 * Defines the Feature value(s) to import.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec</code>
 */
class FeatureSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. ID of the Feature to import values of. This Feature must exist
     * in the target EntityType, or the request will fail.
     *
     * Generated from protobuf field <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $id = '';
    /**
     * Source column to get the Feature values from. If not set, uses the column
     * with the same name as the Feature ID.
     *
     * Generated from protobuf field <code>string source_field = 2;</code>
     */
    private $source_field = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *           Required. ID of the Feature to import values of. This Feature must exist
     *           in the target EntityType, or the request will fail.
     *     @type string $source_field
     *           Source column to get the Feature values from. If not set, uses the column
     *           with the same name as the Feature ID.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. ID of the Feature to import values of. This Feature must exist
     * in the target EntityType, or the request will fail.
     *
     * Generated from protobuf field <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Required. ID of the Feature to import values of. This Feature must exist
     * in the target EntityType, or the request will fail.
     *
     * Generated from protobuf field <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkString($var, True);
        $this->id = $var;

        return $this;
    }

    /**
     * Source column to get the Feature values from. If not set, uses the column
     * with the same name as the Feature ID.
     *
     * Generated from protobuf field <code>string source_field = 2;</code>
     * @return string
     */
    public function getSourceField()
    {
        return $this->source_field;
    }

    /**
     * Source column to get the Feature values from. If not set, uses the column
     * with the same name as the Feature ID.
     *
     * Generated from protobuf field <code>string source_field = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSourceField($var)
    {
        GPBUtil::checkString($var, True);
        $this->source_field = $var;

        return $this;
    }

}


