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

namespace Google\Cloud\Orchestration\Airflow\Service\V1;

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

/**
 * Configuration options for networking connections in the Composer 2
 * environment.
 *
 * Generated from protobuf message <code>google.cloud.orchestration.airflow.service.v1.NetworkingConfig</code>
 */
class NetworkingConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Indicates the user requested specifc connection type between
     * Tenant and Customer projects. You cannot set networking connection type in
     * public IP environment.
     *
     * Generated from protobuf field <code>.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType connection_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $connection_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $connection_type
     *           Optional. Indicates the user requested specifc connection type between
     *           Tenant and Customer projects. You cannot set networking connection type in
     *           public IP environment.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Orchestration\Airflow\Service\V1\Environments::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Indicates the user requested specifc connection type between
     * Tenant and Customer projects. You cannot set networking connection type in
     * public IP environment.
     *
     * Generated from protobuf field <code>.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType connection_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getConnectionType()
    {
        return $this->connection_type;
    }

    /**
     * Optional. Indicates the user requested specifc connection type between
     * Tenant and Customer projects. You cannot set networking connection type in
     * public IP environment.
     *
     * Generated from protobuf field <code>.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType connection_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setConnectionType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Orchestration\Airflow\Service\V1\NetworkingConfig\ConnectionType::class);
        $this->connection_type = $var;

        return $this;
    }

}

