# Google Cloud KMS Inventory V1 Client - Class GetProtectedResourcesSummaryRequest (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.1 1.0.4 0.4.5 0.3.1 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud KMS Inventory V1 Client class GetProtectedResourcesSummaryRequest.

Request message for
[KeyTrackingService.GetProtectedResourcesSummary](https://docs.cloud.google.com/php/docs/reference/cloud-kms-inventory/latest/V1.Client.KeyTrackingServiceClient#_Google_Cloud_Kms_Inventory_V1_Client_KeyTrackingServiceClient__getProtectedResourcesSummary__).

Generated from protobuf message `google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest`

## Namespace

Google \\ Cloud \\ Kms \\ Inventory \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The resource name of the [CryptoKey](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.CryptoKey.html). |
| `↳ fallback_scope` | `int` Optional. The scope to use if the kms organization service account is not configured. |

### getName

Required. The resource name of the
[CryptoKey](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.CryptoKey.html).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. The resource name of the
[CryptoKey](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.CryptoKey.html).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFallbackScope

Optional. The scope to use if the kms organization service account is not
configured.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FallbackScope](https://docs.cloud.google.com/php/docs/reference/cloud-kms-inventory/latest/V1.FallbackScope). |

### setFallbackScope

Optional. The scope to use if the kms organization service account is not
configured.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [FallbackScope](https://docs.cloud.google.com/php/docs/reference/cloud-kms-inventory/latest/V1.FallbackScope). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource name of the [CryptoKey](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.CryptoKey.html). Please see KeyTrackingServiceClient::protectedResourcesSummaryName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-kms-inventory/latest/V1.GetProtectedResourcesSummaryRequest` |   |