Class DiscoveryStartingLocation.Builder (3.59.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryStartingLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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