Class Container.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 type google.privacy.dlp.v2.Container
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Container.Builder>
    • clear

      public Container.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Container.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Container.Builder>
    • getDefaultInstanceForType

      public Container getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Container build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Container buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Container.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Container.Builder>
    • mergeFrom

      public Container.Builder mergeFrom(Container other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Container.Builder>
    • mergeFrom

      public Container.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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 interface ContainerOrBuilder
    • getVersion

      public String getVersion()
       Findings container version, if available
       ("generation" for Cloud Storage).
       
      string version = 7;
      Specified by:
      getVersion in interface ContainerOrBuilder
      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 interface ContainerOrBuilder
      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.