Class ContentLocation.Builder

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

      public ContentLocation.Builder mergeFrom(ContentLocation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getLocationCase

      public ContentLocation.LocationCase getLocationCase()
      Specified by:
      getLocationCase in interface ContentLocationOrBuilder
    • clearLocation

      public ContentLocation.Builder clearLocation()
    • 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;
    • getRecordLocationOrBuilder

      public RecordLocationOrBuilder getRecordLocationOrBuilder()
       Location within a row or record of a database table.
       
      .google.privacy.dlp.v2.RecordLocation record_location = 2;
      Specified by:
      getRecordLocationOrBuilder in interface ContentLocationOrBuilder
    • 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.
    • getImageLocation

      public ImageLocation getImageLocation()
       Location within an image's pixels.
       
      .google.privacy.dlp.v2.ImageLocation image_location = 3;
      Specified by:
      getImageLocation in interface ContentLocationOrBuilder
      Returns:
      The imageLocation.
    • setImageLocation

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

      public ContentLocation.Builder setImageLocation(ImageLocation.Builder builderForValue)
       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;
    • getImageLocationOrBuilder

      public ImageLocationOrBuilder getImageLocationOrBuilder()
       Location within an image's pixels.
       
      .google.privacy.dlp.v2.ImageLocation image_location = 3;
      Specified by:
      getImageLocationOrBuilder in interface ContentLocationOrBuilder
    • 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.
    • getDocumentLocation

      public DocumentLocation getDocumentLocation()
       Location data for document files.
       
      .google.privacy.dlp.v2.DocumentLocation document_location = 5;
      Specified by:
      getDocumentLocation in interface ContentLocationOrBuilder
      Returns:
      The documentLocation.
    • setDocumentLocation

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

      public ContentLocation.Builder setDocumentLocation(DocumentLocation.Builder builderForValue)
       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;
    • getDocumentLocationOrBuilder

      public DocumentLocationOrBuilder getDocumentLocationOrBuilder()
       Location data for document files.
       
      .google.privacy.dlp.v2.DocumentLocation document_location = 5;
      Specified by:
      getDocumentLocationOrBuilder in interface ContentLocationOrBuilder
    • 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.
    • getMetadataLocation

      public MetadataLocation getMetadataLocation()
       Location within the metadata for inspected content.
       
      .google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
      Specified by:
      getMetadataLocation in interface ContentLocationOrBuilder
      Returns:
      The metadataLocation.
    • 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;
    • getMetadataLocationOrBuilder

      public MetadataLocationOrBuilder getMetadataLocationOrBuilder()
       Location within the metadata for inspected content.
       
      .google.privacy.dlp.v2.MetadataLocation metadata_location = 8;
      Specified by:
      getMetadataLocationOrBuilder in interface ContentLocationOrBuilder
    • 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.