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. 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
Modifier and Type | Class and Description |
---|---|
static class |
RecordCondition.Condition.Builder
The field type of `value` and `field` do not need to match to be
considered equal, but not all comparisons are possible.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
FIELD_FIELD_NUMBER |
static int |
OPERATOR_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int FIELD_FIELD_NUMBER
public static final int OPERATOR_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean hasField()
Field within the record this condition is evaluated against. [required]
.google.privacy.dlp.v2.FieldId field = 1;
hasField
in interface RecordCondition.ConditionOrBuilder
public FieldId getField()
Field within the record this condition is evaluated against. [required]
.google.privacy.dlp.v2.FieldId field = 1;
getField
in interface RecordCondition.ConditionOrBuilder
public FieldIdOrBuilder getFieldOrBuilder()
Field within the record this condition is evaluated against. [required]
.google.privacy.dlp.v2.FieldId field = 1;
getFieldOrBuilder
in interface RecordCondition.ConditionOrBuilder
public int getOperatorValue()
Operator used to compare the field or infoType to the value. [required]
.google.privacy.dlp.v2.RelationalOperator operator = 3;
getOperatorValue
in interface RecordCondition.ConditionOrBuilder
public RelationalOperator getOperator()
Operator used to compare the field or infoType to the value. [required]
.google.privacy.dlp.v2.RelationalOperator operator = 3;
getOperator
in interface RecordCondition.ConditionOrBuilder
public boolean hasValue()
Value to compare against. [Required, except for `EXISTS` tests.]
.google.privacy.dlp.v2.Value value = 4;
hasValue
in interface RecordCondition.ConditionOrBuilder
public Value getValue()
Value to compare against. [Required, except for `EXISTS` tests.]
.google.privacy.dlp.v2.Value value = 4;
getValue
in interface RecordCondition.ConditionOrBuilder
public ValueOrBuilder getValueOrBuilder()
Value to compare against. [Required, except for `EXISTS` tests.]
.google.privacy.dlp.v2.Value value = 4;
getValueOrBuilder
in interface RecordCondition.ConditionOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static RecordCondition.Condition parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecordCondition.Condition parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecordCondition.Condition parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecordCondition.Condition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecordCondition.Condition parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecordCondition.Condition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecordCondition.Condition parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static RecordCondition.Condition parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static RecordCondition.Condition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static RecordCondition.Condition parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static RecordCondition.Condition parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static RecordCondition.Condition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public RecordCondition.Condition.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static RecordCondition.Condition.Builder newBuilder()
public static RecordCondition.Condition.Builder newBuilder(RecordCondition.Condition prototype)
public RecordCondition.Condition.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected RecordCondition.Condition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static RecordCondition.Condition getDefaultInstance()
public static Parser<RecordCondition.Condition> parser()
public Parser<RecordCondition.Condition> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public RecordCondition.Condition getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder