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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Detail description of the source information of the model.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ModelSourceInfo</code>
 */
class ModelSourceInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Type of the model source.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType source_type = 1;</code>
     */
    private $source_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $source_type
     *           Type of the model source.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Model::initOnce();
        parent::__construct($data);
    }

    /**
     * Type of the model source.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType source_type = 1;</code>
     * @return int
     */
    public function getSourceType()
    {
        return $this->source_type;
    }

    /**
     * Type of the model source.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType source_type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setSourceType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\ModelSourceInfo\ModelSourceType::class);
        $this->source_type = $var;

        return $this;
    }

}

