Class CustomInfoType.Regex.Builder (3.49.0)

public static final class CustomInfoType.Regex.Builder extends GeneratedMessageV3.Builder<CustomInfoType.Regex.Builder> implements CustomInfoType.RegexOrBuilder

Message defining a custom regular expression.

Protobuf type google.privacy.dlp.v2.CustomInfoType.Regex

Static Methods

getDescriptor()

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

Methods

addAllGroupIndexes(Iterable<? extends Integer> values)

public CustomInfoType.Regex.Builder addAllGroupIndexes(Iterable<? extends Integer> values)

The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.

repeated int32 group_indexes = 2;

Parameter
Name Description
values Iterable<? extends java.lang.Integer>

The groupIndexes to add.

Returns
Type Description
CustomInfoType.Regex.Builder

This builder for chaining.

addGroupIndexes(int value)

public CustomInfoType.Regex.Builder addGroupIndexes(int value)

The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.

repeated int32 group_indexes = 2;

Parameter
Name Description
value int

The groupIndexes to add.

Returns
Type Description
CustomInfoType.Regex.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CustomInfoType.Regex build()
Returns
Type Description
CustomInfoType.Regex

buildPartial()

public CustomInfoType.Regex buildPartial()
Returns
Type Description
CustomInfoType.Regex

clear()

public CustomInfoType.Regex.Builder clear()
Returns
Type Description
CustomInfoType.Regex.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearGroupIndexes()

public CustomInfoType.Regex.Builder clearGroupIndexes()

The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.

repeated int32 group_indexes = 2;

Returns
Type Description
CustomInfoType.Regex.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPattern()

public CustomInfoType.Regex.Builder clearPattern()

Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.

string pattern = 1;

Returns
Type Description
CustomInfoType.Regex.Builder

This builder for chaining.

clone()

public CustomInfoType.Regex.Builder clone()
Returns
Type Description
CustomInfoType.Regex.Builder
Overrides

getDefaultInstanceForType()

public CustomInfoType.Regex getDefaultInstanceForType()
Returns
Type Description
CustomInfoType.Regex

getDescriptorForType()

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