<?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;

/**
 * Identifies the event that kicked off the build.
 *
 * Generated from protobuf message <code>grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation</code>
 */
class SlsaInvocation extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource config_source = 1;</code>
     */
    private $config_source = null;
    /**
     * Generated from protobuf field <code>.google.protobuf.Struct parameters = 2;</code>
     */
    private $parameters = null;
    /**
     * Generated from protobuf field <code>.google.protobuf.Struct environment = 3;</code>
     */
    private $environment = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaConfigSource $config_source
     *     @type \Google\Protobuf\Struct $parameters
     *     @type \Google\Protobuf\Struct $environment
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource config_source = 1;</code>
     * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaConfigSource|null
     */
    public function getConfigSource()
    {
        return $this->config_source;
    }

    public function hasConfigSource()
    {
        return isset($this->config_source);
    }

    public function clearConfigSource()
    {
        unset($this->config_source);
    }

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

        return $this;
    }

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

    public function hasParameters()
    {
        return isset($this->parameters);
    }

    public function clearParameters()
    {
        unset($this->parameters);
    }

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

        return $this;
    }

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

    public function hasEnvironment()
    {
        return isset($this->environment);
    }

    public function clearEnvironment()
    {
        unset($this->environment);
    }

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

        return $this;
    }

}


