public static final class RecordCondition.Condition extends GeneratedMessageV3 implements RecordCondition.ConditionOrBuilder
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 types
boolean
can only be compared against other booleans
integer
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.
Protobuf type google.privacy.dlp.v2.RecordCondition.Condition
Static Fields
FIELD_FIELD_NUMBER
public static final int FIELD_FIELD_NUMBER
Field Value
OPERATOR_FIELD_NUMBER
public static final int OPERATOR_FIELD_NUMBER
Field Value
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RecordCondition.Condition getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static RecordCondition.Condition.Builder newBuilder()
Returns
newBuilder(RecordCondition.Condition prototype)
public static RecordCondition.Condition.Builder newBuilder(RecordCondition.Condition prototype)
Parameter
Returns
public static RecordCondition.Condition parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RecordCondition.Condition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RecordCondition.Condition parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RecordCondition.Condition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RecordCondition.Condition parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RecordCondition.Condition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecordCondition.Condition parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RecordCondition.Condition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecordCondition.Condition parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RecordCondition.Condition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RecordCondition.Condition parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RecordCondition.Condition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RecordCondition.Condition> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public RecordCondition.Condition getDefaultInstanceForType()
Returns
getField()
public FieldId getField()
Required. Field within the record this condition is evaluated against.
.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getFieldOrBuilder()
public FieldIdOrBuilder getFieldOrBuilder()
Required. Field within the record this condition is evaluated against.
.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getOperator()
public RelationalOperator getOperator()
Required. Operator used to compare the field or infoType to the value.
.google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getOperatorValue()
public int getOperatorValue()
Required. Operator used to compare the field or infoType to the value.
.google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
int | The enum numeric value on the wire for operator.
|
getParserForType()
public Parser<RecordCondition.Condition> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getValue()
Value to compare against. [Mandatory, except for EXISTS
tests.]
.google.privacy.dlp.v2.Value value = 4;
Returns
Type | Description |
Value | The value.
|
getValueOrBuilder()
public ValueOrBuilder getValueOrBuilder()
Value to compare against. [Mandatory, except for EXISTS
tests.]
.google.privacy.dlp.v2.Value value = 4;
Returns
hasField()
public boolean hasField()
Required. Field within the record this condition is evaluated against.
.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the field field is set.
|
hasValue()
public boolean hasValue()
Value to compare against. [Mandatory, except for EXISTS
tests.]
.google.privacy.dlp.v2.Value value = 4;
Returns
Type | Description |
boolean | Whether the value field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public RecordCondition.Condition.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RecordCondition.Condition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public RecordCondition.Condition.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions