Class DiscoveryConfig.OrgConfig.Builder (3.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryConfig.OrgConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DiscoveryConfig.OrgConfig.Builder
Overrides

build()

public DiscoveryConfig.OrgConfig build()
Returns
TypeDescription
DiscoveryConfig.OrgConfig

buildPartial()

public DiscoveryConfig.OrgConfig buildPartial()
Returns
TypeDescription
DiscoveryConfig.OrgConfig

clear()

public DiscoveryConfig.OrgConfig.Builder clear()
Returns
TypeDescription
DiscoveryConfig.OrgConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DiscoveryConfig.OrgConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DiscoveryConfig.OrgConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveryConfig.OrgConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
DiscoveryConfig.OrgConfig.Builder

This builder for chaining.

clone()

public DiscoveryConfig.OrgConfig.Builder clone()
Returns
TypeDescription
DiscoveryConfig.OrgConfig.Builder
Overrides

getDefaultInstanceForType()

public DiscoveryConfig.OrgConfig getDefaultInstanceForType()
Returns
TypeDescription
DiscoveryConfig.OrgConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocation()

public DiscoveryStartingLocation getLocation()

The data to scan: folder, org, or project

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

Returns
TypeDescription
DiscoveryStartingLocation

The location.

getLocationBuilder()

public DiscoveryStartingLocation.Builder getLocationBuilder()

The data to scan: folder, org, or project

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

Returns
TypeDescription
DiscoveryStartingLocation.Builder

getLocationOrBuilder()

public DiscoveryStartingLocationOrBuilder getLocationOrBuilder()

The data to scan: folder, org, or project

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the location field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DiscoveryConfig.OrgConfig other)

public DiscoveryConfig.OrgConfig.Builder mergeFrom(DiscoveryConfig.OrgConfig other)
Parameter
NameDescription
otherDiscoveryConfig.OrgConfig
Returns
TypeDescription
DiscoveryConfig.OrgConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiscoveryConfig.OrgConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryConfig.OrgConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DiscoveryConfig.OrgConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDiscoveryStartingLocation
Returns
TypeDescription
DiscoveryConfig.OrgConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryConfig.OrgConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DiscoveryConfig.OrgConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryConfig.OrgConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDiscoveryStartingLocation
Returns
TypeDescription
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
NameDescription
builderForValueDiscoveryStartingLocation.Builder
Returns
TypeDescription
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
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DiscoveryConfig.OrgConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryConfig.OrgConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DiscoveryConfig.OrgConfig.Builder
Overrides