Class DataValidationAction.Builder (0.7.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataValidationAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataValidationAction.Builder
Overrides

build()

public DataValidationAction build()
Returns
TypeDescription
DataValidationAction

buildPartial()

public DataValidationAction buildPartial()
Returns
TypeDescription
DataValidationAction

clear()

public DataValidationAction.Builder clear()
Returns
TypeDescription
DataValidationAction.Builder
Overrides

clearConditions()

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

clearField(Descriptors.FieldDescriptor field)

public DataValidationAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DataValidationAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataValidationAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DataValidationAction.Builder
Overrides

clone()

public DataValidationAction.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getConditions()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableConditions()

public Map<String,String> getMutableConditions()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataValidationAction other)

public DataValidationAction.Builder mergeFrom(DataValidationAction other)
Parameter
NameDescription
otherDataValidationAction
Returns
TypeDescription
DataValidationAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataValidationAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataValidationAction.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DataValidationAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DataValidationAction.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataValidationAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
DataValidationAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DataValidationAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataValidationAction.Builder
Overrides

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

public DataValidationAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DataValidationAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DataValidationAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataValidationAction.Builder
Overrides