public sealed class RecordCondition.Types.Condition : IMessage<RecordCondition.Types.Condition>, IEquatable<RecordCondition.Types.Condition>, IDeepCloneable<RecordCondition.Types.Condition>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class RecordCondition.Types.Condition.
The field type of value and field do not need to match to be
considered equal, but not all comparisons are possible.
EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
but all other comparisons are invalid with incompatible types.
A value of type:
stringcan be compared against all other typesbooleancan only be compared against other booleansintegercan be compared against doubles or a string if the string value can be parsed as an integer.doublecan be compared against integers or a string if the string can be parsed as a double.Timestampcan be compared against strings in RFC 3339 date string format.TimeOfDaycan be compared against timestamps and strings in the format of 'HH:mm:ss'.
If we fail to compare do to type mismatch, a warning will be given and the condition will evaluate to false.
Implements
IMessageRecordConditionTypesCondition, IEquatableRecordConditionTypesCondition, IDeepCloneableRecordConditionTypesCondition, IBufferMessage, IMessageNamespace
Google.Cloud.Dlp.V2Assembly
Google.Cloud.Dlp.V2.dll
Constructors
Condition()
public Condition()Condition(Condition)
public Condition(RecordCondition.Types.Condition other)| Parameter | |
|---|---|
| Name | Description |
other |
RecordConditionTypesCondition |
Properties
Field
public FieldId Field { get; set; }Required. Field within the record this condition is evaluated against.
| Property Value | |
|---|---|
| Type | Description |
FieldId |
|
Operator
public RelationalOperator Operator { get; set; }Required. Operator used to compare the field or infoType to the value.
| Property Value | |
|---|---|
| Type | Description |
RelationalOperator |
|
Value
public Value Value { get; set; }Value to compare against. [Mandatory, except for EXISTS tests.]
| Property Value | |
|---|---|
| Type | Description |
Value |
|