Class DiscoveryConfig.OrgConfig.Builder (3.87.0)

public static final class DiscoveryConfig.OrgConfig.Builder extends GeneratedMessage.Builder<DiscoveryConfig.OrgConfig.Builder> implements DiscoveryConfig.OrgConfigOrBuilder

Project and scan location information. Only set when the parent is an org.

Protobuf type google.privacy.dlp.v2.DiscoveryConfig.OrgConfig

Static Methods

getDescriptor()

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

Methods

build()

public DiscoveryConfig.OrgConfig build()
Returns
Type Description
DiscoveryConfig.OrgConfig

buildPartial()

public DiscoveryConfig.OrgConfig buildPartial()
Returns
Type Description
DiscoveryConfig.OrgConfig

clear()

public DiscoveryConfig.OrgConfig.Builder clear()
Returns
Type Description
DiscoveryConfig.OrgConfig.Builder
Overrides

clearLocation()

public DiscoveryConfig.OrgConfig.Builder clearLocation()

The data to scan: folder, org, or project

.google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;

Returns
Type Description
DiscoveryConfig.OrgConfig.Builder

clearProjectId()

public DiscoveryConfig.OrgConfig.Builder clearProjectId()

The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.

string project_id = 2;

Returns
Type Description
DiscoveryConfig.OrgConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public DiscoveryConfig.OrgConfig getDefaultInstanceForType()
Returns
Type Description
DiscoveryConfig.OrgConfig

getDescriptorForType()

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

getLocation()

public DiscoveryStartingLocation getLocation()

The data to scan: folder, org, or project

.google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;

Returns
Type Description
DiscoveryStartingLocation

The location.

getLocationBuilder()

public DiscoveryStartingLocation.Builder getLocationBuilder()

The data to scan: folder, org, or project

.google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;

Returns
Type Description
DiscoveryStartingLocation.Builder

getLocationOrBuilder()

public DiscoveryStartingLocationOrBuilder getLocationOrBuilder()

The data to scan: folder, org, or project

.google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;

Returns
Type Description
DiscoveryStartingLocationOrBuilder

getProjectId()

public String getProjectId()

The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.

string project_id = 2;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.

string project_id = 2;

Returns
Type Description
ByteString

The bytes for projectId.

hasLocation()

public boolean hasLocation()

The data to scan: folder, org, or project

.google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;

Returns
Type Description
boolean

Whether the location field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DiscoveryConfig.OrgConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLocation(DiscoveryStartingLocation value)

public DiscoveryConfig.OrgConfig.Builder mergeLocation(DiscoveryStartingLocation value)

The data to scan: folder, org, or project

.google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;

Parameter
Name Description
value DiscoveryStartingLocation
Returns
Type Description
DiscoveryConfig.OrgConfig.Builder

setLocation(DiscoveryStartingLocation value)

public DiscoveryConfig.OrgConfig.Builder setLocation(DiscoveryStartingLocation value)

The data to scan: folder, org, or project

.google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;

Parameter
Name Description
value DiscoveryStartingLocation
Returns
Type Description
DiscoveryConfig.OrgConfig.Builder

setLocation(DiscoveryStartingLocation.Builder builderForValue)

public DiscoveryConfig.OrgConfig.Builder setLocation(DiscoveryStartingLocation.Builder builderForValue)

The data to scan: folder, org, or project

.google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;

Parameter
Name Description
builderForValue DiscoveryStartingLocation.Builder
Returns
Type Description
DiscoveryConfig.OrgConfig.Builder

setProjectId(String value)

public DiscoveryConfig.OrgConfig.Builder setProjectId(String value)

The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.

string project_id = 2;

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
DiscoveryConfig.OrgConfig.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public DiscoveryConfig.OrgConfig.Builder setProjectIdBytes(ByteString value)

The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.

string project_id = 2;

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
DiscoveryConfig.OrgConfig.Builder

This builder for chaining.