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

namespace Google\Cloud\Dialogflow\V2\Tool;

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

/**
 * The TLS configuration.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.Tool.TLSConfig</code>
 */
class TLSConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Specifies a list of allowed custom CA certificates for HTTPS
     * verification.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $ca_certs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dialogflow\V2\Tool\TLSConfig\CACert[] $ca_certs
     *           Required. Specifies a list of allowed custom CA certificates for HTTPS
     *           verification.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Tool::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Specifies a list of allowed custom CA certificates for HTTPS
     * verification.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\V2\Tool\TLSConfig\CACert>
     */
    public function getCaCerts()
    {
        return $this->ca_certs;
    }

    /**
     * Required. Specifies a list of allowed custom CA certificates for HTTPS
     * verification.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.Tool.TLSConfig.CACert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Dialogflow\V2\Tool\TLSConfig\CACert[] $var
     * @return $this
     */
    public function setCaCerts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Tool\TLSConfig\CACert::class);
        $this->ca_certs = $arr;

        return $this;
    }

}

