Class CustomInfoType.Regex (3.22.0)

public static final class CustomInfoType.Regex extends GeneratedMessageV3 implements CustomInfoType.RegexOrBuilder

Message defining a custom regular expression.

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

Static Fields

GROUP_INDEXES_FIELD_NUMBER

public static final int GROUP_INDEXES_FIELD_NUMBER
Field Value
TypeDescription
int

PATTERN_FIELD_NUMBER

public static final int PATTERN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomInfoType.Regex getDefaultInstance()
Returns
TypeDescription
CustomInfoType.Regex

getDescriptor()

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

newBuilder()

public static CustomInfoType.Regex.Builder newBuilder()
Returns
TypeDescription
CustomInfoType.Regex.Builder

newBuilder(CustomInfoType.Regex prototype)

public static CustomInfoType.Regex.Builder newBuilder(CustomInfoType.Regex prototype)
Parameter
NameDescription
prototypeCustomInfoType.Regex
Returns
TypeDescription
CustomInfoType.Regex.Builder

parseDelimitedFrom(InputStream input)

public static CustomInfoType.Regex parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomInfoType.Regex
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static CustomInfoType.Regex parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomInfoType.Regex
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static CustomInfoType.Regex parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomInfoType.Regex
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static CustomInfoType.Regex parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomInfoType.Regex
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static CustomInfoType.Regex parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomInfoType.Regex
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<CustomInfoType.Regex> parser()
Returns
TypeDescription
Parser<Regex>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CustomInfoType.Regex getDefaultInstanceForType()
Returns
TypeDescription
CustomInfoType.Regex

getGroupIndexes(int index)

public int getGroupIndexes(int index)

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The groupIndexes at the given index.

getGroupIndexesCount()

public int getGroupIndexesCount()

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

The count of groupIndexes.

getGroupIndexesList()

public List<Integer> getGroupIndexesList()

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
TypeDescription
List<Integer>

A list containing the groupIndexes.

getParserForType()

public Parser<CustomInfoType.Regex> getParserForType()
Returns
TypeDescription
Parser<Regex>
Overrides

getPattern()

public String getPattern()

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

The pattern.

getPatternBytes()

public ByteString getPatternBytes()

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

The bytes for pattern.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 CustomInfoType.Regex.Builder newBuilderForType()
Returns
TypeDescription
CustomInfoType.Regex.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public CustomInfoType.Regex.Builder toBuilder()
Returns
TypeDescription
CustomInfoType.Regex.Builder

writeTo(CodedOutputStream output)

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