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

namespace Google\Cloud\NetApp\V1;

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

/**
 * HybridPeeringDetails contains details about the hybrid peering.
 *
 * Generated from protobuf message <code>google.cloud.netapp.v1.HybridPeeringDetails</code>
 */
class HybridPeeringDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. IP address of the subnet.
     *
     * Generated from protobuf field <code>string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $subnet_ip = '';
    /**
     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
     * peering requests.
     *
     * Generated from protobuf field <code>string command = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $command = '';
    /**
     * Optional. Expiration time for the peering command to be executed on user's
     * ONTAP.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $command_expiry_time = null;
    /**
     * Optional. Temporary passphrase generated to accept cluster peering command.
     *
     * Generated from protobuf field <code>string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $passphrase = '';
    /**
     * Optional. Name of the user's local source volume to be peered with the
     * destination volume.
     *
     * Generated from protobuf field <code>string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $peer_volume_name = '';
    /**
     * Optional. Name of the user's local source cluster to be peered with the
     * destination cluster.
     *
     * Generated from protobuf field <code>string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $peer_cluster_name = '';
    /**
     * Optional. Name of the user's local source vserver svm to be peered with the
     * destination vserver svm.
     *
     * Generated from protobuf field <code>string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $peer_svm_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $subnet_ip
     *           Optional. IP address of the subnet.
     *     @type string $command
     *           Optional. Copy-paste-able commands to be used on user's ONTAP to accept
     *           peering requests.
     *     @type \Google\Protobuf\Timestamp $command_expiry_time
     *           Optional. Expiration time for the peering command to be executed on user's
     *           ONTAP.
     *     @type string $passphrase
     *           Optional. Temporary passphrase generated to accept cluster peering command.
     *     @type string $peer_volume_name
     *           Optional. Name of the user's local source volume to be peered with the
     *           destination volume.
     *     @type string $peer_cluster_name
     *           Optional. Name of the user's local source cluster to be peered with the
     *           destination cluster.
     *     @type string $peer_svm_name
     *           Optional. Name of the user's local source vserver svm to be peered with the
     *           destination vserver svm.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Netapp\V1\Replication::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. IP address of the subnet.
     *
     * Generated from protobuf field <code>string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getSubnetIp()
    {
        return $this->subnet_ip;
    }

    /**
     * Optional. IP address of the subnet.
     *
     * Generated from protobuf field <code>string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setSubnetIp($var)
    {
        GPBUtil::checkString($var, True);
        $this->subnet_ip = $var;

        return $this;
    }

    /**
     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
     * peering requests.
     *
     * Generated from protobuf field <code>string command = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getCommand()
    {
        return $this->command;
    }

    /**
     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
     * peering requests.
     *
     * Generated from protobuf field <code>string command = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setCommand($var)
    {
        GPBUtil::checkString($var, True);
        $this->command = $var;

        return $this;
    }

    /**
     * Optional. Expiration time for the peering command to be executed on user's
     * ONTAP.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCommandExpiryTime()
    {
        return $this->command_expiry_time;
    }

    public function hasCommandExpiryTime()
    {
        return isset($this->command_expiry_time);
    }

    public function clearCommandExpiryTime()
    {
        unset($this->command_expiry_time);
    }

    /**
     * Optional. Expiration time for the peering command to be executed on user's
     * ONTAP.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCommandExpiryTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->command_expiry_time = $var;

        return $this;
    }

    /**
     * Optional. Temporary passphrase generated to accept cluster peering command.
     *
     * Generated from protobuf field <code>string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPassphrase()
    {
        return $this->passphrase;
    }

    /**
     * Optional. Temporary passphrase generated to accept cluster peering command.
     *
     * Generated from protobuf field <code>string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPassphrase($var)
    {
        GPBUtil::checkString($var, True);
        $this->passphrase = $var;

        return $this;
    }

    /**
     * Optional. Name of the user's local source volume to be peered with the
     * destination volume.
     *
     * Generated from protobuf field <code>string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPeerVolumeName()
    {
        return $this->peer_volume_name;
    }

    /**
     * Optional. Name of the user's local source volume to be peered with the
     * destination volume.
     *
     * Generated from protobuf field <code>string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPeerVolumeName($var)
    {
        GPBUtil::checkString($var, True);
        $this->peer_volume_name = $var;

        return $this;
    }

    /**
     * Optional. Name of the user's local source cluster to be peered with the
     * destination cluster.
     *
     * Generated from protobuf field <code>string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPeerClusterName()
    {
        return $this->peer_cluster_name;
    }

    /**
     * Optional. Name of the user's local source cluster to be peered with the
     * destination cluster.
     *
     * Generated from protobuf field <code>string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPeerClusterName($var)
    {
        GPBUtil::checkString($var, True);
        $this->peer_cluster_name = $var;

        return $this;
    }

    /**
     * Optional. Name of the user's local source vserver svm to be peered with the
     * destination vserver svm.
     *
     * Generated from protobuf field <code>string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPeerSvmName()
    {
        return $this->peer_svm_name;
    }

    /**
     * Optional. Name of the user's local source vserver svm to be peered with the
     * destination vserver svm.
     *
     * Generated from protobuf field <code>string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPeerSvmName($var)
    {
        GPBUtil::checkString($var, True);
        $this->peer_svm_name = $var;

        return $this;
    }

}

