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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.VpnTunnelCipherSuite</code>
 */
class VpnTunnelCipherSuite extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046;</code>
     */
    protected $phase1 = null;
    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047;</code>
     */
    protected $phase2 = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\VpnTunnelPhase1Algorithms $phase1
     *     @type \Google\Cloud\Compute\V1\VpnTunnelPhase2Algorithms $phase2
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046;</code>
     * @return \Google\Cloud\Compute\V1\VpnTunnelPhase1Algorithms|null
     */
    public function getPhase1()
    {
        return $this->phase1;
    }

    public function hasPhase1()
    {
        return isset($this->phase1);
    }

    public function clearPhase1()
    {
        unset($this->phase1);
    }

    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046;</code>
     * @param \Google\Cloud\Compute\V1\VpnTunnelPhase1Algorithms $var
     * @return $this
     */
    public function setPhase1($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\VpnTunnelPhase1Algorithms::class);
        $this->phase1 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047;</code>
     * @return \Google\Cloud\Compute\V1\VpnTunnelPhase2Algorithms|null
     */
    public function getPhase2()
    {
        return $this->phase2;
    }

    public function hasPhase2()
    {
        return isset($this->phase2);
    }

    public function clearPhase2()
    {
        unset($this->phase2);
    }

    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047;</code>
     * @param \Google\Cloud\Compute\V1\VpnTunnelPhase2Algorithms $var
     * @return $this
     */
    public function setPhase2($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\VpnTunnelPhase2Algorithms::class);
        $this->phase2 = $var;

        return $this;
    }

}

