Class Container

  • All Implemented Interfaces:
    ContainerOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Container
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Container.Builder
      Represents a container that may contain DLP findings.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      static Container getDefaultInstance()  
      Container getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      String getFullPath()
      A string representation of the full container name.
      com.google.protobuf.ByteString getFullPathBytes()
      A string representation of the full container name.
      com.google.protobuf.Parser<Container> getParserForType()  
      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.
      int getSerializedSize()  
      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.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).
      int hashCode()  
      boolean hasUpdateTime()
      Findings container modification timestamp, if applicable.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static Container.Builder newBuilder()  
      static Container.Builder newBuilder​(Container prototype)  
      Container.Builder newBuilderForType()  
      protected Container.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static Container parseDelimitedFrom​(InputStream input)  
      static Container parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Container parseFrom​(byte[] data)  
      static Container parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Container parseFrom​(com.google.protobuf.ByteString data)  
      static Container parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Container parseFrom​(com.google.protobuf.CodedInputStream input)  
      static Container parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Container parseFrom​(InputStream input)  
      static Container parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Container parseFrom​(ByteBuffer data)  
      static Container parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<Container> parser()  
      Container.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Container parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Container parseFrom​(ByteBuffer data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Container parseFrom​(com.google.protobuf.ByteString data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Container parseFrom​(com.google.protobuf.ByteString data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Container parseFrom​(byte[] data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Container parseFrom​(byte[] data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Container parseFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Container.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Container getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Container> parser()
      • getParserForType

        public com.google.protobuf.Parser<Container> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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