public final class CloudStorageRegex extends GeneratedMessageV3 implements CloudStorageRegexOrBuilder
A pattern to match against one or more file stores. At least one
pattern must be specified. Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
Protobuf type google.privacy.dlp.v2.CloudStorageRegex
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BUCKET_NAME_REGEX_FIELD_NUMBER
public static final int BUCKET_NAME_REGEX_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PROJECT_ID_REGEX_FIELD_NUMBER
public static final int PROJECT_ID_REGEX_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static CloudStorageRegex getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CloudStorageRegex.Builder newBuilder()
newBuilder(CloudStorageRegex prototype)
public static CloudStorageRegex.Builder newBuilder(CloudStorageRegex prototype)
public static CloudStorageRegex parseDelimitedFrom(InputStream input)
public static CloudStorageRegex parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CloudStorageRegex parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CloudStorageRegex parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CloudStorageRegex parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CloudStorageRegex parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CloudStorageRegex parseFrom(CodedInputStream input)
public static CloudStorageRegex parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CloudStorageRegex parseFrom(InputStream input)
public static CloudStorageRegex parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CloudStorageRegex parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CloudStorageRegex parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CloudStorageRegex> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getBucketNameRegex()
public String getBucketNameRegex()
Optional. Regex to test the bucket name against. If empty, all buckets
match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
bucket gs://marketing2021
string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The bucketNameRegex.
|
getBucketNameRegexBytes()
public ByteString getBucketNameRegexBytes()
Optional. Regex to test the bucket name against. If empty, all buckets
match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
bucket gs://marketing2021
string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for bucketNameRegex.
|
getDefaultInstanceForType()
public CloudStorageRegex getDefaultInstanceForType()
getParserForType()
public Parser<CloudStorageRegex> getParserForType()
Overrides
getProjectIdRegex()
public String getProjectIdRegex()
Optional. For organizations, if unset, will match all projects.
string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The projectIdRegex.
|
getProjectIdRegexBytes()
public ByteString getProjectIdRegexBytes()
Optional. For organizations, if unset, will match all projects.
string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for projectIdRegex.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CloudStorageRegex.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CloudStorageRegex.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public CloudStorageRegex.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides