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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONTAINER_NAME_FIELD_NUMBER
public static final int CONTAINER_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CONTAINER_TIMESTAMP_FIELD_NUMBER
public static final int CONTAINER_TIMESTAMP_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CONTAINER_VERSION_FIELD_NUMBER
public static final int CONTAINER_VERSION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DOCUMENT_LOCATION_FIELD_NUMBER
public static final int DOCUMENT_LOCATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
IMAGE_LOCATION_FIELD_NUMBER
public static final int IMAGE_LOCATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
METADATA_LOCATION_FIELD_NUMBER
public static final int METADATA_LOCATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
RECORD_LOCATION_FIELD_NUMBER
public static final int RECORD_LOCATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static ContentLocation getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ContentLocation.Builder newBuilder()
newBuilder(ContentLocation prototype)
public static ContentLocation.Builder newBuilder(ContentLocation prototype)
parseDelimitedFrom(InputStream input)
public static ContentLocation parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ContentLocation parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ContentLocation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static ContentLocation parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static ContentLocation parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ContentLocation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ContentLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ContentLocation> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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;
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()
getDocumentLocation()
public DocumentLocation getDocumentLocation()
Location data for document files.
.google.privacy.dlp.v2.DocumentLocation document_location = 5;
getDocumentLocationOrBuilder()
public DocumentLocationOrBuilder getDocumentLocationOrBuilder()
Location data for document files.
.google.privacy.dlp.v2.DocumentLocation document_location = 5;
getImageLocation()
public ImageLocation getImageLocation()
Location within an image's pixels.
.google.privacy.dlp.v2.ImageLocation image_location = 3;
getImageLocationOrBuilder()
public ImageLocationOrBuilder getImageLocationOrBuilder()
Location within an image's pixels.
.google.privacy.dlp.v2.ImageLocation image_location = 3;
getLocationCase()
public ContentLocation.LocationCase getLocationCase()
getMetadataLocation()
public MetadataLocation getMetadataLocation()
Location within the metadata for inspected content.
.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
getMetadataLocationOrBuilder()
public MetadataLocationOrBuilder getMetadataLocationOrBuilder()
Location within the metadata for inspected content.
.google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
getParserForType()
public Parser<ContentLocation> getParserForType()
Overrides
getRecordLocation()
public RecordLocation getRecordLocation()
Location within a row or record of a database table.
.google.privacy.dlp.v2.RecordLocation record_location = 2;
getRecordLocationOrBuilder()
public RecordLocationOrBuilder getRecordLocationOrBuilder()
Location within a row or record of a database table.
.google.privacy.dlp.v2.RecordLocation record_location = 2;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ContentLocation.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ContentLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ContentLocation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides