<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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[]|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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[]|\Google\Protobuf\Internal\RepeatedField $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;
    }

}

