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

namespace Grafeas\V1\DiscoveryOccurrence;

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

/**
 * Indicates which analysis completed successfully. Multiple types of
 * analysis can be performed on a single resource.
 *
 * Generated from protobuf message <code>grafeas.v1.DiscoveryOccurrence.AnalysisCompleted</code>
 */
class AnalysisCompleted extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated string analysis_type = 1;</code>
     */
    private $analysis_type;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $analysis_type
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\Discovery::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated string analysis_type = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAnalysisType()
    {
        return $this->analysis_type;
    }

    /**
     * Generated from protobuf field <code>repeated string analysis_type = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAnalysisType($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->analysis_type = $arr;

        return $this;
    }

}


