Class DataValidationAction (0.37.0)

public final class DataValidationAction extends GeneratedMessageV3 implements DataValidationActionOrBuilder

Represents the action responsible for data validation operations.

Protobuf type google.cloud.contentwarehouse.v1.DataValidationAction

Static Fields

CONDITIONS_FIELD_NUMBER

public static final int CONDITIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DataValidationAction getDefaultInstance()
Returns
TypeDescription
DataValidationAction

getDescriptor()

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

newBuilder()

public static DataValidationAction.Builder newBuilder()
Returns
TypeDescription
DataValidationAction.Builder

newBuilder(DataValidationAction prototype)

public static DataValidationAction.Builder newBuilder(DataValidationAction prototype)
Parameter
NameDescription
prototypeDataValidationAction
Returns
TypeDescription
DataValidationAction.Builder

parseDelimitedFrom(InputStream input)

public static DataValidationAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataValidationAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static DataValidationAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DataValidationAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static DataValidationAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DataValidationAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static DataValidationAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataValidationAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static DataValidationAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DataValidationAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<DataValidationAction> parser()
Returns
TypeDescription
Parser<DataValidationAction>

Methods

containsConditions(String key)

public boolean containsConditions(String key)

Map of (K, V) -> (field, string condition to be evaluated on the field) E.g., ("age", "age > 18 && age < 60") entry triggers validation of field age with the given condition. Map entries will be ANDed during validation.

map<string, string> conditions = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

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

getConditions() (deprecated)

public Map<String,String> getConditions()

Use #getConditionsMap() instead.

Returns
TypeDescription
Map<String,String>

getConditionsCount()

public int getConditionsCount()

Map of (K, V) -> (field, string condition to be evaluated on the field) E.g., ("age", "age > 18 && age < 60") entry triggers validation of field age with the given condition. Map entries will be ANDed during validation.

map<string, string> conditions = 1;

Returns
TypeDescription
int

getConditionsMap()

public Map<String,String> getConditionsMap()

Map of (K, V) -> (field, string condition to be evaluated on the field) E.g., ("age", "age > 18 && age < 60") entry triggers validation of field age with the given condition. Map entries will be ANDed during validation.

map<string, string> conditions = 1;

Returns
TypeDescription
Map<String,String>

getConditionsOrDefault(String key, String defaultValue)

public String getConditionsOrDefault(String key, String defaultValue)

Map of (K, V) -> (field, string condition to be evaluated on the field) E.g., ("age", "age > 18 && age < 60") entry triggers validation of field age with the given condition. Map entries will be ANDed during validation.

map<string, string> conditions = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getConditionsOrThrow(String key)

public String getConditionsOrThrow(String key)

Map of (K, V) -> (field, string condition to be evaluated on the field) E.g., ("age", "age > 18 && age < 60") entry triggers validation of field age with the given condition. Map entries will be ANDed during validation.

map<string, string> conditions = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public DataValidationAction getDefaultInstanceForType()
Returns
TypeDescription
DataValidationAction

getParserForType()

public Parser<DataValidationAction> getParserForType()
Returns
TypeDescription
Parser<DataValidationAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DataValidationAction.Builder newBuilderForType()
Returns
TypeDescription
DataValidationAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public DataValidationAction.Builder toBuilder()
Returns
TypeDescription
DataValidationAction.Builder

writeTo(CodedOutputStream output)

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