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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Container
build()
Container
buildPartial()
Container.Builder
clear()
Container.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Container.Builder
clearFullPath()
A string representation of the full container name.Container.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Container.Builder
clearProjectId()
Project where the finding was found.Container.Builder
clearRelativePath()
The rest of the path after the root.Container.Builder
clearRootPath()
The root of the container.Container.Builder
clearType()
Container type, for example BigQuery or Cloud Storage.Container.Builder
clearUpdateTime()
Findings container modification timestamp, if applicable.Container.Builder
clearVersion()
Findings container version, if available ("generation" for Cloud Storage).Container.Builder
clone()
Container
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFullPath()
A string representation of the full container name.com.google.protobuf.ByteString
getFullPathBytes()
A string representation of the full container name.String
getProjectId()
Project where the finding was found.com.google.protobuf.ByteString
getProjectIdBytes()
Project where the finding was found.String
getRelativePath()
The rest of the path after the root.com.google.protobuf.ByteString
getRelativePathBytes()
The rest of the path after the root.String
getRootPath()
The root of the container.com.google.protobuf.ByteString
getRootPathBytes()
The root of the container.String
getType()
Container type, for example BigQuery or Cloud Storage.com.google.protobuf.ByteString
getTypeBytes()
Container type, for example BigQuery or Cloud Storage.com.google.protobuf.Timestamp
getUpdateTime()
Findings container modification timestamp, if applicable.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Findings container modification timestamp, if applicable.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Findings container modification timestamp, if applicable.String
getVersion()
Findings container version, if available ("generation" for Cloud Storage).com.google.protobuf.ByteString
getVersionBytes()
Findings container version, if available ("generation" for Cloud Storage).boolean
hasUpdateTime()
Findings container modification timestamp, if applicable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Container.Builder
mergeFrom(Container other)
Container.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Container.Builder
mergeFrom(com.google.protobuf.Message other)
Container.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Container.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Findings container modification timestamp, if applicable.Container.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Container.Builder
setFullPath(String value)
A string representation of the full container name.Container.Builder
setFullPathBytes(com.google.protobuf.ByteString value)
A string representation of the full container name.Container.Builder
setProjectId(String value)
Project where the finding was found.Container.Builder
setProjectIdBytes(com.google.protobuf.ByteString value)
Project where the finding was found.Container.Builder
setRelativePath(String value)
The rest of the path after the root.Container.Builder
setRelativePathBytes(com.google.protobuf.ByteString value)
The rest of the path after the root.Container.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Container.Builder
setRootPath(String value)
The root of the container.Container.Builder
setRootPathBytes(com.google.protobuf.ByteString value)
The root of the container.Container.Builder
setType(String value)
Container type, for example BigQuery or Cloud Storage.Container.Builder
setTypeBytes(com.google.protobuf.ByteString value)
Container type, for example BigQuery or Cloud Storage.Container.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Container.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Findings container modification timestamp, if applicable.Container.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Findings container modification timestamp, if applicable.Container.Builder
setVersion(String value)
Findings container version, if available ("generation" for Cloud Storage).Container.Builder
setVersionBytes(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clear
public Container.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
getDefaultInstanceForType
public Container getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Container build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Container buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Container.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
setField
public Container.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clearField
public Container.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clearOneof
public Container.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
setRepeatedField
public Container.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
addRepeatedField
public Container.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
mergeFrom
public Container.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Container.Builder>
-
mergeFrom
public Container.Builder mergeFrom(Container other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getType
in interfaceContainerOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Container type, for example BigQuery or Cloud Storage.
string type = 1;
- Specified by:
getTypeBytes
in 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:
getProjectId
in 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:
getProjectIdBytes
in 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:
getFullPath
in 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:
getFullPathBytes
in 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:
getRootPath
in 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:
getRootPathBytes
in 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:
getRelativePath
in 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:
getRelativePathBytes
in 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:
hasUpdateTime
in 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:
getUpdateTime
in 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:
getUpdateTimeOrBuilder
in interfaceContainerOrBuilder
-
getVersion
public String getVersion()
Findings container version, if available ("generation" for Cloud Storage).
string version = 7;
- Specified by:
getVersion
in 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:
getVersionBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
mergeUnknownFields
public final Container.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
-