# Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::Finding (v1.17.0)

1.17.0 (latest) 1.16.1 1.15.2 1.14.0 1.13.0 1.12.1 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.2 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.1 Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::Finding.

Represents a piece of potentially sensitive content.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Timestamp when finding was detected.

### #create_time=

    def create_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Timestamp when finding was detected.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Timestamp when finding was detected.

### #finding_id

    def finding_id() -> ::String

**Returns**

- (::String) --- The unique finding id.

### #finding_id=

    def finding_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The unique finding id.
**Returns**

- (::String) --- The unique finding id.

### #info_type

    def info_type() -> ::Google::Cloud::Dlp::V2::InfoType

**Returns**

- ([::Google::Cloud::Dlp::V2::InfoType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InfoType)) --- The type of content that might have been found. Provided if `excluded_types` is false.

### #info_type=

    def info_type=(value) -> ::Google::Cloud::Dlp::V2::InfoType

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::InfoType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InfoType)) --- The type of content that might have been found. Provided if `excluded_types` is false.
**Returns**

- ([::Google::Cloud::Dlp::V2::InfoType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-InfoType)) --- The type of content that might have been found. Provided if `excluded_types` is false.

### #job_create_time

    def job_create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time the job started that produced this finding.

### #job_create_time=

    def job_create_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time the job started that produced this finding.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- Time the job started that produced this finding.

### #job_name

    def job_name() -> ::String

**Returns**

- (::String) --- The job that stored the finding.

### #job_name=

    def job_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The job that stored the finding.
**Returns**

- (::String) --- The job that stored the finding.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- The labels associated with this `Finding`.

  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"`

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) ---

  The labels associated with this `Finding`.

  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"`
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- The labels associated with this `Finding`.

  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"`

### #likelihood

    def likelihood() -> ::Google::Cloud::Dlp::V2::Likelihood

**Returns**

- ([::Google::Cloud::Dlp::V2::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Likelihood)) --- Confidence of how likely it is that the `info_type` is correct.

### #likelihood=

    def likelihood=(value) -> ::Google::Cloud::Dlp::V2::Likelihood

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Likelihood)) --- Confidence of how likely it is that the `info_type` is correct.
**Returns**

- ([::Google::Cloud::Dlp::V2::Likelihood](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Likelihood)) --- Confidence of how likely it is that the `info_type` is correct.

### #location

    def location() -> ::Google::Cloud::Dlp::V2::Location

**Returns**

- ([::Google::Cloud::Dlp::V2::Location](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Location)) --- Where the content was found.

### #location=

    def location=(value) -> ::Google::Cloud::Dlp::V2::Location

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::Location](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Location)) --- Where the content was found.
**Returns**

- ([::Google::Cloud::Dlp::V2::Location](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-Location)) --- Where the content was found.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.
**Returns**

- (::String) --- Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.

### #quote

    def quote() -> ::String

**Returns**

- (::String) --- The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided if `include_quote` is true and the finding is less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes in length, the quote may be omitted.

### #quote=

    def quote=(value) -> ::String

**Parameter**

- **value** (::String) --- The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided if `include_quote` is true and the finding is less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes in length, the quote may be omitted.
**Returns**

- (::String) --- The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided if `include_quote` is true and the finding is less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes in length, the quote may be omitted.

### #quote_info

    def quote_info() -> ::Google::Cloud::Dlp::V2::QuoteInfo

**Returns**

- ([::Google::Cloud::Dlp::V2::QuoteInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-QuoteInfo)) --- Contains data parsed from quotes. Only populated if include_quote was set to true and a supported infoType was requested. Currently supported infoTypes: DATE, DATE_OF_BIRTH and TIME.

### #quote_info=

    def quote_info=(value) -> ::Google::Cloud::Dlp::V2::QuoteInfo

**Parameter**

- **value** ([::Google::Cloud::Dlp::V2::QuoteInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-QuoteInfo)) --- Contains data parsed from quotes. Only populated if include_quote was set to true and a supported infoType was requested. Currently supported infoTypes: DATE, DATE_OF_BIRTH and TIME.
**Returns**

- ([::Google::Cloud::Dlp::V2::QuoteInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Cloud-Dlp-V2-QuoteInfo)) --- Contains data parsed from quotes. Only populated if include_quote was set to true and a supported infoType was requested. Currently supported infoTypes: DATE, DATE_OF_BIRTH and TIME.

### #resource_name

    def resource_name() -> ::String

**Returns**

- (::String) --- The job that stored the finding.

### #resource_name=

    def resource_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The job that stored the finding.
**Returns**

- (::String) --- The job that stored the finding.

### #trigger_name

    def trigger_name() -> ::String

**Returns**

- (::String) --- Job trigger name, if applicable, for this finding.

### #trigger_name=

    def trigger_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Job trigger name, if applicable, for this finding.
**Returns**

- (::String) --- Job trigger name, if applicable, for this finding.