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

/**
 * `FetchRemoteBranches` response message.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse</code>
 */
class FetchRemoteBranchesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The remote repository's branch names.
     *
     * Generated from protobuf field <code>repeated string branches = 1;</code>
     */
    private $branches;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $branches
     *           The remote repository's branch names.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * The remote repository's branch names.
     *
     * Generated from protobuf field <code>repeated string branches = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBranches()
    {
        return $this->branches;
    }

    /**
     * The remote repository's branch names.
     *
     * Generated from protobuf field <code>repeated string branches = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBranches($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->branches = $arr;

        return $this;
    }

}

