Class RecordCondition.Condition (3.9.0)

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
TypeDescription
int

OPERATOR_FIELD_NUMBER

public static final int OPERATOR_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RecordCondition.Condition getDefaultInstance()
Returns
TypeDescription
RecordCondition.Condition

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RecordCondition.Condition.Builder newBuilder()
Returns
TypeDescription
RecordCondition.Condition.Builder

newBuilder(RecordCondition.Condition prototype)

public static RecordCondition.Condition.Builder newBuilder(RecordCondition.Condition prototype)
Parameter
NameDescription
prototypeRecordCondition.Condition
Returns
TypeDescription
RecordCondition.Condition.Builder

parseDelimitedFrom(InputStream input)

public static RecordCondition.Condition parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecordCondition.Condition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RecordCondition.Condition parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RecordCondition.Condition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RecordCondition.Condition parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RecordCondition.Condition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RecordCondition.Condition parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RecordCondition.Condition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RecordCondition.Condition parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecordCondition.Condition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RecordCondition.Condition parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RecordCondition.Condition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecordCondition.Condition
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RecordCondition.Condition> parser()
Returns
TypeDescription
Parser<Condition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RecordCondition.Condition getDefaultInstanceForType()
Returns
TypeDescription
RecordCondition.Condition

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
TypeDescription
FieldId

The field.

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
TypeDescription
FieldIdOrBuilder

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
TypeDescription
RelationalOperator

The operator.

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
TypeDescription
int

The enum numeric value on the wire for operator.

getParserForType()

public Parser<RecordCondition.Condition> getParserForType()
Returns
TypeDescription
Parser<Condition>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getValue()

public Value getValue()

Value to compare against. [Mandatory, except for EXISTS tests.]

.google.privacy.dlp.v2.Value value = 4;

Returns
TypeDescription
Value

The value.

getValueOrBuilder()

public ValueOrBuilder getValueOrBuilder()

Value to compare against. [Mandatory, except for EXISTS tests.]

.google.privacy.dlp.v2.Value value = 4;

Returns
TypeDescription
ValueOrBuilder

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
TypeDescription
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
TypeDescription
boolean

Whether the value field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RecordCondition.Condition.Builder newBuilderForType()
Returns
TypeDescription
RecordCondition.Condition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RecordCondition.Condition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RecordCondition.Condition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RecordCondition.Condition.Builder toBuilder()
Returns
TypeDescription
RecordCondition.Condition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException