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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GenerateRandomBytesRequestbuild()GenerateRandomBytesRequestbuildPartial()GenerateRandomBytesRequest.Builderclear()GenerateRandomBytesRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GenerateRandomBytesRequest.BuilderclearLengthBytes()The length in bytes of the amount of randomness to retrieve.GenerateRandomBytesRequest.BuilderclearLocation()The project-specific location in which to generate random bytes.GenerateRandomBytesRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GenerateRandomBytesRequest.BuilderclearProtectionLevel()The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when generating the random data.GenerateRandomBytesRequest.Builderclone()GenerateRandomBytesRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetLengthBytes()The length in bytes of the amount of randomness to retrieve.StringgetLocation()The project-specific location in which to generate random bytes.com.google.protobuf.ByteStringgetLocationBytes()The project-specific location in which to generate random bytes.ProtectionLevelgetProtectionLevel()The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when generating the random data.intgetProtectionLevelValue()The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when generating the random data.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GenerateRandomBytesRequest.BuildermergeFrom(GenerateRandomBytesRequest other)GenerateRandomBytesRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GenerateRandomBytesRequest.BuildermergeFrom(com.google.protobuf.Message other)GenerateRandomBytesRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GenerateRandomBytesRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GenerateRandomBytesRequest.BuildersetLengthBytes(int value)The length in bytes of the amount of randomness to retrieve.GenerateRandomBytesRequest.BuildersetLocation(String value)The project-specific location in which to generate random bytes.GenerateRandomBytesRequest.BuildersetLocationBytes(com.google.protobuf.ByteString value)The project-specific location in which to generate random bytes.GenerateRandomBytesRequest.BuildersetProtectionLevel(ProtectionLevel value)The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when generating the random data.GenerateRandomBytesRequest.BuildersetProtectionLevelValue(int value)The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when generating the random data.GenerateRandomBytesRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GenerateRandomBytesRequest.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
clear
public GenerateRandomBytesRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
getDefaultInstanceForType
public GenerateRandomBytesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GenerateRandomBytesRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GenerateRandomBytesRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GenerateRandomBytesRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
setField
public GenerateRandomBytesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
clearField
public GenerateRandomBytesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
clearOneof
public GenerateRandomBytesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
setRepeatedField
public GenerateRandomBytesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
addRepeatedField
public GenerateRandomBytesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
mergeFrom
public GenerateRandomBytesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateRandomBytesRequest.Builder>
-
mergeFrom
public GenerateRandomBytesRequest.Builder mergeFrom(GenerateRandomBytesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getLocationin 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:
getLocationBytesin 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:
getLengthBytesin 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:
getProtectionLevelValuein 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:
getProtectionLevelin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
mergeUnknownFields
public final GenerateRandomBytesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateRandomBytesRequest.Builder>
-
-