0.10.0 (latest) 0.9.0 0.7.0 0.4.0 0.3.0 0.1.0

    public interface ResourceFilterOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsInclusionLabels(String key)

    public abstract boolean containsInclusionLabels(String key)

Labels to filter resources by. Each key-value pair in the map must exist
on the resource for it to be included (e.g. VM instance labels).
For example, specifying `{ "env": "prod", "database": "nosql" }` will only
include resources that have labels `env=prod` and `database=nosql`.

`map<string, string> inclusion_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` |   |

### getGceInstanceFilter()

    public abstract GceInstanceFilter getGceInstanceFilter()

Filter compute engine resources.

`.google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.GceInstanceFilter` | The gceInstanceFilter. |

### getGceInstanceFilterOrBuilder()

    public abstract GceInstanceFilterOrBuilder getGceInstanceFilterOrBuilder()

Filter compute engine resources.

`.google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.GceInstanceFilterOrBuilder` |   |

### getInclusionLabels() (deprecated)

    public abstract Map<String,String> getInclusionLabels()

Use [#getInclusionLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.ResourceFilterOrBuilder#com_google_cloud_workloadmanager_v1_ResourceFilterOrBuilder_getInclusionLabelsMap__) 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>` |   |

### getInclusionLabelsCount()

    public abstract int getInclusionLabelsCount()

Labels to filter resources by. Each key-value pair in the map must exist
on the resource for it to be included (e.g. VM instance labels).
For example, specifying `{ "env": "prod", "database": "nosql" }` will only
include resources that have labels `env=prod` and `database=nosql`.

`map<string, string> inclusion_labels = 3;`

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

### getInclusionLabelsMap()

    public abstract Map<String,String> getInclusionLabelsMap()

Labels to filter resources by. Each key-value pair in the map must exist
on the resource for it to be included (e.g. VM instance labels).
For example, specifying `{ "env": "prod", "database": "nosql" }` will only
include resources that have labels `env=prod` and `database=nosql`.

`map<string, string> inclusion_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>` |   |

### getInclusionLabelsOrDefault(String key, String defaultValue)

    public abstract String getInclusionLabelsOrDefault(String key, String defaultValue)

Labels to filter resources by. Each key-value pair in the map must exist
on the resource for it to be included (e.g. VM instance labels).
For example, specifying `{ "env": "prod", "database": "nosql" }` will only
include resources that have labels `env=prod` and `database=nosql`.

`map<string, string> inclusion_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` |   |

### getInclusionLabelsOrThrow(String key)

    public abstract String getInclusionLabelsOrThrow(String key)

Labels to filter resources by. Each key-value pair in the map must exist
on the resource for it to be included (e.g. VM instance labels).
For example, specifying `{ "env": "prod", "database": "nosql" }` will only
include resources that have labels `env=prod` and `database=nosql`.

`map<string, string> inclusion_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` |   |

### getResourceIdPatterns(int index)

    public abstract String getResourceIdPatterns(int index)

The pattern to filter resources by their id
For example, a pattern of ".*prod-cluster.*" will match all resources that
contain "prod-cluster" in their ID.

`repeated string resource_id_patterns = 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 resourceIdPatterns at the given index. |

### getResourceIdPatternsBytes(int index)

    public abstract ByteString getResourceIdPatternsBytes(int index)

The pattern to filter resources by their id
For example, a pattern of ".*prod-cluster.*" will match all resources that
contain "prod-cluster" in their ID.

`repeated string resource_id_patterns = 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 resourceIdPatterns at the given index. |

### getResourceIdPatternsCount()

    public abstract int getResourceIdPatternsCount()

The pattern to filter resources by their id
For example, a pattern of ".*prod-cluster.*" will match all resources that
contain "prod-cluster" in their ID.

`repeated string resource_id_patterns = 2;`

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

### getResourceIdPatternsList()

    public abstract List<String> getResourceIdPatternsList()

The pattern to filter resources by their id
For example, a pattern of ".*prod-cluster.*" will match all resources that
contain "prod-cluster" in their ID.

`repeated string resource_id_patterns = 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 resourceIdPatterns. |

### getScopes(int index)

    public abstract String getScopes(int index)

The scopes of evaluation resource.
Format:

- `projects/{project_id}`
- `folders/{folder_id}`
- `organizations/{organization_id}`

`repeated string scopes = 1;`

| **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 scopes at the given index. |

### getScopesBytes(int index)

    public abstract ByteString getScopesBytes(int index)

The scopes of evaluation resource.
Format:

- `projects/{project_id}`
- `folders/{folder_id}`
- `organizations/{organization_id}`

`repeated string scopes = 1;`

| **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 scopes at the given index. |

### getScopesCount()

    public abstract int getScopesCount()

The scopes of evaluation resource.
Format:

- `projects/{project_id}`
- `folders/{folder_id}`
- `organizations/{organization_id}`

`repeated string scopes = 1;`

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

### getScopesList()

    public abstract List<String> getScopesList()

The scopes of evaluation resource.
Format:

- `projects/{project_id}`
- `folders/{folder_id}`
- `organizations/{organization_id}`

`repeated string scopes = 1;`

| **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 scopes. |

### hasGceInstanceFilter()

    public abstract boolean hasGceInstanceFilter()

Filter compute engine resources.

`.google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4;`

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