Class DiscoveryOtherCloudFilter.Builder (3.56.0)

public static final class DiscoveryOtherCloudFilter.Builder extends GeneratedMessageV3.Builder<DiscoveryOtherCloudFilter.Builder> implements DiscoveryOtherCloudFilterOrBuilder

Determines which resources from the other cloud will have profiles generated. Includes the ability to filter by resource names.

Protobuf type google.privacy.dlp.v2.DiscoveryOtherCloudFilter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveryOtherCloudFilter build()
Returns
Type Description
DiscoveryOtherCloudFilter

buildPartial()

public DiscoveryOtherCloudFilter buildPartial()
Returns
Type Description
DiscoveryOtherCloudFilter

clear()

public DiscoveryOtherCloudFilter.Builder clear()
Returns
Type Description
DiscoveryOtherCloudFilter.Builder
Overrides

clearCollection()

public DiscoveryOtherCloudFilter.Builder clearCollection()

A collection of resources for this filter to apply to.

.google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1;

Returns
Type Description
DiscoveryOtherCloudFilter.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public DiscoveryOtherCloudFilter.Builder clearFilter()
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOthers()

public DiscoveryOtherCloudFilter.Builder clearOthers()

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiscoveryOtherCloudFilter.Builder

clearSingleResource()

public DiscoveryOtherCloudFilter.Builder clearSingleResource()

The resource to scan. Configs using this filter can only have one target (the target with this single resource reference).

.google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2;

Returns
Type Description
DiscoveryOtherCloudFilter.Builder

clone()

public DiscoveryOtherCloudFilter.Builder clone()
Returns
Type Description
DiscoveryOtherCloudFilter.Builder
Overrides

getCollection()

public OtherCloudResourceCollection getCollection()

A collection of resources for this filter to apply to.

.google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1;

Returns
Type Description
OtherCloudResourceCollection

The collection.

getCollectionBuilder()

public OtherCloudResourceCollection.Builder getCollectionBuilder()

A collection of resources for this filter to apply to.

.google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1;

Returns
Type Description
OtherCloudResourceCollection.Builder

getCollectionOrBuilder()

public OtherCloudResourceCollectionOrBuilder getCollectionOrBuilder()

A collection of resources for this filter to apply to.

.google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1;

Returns
Type Description
OtherCloudResourceCollectionOrBuilder

getDefaultInstanceForType()

public DiscoveryOtherCloudFilter getDefaultInstanceForType()
Returns
Type Description
DiscoveryOtherCloudFilter

getDescriptorForType()

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

getFilterCase()

public DiscoveryOtherCloudFilter.FilterCase getFilterCase()
Returns
Type Description
DiscoveryOtherCloudFilter.FilterCase

getOthers()

public AllOtherResources getOthers()

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AllOtherResources

The others.

getOthersBuilder()

public AllOtherResources.Builder getOthersBuilder()

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AllOtherResources.Builder

getOthersOrBuilder()

public AllOtherResourcesOrBuilder getOthersOrBuilder()

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AllOtherResourcesOrBuilder

getSingleResource()

public OtherCloudSingleResourceReference getSingleResource()

The resource to scan. Configs using this filter can only have one target (the target with this single resource reference).

.google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2;

Returns
Type Description
OtherCloudSingleResourceReference

The singleResource.

getSingleResourceBuilder()

public OtherCloudSingleResourceReference.Builder getSingleResourceBuilder()

The resource to scan. Configs using this filter can only have one target (the target with this single resource reference).

.google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2;

Returns
Type Description
OtherCloudSingleResourceReference.Builder

getSingleResourceOrBuilder()

public OtherCloudSingleResourceReferenceOrBuilder getSingleResourceOrBuilder()

The resource to scan. Configs using this filter can only have one target (the target with this single resource reference).

.google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2;

Returns
Type Description
OtherCloudSingleResourceReferenceOrBuilder

hasCollection()

public boolean hasCollection()

A collection of resources for this filter to apply to.

.google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1;

Returns
Type Description
boolean

Whether the collection field is set.

hasOthers()

public boolean hasOthers()

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the others field is set.

hasSingleResource()

public boolean hasSingleResource()

The resource to scan. Configs using this filter can only have one target (the target with this single resource reference).

.google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2;

Returns
Type Description
boolean

Whether the singleResource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCollection(OtherCloudResourceCollection value)

public DiscoveryOtherCloudFilter.Builder mergeCollection(OtherCloudResourceCollection value)

A collection of resources for this filter to apply to.

.google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1;

Parameter
Name Description
value OtherCloudResourceCollection
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

mergeFrom(DiscoveryOtherCloudFilter other)

public DiscoveryOtherCloudFilter.Builder mergeFrom(DiscoveryOtherCloudFilter other)
Parameter
Name Description
other DiscoveryOtherCloudFilter
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiscoveryOtherCloudFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryOtherCloudFilter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DiscoveryOtherCloudFilter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DiscoveryOtherCloudFilter.Builder
Overrides

mergeOthers(AllOtherResources value)

public DiscoveryOtherCloudFilter.Builder mergeOthers(AllOtherResources value)

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AllOtherResources
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

mergeSingleResource(OtherCloudSingleResourceReference value)

public DiscoveryOtherCloudFilter.Builder mergeSingleResource(OtherCloudSingleResourceReference value)

The resource to scan. Configs using this filter can only have one target (the target with this single resource reference).

.google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2;

Parameter
Name Description
value OtherCloudSingleResourceReference
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryOtherCloudFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryOtherCloudFilter.Builder
Overrides

setCollection(OtherCloudResourceCollection value)

public DiscoveryOtherCloudFilter.Builder setCollection(OtherCloudResourceCollection value)

A collection of resources for this filter to apply to.

.google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1;

Parameter
Name Description
value OtherCloudResourceCollection
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

setCollection(OtherCloudResourceCollection.Builder builderForValue)

public DiscoveryOtherCloudFilter.Builder setCollection(OtherCloudResourceCollection.Builder builderForValue)

A collection of resources for this filter to apply to.

.google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1;

Parameter
Name Description
builderForValue OtherCloudResourceCollection.Builder
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryOtherCloudFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiscoveryOtherCloudFilter.Builder
Overrides

setOthers(AllOtherResources value)

public DiscoveryOtherCloudFilter.Builder setOthers(AllOtherResources value)

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AllOtherResources
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

setOthers(AllOtherResources.Builder builderForValue)

public DiscoveryOtherCloudFilter.Builder setOthers(AllOtherResources.Builder builderForValue)

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AllOtherResources.Builder
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DiscoveryOtherCloudFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiscoveryOtherCloudFilter.Builder
Overrides

setSingleResource(OtherCloudSingleResourceReference value)

public DiscoveryOtherCloudFilter.Builder setSingleResource(OtherCloudSingleResourceReference value)

The resource to scan. Configs using this filter can only have one target (the target with this single resource reference).

.google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2;

Parameter
Name Description
value OtherCloudSingleResourceReference
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

setSingleResource(OtherCloudSingleResourceReference.Builder builderForValue)

public DiscoveryOtherCloudFilter.Builder setSingleResource(OtherCloudSingleResourceReference.Builder builderForValue)

The resource to scan. Configs using this filter can only have one target (the target with this single resource reference).

.google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2;

Parameter
Name Description
builderForValue OtherCloudSingleResourceReference.Builder
Returns
Type Description
DiscoveryOtherCloudFilter.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryOtherCloudFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryOtherCloudFilter.Builder
Overrides