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

/**
 * UDT's parent is a schema.
 *
 * Generated from protobuf message <code>google.cloud.clouddms.v1.UDTEntity</code>
 */
class UDTEntity extends \Google\Protobuf\Internal\Message
{
    /**
     * The SQL code which creates the udt.
     *
     * Generated from protobuf field <code>string udt_sql_code = 1;</code>
     */
    private $udt_sql_code = '';
    /**
     * The SQL code which creates the udt body.
     *
     * Generated from protobuf field <code>string udt_body = 2;</code>
     */
    private $udt_body = '';
    /**
     * Custom engine specific features.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct custom_features = 3;</code>
     */
    private $custom_features = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $udt_sql_code
     *           The SQL code which creates the udt.
     *     @type string $udt_body
     *           The SQL code which creates the udt body.
     *     @type \Google\Protobuf\Struct $custom_features
     *           Custom engine specific features.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Clouddms\V1\ConversionworkspaceResources::initOnce();
        parent::__construct($data);
    }

    /**
     * The SQL code which creates the udt.
     *
     * Generated from protobuf field <code>string udt_sql_code = 1;</code>
     * @return string
     */
    public function getUdtSqlCode()
    {
        return $this->udt_sql_code;
    }

    /**
     * The SQL code which creates the udt.
     *
     * Generated from protobuf field <code>string udt_sql_code = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setUdtSqlCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->udt_sql_code = $var;

        return $this;
    }

    /**
     * The SQL code which creates the udt body.
     *
     * Generated from protobuf field <code>string udt_body = 2;</code>
     * @return string
     */
    public function getUdtBody()
    {
        return $this->udt_body;
    }

    /**
     * The SQL code which creates the udt body.
     *
     * Generated from protobuf field <code>string udt_body = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setUdtBody($var)
    {
        GPBUtil::checkString($var, True);
        $this->udt_body = $var;

        return $this;
    }

    /**
     * Custom engine specific features.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct custom_features = 3;</code>
     * @return \Google\Protobuf\Struct|null
     */
    public function getCustomFeatures()
    {
        return $this->custom_features;
    }

    public function hasCustomFeatures()
    {
        return isset($this->custom_features);
    }

    public function clearCustomFeatures()
    {
        unset($this->custom_features);
    }

    /**
     * Custom engine specific features.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct custom_features = 3;</code>
     * @param \Google\Protobuf\Struct $var
     * @return $this
     */
    public function setCustomFeatures($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class);
        $this->custom_features = $var;

        return $this;
    }

}

