<?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;

/**
 * DestinationVolumeParameters specify input parameters used for creating
 * destination volume.
 *
 * Generated from protobuf message <code>google.cloud.netapp.v1.DestinationVolumeParameters</code>
 */
class DestinationVolumeParameters extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Existing destination StoragePool name.
     *
     * Generated from protobuf field <code>string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $storage_pool = '';
    /**
     * Desired destination volume resource id. If not specified, source volume's
     * resource id will be used.
     * This value must start with a lowercase letter followed by up to 62
     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
     *
     * Generated from protobuf field <code>string volume_id = 2;</code>
     */
    protected $volume_id = '';
    /**
     * Destination volume's share name. If not specified, source volume's share
     * name will be used.
     *
     * Generated from protobuf field <code>string share_name = 3;</code>
     */
    protected $share_name = '';
    /**
     * Description for the destination volume.
     *
     * Generated from protobuf field <code>optional string description = 4;</code>
     */
    protected $description = null;
    /**
     * Optional. Tiering policy for the volume.
     *
     * Generated from protobuf field <code>optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $tiering_policy = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $storage_pool
     *           Required. Existing destination StoragePool name.
     *     @type string $volume_id
     *           Desired destination volume resource id. If not specified, source volume's
     *           resource id will be used.
     *           This value must start with a lowercase letter followed by up to 62
     *           lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
     *     @type string $share_name
     *           Destination volume's share name. If not specified, source volume's share
     *           name will be used.
     *     @type string $description
     *           Description for the destination volume.
     *     @type \Google\Cloud\NetApp\V1\TieringPolicy $tiering_policy
     *           Optional. Tiering policy for the volume.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Netapp\V1\Replication::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Existing destination StoragePool name.
     *
     * Generated from protobuf field <code>string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getStoragePool()
    {
        return $this->storage_pool;
    }

    /**
     * Required. Existing destination StoragePool name.
     *
     * Generated from protobuf field <code>string storage_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setStoragePool($var)
    {
        GPBUtil::checkString($var, True);
        $this->storage_pool = $var;

        return $this;
    }

    /**
     * Desired destination volume resource id. If not specified, source volume's
     * resource id will be used.
     * This value must start with a lowercase letter followed by up to 62
     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
     *
     * Generated from protobuf field <code>string volume_id = 2;</code>
     * @return string
     */
    public function getVolumeId()
    {
        return $this->volume_id;
    }

    /**
     * Desired destination volume resource id. If not specified, source volume's
     * resource id will be used.
     * This value must start with a lowercase letter followed by up to 62
     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
     *
     * Generated from protobuf field <code>string volume_id = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setVolumeId($var)
    {
        GPBUtil::checkString($var, True);
        $this->volume_id = $var;

        return $this;
    }

    /**
     * Destination volume's share name. If not specified, source volume's share
     * name will be used.
     *
     * Generated from protobuf field <code>string share_name = 3;</code>
     * @return string
     */
    public function getShareName()
    {
        return $this->share_name;
    }

    /**
     * Destination volume's share name. If not specified, source volume's share
     * name will be used.
     *
     * Generated from protobuf field <code>string share_name = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setShareName($var)
    {
        GPBUtil::checkString($var, True);
        $this->share_name = $var;

        return $this;
    }

    /**
     * Description for the destination volume.
     *
     * Generated from protobuf field <code>optional string description = 4;</code>
     * @return string
     */
    public function getDescription()
    {
        return isset($this->description) ? $this->description : '';
    }

    public function hasDescription()
    {
        return isset($this->description);
    }

    public function clearDescription()
    {
        unset($this->description);
    }

    /**
     * Description for the destination volume.
     *
     * Generated from protobuf field <code>optional string description = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * Optional. Tiering policy for the volume.
     *
     * Generated from protobuf field <code>optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\NetApp\V1\TieringPolicy|null
     */
    public function getTieringPolicy()
    {
        return $this->tiering_policy;
    }

    public function hasTieringPolicy()
    {
        return isset($this->tiering_policy);
    }

    public function clearTieringPolicy()
    {
        unset($this->tiering_policy);
    }

    /**
     * Optional. Tiering policy for the volume.
     *
     * Generated from protobuf field <code>optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\NetApp\V1\TieringPolicy $var
     * @return $this
     */
    public function setTieringPolicy($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\NetApp\V1\TieringPolicy::class);
        $this->tiering_policy = $var;

        return $this;
    }

}

