<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: grafeas/v1/build.proto

namespace Grafeas\V1;

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

/**
 * Note holding the version of the provider's builder and the signature of the
 * provenance message in the build details occurrence.
 *
 * Generated from protobuf message <code>grafeas.v1.BuildNote</code>
 */
class BuildNote extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Immutable. Version of the builder which produced this build.
     *
     * Generated from protobuf field <code>string builder_version = 1;</code>
     */
    protected $builder_version = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $builder_version
     *           Required. Immutable. Version of the builder which produced this build.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\Build::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Immutable. Version of the builder which produced this build.
     *
     * Generated from protobuf field <code>string builder_version = 1;</code>
     * @return string
     */
    public function getBuilderVersion()
    {
        return $this->builder_version;
    }

    /**
     * Required. Immutable. Version of the builder which produced this build.
     *
     * Generated from protobuf field <code>string builder_version = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setBuilderVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->builder_version = $var;

        return $this;
    }

}

