Class DiscoveryStartingLocation.Builder (3.87.0)

public static final class DiscoveryStartingLocation.Builder extends GeneratedMessage.Builder<DiscoveryStartingLocation.Builder> implements DiscoveryStartingLocationOrBuilder

The location to begin a discovery scan. Denotes an organization ID or folder ID within an organization.

Protobuf type google.privacy.dlp.v2.DiscoveryStartingLocation

Static Methods

getDescriptor()

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

Methods

build()

public DiscoveryStartingLocation build()
Returns
Type Description
DiscoveryStartingLocation

buildPartial()

public DiscoveryStartingLocation buildPartial()
Returns
Type Description
DiscoveryStartingLocation

clear()

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

clearFolderId()

public DiscoveryStartingLocation.Builder clearFolderId()

The ID of the folder within an organization to be scanned.

int64 folder_id = 2;

Returns
Type Description
DiscoveryStartingLocation.Builder

This builder for chaining.

clearLocation()

public DiscoveryStartingLocation.Builder clearLocation()
Returns
Type Description
DiscoveryStartingLocation.Builder

clearOrganizationId()

public DiscoveryStartingLocation.Builder clearOrganizationId()

The ID of an organization to scan.

int64 organization_id = 1;

Returns
Type Description
DiscoveryStartingLocation.Builder

This builder for chaining.

getDefaultInstanceForType()

public DiscoveryStartingLocation getDefaultInstanceForType()
Returns
Type Description
DiscoveryStartingLocation

getDescriptorForType()

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

getFolderId()

public long getFolderId()

The ID of the folder within an organization to be scanned.

int64 folder_id = 2;

Returns
Type Description
long

The folderId.

getLocationCase()

public DiscoveryStartingLocation.LocationCase getLocationCase()
Returns
Type Description
DiscoveryStartingLocation.LocationCase

getOrganizationId()

public long getOrganizationId()

The ID of an organization to scan.

int64 organization_id = 1;

Returns
Type Description
long

The organizationId.

hasFolderId()

public boolean hasFolderId()

The ID of the folder within an organization to be scanned.

int64 folder_id = 2;

Returns
Type Description
boolean

Whether the folderId field is set.

hasOrganizationId()

public boolean hasOrganizationId()

The ID of an organization to scan.

int64 organization_id = 1;

Returns
Type Description
boolean

Whether the organizationId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DiscoveryStartingLocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFolderId(long value)

public DiscoveryStartingLocation.Builder setFolderId(long value)

The ID of the folder within an organization to be scanned.

int64 folder_id = 2;

Parameter
Name Description
value long

The folderId to set.

Returns
Type Description
DiscoveryStartingLocation.Builder

This builder for chaining.

setOrganizationId(long value)

public DiscoveryStartingLocation.Builder setOrganizationId(long value)

The ID of an organization to scan.

int64 organization_id = 1;

Parameter
Name Description
value long

The organizationId to set.

Returns
Type Description
DiscoveryStartingLocation.Builder

This builder for chaining.