Class DataValidationAction.Builder (0.50.0)

public static final class DataValidationAction.Builder extends GeneratedMessageV3.Builder<DataValidationAction.Builder> implements DataValidationActionOrBuilder

Represents the action responsible for data validation operations.

Protobuf type google.cloud.contentwarehouse.v1.DataValidationAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataValidationAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataValidationAction.Builder
Overrides

build()

public DataValidationAction build()
Returns
Type Description
DataValidationAction

buildPartial()

public DataValidationAction buildPartial()
Returns
Type Description
DataValidationAction

clear()

public DataValidationAction.Builder clear()
Returns
Type Description
DataValidationAction.Builder
Overrides

clearConditions()

public DataValidationAction.Builder clearConditions()
Returns
Type Description
DataValidationAction.Builder

clearField(Descriptors.FieldDescriptor field)

public DataValidationAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataValidationAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataValidationAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataValidationAction.Builder
Overrides

clone()

public DataValidationAction.Builder clone()
Returns
Type Description
DataValidationAction.Builder
Overrides

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
Name Description
key String
Returns
Type Description
boolean

getConditions() (deprecated)

public Map<String,String> getConditions()

Use #getConditionsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public DataValidationAction getDefaultInstanceForType()
Returns
Type Description
DataValidationAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableConditions() (deprecated)

public Map<String,String> getMutableConditions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataValidationAction other)

public DataValidationAction.Builder mergeFrom(DataValidationAction other)
Parameter
Name Description
other DataValidationAction
Returns
Type Description
DataValidationAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataValidationAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataValidationAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataValidationAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataValidationAction.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataValidationAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataValidationAction.Builder
Overrides

putAllConditions(Map<String,String> values)

public DataValidationAction.Builder putAllConditions(Map<String,String> values)

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
Name Description
values Map<String,String>
Returns
Type Description
DataValidationAction.Builder

putConditions(String key, String value)

public DataValidationAction.Builder putConditions(String key, String value)

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
Name Description
key String
value String
Returns
Type Description
DataValidationAction.Builder

removeConditions(String key)

public DataValidationAction.Builder removeConditions(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
Name Description
key String
Returns
Type Description
DataValidationAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DataValidationAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataValidationAction.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataValidationAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataValidationAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DataValidationAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataValidationAction.Builder
Overrides