public final class ContentLocation extends GeneratedMessageV3 implements ContentLocationOrBuilder
Precise location of the finding within a document, record, image, or metadata
container.
Protobuf type google.privacy.dlp.v2.ContentLocation
Static Fields
CONTAINER_NAME_FIELD_NUMBER
public static final int CONTAINER_NAME_FIELD_NUMBER
Field Value
CONTAINER_TIMESTAMP_FIELD_NUMBER
public static final int CONTAINER_TIMESTAMP_FIELD_NUMBER
Field Value
CONTAINER_VERSION_FIELD_NUMBER
public static final int CONTAINER_VERSION_FIELD_NUMBER
Field Value
DOCUMENT_LOCATION_FIELD_NUMBER
public static final int DOCUMENT_LOCATION_FIELD_NUMBER
Field Value
IMAGE_LOCATION_FIELD_NUMBER
public static final int IMAGE_LOCATION_FIELD_NUMBER
Field Value
METADATA_LOCATION_FIELD_NUMBER
public static final int METADATA_LOCATION_FIELD_NUMBER
Field Value
RECORD_LOCATION_FIELD_NUMBER
public static final int RECORD_LOCATION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ContentLocation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ContentLocation.Builder newBuilder()
Returns
newBuilder(ContentLocation prototype)
public static ContentLocation.Builder newBuilder(ContentLocation prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static ContentLocation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ContentLocation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ContentLocation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static ContentLocation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static ContentLocation parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ContentLocation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ContentLocation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getContainerName()
public String getContainerName()
Name of the container where the finding is located.
The top level name is the source file name or table name. Names of some
common storage containers are formatted as follows:
- BigQuery tables:
{project_id}:{dataset_id}.{table_id}
- Cloud Storage files:
gs://{bucket}/{path}
- Datastore namespace: {namespace}
Nested names could be absent if the embedded object has no string
identifier (for example, an image contained within a document).
string container_name = 1;
Returns
Type | Description |
String | The containerName.
|
getContainerNameBytes()
public ByteString getContainerNameBytes()
Name of the container where the finding is located.
The top level name is the source file name or table name. Names of some
common storage containers are formatted as follows:
- BigQuery tables:
{project_id}:{dataset_id}.{table_id}
- Cloud Storage files:
gs://{bucket}/{path}
- Datastore namespace: {namespace}
Nested names could be absent if the embedded object has no string
identifier (for example, an image contained within a document).
string container_name = 1;
Returns
Type | Description |
ByteString | The bytes for containerName.
|
getContainerTimestamp()
public Timestamp getContainerTimestamp()
Finding container modification timestamp, if applicable. For Cloud Storage,
this field contains the last file modification timestamp. For a BigQuery
table, this field contains the last_modified_time property. For Datastore,
this field isn't populated.
.google.protobuf.Timestamp container_timestamp = 6;
Returns
Type | Description |
Timestamp | The containerTimestamp.
|
getContainerTimestampOrBuilder()
public TimestampOrBuilder getContainerTimestampOrBuilder()
Finding container modification timestamp, if applicable. For Cloud Storage,
this field contains the last file modification timestamp. For a BigQuery
table, this field contains the last_modified_time property. For Datastore,
this field isn't populated.
.google.protobuf.Timestamp container_timestamp = 6;
Returns
getContainerVersion()
public String getContainerVersion()
Finding container version, if available
("generation" for Cloud Storage).
string container_version = 7;
Returns
Type | Description |
String | The containerVersion.
|
getContainerVersionBytes()
public ByteString getContainerVersionBytes()
Finding container version, if available
("generation" for Cloud Storage).
string container_version = 7;
Returns
Type | Description |
ByteString | The bytes for containerVersion.
|
getDefaultInstanceForType()
public ContentLocation getDefaultInstanceForType()
Returns
getDocumentLocation()
public DocumentLocation getDocumentLocation()
Location data for document files.
.google.privacy.dlp.v2.DocumentLocation document_location = 5;
Returns
getDocumentLocationOrBuilder()
public DocumentLocationOrBuilder getDocumentLocationOrBuilder()
Location data for document files.
.google.privacy.dlp.v2.DocumentLocation document_location = 5;
Returns
getImageLocation()
public ImageLocation getImageLocation()
Location within an image's pixels.
.google.privacy.dlp.v2.ImageLocation image_location = 3;
Returns
getImageLocationOrBuilder()
public ImageLocationOrBuilder getImageLocationOrBuilder()
Location within an image's pixels.
.google.privacy.dlp.v2.ImageLocation image_location = 3;
Returns
getLocationCase()
public ContentLocation.LocationCase getLocationCase()
Returns
getMetadataLocation()
public MetadataLocation getMetadataLocation()
Location within the metadata for inspected content.
.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
Returns
getMetadataLocationOrBuilder()
public MetadataLocationOrBuilder getMetadataLocationOrBuilder()
Location within the metadata for inspected content.
.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
Returns
getParserForType()
public Parser<ContentLocation> getParserForType()
Returns
Overrides
getRecordLocation()
public RecordLocation getRecordLocation()
Location within a row or record of a database table.
.google.privacy.dlp.v2.RecordLocation record_location = 2;
Returns
getRecordLocationOrBuilder()
public RecordLocationOrBuilder getRecordLocationOrBuilder()
Location within a row or record of a database table.
.google.privacy.dlp.v2.RecordLocation record_location = 2;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasContainerTimestamp()
public boolean hasContainerTimestamp()
Finding container modification timestamp, if applicable. For Cloud Storage,
this field contains the last file modification timestamp. For a BigQuery
table, this field contains the last_modified_time property. For Datastore,
this field isn't populated.
.google.protobuf.Timestamp container_timestamp = 6;
Returns
Type | Description |
boolean | Whether the containerTimestamp field is set.
|
hasDocumentLocation()
public boolean hasDocumentLocation()
Location data for document files.
.google.privacy.dlp.v2.DocumentLocation document_location = 5;
Returns
Type | Description |
boolean | Whether the documentLocation field is set.
|
hasImageLocation()
public boolean hasImageLocation()
Location within an image's pixels.
.google.privacy.dlp.v2.ImageLocation image_location = 3;
Returns
Type | Description |
boolean | Whether the imageLocation field is set.
|
hasMetadataLocation()
public boolean hasMetadataLocation()
Location within the metadata for inspected content.
.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
Returns
Type | Description |
boolean | Whether the metadataLocation field is set.
|
hasRecordLocation()
public boolean hasRecordLocation()
Location within a row or record of a database table.
.google.privacy.dlp.v2.RecordLocation record_location = 2;
Returns
Type | Description |
boolean | Whether the recordLocation field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ContentLocation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ContentLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ContentLocation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions