Interface GenerateRandomBytesRequestOrBuilder (2.6.4)

Stay organized with collections Save and categorize content based on your preferences.
public interface GenerateRandomBytesRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLengthBytes()

public abstract int getLengthBytes()

The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.

int32 length_bytes = 2;

Returns
TypeDescription
int

The lengthBytes.

getLocation()

public abstract String getLocation()

The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".

string location = 1;

Returns
TypeDescription
String

The location.

getLocationBytes()

public abstract ByteString getLocationBytes()

The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".

string location = 1;

Returns
TypeDescription
ByteString

The bytes for location.

getProtectionLevel()

public abstract ProtectionLevel getProtectionLevel()

The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported.

.google.cloud.kms.v1.ProtectionLevel protection_level = 3;

Returns
TypeDescription
ProtectionLevel

The protectionLevel.

getProtectionLevelValue()

public abstract int getProtectionLevelValue()

The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported.

.google.cloud.kms.v1.ProtectionLevel protection_level = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for protectionLevel.