<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/devtools/cloudbuild/v2/repositories.proto

namespace Google\Cloud\Build\V2;

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

/**
 * Response for fetching git refs
 *
 * Generated from protobuf message <code>google.devtools.cloudbuild.v2.FetchGitRefsResponse</code>
 */
class FetchGitRefsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of the refs fetched.
     *
     * Generated from protobuf field <code>repeated string ref_names = 1;</code>
     */
    private $ref_names;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $ref_names
     *           Name of the refs fetched.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce();
        parent::__construct($data);
    }

    /**
     * Name of the refs fetched.
     *
     * Generated from protobuf field <code>repeated string ref_names = 1;</code>
     * @return RepeatedField<string>
     */
    public function getRefNames()
    {
        return $this->ref_names;
    }

    /**
     * Name of the refs fetched.
     *
     * Generated from protobuf field <code>repeated string ref_names = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setRefNames($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->ref_names = $arr;

        return $this;
    }

}

