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

namespace Google\Cloud\Config\V1;

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

/**
 * Describes a Terraform output.
 *
 * Generated from protobuf message <code>google.cloud.config.v1.TerraformOutput</code>
 */
class TerraformOutput extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifies whether Terraform has set this output as a potential
     * sensitive value.
     *
     * Generated from protobuf field <code>bool sensitive = 1;</code>
     */
    protected $sensitive = false;
    /**
     * Value of output.
     *
     * Generated from protobuf field <code>.google.protobuf.Value value = 2;</code>
     */
    protected $value = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $sensitive
     *           Identifies whether Terraform has set this output as a potential
     *           sensitive value.
     *     @type \Google\Protobuf\Value $value
     *           Value of output.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifies whether Terraform has set this output as a potential
     * sensitive value.
     *
     * Generated from protobuf field <code>bool sensitive = 1;</code>
     * @return bool
     */
    public function getSensitive()
    {
        return $this->sensitive;
    }

    /**
     * Identifies whether Terraform has set this output as a potential
     * sensitive value.
     *
     * Generated from protobuf field <code>bool sensitive = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setSensitive($var)
    {
        GPBUtil::checkBool($var);
        $this->sensitive = $var;

        return $this;
    }

    /**
     * Value of output.
     *
     * Generated from protobuf field <code>.google.protobuf.Value value = 2;</code>
     * @return \Google\Protobuf\Value|null
     */
    public function getValue()
    {
        return $this->value;
    }

    public function hasValue()
    {
        return isset($this->value);
    }

    public function clearValue()
    {
        unset($this->value);
    }

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

        return $this;
    }

}

