public static final class Container.Builder extends GeneratedMessage.Builder<Container.Builder> implements ContainerOrBuilderRepresents 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Container.BuilderImplements
ContainerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Container build()| Returns | |
|---|---|
| Type | Description |
Container |
|
buildPartial()
public Container buildPartial()| Returns | |
|---|---|
| Type | Description |
Container |
|
clear()
public Container.Builder clear()| Returns | |
|---|---|
| Type | Description |
Container.Builder |
|
clearFullPath()
public Container.Builder clearFullPath()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 |
Container.Builder |
This builder for chaining. |
clearProjectId()
public Container.Builder clearProjectId()Project where the finding was found. Can be different from the project that owns the finding.
string project_id = 2;
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
clearRelativePath()
public Container.Builder clearRelativePath()The rest of the path after the root. Examples:
- For BigQuery table
project_id:dataset_id.table_id, the relative path istable_id - For Cloud Storage file
gs://bucket/folder/filename.txt, the relative path isfolder/filename.txt
string relative_path = 5;
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
clearRootPath()
public Container.Builder clearRootPath()The root of the container. Examples:
- For BigQuery table
project_id:dataset_id.table_id, the root isdataset_id - For Cloud Storage file
gs://bucket/folder/filename.txt, the root isgs://bucket
string root_path = 4;
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
clearType()
public Container.Builder clearType()Container type, for example BigQuery or Cloud Storage.
string type = 1;
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
clearUpdateTime()
public Container.Builder clearUpdateTime()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 |
Container.Builder |
|
clearVersion()
public Container.Builder clearVersion()Findings container version, if available ("generation" for Cloud Storage).
string version = 7;
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Container getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Container |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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 istable_id - For Cloud Storage file
gs://bucket/folder/filename.txt, the relative path isfolder/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 istable_id - For Cloud Storage file
gs://bucket/folder/filename.txt, the relative path isfolder/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 isdataset_id - For Cloud Storage file
gs://bucket/folder/filename.txt, the root isgs://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 isdataset_id - For Cloud Storage file
gs://bucket/folder/filename.txt, the root isgs://bucket
string root_path = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for rootPath. |
getType()
public String 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. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()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 |
Builder |
|
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 | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Container other)
public Container.Builder mergeFrom(Container other)| Parameter | |
|---|---|
| Name | Description |
other |
Container |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Container.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Container.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
|
mergeUpdateTime(Timestamp value)
public Container.Builder mergeUpdateTime(Timestamp value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
|
setFullPath(String value)
public Container.Builder setFullPath(String value)A string representation of the full container name. Examples:
- BigQuery: 'Project:DataSetId.TableId'
- Cloud Storage: 'gs://Bucket/folders/filename.txt'
string full_path = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe fullPath to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setFullPathBytes(ByteString value)
public Container.Builder setFullPathBytes(ByteString value)A string representation of the full container name. Examples:
- BigQuery: 'Project:DataSetId.TableId'
- Cloud Storage: 'gs://Bucket/folders/filename.txt'
string full_path = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for fullPath to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setProjectId(String value)
public Container.Builder setProjectId(String value)Project where the finding was found. Can be different from the project that owns the finding.
string project_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe projectId to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setProjectIdBytes(ByteString value)
public Container.Builder setProjectIdBytes(ByteString value)Project where the finding was found. Can be different from the project that owns the finding.
string project_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for projectId to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setRelativePath(String value)
public Container.Builder setRelativePath(String value)The rest of the path after the root. Examples:
- For BigQuery table
project_id:dataset_id.table_id, the relative path istable_id - For Cloud Storage file
gs://bucket/folder/filename.txt, the relative path isfolder/filename.txt
string relative_path = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe relativePath to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setRelativePathBytes(ByteString value)
public Container.Builder setRelativePathBytes(ByteString value)The rest of the path after the root. Examples:
- For BigQuery table
project_id:dataset_id.table_id, the relative path istable_id - For Cloud Storage file
gs://bucket/folder/filename.txt, the relative path isfolder/filename.txt
string relative_path = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for relativePath to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setRootPath(String value)
public Container.Builder setRootPath(String value)The root of the container. Examples:
- For BigQuery table
project_id:dataset_id.table_id, the root isdataset_id - For Cloud Storage file
gs://bucket/folder/filename.txt, the root isgs://bucket
string root_path = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe rootPath to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setRootPathBytes(ByteString value)
public Container.Builder setRootPathBytes(ByteString value)The root of the container. Examples:
- For BigQuery table
project_id:dataset_id.table_id, the root isdataset_id - For Cloud Storage file
gs://bucket/folder/filename.txt, the root isgs://bucket
string root_path = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for rootPath to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setType(String value)
public Container.Builder setType(String value)Container type, for example BigQuery or Cloud Storage.
string type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public Container.Builder setTypeBytes(ByteString value)Container type, for example BigQuery or Cloud Storage.
string type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public Container.Builder setUpdateTime(Timestamp value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public Container.Builder setUpdateTime(Timestamp.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
|
setVersion(String value)
public Container.Builder setVersion(String value)Findings container version, if available ("generation" for Cloud Storage).
string version = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe version to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |
setVersionBytes(ByteString value)
public Container.Builder setVersionBytes(ByteString value)Findings container version, if available ("generation" for Cloud Storage).
string version = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for version to set. |
| Returns | |
|---|---|
| Type | Description |
Container.Builder |
This builder for chaining. |