Class Container (3.23.0)

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

Implements

ContainerOrBuilder

Static Fields

FULL_PATH_FIELD_NUMBER

public static final int FULL_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_ID_FIELD_NUMBER

public static final int PROJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

RELATIVE_PATH_FIELD_NUMBER

public static final int RELATIVE_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

ROOT_PATH_FIELD_NUMBER

public static final int ROOT_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Container getDefaultInstance()
Returns
TypeDescription
Container

getDescriptor()

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

newBuilder()

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

newBuilder(Container prototype)

public static Container.Builder newBuilder(Container prototype)
Parameter
NameDescription
prototypeContainer
Returns
TypeDescription
Container.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Container getDefaultInstanceForType()
Returns
TypeDescription
Container

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
TypeDescription
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
TypeDescription
ByteString

The bytes for fullPath.

getParserForType()

public Parser<Container> getParserForType()
Returns
TypeDescription
Parser<Container>
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for rootPath.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public String getType()

Container type, for example BigQuery or Cloud Storage.

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Container type, for example BigQuery or Cloud Storage.

string type = 1;

Returns
TypeDescription
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
TypeDescription
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;

Returns
TypeDescription
TimestampOrBuilder

getVersion()

public String getVersion()

Findings container version, if available ("generation" for Cloud Storage).

string version = 7;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Findings container version, if available ("generation" for Cloud Storage).

string version = 7;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime 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 Container.Builder newBuilderForType()
Returns
TypeDescription
Container.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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