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

namespace Google\Cloud\Compute\V1;

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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.TargetPoolsAddHealthCheckRequest</code>
 */
class TargetPoolsAddHealthCheckRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The HttpHealthCheck to add to the target pool.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.HealthCheckReference health_checks = 179935150;</code>
     */
    private $health_checks;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\HealthCheckReference[]|\Google\Protobuf\Internal\RepeatedField $health_checks
     *           The HttpHealthCheck to add to the target pool.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The HttpHealthCheck to add to the target pool.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.HealthCheckReference health_checks = 179935150;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getHealthChecks()
    {
        return $this->health_checks;
    }

    /**
     * The HttpHealthCheck to add to the target pool.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.HealthCheckReference health_checks = 179935150;</code>
     * @param \Google\Cloud\Compute\V1\HealthCheckReference[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setHealthChecks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\HealthCheckReference::class);
        $this->health_checks = $arr;

        return $this;
    }

}

