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

namespace Grafeas\V1;

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

/**
 * Response for creating occurrences in batch.
 *
 * Generated from protobuf message <code>grafeas.v1.BatchCreateOccurrencesResponse</code>
 */
class BatchCreateOccurrencesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The occurrences that were created.
     *
     * Generated from protobuf field <code>repeated .grafeas.v1.Occurrence occurrences = 1;</code>
     */
    private $occurrences;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Grafeas\V1\Occurrence[] $occurrences
     *           The occurrences that were created.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\Grafeas::initOnce();
        parent::__construct($data);
    }

    /**
     * The occurrences that were created.
     *
     * Generated from protobuf field <code>repeated .grafeas.v1.Occurrence occurrences = 1;</code>
     * @return RepeatedField<\Grafeas\V1\Occurrence>
     */
    public function getOccurrences()
    {
        return $this->occurrences;
    }

    /**
     * The occurrences that were created.
     *
     * Generated from protobuf field <code>repeated .grafeas.v1.Occurrence occurrences = 1;</code>
     * @param \Grafeas\V1\Occurrence[] $var
     * @return $this
     */
    public function setOccurrences($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Occurrence::class);
        $this->occurrences = $arr;

        return $this;
    }

}

