public sealed class DataQualityRule.Types.StatisticRangeExpectation : IMessage<DataQualityRule.Types.StatisticRangeExpectation>, IEquatable<DataQualityRule.Types.StatisticRangeExpectation>, IDeepCloneable<DataQualityRule.Types.StatisticRangeExpectation>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Dataplex v1 API class DataQualityRule.Types.StatisticRangeExpectation.
Evaluates whether the column aggregate statistic lies between a specified
range.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eDataQualityRule.Types.StatisticRangeExpectation\u003c/code\u003e class within the Google Cloud Dataplex v1 API, specifically for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStatisticRangeExpectation\u003c/code\u003e class is used to validate if a column's aggregate statistic falls within a specified range.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties to define the minimum (\u003ccode\u003eMinValue\u003c/code\u003e) and maximum (\u003ccode\u003eMaxValue\u003c/code\u003e) allowed values for the statistic, as well as flags to enforce strict comparisons with those values (\u003ccode\u003eStrictMinEnabled\u003c/code\u003e, \u003ccode\u003eStrictMaxEnabled\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStatistic\u003c/code\u003e property specifies which aggregate metric will be evaluated against the defined range, and at least one of \u003ccode\u003emin_value\u003c/code\u003e and \u003ccode\u003emax_value\u003c/code\u003e need to be provided.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API class is \u003ccode\u003e3.6.0\u003c/code\u003e, with prior versions ranging from \u003ccode\u003e3.5.0\u003c/code\u003e down to \u003ccode\u003e1.0.0\u003c/code\u003e, all available via individual links.\u003c/p\u003e\n"]]],[],null,["# Cloud Dataplex v1 API - Class DataQualityRule.Types.StatisticRangeExpectation (3.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.8.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.7.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.6.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.5.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.4.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.3.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.2.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.1.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.0.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.15.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.14.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.13.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.12.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.11.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.10.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.9.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.8.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.7.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.6.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.5.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.4.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.3.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.2.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.1.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.0.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/1.0.0/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation) \n\n public sealed class DataQualityRule.Types.StatisticRangeExpectation : IMessage\u003cDataQualityRule.Types.StatisticRangeExpectation\u003e, IEquatable\u003cDataQualityRule.Types.StatisticRangeExpectation\u003e, IDeepCloneable\u003cDataQualityRule.Types.StatisticRangeExpectation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Dataplex v1 API class DataQualityRule.Types.StatisticRangeExpectation.\n\nEvaluates whether the column aggregate statistic lies between a specified\nrange. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DataQualityRule.Types.StatisticRangeExpectation \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DataQualityRule](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataQualityRule)[Types](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataQualityRule.Types)[StatisticRangeExpectation](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataQualityRule](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataQualityRule)[Types](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataQualityRule.Types)[StatisticRangeExpectation](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DataQualityRule](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataQualityRule)[Types](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataQualityRule.Types)[StatisticRangeExpectation](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataQualityRule.Types.StatisticRangeExpectation), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dataplex.V1](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataplex.V1.dll\n\nConstructors\n------------\n\n### StatisticRangeExpectation()\n\n public StatisticRangeExpectation()\n\n### StatisticRangeExpectation(StatisticRangeExpectation)\n\n public StatisticRangeExpectation(DataQualityRule.Types.StatisticRangeExpectation other)\n\nProperties\n----------\n\n### MaxValue\n\n public string MaxValue { get; set; }\n\nOptional. The maximum column statistic value allowed for a row to pass\nthis validation.\n\nAt least one of `min_value` and `max_value` need to be provided.\n\n### MinValue\n\n public string MinValue { get; set; }\n\nOptional. The minimum column statistic value allowed for a row to pass\nthis validation.\n\nAt least one of `min_value` and `max_value` need to be provided.\n\n### Statistic\n\n public DataQualityRule.Types.StatisticRangeExpectation.Types.ColumnStatistic Statistic { get; set; }\n\nOptional. The aggregate metric to evaluate.\n\n### StrictMaxEnabled\n\n public bool StrictMaxEnabled { get; set; }\n\nOptional. Whether column statistic needs to be strictly lesser than ('\\\u003c')\nthe maximum, or if equality is allowed.\n\nOnly relevant if a `max_value` has been defined. Default = false.\n\n### StrictMinEnabled\n\n public bool StrictMinEnabled { get; set; }\n\nOptional. Whether column statistic needs to be strictly greater than\n('\\\u003e') the minimum, or if equality is allowed.\n\nOnly relevant if a `min_value` has been defined. Default = false."]]