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

/**
 * `FetchGitAheadBehind` response message.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse</code>
 */
class FetchGitAheadBehindResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The number of commits in the remote branch that are not in the workspace.
     *
     * Generated from protobuf field <code>int32 commits_ahead = 1;</code>
     */
    private $commits_ahead = 0;
    /**
     * The number of commits in the workspace that are not in the remote branch.
     *
     * Generated from protobuf field <code>int32 commits_behind = 2;</code>
     */
    private $commits_behind = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $commits_ahead
     *           The number of commits in the remote branch that are not in the workspace.
     *     @type int $commits_behind
     *           The number of commits in the workspace that are not in the remote branch.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * The number of commits in the remote branch that are not in the workspace.
     *
     * Generated from protobuf field <code>int32 commits_ahead = 1;</code>
     * @return int
     */
    public function getCommitsAhead()
    {
        return $this->commits_ahead;
    }

    /**
     * The number of commits in the remote branch that are not in the workspace.
     *
     * Generated from protobuf field <code>int32 commits_ahead = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCommitsAhead($var)
    {
        GPBUtil::checkInt32($var);
        $this->commits_ahead = $var;

        return $this;
    }

    /**
     * The number of commits in the workspace that are not in the remote branch.
     *
     * Generated from protobuf field <code>int32 commits_behind = 2;</code>
     * @return int
     */
    public function getCommitsBehind()
    {
        return $this->commits_behind;
    }

    /**
     * The number of commits in the workspace that are not in the remote branch.
     *
     * Generated from protobuf field <code>int32 commits_behind = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setCommitsBehind($var)
    {
        GPBUtil::checkInt32($var);
        $this->commits_behind = $var;

        return $this;
    }

}

