Package com.google.privacy.dlp.v2
Class Container.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
- com.google.privacy.dlp.v2.Container.Builder
-
- All Implemented Interfaces:
ContainerOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Container
public static final class Container.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder> implements ContainerOrBuilder
Represents a container that may contain DLP findings. Examples of a container include a file, table, or database record.
Protobuf typegoogle.privacy.dlp.v2.Container
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Container.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Containerbuild()ContainerbuildPartial()Container.Builderclear()Container.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Container.BuilderclearFullPath()A string representation of the full container name.Container.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Container.BuilderclearProjectId()Project where the finding was found.Container.BuilderclearRelativePath()The rest of the path after the root.Container.BuilderclearRootPath()The root of the container.Container.BuilderclearType()Container type, for example BigQuery or Cloud Storage.Container.BuilderclearUpdateTime()Findings container modification timestamp, if applicable.Container.BuilderclearVersion()Findings container version, if available ("generation" for Cloud Storage).Container.Builderclone()ContainergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFullPath()A string representation of the full container name.com.google.protobuf.ByteStringgetFullPathBytes()A string representation of the full container name.StringgetProjectId()Project where the finding was found.com.google.protobuf.ByteStringgetProjectIdBytes()Project where the finding was found.StringgetRelativePath()The rest of the path after the root.com.google.protobuf.ByteStringgetRelativePathBytes()The rest of the path after the root.StringgetRootPath()The root of the container.com.google.protobuf.ByteStringgetRootPathBytes()The root of the container.StringgetType()Container type, for example BigQuery or Cloud Storage.com.google.protobuf.ByteStringgetTypeBytes()Container type, for example BigQuery or Cloud Storage.com.google.protobuf.TimestampgetUpdateTime()Findings container modification timestamp, if applicable.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Findings container modification timestamp, if applicable.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Findings container modification timestamp, if applicable.StringgetVersion()Findings container version, if available ("generation" for Cloud Storage).com.google.protobuf.ByteStringgetVersionBytes()Findings container version, if available ("generation" for Cloud Storage).booleanhasUpdateTime()Findings container modification timestamp, if applicable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Container.BuildermergeFrom(Container other)Container.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Container.BuildermergeFrom(com.google.protobuf.Message other)Container.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Container.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Findings container modification timestamp, if applicable.Container.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Container.BuildersetFullPath(String value)A string representation of the full container name.Container.BuildersetFullPathBytes(com.google.protobuf.ByteString value)A string representation of the full container name.Container.BuildersetProjectId(String value)Project where the finding was found.Container.BuildersetProjectIdBytes(com.google.protobuf.ByteString value)Project where the finding was found.Container.BuildersetRelativePath(String value)The rest of the path after the root.Container.BuildersetRelativePathBytes(com.google.protobuf.ByteString value)The rest of the path after the root.Container.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Container.BuildersetRootPath(String value)The root of the container.Container.BuildersetRootPathBytes(com.google.protobuf.ByteString value)The root of the container.Container.BuildersetType(String value)Container type, for example BigQuery or Cloud Storage.Container.BuildersetTypeBytes(com.google.protobuf.ByteString value)Container type, for example BigQuery or Cloud Storage.Container.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Container.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Findings container modification timestamp, if applicable.Container.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Findings container modification timestamp, if applicable.Container.BuildersetVersion(String value)Findings container version, if available ("generation" for Cloud Storage).Container.BuildersetVersionBytes(com.google.protobuf.ByteString value)Findings container version, if available ("generation" for Cloud Storage).-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clear
public Container.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
getDefaultInstanceForType
public Container getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Container build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Container buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Container.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
setField
public Container.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clearField
public Container.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clearOneof
public Container.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
setRepeatedField
public Container.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
addRepeatedField
public Container.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
mergeFrom
public Container.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Container.Builder>
-
mergeFrom
public Container.Builder mergeFrom(Container other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
mergeFrom
public Container.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Container.Builder>- Throws:
IOException
-
getType
public String getType()
Container type, for example BigQuery or Cloud Storage.
string type = 1;- Specified by:
getTypein interfaceContainerOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Container type, for example BigQuery or Cloud Storage.
string type = 1;- Specified by:
getTypeBytesin interfaceContainerOrBuilder- Returns:
- The bytes for type.
-
setType
public Container.Builder setType(String value)
Container type, for example BigQuery or Cloud Storage.
string type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Container.Builder clearType()
Container type, for example BigQuery or Cloud Storage.
string type = 1;- Returns:
- This builder for chaining.
-
setTypeBytes
public Container.Builder setTypeBytes(com.google.protobuf.ByteString value)
Container type, for example BigQuery or Cloud Storage.
string type = 1;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getProjectId
public String getProjectId()
Project where the finding was found. Can be different from the project that owns the finding.
string project_id = 2;- Specified by:
getProjectIdin interfaceContainerOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()
Project where the finding was found. Can be different from the project that owns the finding.
string project_id = 2;- Specified by:
getProjectIdBytesin interfaceContainerOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
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;- Parameters:
value- The projectId to set.- Returns:
- 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:
- This builder for chaining.
-
setProjectIdBytes
public Container.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
Project where the finding was found. Can be different from the project that owns the finding.
string project_id = 2;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getFullPathin interfaceContainerOrBuilder- Returns:
- The fullPath.
-
getFullPathBytes
public com.google.protobuf.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;- Specified by:
getFullPathBytesin interfaceContainerOrBuilder- Returns:
- The bytes for fullPath.
-
setFullPath
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;- Parameters:
value- The fullPath to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setFullPathBytes
public Container.Builder setFullPathBytes(com.google.protobuf.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;- Parameters:
value- The bytes for fullPath to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getRootPathin interfaceContainerOrBuilder- Returns:
- The rootPath.
-
getRootPathBytes
public com.google.protobuf.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;- Specified by:
getRootPathBytesin interfaceContainerOrBuilder- Returns:
- The bytes for rootPath.
-
setRootPath
public Container.Builder setRootPath(String value)
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;- Parameters:
value- The rootPath to set.- Returns:
- 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 is `dataset_id` - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root is `gs://bucket`
string root_path = 4;- Returns:
- This builder for chaining.
-
setRootPathBytes
public Container.Builder setRootPathBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for rootPath to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getRelativePathin interfaceContainerOrBuilder- Returns:
- The relativePath.
-
getRelativePathBytes
public com.google.protobuf.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;- Specified by:
getRelativePathBytesin interfaceContainerOrBuilder- Returns:
- The bytes for relativePath.
-
setRelativePath
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 is `table_id` - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative path is `folder/filename.txt`
string relative_path = 5;- Parameters:
value- The relativePath to set.- Returns:
- 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 is `table_id` - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative path is `folder/filename.txt`
string relative_path = 5;- Returns:
- This builder for chaining.
-
setRelativePathBytes
public Container.Builder setRelativePathBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for relativePath to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasUpdateTimein interfaceContainerOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.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;- Specified by:
getUpdateTimein interfaceContainerOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public Container.Builder setUpdateTime(com.google.protobuf.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;
-
setUpdateTime
public Container.Builder setUpdateTime(com.google.protobuf.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;
-
mergeUpdateTime
public Container.Builder mergeUpdateTime(com.google.protobuf.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;
-
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;
-
getUpdateTimeBuilder
public com.google.protobuf.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;
-
getUpdateTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getUpdateTimeOrBuilderin interfaceContainerOrBuilder
-
getVersion
public String getVersion()
Findings container version, if available ("generation" for Cloud Storage).string version = 7;- Specified by:
getVersionin interfaceContainerOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()
Findings container version, if available ("generation" for Cloud Storage).string version = 7;- Specified by:
getVersionBytesin interfaceContainerOrBuilder- Returns:
- The bytes for version.
-
setVersion
public Container.Builder setVersion(String value)
Findings container version, if available ("generation" for Cloud Storage).string version = 7;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public Container.Builder clearVersion()
Findings container version, if available ("generation" for Cloud Storage).string version = 7;- Returns:
- This builder for chaining.
-
setVersionBytes
public Container.Builder setVersionBytes(com.google.protobuf.ByteString value)
Findings container version, if available ("generation" for Cloud Storage).string version = 7;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Container.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
mergeUnknownFields
public final Container.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
-