Package com.google.privacy.dlp.v2
Class CustomInfoType.Regex.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Regex.Builder>
com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder
- All Implemented Interfaces:
CustomInfoType.RegexOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomInfoType.Regex
public static final class CustomInfoType.Regex.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Regex.Builder>
implements CustomInfoType.RegexOrBuilder
Message defining a custom regular expression.Protobuf type
google.privacy.dlp.v2.CustomInfoType.Regex-
Method Summary
Modifier and TypeMethodDescriptionaddAllGroupIndexes(Iterable<? extends Integer> values) The index of the submatch to extract as findings.addGroupIndexes(int value) The index of the submatch to extract as findings.build()clear()The index of the submatch to extract as findings.Pattern defining the regular expression.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetGroupIndexes(int index) The index of the submatch to extract as findings.intThe index of the submatch to extract as findings.The index of the submatch to extract as findings.Pattern defining the regular expression.com.google.protobuf.ByteStringPattern defining the regular expression.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CustomInfoType.Regex other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setGroupIndexes(int index, int value) The index of the submatch to extract as findings.setPattern(String value) Pattern defining the regular expression.setPatternBytes(com.google.protobuf.ByteString value) Pattern defining the regular expression.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Regex.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Regex.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Regex.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomInfoType.Regex.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Regex.Builder>
-
mergeFrom
public CustomInfoType.Regex.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomInfoType.Regex.Builder>- Throws:
IOException
-
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;- Specified by:
getPatternin interfaceCustomInfoType.RegexOrBuilder- Returns:
- The pattern.
-
getPatternBytes
public com.google.protobuf.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;- Specified by:
getPatternBytesin interfaceCustomInfoType.RegexOrBuilder- Returns:
- The bytes for pattern.
-
setPattern
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;- Parameters:
value- The pattern to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPatternBytes
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;- Parameters:
value- The bytes for pattern to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getGroupIndexesListin interfaceCustomInfoType.RegexOrBuilder- Returns:
- A list containing the groupIndexes.
-
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;- Specified by:
getGroupIndexesCountin interfaceCustomInfoType.RegexOrBuilder- Returns:
- The count of groupIndexes.
-
getGroupIndexes
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;- Specified by:
getGroupIndexesin interfaceCustomInfoType.RegexOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The groupIndexes at the given index.
-
setGroupIndexes
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;- Parameters:
index- The index to set the value at.value- The groupIndexes to set.- Returns:
- This builder for chaining.
-
addGroupIndexes
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;- Parameters:
value- The groupIndexes to add.- Returns:
- This builder for chaining.
-
addAllGroupIndexes
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;- Parameters:
values- The groupIndexes to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-