Class ContentLocation.Builder

  • All Implemented Interfaces:
    ContentLocationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ContentLocation

    public static final class ContentLocation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ContentLocation.Builder>
    implements ContentLocationOrBuilder
     Precise location of the finding within a document, record, image, or metadata
     container.
     
    Protobuf type google.privacy.dlp.v2.ContentLocation
    • Method Detail

      • getDescriptor

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

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

        public ContentLocation.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.GeneratedMessageV3.Builder<ContentLocation.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.GeneratedMessageV3.Builder<ContentLocation.Builder>
      • getDefaultInstanceForType

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

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

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

        public ContentLocation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ContentLocation.Builder>
      • setField

        public ContentLocation.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ContentLocation.Builder>
      • clearField

        public ContentLocation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ContentLocation.Builder>
      • clearOneof

        public ContentLocation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ContentLocation.Builder>
      • setRepeatedField

        public ContentLocation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContentLocation.Builder>
      • addRepeatedField

        public ContentLocation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContentLocation.Builder>
      • mergeFrom

        public ContentLocation.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<ContentLocation.Builder>
      • isInitialized

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

        public ContentLocation.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<ContentLocation.Builder>
        Throws:
        IOException
      • getContainerName

        public String getContainerName()
         Name of the container where the finding is located.
         The top level name is the source file name or table name. Names of some
         common storage containers are formatted as follows:
        
         * BigQuery tables:  `{project_id}:{dataset_id}.{table_id}`
         * Cloud Storage files: `gs://{bucket}/{path}`
         * Datastore namespace: {namespace}
        
         Nested names could be absent if the embedded object has no string
         identifier (for example, an image contained within a document).
         
        string container_name = 1;
        Specified by:
        getContainerName in interface ContentLocationOrBuilder
        Returns:
        The containerName.
      • getContainerNameBytes

        public com.google.protobuf.ByteString getContainerNameBytes()
         Name of the container where the finding is located.
         The top level name is the source file name or table name. Names of some
         common storage containers are formatted as follows:
        
         * BigQuery tables:  `{project_id}:{dataset_id}.{table_id}`
         * Cloud Storage files: `gs://{bucket}/{path}`
         * Datastore namespace: {namespace}
        
         Nested names could be absent if the embedded object has no string
         identifier (for example, an image contained within a document).
         
        string container_name = 1;
        Specified by:
        getContainerNameBytes in interface ContentLocationOrBuilder
        Returns:
        The bytes for containerName.
      • setContainerName

        public ContentLocation.Builder setContainerName​(String value)
         Name of the container where the finding is located.
         The top level name is the source file name or table name. Names of some
         common storage containers are formatted as follows:
        
         * BigQuery tables:  `{project_id}:{dataset_id}.{table_id}`
         * Cloud Storage files: `gs://{bucket}/{path}`
         * Datastore namespace: {namespace}
        
         Nested names could be absent if the embedded object has no string
         identifier (for example, an image contained within a document).
         
        string container_name = 1;
        Parameters:
        value - The containerName to set.
        Returns:
        This builder for chaining.
      • clearContainerName

        public ContentLocation.Builder clearContainerName()
         Name of the container where the finding is located.
         The top level name is the source file name or table name. Names of some
         common storage containers are formatted as follows:
        
         * BigQuery tables:  `{project_id}:{dataset_id}.{table_id}`
         * Cloud Storage files: `gs://{bucket}/{path}`
         * Datastore namespace: {namespace}
        
         Nested names could be absent if the embedded object has no string
         identifier (for example, an image contained within a document).
         
        string container_name = 1;
        Returns:
        This builder for chaining.
      • setContainerNameBytes

        public ContentLocation.Builder setContainerNameBytes​(com.google.protobuf.ByteString value)
         Name of the container where the finding is located.
         The top level name is the source file name or table name. Names of some
         common storage containers are formatted as follows:
        
         * BigQuery tables:  `{project_id}:{dataset_id}.{table_id}`
         * Cloud Storage files: `gs://{bucket}/{path}`
         * Datastore namespace: {namespace}
        
         Nested names could be absent if the embedded object has no string
         identifier (for example, an image contained within a document).
         
        string container_name = 1;
        Parameters:
        value - The bytes for containerName to set.
        Returns:
        This builder for chaining.
      • hasRecordLocation

        public boolean hasRecordLocation()
         Location within a row or record of a database table.
         
        .google.privacy.dlp.v2.RecordLocation record_location = 2;
        Specified by:
        hasRecordLocation in interface ContentLocationOrBuilder
        Returns:
        Whether the recordLocation field is set.
      • getRecordLocation

        public RecordLocation getRecordLocation()
         Location within a row or record of a database table.
         
        .google.privacy.dlp.v2.RecordLocation record_location = 2;
        Specified by:
        getRecordLocation in interface ContentLocationOrBuilder
        Returns:
        The recordLocation.
      • setRecordLocation

        public ContentLocation.Builder setRecordLocation​(RecordLocation value)
         Location within a row or record of a database table.
         
        .google.privacy.dlp.v2.RecordLocation record_location = 2;
      • setRecordLocation

        public ContentLocation.Builder setRecordLocation​(RecordLocation.Builder builderForValue)
         Location within a row or record of a database table.
         
        .google.privacy.dlp.v2.RecordLocation record_location = 2;
      • mergeRecordLocation

        public ContentLocation.Builder mergeRecordLocation​(RecordLocation value)
         Location within a row or record of a database table.
         
        .google.privacy.dlp.v2.RecordLocation record_location = 2;
      • clearRecordLocation

        public ContentLocation.Builder clearRecordLocation()
         Location within a row or record of a database table.
         
        .google.privacy.dlp.v2.RecordLocation record_location = 2;
      • getRecordLocationBuilder

        public RecordLocation.Builder getRecordLocationBuilder()
         Location within a row or record of a database table.
         
        .google.privacy.dlp.v2.RecordLocation record_location = 2;
      • hasImageLocation

        public boolean hasImageLocation()
         Location within an image's pixels.
         
        .google.privacy.dlp.v2.ImageLocation image_location = 3;
        Specified by:
        hasImageLocation in interface ContentLocationOrBuilder
        Returns:
        Whether the imageLocation field is set.
      • setImageLocation

        public ContentLocation.Builder setImageLocation​(ImageLocation value)
         Location within an image's pixels.
         
        .google.privacy.dlp.v2.ImageLocation image_location = 3;
      • mergeImageLocation

        public ContentLocation.Builder mergeImageLocation​(ImageLocation value)
         Location within an image's pixels.
         
        .google.privacy.dlp.v2.ImageLocation image_location = 3;
      • clearImageLocation

        public ContentLocation.Builder clearImageLocation()
         Location within an image's pixels.
         
        .google.privacy.dlp.v2.ImageLocation image_location = 3;
      • getImageLocationBuilder

        public ImageLocation.Builder getImageLocationBuilder()
         Location within an image's pixels.
         
        .google.privacy.dlp.v2.ImageLocation image_location = 3;
      • hasDocumentLocation

        public boolean hasDocumentLocation()
         Location data for document files.
         
        .google.privacy.dlp.v2.DocumentLocation document_location = 5;
        Specified by:
        hasDocumentLocation in interface ContentLocationOrBuilder
        Returns:
        Whether the documentLocation field is set.
      • setDocumentLocation

        public ContentLocation.Builder setDocumentLocation​(DocumentLocation value)
         Location data for document files.
         
        .google.privacy.dlp.v2.DocumentLocation document_location = 5;
      • mergeDocumentLocation

        public ContentLocation.Builder mergeDocumentLocation​(DocumentLocation value)
         Location data for document files.
         
        .google.privacy.dlp.v2.DocumentLocation document_location = 5;
      • clearDocumentLocation

        public ContentLocation.Builder clearDocumentLocation()
         Location data for document files.
         
        .google.privacy.dlp.v2.DocumentLocation document_location = 5;
      • getDocumentLocationBuilder

        public DocumentLocation.Builder getDocumentLocationBuilder()
         Location data for document files.
         
        .google.privacy.dlp.v2.DocumentLocation document_location = 5;
      • hasMetadataLocation

        public boolean hasMetadataLocation()
         Location within the metadata for inspected content.
         
        .google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
        Specified by:
        hasMetadataLocation in interface ContentLocationOrBuilder
        Returns:
        Whether the metadataLocation field is set.
      • setMetadataLocation

        public ContentLocation.Builder setMetadataLocation​(MetadataLocation value)
         Location within the metadata for inspected content.
         
        .google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
      • setMetadataLocation

        public ContentLocation.Builder setMetadataLocation​(MetadataLocation.Builder builderForValue)
         Location within the metadata for inspected content.
         
        .google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
      • mergeMetadataLocation

        public ContentLocation.Builder mergeMetadataLocation​(MetadataLocation value)
         Location within the metadata for inspected content.
         
        .google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
      • clearMetadataLocation

        public ContentLocation.Builder clearMetadataLocation()
         Location within the metadata for inspected content.
         
        .google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
      • getMetadataLocationBuilder

        public MetadataLocation.Builder getMetadataLocationBuilder()
         Location within the metadata for inspected content.
         
        .google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
      • hasContainerTimestamp

        public boolean hasContainerTimestamp()
         Finding 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 container_timestamp = 6;
        Specified by:
        hasContainerTimestamp in interface ContentLocationOrBuilder
        Returns:
        Whether the containerTimestamp field is set.
      • getContainerTimestamp

        public com.google.protobuf.Timestamp getContainerTimestamp()
         Finding 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 container_timestamp = 6;
        Specified by:
        getContainerTimestamp in interface ContentLocationOrBuilder
        Returns:
        The containerTimestamp.
      • setContainerTimestamp

        public ContentLocation.Builder setContainerTimestamp​(com.google.protobuf.Timestamp value)
         Finding 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 container_timestamp = 6;
      • setContainerTimestamp

        public ContentLocation.Builder setContainerTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
         Finding 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 container_timestamp = 6;
      • mergeContainerTimestamp

        public ContentLocation.Builder mergeContainerTimestamp​(com.google.protobuf.Timestamp value)
         Finding 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 container_timestamp = 6;
      • clearContainerTimestamp

        public ContentLocation.Builder clearContainerTimestamp()
         Finding 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 container_timestamp = 6;
      • getContainerTimestampBuilder

        public com.google.protobuf.Timestamp.Builder getContainerTimestampBuilder()
         Finding 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 container_timestamp = 6;
      • getContainerTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder()
         Finding 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 container_timestamp = 6;
        Specified by:
        getContainerTimestampOrBuilder in interface ContentLocationOrBuilder
      • getContainerVersion

        public String getContainerVersion()
         Finding container version, if available
         ("generation" for Cloud Storage).
         
        string container_version = 7;
        Specified by:
        getContainerVersion in interface ContentLocationOrBuilder
        Returns:
        The containerVersion.
      • getContainerVersionBytes

        public com.google.protobuf.ByteString getContainerVersionBytes()
         Finding container version, if available
         ("generation" for Cloud Storage).
         
        string container_version = 7;
        Specified by:
        getContainerVersionBytes in interface ContentLocationOrBuilder
        Returns:
        The bytes for containerVersion.
      • setContainerVersion

        public ContentLocation.Builder setContainerVersion​(String value)
         Finding container version, if available
         ("generation" for Cloud Storage).
         
        string container_version = 7;
        Parameters:
        value - The containerVersion to set.
        Returns:
        This builder for chaining.
      • clearContainerVersion

        public ContentLocation.Builder clearContainerVersion()
         Finding container version, if available
         ("generation" for Cloud Storage).
         
        string container_version = 7;
        Returns:
        This builder for chaining.
      • setContainerVersionBytes

        public ContentLocation.Builder setContainerVersionBytes​(com.google.protobuf.ByteString value)
         Finding container version, if available
         ("generation" for Cloud Storage).
         
        string container_version = 7;
        Parameters:
        value - The bytes for containerVersion to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ContentLocation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContentLocation.Builder>
      • mergeUnknownFields

        public final ContentLocation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContentLocation.Builder>