<?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>
     */
    protected $source_type = 0;
    /**
     * If this Model is copy of another Model. If true then
     * [source_type][google.cloud.aiplatform.v1.ModelSourceInfo.source_type]
     * pertains to the original.
     *
     * Generated from protobuf field <code>bool copy = 2;</code>
     */
    protected $copy = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $source_type
     *           Type of the model source.
     *     @type bool $copy
     *           If this Model is copy of another Model. If true then
     *           [source_type][google.cloud.aiplatform.v1.ModelSourceInfo.source_type]
     *           pertains to the original.
     * }
     */
    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;
    }

    /**
     * If this Model is copy of another Model. If true then
     * [source_type][google.cloud.aiplatform.v1.ModelSourceInfo.source_type]
     * pertains to the original.
     *
     * Generated from protobuf field <code>bool copy = 2;</code>
     * @return bool
     */
    public function getCopy()
    {
        return $this->copy;
    }

    /**
     * If this Model is copy of another Model. If true then
     * [source_type][google.cloud.aiplatform.v1.ModelSourceInfo.source_type]
     * pertains to the original.
     *
     * Generated from protobuf field <code>bool copy = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setCopy($var)
    {
        GPBUtil::checkBool($var);
        $this->copy = $var;

        return $this;
    }

}

