Class DiscoveryConfig.OrgConfig.Builder (3.46.0)

public static final class DiscoveryConfig.OrgConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public DiscoveryConfig.OrgConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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 Cloud DLP API must be enabled.

string project_id = 2;

Returns
Type Description
DiscoveryConfig.OrgConfig.Builder

This builder for chaining.

clone()

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

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 Cloud 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 Cloud 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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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 Cloud 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 Cloud 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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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