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

namespace Google\Cloud\CloudDms\V1;

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

/**
 * Options to configure rule type SinglePackageChange.
 * The rule is used to alter the sql code for a package entities.
 * The rule filter field can refer to one entity.
 * The rule scope can be: Package
 *
 * Generated from protobuf message <code>google.cloud.clouddms.v1.SinglePackageChange</code>
 */
class SinglePackageChange extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Sql code for package description
     *
     * Generated from protobuf field <code>string package_description = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $package_description = '';
    /**
     * Optional. Sql code for package body
     *
     * Generated from protobuf field <code>string package_body = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $package_body = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $package_description
     *           Optional. Sql code for package description
     *     @type string $package_body
     *           Optional. Sql code for package body
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Clouddms\V1\ConversionworkspaceResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Sql code for package description
     *
     * Generated from protobuf field <code>string package_description = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPackageDescription()
    {
        return $this->package_description;
    }

    /**
     * Optional. Sql code for package description
     *
     * Generated from protobuf field <code>string package_description = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPackageDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->package_description = $var;

        return $this;
    }

    /**
     * Optional. Sql code for package body
     *
     * Generated from protobuf field <code>string package_body = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getPackageBody()
    {
        return $this->package_body;
    }

    /**
     * Optional. Sql code for package body
     *
     * Generated from protobuf field <code>string package_body = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setPackageBody($var)
    {
        GPBUtil::checkString($var, True);
        $this->package_body = $var;

        return $this;
    }

}

