<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/datalabeling/v1beta1/annotation.proto

namespace Google\Cloud\DataLabeling\V1beta1;

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

/**
 * A line with multiple line segments.
 *
 * Generated from protobuf message <code>google.cloud.datalabeling.v1beta1.Polyline</code>
 */
class Polyline extends \Google\Protobuf\Internal\Message
{
    /**
     * The polyline vertices.
     *
     * Generated from protobuf field <code>repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1;</code>
     */
    private $vertices;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DataLabeling\V1beta1\Vertex[]|\Google\Protobuf\Internal\RepeatedField $vertices
     *           The polyline vertices.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datalabeling\V1Beta1\Annotation::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

}

