# Class GenerateRandomBytesRequest (3.14.0)

3.14.0 (latest) 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.1 3.4.0 3.3.1 3.2.2 3.1.1 3.0.0 2.24.2 2.23.0 2.22.0 2.21.4 2.20.0 2.19.2 2.18.0 2.17.0 2.16.1 2.15.0 2.14.1 2.13.0 2.12.3 2.11.2 2.10.1 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.3 2.3.0 2.2.0 2.1.0 2.0.1 1.4.2 1.3.0 1.2.1 1.1.0

    GenerateRandomBytesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for
KeyManagementService.GenerateRandomBytes.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `location` | `str` The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1". |
| `length_bytes` | `int` The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes. |
| `protection_level` | `https://docs.cloud.google.com/python/docs/reference/cloudkms/latest/google.cloud.kms_v1.types.ProtectionLevel` The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported. |