Package com.google.cloud.kms.v1
Interface GenerateRandomBytesRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GenerateRandomBytesRequest,GenerateRandomBytesRequest.Builder
@Generated
public interface GenerateRandomBytesRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintThe length in bytes of the amount of randomness to retrieve.The project-specific location in which to generate random bytes.com.google.protobuf.ByteStringThe project-specific location in which to generate random bytes.The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when generating the random data.intThe [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when generating the random data.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getLocation
String getLocation()The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".
string location = 1;- Returns:
- The location.
-
getLocationBytes
com.google.protobuf.ByteString getLocationBytes()The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".
string location = 1;- Returns:
- The bytes for location.
-
getLengthBytes
int getLengthBytes()The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.
int32 length_bytes = 2;- Returns:
- The lengthBytes.
-
getProtectionLevelValue
int getProtectionLevelValue()The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when generating the random data. Currently, only [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] protection level is supported.
.google.cloud.kms.v1.ProtectionLevel protection_level = 3;- Returns:
- The enum numeric value on the wire for protectionLevel.
-
getProtectionLevel
ProtectionLevel getProtectionLevel()The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when generating the random data. Currently, only [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] protection level is supported.
.google.cloud.kms.v1.ProtectionLevel protection_level = 3;- Returns:
- The protectionLevel.
-