Send feedback
Class Container (3.37.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.37.0 keyboard_arrow_down
public final class Container extends GeneratedMessageV3 implements ContainerOrBuilder
Represents a container that may contain DLP findings.
Examples of a container include a file, table, or database record.
Protobuf type google.privacy.dlp.v2.Container
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
FULL_PATH_FIELD_NUMBER
public static final int FULL_PATH_FIELD_NUMBER
Field Value Type Description int
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER
Field Value Type Description int
RELATIVE_PATH_FIELD_NUMBER
public static final int RELATIVE_PATH_FIELD_NUMBER
Field Value Type Description int
ROOT_PATH_FIELD_NUMBER
public static final int ROOT_PATH_FIELD_NUMBER
Field Value Type Description int
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value Type Description int
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value Type Description int
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static Container getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Container . Builder newBuilder ()
newBuilder(Container prototype)
public static Container . Builder newBuilder ( Container prototype )
public static Container parseDelimitedFrom ( InputStream input )
public static Container parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Container parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Container parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Container parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Container parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Container parseFrom ( CodedInputStream input )
public static Container parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Container parseFrom ( InputStream input )
public static Container parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Container parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Container parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Container> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getDefaultInstanceForType()
public Container getDefaultInstanceForType ()
getFullPath()
public String getFullPath ()
A string representation of the full container name.
Examples:
BigQuery: 'Project:DataSetId.TableId'
Cloud Storage: 'gs://Bucket/folders/filename.txt'
string full_path = 3;
Returns Type Description String
The fullPath.
getFullPathBytes()
public ByteString getFullPathBytes ()
A string representation of the full container name.
Examples:
BigQuery: 'Project:DataSetId.TableId'
Cloud Storage: 'gs://Bucket/folders/filename.txt'
string full_path = 3;
Returns Type Description ByteString
The bytes for fullPath.
getParserForType()
public Parser<Container> getParserForType ()
Overrides
getProjectId()
public String getProjectId ()
Project where the finding was found.
Can be different from the project that owns the finding.
string project_id = 2;
Returns Type Description String
The projectId.
getProjectIdBytes()
public ByteString getProjectIdBytes ()
Project where the finding was found.
Can be different from the project that owns the finding.
string project_id = 2;
Returns Type Description ByteString
The bytes for projectId.
getRelativePath()
public String getRelativePath ()
The rest of the path after the root.
Examples:
For BigQuery table project_id:dataset_id.table_id
, the relative path is
table_id
For Cloud Storage file gs://bucket/folder/filename.txt
, the relative
path is folder/filename.txt
string relative_path = 5;
Returns Type Description String
The relativePath.
getRelativePathBytes()
public ByteString getRelativePathBytes ()
The rest of the path after the root.
Examples:
For BigQuery table project_id:dataset_id.table_id
, the relative path is
table_id
For Cloud Storage file gs://bucket/folder/filename.txt
, the relative
path is folder/filename.txt
string relative_path = 5;
Returns Type Description ByteString
The bytes for relativePath.
getRootPath()
public String getRootPath ()
The root of the container.
Examples:
For BigQuery table project_id:dataset_id.table_id
, the root is
dataset_id
For Cloud Storage file gs://bucket/folder/filename.txt
, the root
is gs://bucket
string root_path = 4;
Returns Type Description String
The rootPath.
getRootPathBytes()
public ByteString getRootPathBytes ()
The root of the container.
Examples:
For BigQuery table project_id:dataset_id.table_id
, the root is
dataset_id
For Cloud Storage file gs://bucket/folder/filename.txt
, the root
is gs://bucket
string root_path = 4;
Returns Type Description ByteString
The bytes for rootPath.
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
Overrides
getType()
Container type, for example BigQuery or Cloud Storage.
string type = 1;
Returns Type Description String
The type.
getTypeBytes()
public ByteString getTypeBytes ()
Container type, for example BigQuery or Cloud Storage.
string type = 1;
Returns Type Description ByteString
The bytes for type.
getUpdateTime()
public Timestamp getUpdateTime ()
Findings 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 update_time = 6;
Returns Type Description Timestamp
The updateTime.
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder ()
Findings 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 update_time = 6;
getVersion()
public String getVersion ()
Findings container version, if available
("generation" for Cloud Storage).
string version = 7;
Returns Type Description String
The version.
getVersionBytes()
public ByteString getVersionBytes ()
Findings container version, if available
("generation" for Cloud Storage).
string version = 7;
Returns Type Description ByteString
The bytes for version.
hasUpdateTime()
public boolean hasUpdateTime ()
Findings 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 update_time = 6;
Returns Type Description boolean
Whether the updateTime field is set.
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Container . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Container . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public Container . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]