Class DiscoveryCloudStorageConditions (3.51.0)

public final class DiscoveryCloudStorageConditions extends GeneratedMessageV3 implements DiscoveryCloudStorageConditionsOrBuilder

Requirements that must be true before a Cloud Storage bucket or object is scanned in discovery for the first time. There is an AND relationship between the top-level attributes.

Protobuf type google.privacy.dlp.v2.DiscoveryCloudStorageConditions

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > DiscoveryCloudStorageConditions

Static Fields

INCLUDED_BUCKET_ATTRIBUTES_FIELD_NUMBER

public static final int INCLUDED_BUCKET_ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

INCLUDED_OBJECT_ATTRIBUTES_FIELD_NUMBER

public static final int INCLUDED_OBJECT_ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DiscoveryCloudStorageConditions getDefaultInstance()
Returns
Type Description
DiscoveryCloudStorageConditions

getDescriptor()

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

newBuilder()

public static DiscoveryCloudStorageConditions.Builder newBuilder()
Returns
Type Description
DiscoveryCloudStorageConditions.Builder

newBuilder(DiscoveryCloudStorageConditions prototype)

public static DiscoveryCloudStorageConditions.Builder newBuilder(DiscoveryCloudStorageConditions prototype)
Parameter
Name Description
prototype DiscoveryCloudStorageConditions
Returns
Type Description
DiscoveryCloudStorageConditions.Builder

parseDelimitedFrom(InputStream input)

public static DiscoveryCloudStorageConditions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageConditions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DiscoveryCloudStorageConditions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageConditions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DiscoveryCloudStorageConditions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageConditions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DiscoveryCloudStorageConditions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageConditions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DiscoveryCloudStorageConditions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageConditions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DiscoveryCloudStorageConditions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageConditions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageConditions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DiscoveryCloudStorageConditions> parser()
Returns
Type Description
Parser<DiscoveryCloudStorageConditions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DiscoveryCloudStorageConditions getDefaultInstanceForType()
Returns
Type Description
DiscoveryCloudStorageConditions

getIncludedBucketAttributes(int index)

public DiscoveryCloudStorageConditions.CloudStorageBucketAttribute getIncludedBucketAttributes(int index)

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
DiscoveryCloudStorageConditions.CloudStorageBucketAttribute

The includedBucketAttributes at the given index.

getIncludedBucketAttributesCount()

public int getIncludedBucketAttributesCount()

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of includedBucketAttributes.

getIncludedBucketAttributesList()

public List<DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> getIncludedBucketAttributesList()

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CloudStorageBucketAttribute>

A list containing the includedBucketAttributes.

getIncludedBucketAttributesValue(int index)

public int getIncludedBucketAttributesValue(int index)

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of includedBucketAttributes at the given index.

getIncludedBucketAttributesValueList()

public List<Integer> getIncludedBucketAttributesValueList()

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for includedBucketAttributes.

getIncludedObjectAttributes(int index)

public DiscoveryCloudStorageConditions.CloudStorageObjectAttribute getIncludedObjectAttributes(int index)

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
DiscoveryCloudStorageConditions.CloudStorageObjectAttribute

The includedObjectAttributes at the given index.

getIncludedObjectAttributesCount()

public int getIncludedObjectAttributesCount()

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of includedObjectAttributes.

getIncludedObjectAttributesList()

public List<DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> getIncludedObjectAttributesList()

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CloudStorageObjectAttribute>

A list containing the includedObjectAttributes.

getIncludedObjectAttributesValue(int index)

public int getIncludedObjectAttributesValue(int index)

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of includedObjectAttributes at the given index.

getIncludedObjectAttributesValueList()

public List<Integer> getIncludedObjectAttributesValueList()

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for includedObjectAttributes.

getParserForType()

public Parser<DiscoveryCloudStorageConditions> getParserForType()
Returns
Type Description
Parser<DiscoveryCloudStorageConditions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DiscoveryCloudStorageConditions.Builder newBuilderForType()
Returns
Type Description
DiscoveryCloudStorageConditions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DiscoveryCloudStorageConditions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DiscoveryCloudStorageConditions.Builder toBuilder()
Returns
Type Description
DiscoveryCloudStorageConditions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException