Class DiscoveryStartingLocation.Builder (3.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveryStartingLocation build()
Returns
TypeDescription
DiscoveryStartingLocation

buildPartial()

public DiscoveryStartingLocation buildPartial()
Returns
TypeDescription
DiscoveryStartingLocation

clear()

public DiscoveryStartingLocation.Builder clear()
Returns
TypeDescription
DiscoveryStartingLocation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DiscoveryStartingLocation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DiscoveryStartingLocation.Builder
Overrides

clearFolderId()

public DiscoveryStartingLocation.Builder clearFolderId()

The ID of the Folder within an organization to scan.

int64 folder_id = 2;

Returns
TypeDescription
DiscoveryStartingLocation.Builder

This builder for chaining.

clearLocation()

public DiscoveryStartingLocation.Builder clearLocation()
Returns
TypeDescription
DiscoveryStartingLocation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveryStartingLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DiscoveryStartingLocation.Builder
Overrides

clearOrganizationId()

public DiscoveryStartingLocation.Builder clearOrganizationId()

The ID of an organization to scan.

int64 organization_id = 1;

Returns
TypeDescription
DiscoveryStartingLocation.Builder

This builder for chaining.

clone()

public DiscoveryStartingLocation.Builder clone()
Returns
TypeDescription
DiscoveryStartingLocation.Builder
Overrides

getDefaultInstanceForType()

public DiscoveryStartingLocation getDefaultInstanceForType()
Returns
TypeDescription
DiscoveryStartingLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFolderId()

public long getFolderId()

The ID of the Folder within an organization to scan.

int64 folder_id = 2;

Returns
TypeDescription
long

The folderId.

getLocationCase()

public DiscoveryStartingLocation.LocationCase getLocationCase()
Returns
TypeDescription
DiscoveryStartingLocation.LocationCase

getOrganizationId()

public long getOrganizationId()

The ID of an organization to scan.

int64 organization_id = 1;

Returns
TypeDescription
long

The organizationId.

hasFolderId()

public boolean hasFolderId()

The ID of the Folder within an organization to scan.

int64 folder_id = 2;

Returns
TypeDescription
boolean

Whether the folderId field is set.

hasOrganizationId()

public boolean hasOrganizationId()

The ID of an organization to scan.

int64 organization_id = 1;

Returns
TypeDescription
boolean

Whether the organizationId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DiscoveryStartingLocation other)

public DiscoveryStartingLocation.Builder mergeFrom(DiscoveryStartingLocation other)
Parameter
NameDescription
otherDiscoveryStartingLocation
Returns
TypeDescription
DiscoveryStartingLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DiscoveryStartingLocation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DiscoveryStartingLocation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryStartingLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DiscoveryStartingLocation.Builder
Overrides

setFolderId(long value)

public DiscoveryStartingLocation.Builder setFolderId(long value)

The ID of the Folder within an organization to scan.

int64 folder_id = 2;

Parameter
NameDescription
valuelong

The folderId to set.

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

The organizationId to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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