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

namespace Google\Cloud\CloudControlsPartner\V1beta;

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

/**
 * The EKM connections associated with a workload
 *
 * Generated from protobuf message <code>google.cloud.cloudcontrolspartner.v1beta.EkmConnections</code>
 */
class EkmConnections extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. Format:
     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * The EKM connections associated with the workload
     *
     * Generated from protobuf field <code>repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2;</code>
     */
    private $ekm_connections;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. Format:
     *           organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
     *     @type array<\Google\Cloud\CloudControlsPartner\V1beta\EkmConnection>|\Google\Protobuf\Internal\RepeatedField $ekm_connections
     *           The EKM connections associated with the workload
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\EkmConnections::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. Format:
     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. Format:
     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * The EKM connections associated with the workload
     *
     * Generated from protobuf field <code>repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getEkmConnections()
    {
        return $this->ekm_connections;
    }

    /**
     * The EKM connections associated with the workload
     *
     * Generated from protobuf field <code>repeated .google.cloud.cloudcontrolspartner.v1beta.EkmConnection ekm_connections = 2;</code>
     * @param array<\Google\Cloud\CloudControlsPartner\V1beta\EkmConnection>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setEkmConnections($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\CloudControlsPartner\V1beta\EkmConnection::class);
        $this->ekm_connections = $arr;

        return $this;
    }

}

