# Interface ProtectedResourcesSummaryOrBuilder (0.82.0)

0.82.0 (latest) 0.80.0 0.77.0 0.76.0 0.74.0 0.72.0 0.71.0 0.70.0 0.69.0 0.67.0 0.65.0 0.64.0 0.63.0 0.62.0 0.61.0 0.59.0 0.57.0 0.56.0 0.53.0 0.52.0 0.51.0 0.49.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface ProtectedResourcesSummaryOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsCloudProducts(String key)

    public abstract boolean containsCloudProducts(String key)

The number of resources protected by the key grouped by Cloud product.

`map<string, int64> cloud_products = 6;`

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

### containsLocations(String key)

    public abstract boolean containsLocations(String key)

The number of resources protected by the key grouped by region.

`map<string, int64> locations = 4;`

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

### containsResourceTypes(String key)

    public abstract boolean containsResourceTypes(String key)

The number of resources protected by the key grouped by resource type.

`map<string, int64> resource_types = 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` |   |

### getCloudProducts() (deprecated)

    public abstract Map<String,Long> getCloudProducts()

Use [#getCloudProductsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/com.google.cloud.kms.inventory.v1.ProtectedResourcesSummaryOrBuilder#com_google_cloud_kms_inventory_v1_ProtectedResourcesSummaryOrBuilder_getCloudProductsMap__) 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,java.lang.Long>` |   |

### getCloudProductsCount()

    public abstract int getCloudProductsCount()

The number of resources protected by the key grouped by Cloud product.

`map<string, int64> cloud_products = 6;`

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

### getCloudProductsMap()

    public abstract Map<String,Long> getCloudProductsMap()

The number of resources protected by the key grouped by Cloud product.

`map<string, int64> cloud_products = 6;`

| **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,java.lang.Long>` |   |

### getCloudProductsOrDefault(String key, long defaultValue)

    public abstract long getCloudProductsOrDefault(String key, long defaultValue)

The number of resources protected by the key grouped by Cloud product.

`map<string, int64> cloud_products = 6;`

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

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

### getCloudProductsOrThrow(String key)

    public abstract long getCloudProductsOrThrow(String key)

The number of resources protected by the key grouped by Cloud product.

`map<string, int64> cloud_products = 6;`

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

### getLocations() (deprecated)

    public abstract Map<String,Long> getLocations()

Use [#getLocationsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/com.google.cloud.kms.inventory.v1.ProtectedResourcesSummaryOrBuilder#com_google_cloud_kms_inventory_v1_ProtectedResourcesSummaryOrBuilder_getLocationsMap__) 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,java.lang.Long>` |   |

### getLocationsCount()

    public abstract int getLocationsCount()

The number of resources protected by the key grouped by region.

`map<string, int64> locations = 4;`

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

### getLocationsMap()

    public abstract Map<String,Long> getLocationsMap()

The number of resources protected by the key grouped by region.

`map<string, int64> locations = 4;`

| **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,java.lang.Long>` |   |

### getLocationsOrDefault(String key, long defaultValue)

    public abstract long getLocationsOrDefault(String key, long defaultValue)

The number of resources protected by the key grouped by region.

`map<string, int64> locations = 4;`

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

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

### getLocationsOrThrow(String key)

    public abstract long getLocationsOrThrow(String key)

The number of resources protected by the key grouped by region.

`map<string, int64> locations = 4;`

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

### getName()

    public abstract String getName()

The full name of the ProtectedResourcesSummary resource.
Example:
projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary

`string name = 5;`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

The full name of the ProtectedResourcesSummary resource.
Example:
projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary

`string name = 5;`

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

### getProjectCount()

    public abstract int getProjectCount()

The number of distinct Cloud projects in the same Cloud organization as the
key that have resources protected by the key.

`int32 project_count = 2;`

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

### getResourceCount()

    public abstract long getResourceCount()

The total number of protected resources in the same Cloud organization as
the key.

`int64 resource_count = 1;`

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

### getResourceTypes() (deprecated)

    public abstract Map<String,Long> getResourceTypes()

Use [#getResourceTypesMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/com.google.cloud.kms.inventory.v1.ProtectedResourcesSummaryOrBuilder#com_google_cloud_kms_inventory_v1_ProtectedResourcesSummaryOrBuilder_getResourceTypesMap__) 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,java.lang.Long>` |   |

### getResourceTypesCount()

    public abstract int getResourceTypesCount()

The number of resources protected by the key grouped by resource type.

`map<string, int64> resource_types = 3;`

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

### getResourceTypesMap()

    public abstract Map<String,Long> getResourceTypesMap()

The number of resources protected by the key grouped by resource type.

`map<string, int64> resource_types = 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,java.lang.Long>` |   |

### getResourceTypesOrDefault(String key, long defaultValue)

    public abstract long getResourceTypesOrDefault(String key, long defaultValue)

The number of resources protected by the key grouped by resource type.

`map<string, int64> resource_types = 3;`

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

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

### getResourceTypesOrThrow(String key)

    public abstract long getResourceTypesOrThrow(String key)

The number of resources protected by the key grouped by resource type.

`map<string, int64> resource_types = 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` |   |

### getWarnings(int index)

    public abstract Warning getWarnings(int index)

Warning messages for the state of response
ProtectedResourcesSummary
For example, if the organization service account is not configured,
INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.

`repeated .google.cloud.kms.inventory.v1.Warning warnings = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/com.google.cloud.kms.inventory.v1.Warning` |   |

### getWarningsCount()

    public abstract int getWarningsCount()

Warning messages for the state of response
ProtectedResourcesSummary
For example, if the organization service account is not configured,
INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.

`repeated .google.cloud.kms.inventory.v1.Warning warnings = 7;`

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

### getWarningsList()

    public abstract List<Warning> getWarningsList()

Warning messages for the state of response
ProtectedResourcesSummary
For example, if the organization service account is not configured,
INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.

`repeated .google.cloud.kms.inventory.v1.Warning warnings = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/com.google.cloud.kms.inventory.v1.Warning>` |   |

### getWarningsOrBuilder(int index)

    public abstract WarningOrBuilder getWarningsOrBuilder(int index)

Warning messages for the state of response
ProtectedResourcesSummary
For example, if the organization service account is not configured,
INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.

`repeated .google.cloud.kms.inventory.v1.Warning warnings = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/com.google.cloud.kms.inventory.v1.WarningOrBuilder` |   |

### getWarningsOrBuilderList()

    public abstract List<? extends WarningOrBuilder> getWarningsOrBuilderList()

Warning messages for the state of response
ProtectedResourcesSummary
For example, if the organization service account is not configured,
INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.

`repeated .google.cloud.kms.inventory.v1.Warning warnings = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.kms.inventory.v1.WarningOrBuilder>` |   |