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

namespace Grafeas\V1\InTotoSlsaProvenanceV1;

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

/**
 * Generated from protobuf message <code>grafeas.v1.InTotoSlsaProvenanceV1.RunDetails</code>
 */
class RunDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder builder = 1;</code>
     */
    protected $builder = null;
    /**
     * Generated from protobuf field <code>.grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata metadata = 2;</code>
     */
    protected $metadata = null;
    /**
     * Generated from protobuf field <code>repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3;</code>
     */
    private $byproducts;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder $builder
     *     @type \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata $metadata
     *     @type array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $byproducts
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder builder = 1;</code>
     * @return \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder|null
     */
    public function getBuilder()
    {
        return $this->builder;
    }

    public function hasBuilder()
    {
        return isset($this->builder);
    }

    public function clearBuilder()
    {
        unset($this->builder);
    }

    /**
     * Generated from protobuf field <code>.grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder builder = 1;</code>
     * @param \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder $var
     * @return $this
     */
    public function setBuilder($var)
    {
        GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder::class);
        $this->builder = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata metadata = 2;</code>
     * @return \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata|null
     */
    public function getMetadata()
    {
        return $this->metadata;
    }

    public function hasMetadata()
    {
        return isset($this->metadata);
    }

    public function clearMetadata()
    {
        unset($this->metadata);
    }

    /**
     * Generated from protobuf field <code>.grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata metadata = 2;</code>
     * @param \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata $var
     * @return $this
     */
    public function setMetadata($var)
    {
        GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata::class);
        $this->metadata = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getByproducts()
    {
        return $this->byproducts;
    }

    /**
     * Generated from protobuf field <code>repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3;</code>
     * @param array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setByproducts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor::class);
        $this->byproducts = $arr;

        return $this;
    }

}


