<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: grafeas/v1/discovery.proto

namespace Grafeas\V1;

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

/**
 * A note that indicates a type of analysis a provider would perform. This note
 * exists in a provider's project. A `Discovery` occurrence is created in a
 * consumer's project at the start of analysis.
 *
 * Generated from protobuf message <code>grafeas.v1.DiscoveryNote</code>
 */
class DiscoveryNote extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Immutable. The kind of analysis that is handled by this
     * discovery.
     *
     * Generated from protobuf field <code>.grafeas.v1.NoteKind analysis_kind = 1;</code>
     */
    private $analysis_kind = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $analysis_kind
     *           Required. Immutable. The kind of analysis that is handled by this
     *           discovery.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\Discovery::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Immutable. The kind of analysis that is handled by this
     * discovery.
     *
     * Generated from protobuf field <code>.grafeas.v1.NoteKind analysis_kind = 1;</code>
     * @return int
     */
    public function getAnalysisKind()
    {
        return $this->analysis_kind;
    }

    /**
     * Required. Immutable. The kind of analysis that is handled by this
     * discovery.
     *
     * Generated from protobuf field <code>.grafeas.v1.NoteKind analysis_kind = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setAnalysisKind($var)
    {
        GPBUtil::checkEnum($var, \Grafeas\V1\NoteKind::class);
        $this->analysis_kind = $var;

        return $this;
    }

}

