Package com.google.cloud.kms.v1
Class GenerateRandomBytesRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
- com.google.cloud.kms.v1.GenerateRandomBytesRequest.Builder
-
- All Implemented Interfaces:
GenerateRandomBytesRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- GenerateRandomBytesRequest
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 typegoogle.cloud.kms.v1.GenerateRandomBytesRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(GenerateRandomBytesRequest other)
GenerateRandomBytesRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
clear
public GenerateRandomBytesRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
getDefaultInstanceForType
public GenerateRandomBytesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GenerateRandomBytesRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GenerateRandomBytesRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GenerateRandomBytesRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
setField
public GenerateRandomBytesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
clearField
public GenerateRandomBytesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
clearOneof
public GenerateRandomBytesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
setRepeatedField
public GenerateRandomBytesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
addRepeatedField
public GenerateRandomBytesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
mergeFrom
public GenerateRandomBytesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GenerateRandomBytesRequest.Builder>
-
mergeFrom
public GenerateRandomBytesRequest.Builder mergeFrom(GenerateRandomBytesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
mergeFrom
public GenerateRandomBytesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GenerateRandomBytesRequest.Builder>
- Throws:
IOException
-
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;
- Specified by:
getLocation
in interfaceGenerateRandomBytesRequestOrBuilder
- Returns:
- The location.
-
getLocationBytes
public 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;
- Specified by:
getLocationBytes
in interfaceGenerateRandomBytesRequestOrBuilder
- Returns:
- The bytes for location.
-
setLocation
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;
- Parameters:
value
- The location to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setLocationBytes
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;
- Parameters:
value
- The bytes for location to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getLengthBytes
in interfaceGenerateRandomBytesRequestOrBuilder
- Returns:
- The lengthBytes.
-
setLengthBytes
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;
- Parameters:
value
- The lengthBytes to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
getProtectionLevelValue
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;
- Specified by:
getProtectionLevelValue
in interfaceGenerateRandomBytesRequestOrBuilder
- Returns:
- The enum numeric value on the wire for protectionLevel.
-
setProtectionLevelValue
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;
- Parameters:
value
- The enum numeric value on the wire for protectionLevel to set.- Returns:
- This builder for chaining.
-
getProtectionLevel
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;
- Specified by:
getProtectionLevel
in interfaceGenerateRandomBytesRequestOrBuilder
- Returns:
- The protectionLevel.
-
setProtectionLevel
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;
- Parameters:
value
- The protectionLevel to set.- Returns:
- This builder for chaining.
-
clearProtectionLevel
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;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final GenerateRandomBytesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
mergeUnknownFields
public final GenerateRandomBytesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
-