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

namespace Google\Cloud\Vision\V1;

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

/**
 * A bounding polygon for the detected image annotation.
 *
 * Generated from protobuf message <code>google.cloud.vision.v1.BoundingPoly</code>
 */
class BoundingPoly extends \Google\Protobuf\Internal\Message
{
    /**
     * The bounding polygon vertices.
     *
     * Generated from protobuf field <code>repeated .google.cloud.vision.v1.Vertex vertices = 1;</code>
     */
    private $vertices;

    public function __construct() {
        \GPBMetadata\Google\Cloud\Vision\V1\Geometry::initOnce();
        parent::__construct();
    }

    /**
     * The bounding polygon vertices.
     *
     * Generated from protobuf field <code>repeated .google.cloud.vision.v1.Vertex vertices = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getVertices()
    {
        return $this->vertices;
    }

    /**
     * The bounding polygon vertices.
     *
     * Generated from protobuf field <code>repeated .google.cloud.vision.v1.Vertex vertices = 1;</code>
     * @param \Google\Cloud\Vision\V1\Vertex[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setVertices($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\Vertex::class);
        $this->vertices = $arr;

        return $this;
    }

}

