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

namespace Google\Cloud\Dataflow\V1beta3\InvalidTemplateParameters;

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

/**
 * A specific template-parameter violation.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation</code>
 */
class ParameterViolation extends \Google\Protobuf\Internal\Message
{
    /**
     * The parameter that failed to validate.
     *
     * Generated from protobuf field <code>string parameter = 1;</code>
     */
    protected $parameter = '';
    /**
     * A description of why the parameter failed to validate.
     *
     * Generated from protobuf field <code>string description = 2;</code>
     */
    protected $description = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parameter
     *           The parameter that failed to validate.
     *     @type string $description
     *           A description of why the parameter failed to validate.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce();
        parent::__construct($data);
    }

    /**
     * The parameter that failed to validate.
     *
     * Generated from protobuf field <code>string parameter = 1;</code>
     * @return string
     */
    public function getParameter()
    {
        return $this->parameter;
    }

    /**
     * The parameter that failed to validate.
     *
     * Generated from protobuf field <code>string parameter = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setParameter($var)
    {
        GPBUtil::checkString($var, True);
        $this->parameter = $var;

        return $this;
    }

    /**
     * A description of why the parameter failed to validate.
     *
     * Generated from protobuf field <code>string description = 2;</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * A description of why the parameter failed to validate.
     *
     * Generated from protobuf field <code>string description = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

}


