Class DiscoveryStartingLocation (3.40.0)

public final class DiscoveryStartingLocation extends GeneratedMessageV3 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 Fields

FOLDER_ID_FIELD_NUMBER

public static final int FOLDER_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ORGANIZATION_ID_FIELD_NUMBER

public static final int ORGANIZATION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DiscoveryStartingLocation getDefaultInstance()
Returns
TypeDescription
DiscoveryStartingLocation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DiscoveryStartingLocation.Builder newBuilder()
Returns
TypeDescription
DiscoveryStartingLocation.Builder

newBuilder(DiscoveryStartingLocation prototype)

public static DiscoveryStartingLocation.Builder newBuilder(DiscoveryStartingLocation prototype)
Parameter
NameDescription
prototypeDiscoveryStartingLocation
Returns
TypeDescription
DiscoveryStartingLocation.Builder

parseDelimitedFrom(InputStream input)

public static DiscoveryStartingLocation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryStartingLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DiscoveryStartingLocation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryStartingLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DiscoveryStartingLocation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryStartingLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DiscoveryStartingLocation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryStartingLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DiscoveryStartingLocation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryStartingLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DiscoveryStartingLocation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryStartingLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryStartingLocation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DiscoveryStartingLocation> parser()
Returns
TypeDescription
Parser<DiscoveryStartingLocation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DiscoveryStartingLocation getDefaultInstanceForType()
Returns
TypeDescription
DiscoveryStartingLocation

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.

getParserForType()

public Parser<DiscoveryStartingLocation> getParserForType()
Returns
TypeDescription
Parser<DiscoveryStartingLocation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DiscoveryStartingLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DiscoveryStartingLocation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException