<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Terraform info of a ResourceChange.
 *
 * Generated from protobuf message <code>google.cloud.config.v1.ResourceDriftTerraformInfo</code>
 */
class ResourceDriftTerraformInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The address of the drifted resource.
     *
     * Generated from protobuf field <code>string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $address = '';
    /**
     * Output only. The type of the drifted resource.
     *
     * Generated from protobuf field <code>string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $type = '';
    /**
     * Output only. TF resource name.
     *
     * Generated from protobuf field <code>string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $resource_name = '';
    /**
     * Output only. The provider of the drifted resource.
     *
     * Generated from protobuf field <code>string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $provider = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $address
     *           Output only. The address of the drifted resource.
     *     @type string $type
     *           Output only. The type of the drifted resource.
     *     @type string $resource_name
     *           Output only. TF resource name.
     *     @type string $provider
     *           Output only. The provider of the drifted resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The address of the drifted resource.
     *
     * Generated from protobuf field <code>string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getAddress()
    {
        return $this->address;
    }

    /**
     * Output only. The address of the drifted resource.
     *
     * Generated from protobuf field <code>string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setAddress($var)
    {
        GPBUtil::checkString($var, True);
        $this->address = $var;

        return $this;
    }

    /**
     * Output only. The type of the drifted resource.
     *
     * Generated from protobuf field <code>string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Output only. The type of the drifted resource.
     *
     * Generated from protobuf field <code>string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkString($var, True);
        $this->type = $var;

        return $this;
    }

    /**
     * Output only. TF resource name.
     *
     * Generated from protobuf field <code>string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getResourceName()
    {
        return $this->resource_name;
    }

    /**
     * Output only. TF resource name.
     *
     * Generated from protobuf field <code>string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setResourceName($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_name = $var;

        return $this;
    }

    /**
     * Output only. The provider of the drifted resource.
     *
     * Generated from protobuf field <code>string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getProvider()
    {
        return $this->provider;
    }

    /**
     * Output only. The provider of the drifted resource.
     *
     * Generated from protobuf field <code>string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setProvider($var)
    {
        GPBUtil::checkString($var, True);
        $this->provider = $var;

        return $this;
    }

}

