# Interface HybridOptionsOrBuilder (3.97.0)

3.97.0 (latest) 3.95.0 3.92.0 3.91.0 3.89.0 3.87.0 3.86.0 3.85.0 3.84.0 3.82.0 3.80.0 3.79.0 3.78.0 3.77.0 3.76.0 3.74.0 3.72.0 3.71.0 3.68.0 3.67.0 3.66.0 3.64.0 3.63.0 3.62.0 3.61.0 3.60.0 3.59.0 3.58.0 3.57.0 3.56.0 3.55.0 3.53.0 3.52.0 3.51.0 3.50.0 3.49.0 3.48.0 3.47.0 3.46.0 3.45.0 3.44.0 3.43.0 3.41.0 3.40.0 3.39.0 3.38.0 3.37.0 3.36.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.28.0 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.6 3.6.7 3.5.0 3.4.0 3.3.2 3.2.1 3.1.4

    public interface HybridOptionsOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

To organize findings, these labels will be added to each finding.

Label keys must be between 1 and 63 characters long and must conform
to the following regular expression: `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-a-z0-9]*[a-z0-9]?`.

Label values must be between 0 and 63 characters long and must conform
to the regular expression `(https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-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 = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getDescription()

    public abstract String getDescription()

A short description of where the data is coming from. Will be stored once
in the job. 256 max length.

`string description = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

A short description of where the data is coming from. Will be stored once
in the job. 256 max length.

`string description = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getLabels() (deprecated)

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/com.google.privacy.dlp.v2.HybridOptionsOrBuilder#com_google_privacy_dlp_v2_HybridOptionsOrBuilder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

To organize findings, these labels will be added to each finding.

Label keys must be between 1 and 63 characters long and must conform
to the following regular expression: `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-a-z0-9]*[a-z0-9]?`.

Label values must be between 0 and 63 characters long and must conform
to the regular expression `(https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-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 = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

To organize findings, these labels will be added to each finding.

Label keys must be between 1 and 63 characters long and must conform
to the following regular expression: `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-a-z0-9]*[a-z0-9]?`.

Label values must be between 0 and 63 characters long and must conform
to the regular expression `(https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-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 = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

To organize findings, these labels will be added to each finding.

Label keys must be between 1 and 63 characters long and must conform
to the following regular expression: `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-a-z0-9]*[a-z0-9]?`.

Label values must be between 0 and 63 characters long and must conform
to the regular expression `(https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-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 = 3;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

To organize findings, these labels will be added to each finding.

Label keys must be between 1 and 63 characters long and must conform
to the following regular expression: `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-a-z0-9]*[a-z0-9]?`.

Label values must be between 0 and 63 characters long and must conform
to the regular expression `(https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-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 = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getRequiredFindingLabelKeys(int index)

    public abstract String getRequiredFindingLabelKeys(int index)

These are labels that each inspection request must include within their
'finding_labels' map. Request may contain others, but any missing one of
these will be rejected.

Label keys must be between 1 and 63 characters long and must conform
to the following regular expression: `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-a-z0-9]*[a-z0-9]?`.

No more than 10 keys can be required.

`repeated string required_finding_label_keys = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The requiredFindingLabelKeys at the given index. |

### getRequiredFindingLabelKeysBytes(int index)

    public abstract ByteString getRequiredFindingLabelKeysBytes(int index)

These are labels that each inspection request must include within their
'finding_labels' map. Request may contain others, but any missing one of
these will be rejected.

Label keys must be between 1 and 63 characters long and must conform
to the following regular expression: `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-a-z0-9]*[a-z0-9]?`.

No more than 10 keys can be required.

`repeated string required_finding_label_keys = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the requiredFindingLabelKeys at the given index. |

### getRequiredFindingLabelKeysCount()

    public abstract int getRequiredFindingLabelKeysCount()

These are labels that each inspection request must include within their
'finding_labels' map. Request may contain others, but any missing one of
these will be rejected.

Label keys must be between 1 and 63 characters long and must conform
to the following regular expression: `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-a-z0-9]*[a-z0-9]?`.

No more than 10 keys can be required.

`repeated string required_finding_label_keys = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of requiredFindingLabelKeys. |

### getRequiredFindingLabelKeysList()

    public abstract List<String> getRequiredFindingLabelKeysList()

These are labels that each inspection request must include within their
'finding_labels' map. Request may contain others, but any missing one of
these will be rejected.

Label keys must be between 1 and 63 characters long and must conform
to the following regular expression: `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/[-a-z0-9]*[a-z0-9]?`.

No more than 10 keys can be required.

`repeated string required_finding_label_keys = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the requiredFindingLabelKeys. |

### getTableOptions()

    public abstract TableOptions getTableOptions()

If the container is a table, additional information to make findings
meaningful such as the columns that are primary keys.

`.google.privacy.dlp.v2.TableOptions table_options = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/com.google.privacy.dlp.v2.TableOptions` | The tableOptions. |

### getTableOptionsOrBuilder()

    public abstract TableOptionsOrBuilder getTableOptionsOrBuilder()

If the container is a table, additional information to make findings
meaningful such as the columns that are primary keys.

`.google.privacy.dlp.v2.TableOptions table_options = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dlp/latest/com.google.privacy.dlp.v2.TableOptionsOrBuilder` |   |

### hasTableOptions()

    public abstract boolean hasTableOptions()

If the container is a table, additional information to make findings
meaningful such as the columns that are primary keys.

`.google.privacy.dlp.v2.TableOptions table_options = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the tableOptions field is set. |