Class HybridFindingDetails.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<HybridFindingDetails.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<HybridFindingDetails.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

        public HybridFindingDetails.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<HybridFindingDetails.Builder>
      • setField

        public HybridFindingDetails.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<HybridFindingDetails.Builder>
      • clearField

        public HybridFindingDetails.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<HybridFindingDetails.Builder>
      • clearOneof

        public HybridFindingDetails.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<HybridFindingDetails.Builder>
      • setRepeatedField

        public HybridFindingDetails.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<HybridFindingDetails.Builder>
      • addRepeatedField

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

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

        public HybridFindingDetails.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<HybridFindingDetails.Builder>
        Throws:
        IOException
      • hasContainerDetails

        public boolean hasContainerDetails()
         Details about the container where the content being inspected is from.
         
        .google.privacy.dlp.v2.Container container_details = 1;
        Specified by:
        hasContainerDetails in interface HybridFindingDetailsOrBuilder
        Returns:
        Whether the containerDetails field is set.
      • getContainerDetails

        public Container getContainerDetails()
         Details about the container where the content being inspected is from.
         
        .google.privacy.dlp.v2.Container container_details = 1;
        Specified by:
        getContainerDetails in interface HybridFindingDetailsOrBuilder
        Returns:
        The containerDetails.
      • setContainerDetails

        public HybridFindingDetails.Builder setContainerDetails​(Container value)
         Details about the container where the content being inspected is from.
         
        .google.privacy.dlp.v2.Container container_details = 1;
      • setContainerDetails

        public HybridFindingDetails.Builder setContainerDetails​(Container.Builder builderForValue)
         Details about the container where the content being inspected is from.
         
        .google.privacy.dlp.v2.Container container_details = 1;
      • mergeContainerDetails

        public HybridFindingDetails.Builder mergeContainerDetails​(Container value)
         Details about the container where the content being inspected is from.
         
        .google.privacy.dlp.v2.Container container_details = 1;
      • clearContainerDetails

        public HybridFindingDetails.Builder clearContainerDetails()
         Details about the container where the content being inspected is from.
         
        .google.privacy.dlp.v2.Container container_details = 1;
      • getContainerDetailsBuilder

        public Container.Builder getContainerDetailsBuilder()
         Details about the container where the content being inspected is from.
         
        .google.privacy.dlp.v2.Container container_details = 1;
      • getFileOffset

        public long getFileOffset()
         Offset in bytes of the line, from the beginning of the file, where the
         finding  is located. Populate if the item being scanned is only part of a
         bigger item, such as a shard of a file and you want to track the absolute
         position of the finding.
         
        int64 file_offset = 2;
        Specified by:
        getFileOffset in interface HybridFindingDetailsOrBuilder
        Returns:
        The fileOffset.
      • setFileOffset

        public HybridFindingDetails.Builder setFileOffset​(long value)
         Offset in bytes of the line, from the beginning of the file, where the
         finding  is located. Populate if the item being scanned is only part of a
         bigger item, such as a shard of a file and you want to track the absolute
         position of the finding.
         
        int64 file_offset = 2;
        Parameters:
        value - The fileOffset to set.
        Returns:
        This builder for chaining.
      • clearFileOffset

        public HybridFindingDetails.Builder clearFileOffset()
         Offset in bytes of the line, from the beginning of the file, where the
         finding  is located. Populate if the item being scanned is only part of a
         bigger item, such as a shard of a file and you want to track the absolute
         position of the finding.
         
        int64 file_offset = 2;
        Returns:
        This builder for chaining.
      • getRowOffset

        public long getRowOffset()
         Offset of the row for tables. Populate if the row(s) being scanned are
         part of a bigger dataset and you want to keep track of their absolute
         position.
         
        int64 row_offset = 3;
        Specified by:
        getRowOffset in interface HybridFindingDetailsOrBuilder
        Returns:
        The rowOffset.
      • setRowOffset

        public HybridFindingDetails.Builder setRowOffset​(long value)
         Offset of the row for tables. Populate if the row(s) being scanned are
         part of a bigger dataset and you want to keep track of their absolute
         position.
         
        int64 row_offset = 3;
        Parameters:
        value - The rowOffset to set.
        Returns:
        This builder for chaining.
      • clearRowOffset

        public HybridFindingDetails.Builder clearRowOffset()
         Offset of the row for tables. Populate if the row(s) being scanned are
         part of a bigger dataset and you want to keep track of their absolute
         position.
         
        int64 row_offset = 3;
        Returns:
        This builder for chaining.
      • hasTableOptions

        public boolean hasTableOptions()
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys. If not known ahead
         of time, can also be set within each inspect hybrid call and the two
         will be merged. Note that identifying_fields will only be stored to
         BigQuery, and only if the BigQuery action has been included.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
        Specified by:
        hasTableOptions in interface HybridFindingDetailsOrBuilder
        Returns:
        Whether the tableOptions field is set.
      • getTableOptions

        public TableOptions getTableOptions()
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys. If not known ahead
         of time, can also be set within each inspect hybrid call and the two
         will be merged. Note that identifying_fields will only be stored to
         BigQuery, and only if the BigQuery action has been included.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
        Specified by:
        getTableOptions in interface HybridFindingDetailsOrBuilder
        Returns:
        The tableOptions.
      • setTableOptions

        public HybridFindingDetails.Builder setTableOptions​(TableOptions value)
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys. If not known ahead
         of time, can also be set within each inspect hybrid call and the two
         will be merged. Note that identifying_fields will only be stored to
         BigQuery, and only if the BigQuery action has been included.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
      • setTableOptions

        public HybridFindingDetails.Builder setTableOptions​(TableOptions.Builder builderForValue)
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys. If not known ahead
         of time, can also be set within each inspect hybrid call and the two
         will be merged. Note that identifying_fields will only be stored to
         BigQuery, and only if the BigQuery action has been included.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
      • mergeTableOptions

        public HybridFindingDetails.Builder mergeTableOptions​(TableOptions value)
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys. If not known ahead
         of time, can also be set within each inspect hybrid call and the two
         will be merged. Note that identifying_fields will only be stored to
         BigQuery, and only if the BigQuery action has been included.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
      • clearTableOptions

        public HybridFindingDetails.Builder clearTableOptions()
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys. If not known ahead
         of time, can also be set within each inspect hybrid call and the two
         will be merged. Note that identifying_fields will only be stored to
         BigQuery, and only if the BigQuery action has been included.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
      • getTableOptionsBuilder

        public TableOptions.Builder getTableOptionsBuilder()
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys. If not known ahead
         of time, can also be set within each inspect hybrid call and the two
         will be merged. Note that identifying_fields will only be stored to
         BigQuery, and only if the BigQuery action has been included.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
      • getTableOptionsOrBuilder

        public TableOptionsOrBuilder getTableOptionsOrBuilder()
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys. If not known ahead
         of time, can also be set within each inspect hybrid call and the two
         will be merged. Note that identifying_fields will only be stored to
         BigQuery, and only if the BigQuery action has been included.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
        Specified by:
        getTableOptionsOrBuilder in interface HybridFindingDetailsOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: HybridFindingDetailsOrBuilder
         Labels to represent user provided metadata about the data being inspected.
         If configured by the job, some key values may be required.
         The labels associated with `Finding`'s produced by hybrid
         inspection.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 5;
        Specified by:
        getLabelsCount in interface HybridFindingDetailsOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Labels to represent user provided metadata about the data being inspected.
         If configured by the job, some key values may be required.
         The labels associated with `Finding`'s produced by hybrid
         inspection.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 5;
        Specified by:
        containsLabels in interface HybridFindingDetailsOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Labels to represent user provided metadata about the data being inspected.
         If configured by the job, some key values may be required.
         The labels associated with `Finding`'s produced by hybrid
         inspection.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 5;
        Specified by:
        getLabelsMap in interface HybridFindingDetailsOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Labels to represent user provided metadata about the data being inspected.
         If configured by the job, some key values may be required.
         The labels associated with `Finding`'s produced by hybrid
         inspection.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 5;
        Specified by:
        getLabelsOrDefault in interface HybridFindingDetailsOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Labels to represent user provided metadata about the data being inspected.
         If configured by the job, some key values may be required.
         The labels associated with `Finding`'s produced by hybrid
         inspection.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 5;
        Specified by:
        getLabelsOrThrow in interface HybridFindingDetailsOrBuilder
      • removeLabels

        public HybridFindingDetails.Builder removeLabels​(String key)
         Labels to represent user provided metadata about the data being inspected.
         If configured by the job, some key values may be required.
         The labels associated with `Finding`'s produced by hybrid
         inspection.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 5;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public HybridFindingDetails.Builder putLabels​(String key,
                                                      String value)
         Labels to represent user provided metadata about the data being inspected.
         If configured by the job, some key values may be required.
         The labels associated with `Finding`'s produced by hybrid
         inspection.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 5;
      • putAllLabels

        public HybridFindingDetails.Builder putAllLabels​(Map<String,​String> values)
         Labels to represent user provided metadata about the data being inspected.
         If configured by the job, some key values may be required.
         The labels associated with `Finding`'s produced by hybrid
         inspection.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 5;
      • setUnknownFields

        public final HybridFindingDetails.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<HybridFindingDetails.Builder>
      • mergeUnknownFields

        public final HybridFindingDetails.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<HybridFindingDetails.Builder>