Reference documentation and code samples for the Cloud KMS V1 Client class GenerateRandomBytesRequest.
Request message for KeyManagementService.GenerateRandomBytes .
Generated from protobuf message google.cloud.kms.v1.GenerateRandomBytesRequest
Namespace
Google \ Cloud \ Kms \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ location
string
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
int
The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported.
getLocation
The project-specific location in which to generate random bytes.
For example, "projects/my-project/locations/us-central1".
string
setLocation
The project-specific location in which to generate random bytes.
For example, "projects/my-project/locations/us-central1".
var
string
$this
getLengthBytes
The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.
int
setLengthBytes
The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.
var
int
$this
getProtectionLevel
The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported.
int
setProtectionLevel
The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported.
var
int
$this
static::build
location
string
The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".
lengthBytes
int
The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.
protectionLevel
int
The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported. For allowed values, use constants defined on ProtectionLevel