public static final class GenerateRandomBytesRequest.Builder extends GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder> implements GenerateRandomBytesRequestOrBuilder
Request message for
KeyManagementService.GenerateRandomBytes.
Protobuf type google.cloud.kms.v1.GenerateRandomBytesRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateRandomBytesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GenerateRandomBytesRequest build()
buildPartial()
public GenerateRandomBytesRequest buildPartial()
clear()
public GenerateRandomBytesRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GenerateRandomBytesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLengthBytes()
public GenerateRandomBytesRequest.Builder clearLengthBytes()
The length in bytes of the amount of randomness to retrieve. Minimum 8
bytes, maximum 1024 bytes.
int32 length_bytes = 2;
clearLocation()
public GenerateRandomBytesRequest.Builder clearLocation()
The project-specific location in which to generate random bytes.
For example, "projects/my-project/locations/us-central1".
string location = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateRandomBytesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProtectionLevel()
public GenerateRandomBytesRequest.Builder clearProtectionLevel()
The ProtectionLevel to use when
generating the random data. Currently, only
HSM protection level is
supported.
.google.cloud.kms.v1.ProtectionLevel protection_level = 3;
clone()
public GenerateRandomBytesRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public GenerateRandomBytesRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLengthBytes()
public int getLengthBytes()
The length in bytes of the amount of randomness to retrieve. Minimum 8
bytes, maximum 1024 bytes.
int32 length_bytes = 2;
Returns |
---|
Type | Description |
int | The lengthBytes.
|
getLocation()
public String getLocation()
The project-specific location in which to generate random bytes.
For example, "projects/my-project/locations/us-central1".
string location = 1;
Returns |
---|
Type | Description |
String | The location.
|
getLocationBytes()
public ByteString getLocationBytes()
The project-specific location in which to generate random bytes.
For example, "projects/my-project/locations/us-central1".
string location = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for location.
|
getProtectionLevel()
public 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;
getProtectionLevelValue()
public 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 |
---|
Type | Description |
int | The enum numeric value on the wire for protectionLevel.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GenerateRandomBytesRequest other)
public GenerateRandomBytesRequest.Builder mergeFrom(GenerateRandomBytesRequest other)
public GenerateRandomBytesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GenerateRandomBytesRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateRandomBytesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateRandomBytesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLengthBytes(int value)
public GenerateRandomBytesRequest.Builder setLengthBytes(int value)
The length in bytes of the amount of randomness to retrieve. Minimum 8
bytes, maximum 1024 bytes.
int32 length_bytes = 2;
Parameter |
---|
Name | Description |
value | int
The lengthBytes to set.
|
setLocation(String value)
public GenerateRandomBytesRequest.Builder setLocation(String value)
The project-specific location in which to generate random bytes.
For example, "projects/my-project/locations/us-central1".
string location = 1;
Parameter |
---|
Name | Description |
value | String
The location to set.
|
setLocationBytes(ByteString value)
public GenerateRandomBytesRequest.Builder setLocationBytes(ByteString value)
The project-specific location in which to generate random bytes.
For example, "projects/my-project/locations/us-central1".
string location = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for location to set.
|
setProtectionLevel(ProtectionLevel value)
public GenerateRandomBytesRequest.Builder setProtectionLevel(ProtectionLevel value)
The ProtectionLevel to use when
generating the random data. Currently, only
HSM protection level is
supported.
.google.cloud.kms.v1.ProtectionLevel protection_level = 3;
setProtectionLevelValue(int value)
public GenerateRandomBytesRequest.Builder setProtectionLevelValue(int value)
The ProtectionLevel to use when
generating the random data. Currently, only
HSM protection level is
supported.
.google.cloud.kms.v1.ProtectionLevel protection_level = 3;
Parameter |
---|
Name | Description |
value | int
The enum numeric value on the wire for protectionLevel to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateRandomBytesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateRandomBytesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides