<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/templates.proto

namespace Google\Cloud\Dataflow\V1beta3;

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

/**
 * Used in the error_details field of a google.rpc.Status message, this
 * indicates problems with the template parameter.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.InvalidTemplateParameters</code>
 */
class InvalidTemplateParameters extends \Google\Protobuf\Internal\Message
{
    /**
     * Describes all parameter violations in a template request.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;</code>
     */
    private $parameter_violations;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Dataflow\V1beta3\InvalidTemplateParameters\ParameterViolation>|\Google\Protobuf\Internal\RepeatedField $parameter_violations
     *           Describes all parameter violations in a template request.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce();
        parent::__construct($data);
    }

    /**
     * Describes all parameter violations in a template request.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getParameterViolations()
    {
        return $this->parameter_violations;
    }

    /**
     * Describes all parameter violations in a template request.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1;</code>
     * @param array<\Google\Cloud\Dataflow\V1beta3\InvalidTemplateParameters\ParameterViolation>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setParameterViolations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\InvalidTemplateParameters\ParameterViolation::class);
        $this->parameter_violations = $arr;

        return $this;
    }

}

