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

/**
 * Filter for fixed point number data types such as NUMERIC/NUMBER
 *
 * Generated from protobuf message <code>google.cloud.clouddms.v1.SourceNumericFilter</code>
 */
class SourceNumericFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The filter will match columns with scale greater than or equal to
     * this number.
     *
     * Generated from protobuf field <code>int32 source_min_scale_filter = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $source_min_scale_filter = 0;
    /**
     * Optional. The filter will match columns with scale smaller than or equal to
     * this number.
     *
     * Generated from protobuf field <code>int32 source_max_scale_filter = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $source_max_scale_filter = 0;
    /**
     * Optional. The filter will match columns with precision greater than or
     * equal to this number.
     *
     * Generated from protobuf field <code>int32 source_min_precision_filter = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $source_min_precision_filter = 0;
    /**
     * Optional. The filter will match columns with precision smaller than or
     * equal to this number.
     *
     * Generated from protobuf field <code>int32 source_max_precision_filter = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $source_max_precision_filter = 0;
    /**
     * Required. Enum to set the option defining the datatypes numeric filter has
     * to be applied to
     *
     * Generated from protobuf field <code>.google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $numeric_filter_option = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $source_min_scale_filter
     *           Optional. The filter will match columns with scale greater than or equal to
     *           this number.
     *     @type int $source_max_scale_filter
     *           Optional. The filter will match columns with scale smaller than or equal to
     *           this number.
     *     @type int $source_min_precision_filter
     *           Optional. The filter will match columns with precision greater than or
     *           equal to this number.
     *     @type int $source_max_precision_filter
     *           Optional. The filter will match columns with precision smaller than or
     *           equal to this number.
     *     @type int $numeric_filter_option
     *           Required. Enum to set the option defining the datatypes numeric filter has
     *           to be applied to
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Clouddms\V1\ConversionworkspaceResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The filter will match columns with scale greater than or equal to
     * this number.
     *
     * Generated from protobuf field <code>int32 source_min_scale_filter = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getSourceMinScaleFilter()
    {
        return $this->source_min_scale_filter;
    }

    /**
     * Optional. The filter will match columns with scale greater than or equal to
     * this number.
     *
     * Generated from protobuf field <code>int32 source_min_scale_filter = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setSourceMinScaleFilter($var)
    {
        GPBUtil::checkInt32($var);
        $this->source_min_scale_filter = $var;

        return $this;
    }

    /**
     * Optional. The filter will match columns with scale smaller than or equal to
     * this number.
     *
     * Generated from protobuf field <code>int32 source_max_scale_filter = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getSourceMaxScaleFilter()
    {
        return $this->source_max_scale_filter;
    }

    /**
     * Optional. The filter will match columns with scale smaller than or equal to
     * this number.
     *
     * Generated from protobuf field <code>int32 source_max_scale_filter = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setSourceMaxScaleFilter($var)
    {
        GPBUtil::checkInt32($var);
        $this->source_max_scale_filter = $var;

        return $this;
    }

    /**
     * Optional. The filter will match columns with precision greater than or
     * equal to this number.
     *
     * Generated from protobuf field <code>int32 source_min_precision_filter = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getSourceMinPrecisionFilter()
    {
        return $this->source_min_precision_filter;
    }

    /**
     * Optional. The filter will match columns with precision greater than or
     * equal to this number.
     *
     * Generated from protobuf field <code>int32 source_min_precision_filter = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setSourceMinPrecisionFilter($var)
    {
        GPBUtil::checkInt32($var);
        $this->source_min_precision_filter = $var;

        return $this;
    }

    /**
     * Optional. The filter will match columns with precision smaller than or
     * equal to this number.
     *
     * Generated from protobuf field <code>int32 source_max_precision_filter = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getSourceMaxPrecisionFilter()
    {
        return $this->source_max_precision_filter;
    }

    /**
     * Optional. The filter will match columns with precision smaller than or
     * equal to this number.
     *
     * Generated from protobuf field <code>int32 source_max_precision_filter = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setSourceMaxPrecisionFilter($var)
    {
        GPBUtil::checkInt32($var);
        $this->source_max_precision_filter = $var;

        return $this;
    }

    /**
     * Required. Enum to set the option defining the datatypes numeric filter has
     * to be applied to
     *
     * Generated from protobuf field <code>.google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getNumericFilterOption()
    {
        return $this->numeric_filter_option;
    }

    /**
     * Required. Enum to set the option defining the datatypes numeric filter has
     * to be applied to
     *
     * Generated from protobuf field <code>.google.cloud.clouddms.v1.NumericFilterOption numeric_filter_option = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setNumericFilterOption($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\CloudDms\V1\NumericFilterOption::class);
        $this->numeric_filter_option = $var;

        return $this;
    }

}

