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

namespace Google\Cloud\Dataform\V1beta1;

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

/**
 * `FetchFileDiff` response message.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1beta1.FetchFileDiffResponse</code>
 */
class FetchFileDiffResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The raw formatted Git diff for the file.
     *
     * Generated from protobuf field <code>string formatted_diff = 1;</code>
     */
    private $formatted_diff = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $formatted_diff
     *           The raw formatted Git diff for the file.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * The raw formatted Git diff for the file.
     *
     * Generated from protobuf field <code>string formatted_diff = 1;</code>
     * @return string
     */
    public function getFormattedDiff()
    {
        return $this->formatted_diff;
    }

    /**
     * The raw formatted Git diff for the file.
     *
     * Generated from protobuf field <code>string formatted_diff = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setFormattedDiff($var)
    {
        GPBUtil::checkString($var, True);
        $this->formatted_diff = $var;

        return $this;
    }

}

