public static final class GenerateRandomBytesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder> implements GenerateRandomBytesRequestOrBuilder
Request message for [KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].Protobuf type
google.cloud.kms.v1.GenerateRandomBytesRequest| Modifier and Type | Method and Description |
|---|---|
GenerateRandomBytesRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GenerateRandomBytesRequest |
build() |
GenerateRandomBytesRequest |
buildPartial() |
GenerateRandomBytesRequest.Builder |
clear() |
GenerateRandomBytesRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GenerateRandomBytesRequest.Builder |
clearLengthBytes()
The length in bytes of the amount of randomness to retrieve.
|
GenerateRandomBytesRequest.Builder |
clearLocation()
The project-specific location in which to generate random bytes.
|
GenerateRandomBytesRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GenerateRandomBytesRequest.Builder |
clearProtectionLevel()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
generating the random data.
|
GenerateRandomBytesRequest.Builder |
clone() |
GenerateRandomBytesRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getLengthBytes()
The length in bytes of the amount of randomness to retrieve.
|
String |
getLocation()
The project-specific location in which to generate random bytes.
|
com.google.protobuf.ByteString |
getLocationBytes()
The project-specific location in which to generate random bytes.
|
ProtectionLevel |
getProtectionLevel()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
generating the random data.
|
int |
getProtectionLevelValue()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
generating the random data.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GenerateRandomBytesRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GenerateRandomBytesRequest.Builder |
mergeFrom(GenerateRandomBytesRequest other) |
GenerateRandomBytesRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
GenerateRandomBytesRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GenerateRandomBytesRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GenerateRandomBytesRequest.Builder |
setLengthBytes(int value)
The length in bytes of the amount of randomness to retrieve.
|
GenerateRandomBytesRequest.Builder |
setLocation(String value)
The project-specific location in which to generate random bytes.
|
GenerateRandomBytesRequest.Builder |
setLocationBytes(com.google.protobuf.ByteString value)
The project-specific location in which to generate random bytes.
|
GenerateRandomBytesRequest.Builder |
setProtectionLevel(ProtectionLevel value)
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
generating the random data.
|
GenerateRandomBytesRequest.Builder |
setProtectionLevelValue(int value)
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
generating the random data.
|
GenerateRandomBytesRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GenerateRandomBytesRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public GenerateRandomBytesRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public GenerateRandomBytesRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GenerateRandomBytesRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GenerateRandomBytesRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GenerateRandomBytesRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public GenerateRandomBytesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public GenerateRandomBytesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public GenerateRandomBytesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public GenerateRandomBytesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public GenerateRandomBytesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public GenerateRandomBytesRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateRandomBytesRequest.Builder>public GenerateRandomBytesRequest.Builder mergeFrom(GenerateRandomBytesRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public GenerateRandomBytesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateRandomBytesRequest.Builder>IOExceptionpublic 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 GenerateRandomBytesRequestOrBuilderpublic 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;getLocationBytes in interface GenerateRandomBytesRequestOrBuilderpublic 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(com.google.protobuf.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 GenerateRandomBytesRequestOrBuilderpublic 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 GenerateRandomBytesRequestOrBuilderpublic 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 GenerateRandomBytesRequestOrBuilderpublic 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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>public final GenerateRandomBytesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>Copyright © 2022 Google LLC. All rights reserved.