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

/**
 * 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 array<string>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    public function getRefNames()
    {
        return $this->ref_names;
    }

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

        return $this;
    }

}

