Class: Google::Cloud::Dlp::V2::RecordCondition::Condition
- Inherits:
-
Object
- Object
- Google::Cloud::Dlp::V2::RecordCondition::Condition
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/privacy/dlp/v2/dlp.rb
Overview
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:
string
can be compared against all other typesboolean
can only be compared against other booleansinteger
can be compared against doubles or a string if the string value can be parsed as an integer.double
can be compared against integers or a string if the string can be parsed as a double.Timestamp
can be compared against strings in RFC 3339 date string format.TimeOfDay
can 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.
Instance Attribute Summary collapse
-
#field ⇒ ::Google::Cloud::Dlp::V2::FieldId
Required.
-
#operator ⇒ ::Google::Cloud::Dlp::V2::RelationalOperator
Required.
-
#value ⇒ ::Google::Cloud::Dlp::V2::Value
Value to compare against.
Instance Attribute Details
#field ⇒ ::Google::Cloud::Dlp::V2::FieldId
Returns Required. Field within the record this condition is evaluated against.
2926 2927 2928 2929 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2926 class Condition include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#operator ⇒ ::Google::Cloud::Dlp::V2::RelationalOperator
Returns Required. Operator used to compare the field or infoType to the value.
2926 2927 2928 2929 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2926 class Condition include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#value ⇒ ::Google::Cloud::Dlp::V2::Value
Returns Value to compare against. [Mandatory, except for EXISTS
tests.].
2926 2927 2928 2929 |
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2926 class Condition include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |