<?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
{
    /**
     * Output only. IP address of the subnet.
     *
     * Generated from protobuf field <code>string subnet_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $subnet_ip = '';
    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     */
    protected $command = '';
    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     */
    protected $command_expiry_time = null;
    /**
     * Output only. Temporary passphrase generated to accept cluster peering
     * command.
     *
     * Generated from protobuf field <code>string passphrase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $passphrase = '';
    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     */
    protected $peer_volume_name = '';
    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     */
    protected $peer_cluster_name = '';
    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     */
    protected $peer_svm_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $subnet_ip
     *           Output only. IP address of the subnet.
     *     @type string $command
     *           Output only. Copy-paste-able commands to be used on user's ONTAP to accept
     *           peering requests.
     *     @type \Google\Protobuf\Timestamp $command_expiry_time
     *           Output only. Expiration time for the peering command to be executed on
     *           user's ONTAP.
     *     @type string $passphrase
     *           Output only. Temporary passphrase generated to accept cluster peering
     *           command.
     *     @type string $peer_volume_name
     *           Output only. Name of the user's local source volume to be peered with the
     *           destination volume.
     *     @type string $peer_cluster_name
     *           Output only. Name of the user's local source cluster to be peered with the
     *           destination cluster.
     *     @type string $peer_svm_name
     *           Output only. 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);
    }

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

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

        return $this;
    }

    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getCommand()
    {
        return $this->command;
    }

    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setCommand($var)
    {
        GPBUtil::checkString($var, True);
        $this->command = $var;

        return $this;
    }

    /**
     * Output only. 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) = OUTPUT_ONLY];</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);
    }

    /**
     * Output only. 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) = OUTPUT_ONLY];</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;
    }

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

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

        return $this;
    }

    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPeerVolumeName()
    {
        return $this->peer_volume_name;
    }

    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPeerVolumeName($var)
    {
        GPBUtil::checkString($var, True);
        $this->peer_volume_name = $var;

        return $this;
    }

    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPeerClusterName()
    {
        return $this->peer_cluster_name;
    }

    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPeerClusterName($var)
    {
        GPBUtil::checkString($var, True);
        $this->peer_cluster_name = $var;

        return $this;
    }

    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPeerSvmName()
    {
        return $this->peer_svm_name;
    }

    /**
     * Output only. 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) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPeerSvmName($var)
    {
        GPBUtil::checkString($var, True);
        $this->peer_svm_name = $var;

        return $this;
    }

}

