public static final class GenerateRandomBytesRequest.Builder extends GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder> implements GenerateRandomBytesRequestOrBuilder
Request message for [KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].Protobuf type
google.cloud.kms.v1.GenerateRandomBytesRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public GenerateRandomBytesRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public GenerateRandomBytesRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public GenerateRandomBytesRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public GenerateRandomBytesRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public GenerateRandomBytesRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public GenerateRandomBytesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public GenerateRandomBytesRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public GenerateRandomBytesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public GenerateRandomBytesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public GenerateRandomBytesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public GenerateRandomBytesRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<GenerateRandomBytesRequest.Builder>
public GenerateRandomBytesRequest.Builder mergeFrom(GenerateRandomBytesRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public GenerateRandomBytesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<GenerateRandomBytesRequest.Builder>
IOException
public String getLocation()
The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".
string location = 1;
getLocation
in interface GenerateRandomBytesRequestOrBuilder
public ByteString getLocationBytes()
The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".
string location = 1;
getLocationBytes
in interface GenerateRandomBytesRequestOrBuilder
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;
value
- The location to set.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;
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;
value
- The bytes for location to set.public int getLengthBytes()
The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.
int32 length_bytes = 2;
getLengthBytes
in interface GenerateRandomBytesRequestOrBuilder
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;
value
- The lengthBytes to set.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;
public 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;
getProtectionLevelValue
in interface GenerateRandomBytesRequestOrBuilder
public GenerateRandomBytesRequest.Builder setProtectionLevelValue(int value)
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;
value
- The enum numeric value on the wire for protectionLevel to set.public 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;
getProtectionLevel
in interface GenerateRandomBytesRequestOrBuilder
public GenerateRandomBytesRequest.Builder setProtectionLevel(ProtectionLevel value)
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;
value
- The protectionLevel to set.public GenerateRandomBytesRequest.Builder clearProtectionLevel()
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;
public final GenerateRandomBytesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
public final GenerateRandomBytesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.