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

namespace Grafeas\V1\SlsaProvenanceZeroTwo;

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

/**
 * Other properties of the build.
 *
 * Generated from protobuf message <code>grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata</code>
 */
class SlsaMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string build_invocation_id = 1;</code>
     */
    private $build_invocation_id = '';
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp build_started_on = 2;</code>
     */
    private $build_started_on = null;
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
     */
    private $build_finished_on = null;
    /**
     * Generated from protobuf field <code>.grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness completeness = 4;</code>
     */
    private $completeness = null;
    /**
     * Generated from protobuf field <code>bool reproducible = 5;</code>
     */
    private $reproducible = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $build_invocation_id
     *     @type \Google\Protobuf\Timestamp $build_started_on
     *     @type \Google\Protobuf\Timestamp $build_finished_on
     *     @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness $completeness
     *     @type bool $reproducible
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string build_invocation_id = 1;</code>
     * @return string
     */
    public function getBuildInvocationId()
    {
        return $this->build_invocation_id;
    }

    /**
     * Generated from protobuf field <code>string build_invocation_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setBuildInvocationId($var)
    {
        GPBUtil::checkString($var, True);
        $this->build_invocation_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp build_started_on = 2;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getBuildStartedOn()
    {
        return $this->build_started_on;
    }

    public function hasBuildStartedOn()
    {
        return isset($this->build_started_on);
    }

    public function clearBuildStartedOn()
    {
        unset($this->build_started_on);
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp build_started_on = 2;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setBuildStartedOn($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->build_started_on = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getBuildFinishedOn()
    {
        return $this->build_finished_on;
    }

    public function hasBuildFinishedOn()
    {
        return isset($this->build_finished_on);
    }

    public function clearBuildFinishedOn()
    {
        unset($this->build_finished_on);
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setBuildFinishedOn($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->build_finished_on = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness completeness = 4;</code>
     * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness|null
     */
    public function getCompleteness()
    {
        return $this->completeness;
    }

    public function hasCompleteness()
    {
        return isset($this->completeness);
    }

    public function clearCompleteness()
    {
        unset($this->completeness);
    }

    /**
     * Generated from protobuf field <code>.grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness completeness = 4;</code>
     * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness $var
     * @return $this
     */
    public function setCompleteness($var)
    {
        GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness::class);
        $this->completeness = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool reproducible = 5;</code>
     * @return bool
     */
    public function getReproducible()
    {
        return $this->reproducible;
    }

    /**
     * Generated from protobuf field <code>bool reproducible = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setReproducible($var)
    {
        GPBUtil::checkBool($var);
        $this->reproducible = $var;

        return $this;
    }

}


